source: rtems/c/src/wrapup/Makefile.in @ 0895bdb

4.104.114.84.95
Last change on this file since 0895bdb was 692b9f7, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 28, 1998 at 7:17:16 PM

Merged Vista SCORE603e, Radstone PPCn_60x, and DY-4 DMV177 BSPs along
with libchip.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#
2#  $Id$
3#
4#  build and install "glommed" librtemsall.a
5#
6
7@SET_MAKE@
8srcdir = @srcdir@
9VPATH = @srcdir@
10RTEMS_ROOT = @top_srcdir@
11PROJECT_ROOT = @PROJECT_ROOT@
12
13include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
14include $(RTEMS_ROOT)/make/lib.cfg
15 
16LIB=$(PROJECT_RELEASE)/lib/librtemsall${LIB_VARIANT}.a
17 
18SRCS=$(wildcard $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a) \
19     $(PROJECT_RELEASE)/lib/librtems$(LIB_VARIANT).a \
20     $(wildcard $(PROJECT_RELEASE)/lib/libposix$(LIB_VARIANT).a) \
21     $(wildcard $(PROJECT_RELEASE)/lib/libnetworking$(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     $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
26     $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
27     $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o) \
28     $(wildcard $(PROJECT_RELEASE)/lib/libno-ctor$(LIB_VARIANT).a)
29 
30CLEAN_ADDITIONS += $(ARCH)/check
31CLOBBER_ADDITIONS +=
32 
33all:    $(ARCH) $(LIB)
34
35install:  all
36
37$(ARCH)/check:: $(SRCS)
38        @$(RM) $@; touch $@;
39        @for f in $(SRCS); do \
40          case $$f in \
41          *.o)   echo " `basename $$f`" >> $@ \
42            ;; \
43          *.rel) echo " `basename $$f`" >> $@ \
44            ;; \
45          *.a) \
46          ( list=`$(AR) t $$f`;\
47            for i in $$list; do \
48              if grep " $$i" $@; then \
49                echo "ERROR -- $$i in multiple files"; exit 1; \
50              fi;\
51              echo " $$i" >> $@;\
52            done; ) \
53            ;; \
54          esac; \
55        done;
56
57$(LIB):: $(ARCH)/check
58        @for f in $(SRCS); do \
59          case $$f in \
60          *.o) $(AR) ru $@ $$f \
61            ;;\
62          *.rel) $(AR) ru $@ $$f \
63            ;;\
64          *.a) \
65            (cd $(ARCH); \
66            list=`$(AR) t $$f`; \
67            $(AR) x $$f $$list; $(AR) ru $@ $$list; \
68            $(RM) $$list ;)\
69            ;; \
70          esac; \
71        done;
72        @$(RANLIB) $@
73        @echo "*** Glommed $@"
Note: See TracBrowser for help on using the repository browser.