source: rtems/c/src/wrapup/Makefile.am @ 765a1f06

4.104.114.84.95
Last change on this file since 765a1f06 was 765a1f06, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 26, 2002 at 5:00:34 PM

2002-06-26 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Pickup libnetapps.a from build directory.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1##
2##  $Id$
3##
4##  build and install "glommed" librtemsbsp.a
5##
6
7ACLOCAL_AMFLAGS = -I ../../../aclocal
8
9include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
10include $(top_srcdir)/../../../automake/compile.am
11include $(top_srcdir)/../../../automake/lib.am
12
13LIB = $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
14
15if HAS_NETWORKING
16LIBNETWORKING = ../libnetworking/wrapup/$(ARCH)/libnetapps.a
17endif
18
19if HAS_RDBG
20LIBRDBG = $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a
21endif
22
23if HAS_LIBBSP
24LIBBSP = $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a
25endif
26
27SRCS = $(LIBBSP) $(LIBNETWORKING) $(LIBRDBG) \
28    $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
29    $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
30    $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
31    $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
32    ../libmisc/wrapup/$(ARCH)/libmisc.a \
33    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
34
35TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
36
37all-local: $(ARCH) $(TMPINSTALL_FILES)
38
39$(LIB): $(SRCS)
40        rm -f $@
41        rm -rf $(ARCH)/*
42        for f in $(SRCS); do \
43          case $$f in \
44          *.o | *.rel) \
45            if test -f $(ARCH)/`basename $$f`; then \
46              if cmp $$f $(ARCH)/`basename $$f`; then \
47                true; \
48              else \
49                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
50                exit 1; \
51              fi; \
52            else \
53              cp $$f $(ARCH)/; \
54              chmod a-w $(ARCH)/`basename $$f`; \
55            fi; \
56            ;; \
57          *.a) \
58            cd $(ARCH); \
59              $(AR) xv ../$$f || exit 1; \
60              chmod a-w * ; \
61            cd ..; \
62            ;; \
63          esac; \
64        done
65        $(AR) rc $@ $(ARCH)/*
66        rm -f $(ARCH)/*
67        $(RANLIB) $@
68
69include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.