source: rtems/c/src/wrapup/Makefile.am @ f2fc5cf

4.104.114.84.9
Last change on this file since f2fc5cf was f2fc5cf, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 2, 2003 at 4:40:06 AM

2003-12-02 Ralf Corsepius <corsepiu@…>

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