source: rtems/cpukit/wrapup/Makefile.am @ 731656e9

4.104.114.84.95
Last change on this file since 731656e9 was 731656e9, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/12/03 at 10:39:38

2003-12-12 Ralf Corsepius <corsepiu@…>

  • wrapup/Makefile.am: Reworked.
  • Property mode set to 100644
File size: 2.9 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/$(ARCH)/libscore.a
16LIBS += ../sapi/$(ARCH)/libsapi.a
17LIBS += ../rtems/$(ARCH)/librtems.a
18
19if HAS_POSIX
20LIBS += ../posix/$(ARCH)/libposix.a
21endif
22
23if HAS_ITRON
24LIBS += ../itron/$(ARCH)/libitron.a
25endif
26
27LIBS += ../libcsupport/$(ARCH)/libcsupport.a
28
29LIBS += ../libblock/$(ARCH)/libblock.a
30if !UNIX
31LIBS += ../libfs/src/dosfs/$(ARCH)/libdosfs.a
32endif
33LIBS += ../libfs/src/imfs/$(ARCH)/libimfs.a
34
35LIBS += ../libmisc/monitor/$(ARCH)/libmonitor.a
36LIBS += ../libmisc/untar/$(ARCH)/libuntar.a
37LIBS += ../libmisc/stackchk/$(ARCH)/libstackchk.a
38LIBS += ../libmisc/cpuuse/$(ARCH)/libcpuuse.a
39LIBS += ../libmisc/rtmonuse/$(ARCH)/librtmonuse.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/serdbg/$(ARCH)/libserdbg.a
45# endif
46
47if LIBSHELL
48LIBS += ../libmisc/shell/$(ARCH)/libshell.a
49endif
50
51LIBS += ../libmisc/dumpbuf/$(ARCH)/libdumpbuf.a
52LIBS += ../libmisc/devnull/$(ARCH)/libdevnull.a
53LIBS += ../libmisc/dummy/$(ARCH)/libdummy.a
54LIBS += ../libmisc/mw-fb/$(ARCH)/libmw-fb.a
55LIBS += ../libmisc/capture/$(ARCH)/libcapture.a
56LIBS += ../libmisc/fsmount/$(ARCH)/libfsmount.a
57
58if HAS_NETWORKING
59LIBS += ../libnetworking/$(ARCH)/libnetworking.a
60LIBS += ../libnetworking/lib/$(ARCH)/lib.a
61LIBS += ../libnetworking/libc/$(ARCH)/lib.a
62endif
63
64if LIBRPC
65LIBS += ../librpc/src/rpc/$(ARCH)/librpc.a
66LIBS += ../librpc/src/xdr/$(ARCH)/libxdr.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_RELEASE}/lib/$(dirstamp):
104        @$(mkinstalldirs) ${PROJECT_RELEASE}/lib
105        @: > ${PROJECT_RELEASE}/lib/$(dirstamp)
106TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/$(dirstamp)
107
108${PROJECT_RELEASE}/lib/librtemscpu$(LIB_VARIANT).a: $(ARCH)/librtemscpu$(LIB_VARIANT).a ${PROJECT_RELEASE}/lib/$(dirstamp)
109        $(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/librtemscpu$(LIB_VARIANT).a
110TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/librtemscpu$(LIB_VARIANT).a
111
112include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.