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

4.104.114.84.95
Last change on this file since fefd593 was fefd593, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/12/05 at 06:21:23

2005-02-12 Ralf Corsepius <ralf.corsepius@…>

  • configure.ac: Remove LIBSCORECPU.
  • wrapup/Makefile.am: Reflect changes above.
  • Property mode set to 100644
File size: 2.2 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 =
16TMP_LIBS += ../score/cpu/@RTEMS_CPU@/libscorecpu.a
17TMP_LIBS += ../score/libscore.a
18TMP_LIBS += ../sapi/libsapi.a
19TMP_LIBS += ../rtems/librtems.a
20
21if HAS_POSIX
22TMP_LIBS += ../posix/libposix.a
23endif
24
25if HAS_ITRON
26TMP_LIBS += ../itron/libitron.a
27endif
28
29TMP_LIBS += ../libcsupport/libcsupport.a
30if !UNIX
31TMP_LIBS += ../libblock/libblock.a
32TMP_LIBS += ../libfs/libdosfs.a
33endif
34TMP_LIBS += ../libfs/libimfs.a
35
36TMP_LIBS += ../libmisc/libmonitor.a
37TMP_LIBS += ../libmisc/libuntar.a
38TMP_LIBS += ../libmisc/libstackchk.a
39TMP_LIBS += ../libmisc/libcpuuse.a
40TMP_LIBS += ../libmisc/librtmonuse.a
41
42## XXX temporarily removed because it causes a
43## XXX number of BSPs to not link "main(){}" used by autoconf
44# if LIBSERDBG
45# TMP_LIBS += ../libmisc/libserdbg.a
46# endif
47
48if LIBSHELL
49TMP_LIBS += ../libmisc/libshell.a
50endif
51
52TMP_LIBS += ../libmisc/libdumpbuf.a
53TMP_LIBS += ../libmisc/libdevnull.a
54TMP_LIBS += ../libmisc/libdummy.a
55TMP_LIBS += ../libmisc/libmw-fb.a
56TMP_LIBS += ../libmisc/libcapture.a
57TMP_LIBS += ../libmisc/libfsmount.a
58
59if HAS_NETWORKING
60TMP_LIBS += ../libnetworking/libnetworking.a
61TMP_LIBS += ../libnetworking/libc.a
62TMP_LIBS += ../libnetworking/lib.a
63endif
64
65if LIBRPC
66TMP_LIBS += ../librpc/librpc.a
67TMP_LIBS += ../librpc/libxdr.a
68endif
69
70librtemscpu.a: $(TMP_LIBS)
71        rm -f $@
72        $(mkdir_p) $(ARCH)
73        rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
74        for f in $(TMP_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
103include $(srcdir)/preinstall.am
104
105include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.