source: rtems/c/src/lib/wrapup/Makefile.in @ c9c67390

4.104.114.84.9
Last change on this file since c9c67390 was c9c67390, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 5, 1999 at 12:34:17 AM

Split SONIC chip into appropriate files for libchip'ing. The portable
portion is now in the libchip tree and the dmv177 configuration is in
the dmv177 bsp. The performance impact of libchip'ing this driver
was minimal.

  • Property mode set to 100644
File size: 2.0 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/librpc$(LIB_VARIANT).a) \
23     $(wildcard $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a) \
24     $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
25     $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
26     $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
27     $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
28     $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
29     $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
30     $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o) \
31     $(wildcard $(PROJECT_RELEASE)/lib/libno-ctor$(LIB_VARIANT).a)
32 
33CLEAN_ADDITIONS += $(ARCH)/check
34CLOBBER_ADDITIONS +=
35 
36all:    $(ARCH) $(LIB)
37
38install:  all
39
40$(ARCH)/check:: $(SRCS)
41        @$(RM) $@; touch $@;
42        @for f in $(SRCS); do \
43          case $$f in \
44          *.o)   echo " `basename $$f`" >> $@ \
45            ;; \
46          *.rel) echo " `basename $$f`" >> $@ \
47            ;; \
48          *.a) \
49          ( list=`$(AR) t $$f`;\
50            for i in $$list; do \
51              if grep " $$i" $@; then \
52                echo "ERROR -- $$i in multiple files"; exit 1; \
53              fi;\
54              echo " $$i" >> $@;\
55            done; ) \
56            ;; \
57          esac; \
58        done;
59
60$(LIB):: $(ARCH)/check
61        @for f in $(SRCS); do \
62          case $$f in \
63          *.o) $(AR) ru $@ $$f \
64            ;;\
65          *.rel) $(AR) ru $@ $$f \
66            ;;\
67          *.a) \
68            (cd $(ARCH); \
69            list=`$(AR) t $$f`; \
70            $(AR) x $$f $$list; $(AR) ru $@ $$list; \
71            $(RM) $$list ;)\
72            ;; \
73          esac; \
74        done;
75        @$(RANLIB) $@
76        @echo "*** Glommed $@"
Note: See TracBrowser for help on using the repository browser.