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

4.104.114.84.95
Last change on this file since 8548fe0 was 8548fe0, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 18:36:05

Part of the automake VI patch from Ralf Corsepius <corsepiu@…>:

5) rtems-rc-19990202-1.diff/reorg-install.sh

reorg-install.sh fixes a Makefile variable name clash of RTEMS
configuration files and automake/autoconf standards.
Until now, RTEMS used $(INSTALL) for install-if-change. Automake and
autoconf use $(INSTALL) for a bsd-compatible install. As
install-if-change and bsd-install are not compatible, I renamed all
references to install-if-changed to $(INSTALL_CHANGED) and used
$(INSTALL) for bsd-install (==automake/autoconf standard). When
automake will be introduced install-if-change will probably be replaced
by $(INSTALL) and therefore will slowly vanish. For the moment, this
patch fixes a very nasty problem which prevents adding any automake file
until now (There are still more).

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