source: rtems/c/src/wrapup/Makefile.am @ 5f71e41

4.104.114.84.95
Last change on this file since 5f71e41 was 3c55718, checked in by Ralf Corsepius <ralf.corsepius@…>, on Mar 11, 2003 at 9:06:13 AM

Merger from rtems-4-6-branch.

  • 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 += $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a)
32endif
33
34SRCS += $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).$(OBJEXT))
35
36TMPINSTALL_FILES += $(LIB)
37
38all-local: $(ARCH) $(LIB) $(TMPINSTALL_FILES)
39
40$(LIB): $(SRCS)
41        rm -f $@
42        rm -rf $(ARCH)/*
43        test -d $(ARCH) || mkdir $(ARCH)
44        for f in $(SRCS); do \
45          case $$f in \
46          *.$(OBJEXT) | *.rel) \
47            if test -f $(ARCH)/`basename $$f`; then \
48              if cmp $$f $(ARCH)/`basename $$f`; then \
49                true; \
50              else \
51                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
52                exit 1; \
53              fi; \
54            else \
55              cp $$f $(ARCH)/; \
56              chmod a-w $(ARCH)/`basename $$f`; \
57            fi; \
58            ;; \
59          *.a) \
60            cd $(ARCH); \
61              $(AR) xv ../$$f || exit 1; \
62              chmod a-w * ; \
63            cd ..; \
64            ;; \
65          esac; \
66        done
67        $(AR) rc $@ $(ARCH)/*
68        rm -f $(ARCH)/*
69        $(RANLIB) $@
70
71install-data-local:
72        @$(mkinstalldirs) $(DESTDIR)$(bsplibdir)
73        $(INSTALL_DATA) $(LIB) $(DESTDIR)$(bsplibdir)
74
75include $(top_srcdir)/../../automake/local.am
Note: See TracBrowser for help on using the repository browser.