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

4.104.114.84.95
Last change on this file since c73b8ac2 was c73b8ac2, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 9, 1999 at 10:18:43 PM

This patch adds the basic framework for the ITRON 3.0 API implementation
for RTEMS.

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