source: rtems/c/src/wrapup/Makefile.am @ 2b61cd06

4.104.114.84.95
Last change on this file since 2b61cd06 was 2b61cd06, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 10, 2002 at 4:07:26 AM

2002-08-10 Ralf Corsepius <corsepiu@…>

  • wrapup/Makefile.am: Pick up ../libchip/rtc/$(ARCH)/librtcio.a and

../libchip/serial/$(ARCH)/libserialio.a.

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