source: rtems/cpukit/wrapup/Makefile.am @ 98715202

4.104.114.84.95
Last change on this file since 98715202 was 98715202, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 9, 2004 at 3:50:18 PM

2004-01-08 Ralf Corsepius <corsepiu@…>

  • wrapup/Makefile.am: Use ../*/*$(LIB_VARIANT).a instead of $(ARCH)/lib*.a.
  • Property mode set to 100644
File size: 2.8 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7include $(top_srcdir)/automake/lib.am
8
9project_lib_DATA = $(ARCH)/librtemscpu$(LIB_VARIANT).a
10
11LIBS =
12if LIBSCORECPU
13LIBS += ../score/cpu/$(RTEMS_CPU)/$(ARCH)/libscorecpu.a
14endif
15LIBS += ../score/libscore$(LIB_VARIANT).a
16LIBS += ../sapi/libsapi$(LIB_VARIANT).a
17LIBS += ../rtems/librtems$(LIB_VARIANT).a
18
19if HAS_POSIX
20LIBS += ../posix/libposix$(LIB_VARIANT).a
21endif
22
23if HAS_ITRON
24LIBS += ../itron/libitron$(LIB_VARIANT).a
25endif
26
27LIBS += ../libcsupport/libcsupport$(LIB_VARIANT).a
28
29LIBS += ../libblock/libblock$(LIB_VARIANT).a
30if !UNIX
31LIBS += ../libfs/libdosfs$(LIB_VARIANT).a
32endif
33LIBS += ../libfs/libimfs$(LIB_VARIANT).a
34
35LIBS += ../libmisc/libmonitor$(LIB_VARIANT).a
36LIBS += ../libmisc/libuntar$(LIB_VARIANT).a
37LIBS += ../libmisc/libstackchk$(LIB_VARIANT).a
38LIBS += ../libmisc/libcpuuse$(LIB_VARIANT).a
39LIBS += ../libmisc/librtmonuse$(LIB_VARIANT).a
40
41## XXX temporarily removed because it causes a
42## XXX number of BSPs to not link "main(){}" used by autoconf
43# if LIBSERDBG
44# LIBS += ../libmisc/libserdbg$(LIB_VARIANT).a
45# endif
46
47if LIBSHELL
48LIBS += ../libmisc/libshell$(LIB_VARIANT).a
49endif
50
51LIBS += ../libmisc/libdumpbuf$(LIB_VARIANT).a
52LIBS += ../libmisc/libdevnull$(LIB_VARIANT).a
53LIBS += ../libmisc/libdummy$(LIB_VARIANT).a
54LIBS += ../libmisc/libmw-fb$(LIB_VARIANT).a
55LIBS += ../libmisc/libcapture$(LIB_VARIANT).a
56LIBS += ../libmisc/libfsmount$(LIB_VARIANT).a
57
58if HAS_NETWORKING
59LIBS += ../libnetworking/libnetworking$(LIB_VARIANT).a
60LIBS += ../libnetworking/libc$(LIB_VARIANT).a
61LIBS += ../libnetworking/lib$(LIB_VARIANT).a
62endif
63
64if LIBRPC
65LIBS += ../librpc/librpc$(LIB_VARIANT).a
66LIBS += ../librpc/libxdr$(LIB_VARIANT).a
67endif
68
69$(LIBS): $(ARCH)/$(dirstamp)
70
71$(ARCH)/librtemscpu$(LIB_VARIANT).a: ${LIBS}
72        rm -f $@
73        rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
74        for f in $(LIBS); do \
75          case $$f in \
76          *.$(OBJEXT) | *.rel) \
77            if test -f $(ARCH)/`basename $$f`; then \
78              if cmp $$f $(ARCH)/`basename $$f`; then \
79                true; \
80              else \
81                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
82                exit 1; \
83              fi; \
84            else \
85              cp $$f $(ARCH)/; \
86              chmod a-w $(ARCH)/`basename $$f`; \
87            fi; \
88            ;; \
89          *.a) \
90            cd $(ARCH); \
91              $(AR) xv ../$$f || exit 1; \
92              chmod a-w * ; \
93            cd ..; \
94            ;; \
95          esac; \
96        done
97        $(AR) rc $@ $(ARCH)/*
98        rm -f $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
99        $(RANLIB) $@
100
101all-local: $(TMPINSTALL_FILES)
102
103$(PROJECT_LIB)/$(dirstamp):
104        @$(mkdir_p) $(PROJECT_LIB)
105        @: > $(PROJECT_LIB)/$(dirstamp)
106
107$(PROJECT_LIB)/librtemscpu$(LIB_VARIANT).a: $(ARCH)/librtemscpu$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
108        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemscpu$(LIB_VARIANT).a
109TMPINSTALL_FILES += $(PROJECT_LIB)/librtemscpu$(LIB_VARIANT).a
110
111include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.