source: rtems/cpukit/wrapup/Makefile.am @ 6265b83

4.104.114.84.9
Last change on this file since 6265b83 was 6265b83, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 8, 2005 at 3:02:25 PM

Split preinstallation rules in to separate files (preinstall.am).

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