source: rtems/c/src/wrapup/Makefile.am @ 9537e5e

4.104.114.84.95
Last change on this file since 9537e5e was 4bdebdfe, checked in by Joel Sherrill <joel.sherrill@…>, on 12/13/99 at 16:16:44

Patch rtems-rc-19991203-4.diff from Ralf Corsepius <corsepiu@…>"""
which is an adaptation of a patch from Ian Lance Taylor plus a few
other changes that should significantly speed up building librtemsall.a.

  • Property mode set to 100644
File size: 2.0 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/lib.am
11
12LIBNAME = librtemsall
13LIB = $(PROJECT_RELEASE)/lib/$(LIBNAME)${LIB_VARIANT}.a
14
15if HAS_NETWORKING
16LIBNETWORKING = \
17   $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a \
18   $(PROJECT_RELEASE)/lib/librpc$(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) \
30    $(LIBRDBG) \
31    $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
32    $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
33    $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
34    $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
35    $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
36    $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
37    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
38
39TMPINSTALL_FILES += \
40$(PROJECT_RELEASE)/lib/$(LIBNAME)${LIB_VARIANT}.a
41
42all: $(ARCH) $(TMPINSTALL_FILES)
43
44install: all
45
46$(LIB): $(SRCS)
47        rm -f $@
48        rm -rf $(ARCH)/*
49        for f in $(SRCS); do \
50          case $$f in \
51          *.o | *.rel) \
52            if test -f $(ARCH)/`basename $$f`; then \
53              if cmp $$f $(ARCH)/`basename $$f`; then \
54                true; \
55              else \
56                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
57                exit 1; \
58              fi; \
59            else \
60              cp $$f $(ARCH)/; \
61              chmod a-w $(ARCH)/`basename $$f`; \
62            fi; \
63            ;; \
64          *.a) \
65            (cd $(ARCH); \
66             $(AR) x ../$$f; \
67             test $$? -eq 0 || exit 1; \
68             chmod a-w *; ) \
69            ;; \
70          esac; \
71        done
72        $(AR) rc $@ $(ARCH)/*
73        rm -f $(ARCH)/*
74        $(RANLIB) $@
75
76include $(top_srcdir)/../../automake/local.am
Note: See TracBrowser for help on using the repository browser.