source: rtems/c/src/wrapup/Makefile.am @ 10c6e903

4.104.114.84.95
Last change on this file since 10c6e903 was 10c6e903, checked in by Joel Sherrill <joel.sherrill@…>, on 10/18/00 at 18:14:14

2000-10-18 Joel Sherrill <joel@…>

  • wrapup/Makefile.am: Added libfs.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1##
2##  $Id$
3##
4##  build and install "glommed" librtemsall.a
5##
6
7AUTOMAKE_OPTIONS = foreign 1.4
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/librtemsall${LIB_VARIANT}.a
14
15if HAS_NETWORKING
16LIBNETWORKING = $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a \
17    $(wildcard $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a) \
18    $(wildcard $(PROJECT_RELEASE)/lib/libxdr$(LIB_VARIANT).a)
19endif
20
21if HAS_RDBG
22LIBRDBG = $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a
23endif
24
25SRCS = $(wildcard $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a) \
26    $(PROJECT_RELEASE)/lib/librtems$(LIB_VARIANT).a \
27    $(wildcard $(PROJECT_RELEASE)/lib/libposix$(LIB_VARIANT).a) \
28    $(wildcard $(PROJECT_RELEASE)/lib/libitron$(LIB_VARIANT).a) \
29    $(LIBNETWORKING) $(LIBRDBG) \
30    $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
31    $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
32    $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
33    $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
34    $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
35    $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
36    $(PROJECT_RELEASE)/lib/libfs$(LIB_VARIANT).a \
37    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
38
39TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtemsall${LIB_VARIANT}.a
40
41all-local: $(ARCH) $(TMPINSTALL_FILES)
42
43$(LIB): $(SRCS)
44        rm -f $@
45        rm -rf $(ARCH)/*
46        for f in $(SRCS); do \
47          case $$f in \
48          *.o | *.rel) \
49            if test -f $(ARCH)/`basename $$f`; then \
50              if cmp $$f $(ARCH)/`basename $$f`; then \
51                true; \
52              else \
53                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
54                exit 1; \
55              fi; \
56            else \
57              cp $$f $(ARCH)/; \
58              chmod a-w $(ARCH)/`basename $$f`; \
59            fi; \
60            ;; \
61          *.a) \
62            (cd $(ARCH); \
63             $(AR) x ../$$f; \
64             test $$? -eq 0 || exit 1; \
65             chmod a-w *; ) \
66            ;; \
67          esac; \
68        done
69        $(AR) rc $@ $(ARCH)/*
70        rm -f $(ARCH)/*
71        $(RANLIB) $@
72
73include $(top_srcdir)/../../automake/local.am
Note: See TracBrowser for help on using the repository browser.