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

4.104.114.84.95
Last change on this file since dbe8e519 was dbe8e519, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/12/06 at 04:19:28

Cleanups

  • 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_LIBRARIES = librtemscpu.a
12librtemscpu_a_SOURCES =
13
14TMP_LIBS =
15TMP_LIBS += ../score/cpu/@RTEMS_CPU@/libscorecpu.a
16TMP_LIBS += ../score/libscore.a
17TMP_LIBS += ../sapi/libsapi.a
18TMP_LIBS += ../rtems/librtems.a
19
20if HAS_POSIX
21TMP_LIBS += ../posix/libposix.a
22endif
23
24if HAS_ITRON
25TMP_LIBS += ../itron/libitron.a
26endif
27
28TMP_LIBS += ../libcsupport/libcsupport.a
29if !UNIX
30TMP_LIBS += ../libblock/libblock.a
31TMP_LIBS += ../libfs/libdosfs.a
32endif
33TMP_LIBS += ../libfs/libimfs.a
34
35TMP_LIBS += ../libmisc/libmonitor.a
36TMP_LIBS += ../libmisc/libuntar.a
37TMP_LIBS += ../libmisc/libstackchk.a
38TMP_LIBS += ../libmisc/libcpuuse.a
39TMP_LIBS += ../libmisc/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# TMP_LIBS += ../libmisc/libserdbg.a
45# endif
46
47if LIBSHELL
48TMP_LIBS += ../libmisc/libshell.a
49endif
50
51TMP_LIBS += ../libmisc/libdumpbuf.a
52TMP_LIBS += ../libmisc/libdevnull.a
53TMP_LIBS += ../libmisc/libdummy.a
54TMP_LIBS += ../libmisc/libmw-fb.a
55TMP_LIBS += ../libmisc/libcapture.a
56TMP_LIBS += ../libmisc/libfsmount.a
57
58TMP_LIBS += ../libi2c/libi2c.a
59
60if HAS_NETWORKING
61TMP_LIBS += ../libnetworking/libnetworking.a
62TMP_LIBS += ../libnetworking/libc.a
63TMP_LIBS += ../libnetworking/lib.a
64endif
65
66if LIBRPC
67TMP_LIBS += ../librpc/librpc.a
68TMP_LIBS += ../librpc/libxdr.a
69endif
70
71librtemscpu.a: $(TMP_LIBS)
72        rm -f $@
73        $(mkdir_p) $(ARCH)
74        rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
75        for f in $(TMP_LIBS); do \
76          case $$f in \
77          *.$(OBJEXT) | *.rel) \
78            if test -f $(ARCH)/`basename $$f`; then \
79              if cmp $$f $(ARCH)/`basename $$f`; then \
80                true; \
81              else \
82                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
83                exit 1; \
84              fi; \
85            else \
86              cp $$f $(ARCH)/; \
87              chmod a-w $(ARCH)/`basename $$f`; \
88            fi; \
89            ;; \
90          *.a) \
91            cd $(ARCH); \
92              $(AR) xv ../$$f || exit 1; \
93              chmod a-w * ; \
94            cd ..; \
95            ;; \
96          esac; \
97        done
98        $(AR) rc $@ $(ARCH)/*
99        rm -f $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
100        $(RANLIB) $@
101
102all-local: $(TMPINSTALL_FILES)
103
104include $(srcdir)/preinstall.am
105include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.