source: rtems/c/src/wrapup/Makefile.am @ 23e3f642

4.104.114.84.95
Last change on this file since 23e3f642 was 23e3f642, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/99 at 14:10:05

Missed in previous automake conversion patches from Ralf Corsepius
<corsepiu@…>.

  • 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/lib.am
11
12LIBNAME = librtemsall
13LIB = $(PROJECT_RELEASE)/lib/$(LIBNAME)${LIB_VARIANT}.a
14
15SRCS = $(wildcard $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a) \
16    $(PROJECT_RELEASE)/lib/librtems$(LIB_VARIANT).a \
17    $(wildcard $(PROJECT_RELEASE)/lib/libposix$(LIB_VARIANT).a) \
18    $(wildcard $(PROJECT_RELEASE)/lib/libitron$(LIB_VARIANT).a) \
19    $(wildcard $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a) \
20    $(wildcard $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a) \
21    $(wildcard $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a) \
22    $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
23    $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
24    $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
25    $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
26    $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
27    $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
28    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
29
30CLEANFILES += $(ARCH)/check
31
32TMPINSTALL_FILES += \
33$(PROJECT_RELEASE)/lib/$(LIBNAME)${LIB_VARIANT}.a
34
35all: $(ARCH) $(TMPINSTALL_FILES)
36
37install: all
38
39$(ARCH)/check: $(SRCS)
40        @$(RM) $@; touch $@;
41        @for f in $(SRCS); do \
42          case $$f in \
43          *.o)   echo " `basename $$f`" >> $@ \
44            ;; \
45          *.rel) echo " `basename $$f`" >> $@ \
46            ;; \
47          *.a) \
48          ( list=`$(AR) t $$f`;\
49            for i in $$list; do \
50              if fgrep " $$i" $@; then \
51                echo "ERROR -- $$i in multiple files"; exit 1; \
52              fi;\
53              echo " $$i" >> $@;\
54            done; ) \
55            ;; \
56          esac; \
57        done;
58
59$(LIB): $(ARCH)/check
60        @for f in $(SRCS); do \
61          case $$f in \
62          *.o) $(AR) ru $@ $$f \
63            ;;\
64          *.rel) $(AR) ru $@ $$f \
65            ;;\
66          *.a) \
67            (cd $(ARCH); \
68            list=`$(AR) t ../$$f`; \
69            $(AR) x ../$$f $$list; $(AR) ru ../$@ $$list; \
70            $(RM) $$list ;)\
71            ;; \
72          esac; \
73        done;
74        @$(RANLIB) $@
75        @echo "*** Glommed $@"
76
77include $(top_srcdir)/../../automake/local.am
Note: See TracBrowser for help on using the repository browser.