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

4.104.114.84.95
Last change on this file since 458bd34 was 08b5f55, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 26, 1999 at 8:31:49 PM

Patch from Ralf Corsepius <corsepiu@…>:

A bug in acpolish made it into rtems-rc-19990709-0.diff, which
unfortunately affects all Makefile.ins:

  • The maintainer mode conditional was erroniously applied to the dependencies of "Makefile".

In case you already checked in rtems-rc-19990709-0.diff to CVS you have
to check in all Makefile.ins again after applying the patch below :).

Please apply the patch below as follows:

patch -p1 < rtems-rc-19990709-1.diff
tools/update/rtems-polish.sh -ac

Note: There is no need to rerun your tests if you have used
--enable-maintainer-mode to configure RTEMS, because this patch converts
all Makefile.ins to the same settings as used for
--enable-maintainer-mode.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1#
2#  $Id$
3#
4#  build and install "glommed" librtemsall.a
5#
6
7@SET_MAKE@
8srcdir = @srcdir@
9top_srcdir = @top_srcdir@
10top_builddir = ..
11subdir = wrapup
12
13RTEMS_ROOT = @RTEMS_ROOT@
14PROJECT_ROOT = @PROJECT_ROOT@
15
16VPATH = @srcdir@
17
18include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
19include $(RTEMS_ROOT)/make/lib.cfg
20
21INSTALL_CHANGE = @INSTALL_CHANGE@
22
23LIB = $(PROJECT_RELEASE)/lib/librtemsall${LIB_VARIANT}.a
24
25SRCS = $(wildcard $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a) \
26    $(PROJECT_RELEASE)/lib/librtems$(LIB_VARIANT).a $(wildcard \
27    $(PROJECT_RELEASE)/lib/libposix$(LIB_VARIANT).a) $(wildcard \
28    $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a) $(wildcard \
29    $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a) $(wildcard \
30    $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a) $(wildcard \
31    $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) $(wildcard \
32    $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) $(wildcard \
33    $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) $(wildcard \
34    $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
35    $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
36    $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a $(wildcard \
37    $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
38
39CLEAN_ADDITIONS += $(ARCH)/check
40CLOBBER_ADDITIONS +=
41
42all: $(ARCH) $(LIB)
43
44install: all
45
46$(ARCH)/check: $(SRCS)
47        @$(RM) $@; touch $@;
48        @for f in $(SRCS); do \
49          case $$f in \
50          *.o)   echo " `basename $$f`" >> $@ \
51            ;; \
52          *.rel) echo " `basename $$f`" >> $@ \
53            ;; \
54          *.a) \
55          ( list=`$(AR) t $$f`;\
56            for i in $$list; do \
57              if fgrep " $$i" $@; then \
58                echo "ERROR -- $$i in multiple files"; exit 1; \
59              fi;\
60              echo " $$i" >> $@;\
61            done; ) \
62            ;; \
63          esac; \
64        done;
65
66$(LIB): $(ARCH)/check
67        @for f in $(SRCS); do \
68          case $$f in \
69          *.o) $(AR) ru $@ $$f \
70            ;;\
71          *.rel) $(AR) ru $@ $$f \
72            ;;\
73          *.a) \
74            (cd $(ARCH); \
75            list=`$(AR) t ../$$f`; \
76            $(AR) x ../$$f $$list; $(AR) ru ../$@ $$list; \
77            $(RM) $$list ;)\
78            ;; \
79          esac; \
80        done;
81        @$(RANLIB) $@
82        @echo "*** Glommed $@"
83
84Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
85        cd $(top_builddir) \
86         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
Note: See TracBrowser for help on using the repository browser.