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

4.104.114.84.95
Last change on this file since bbf1103 was bbf1103, checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/12/07 at 05:14:35

2007-06-12 Ralf Corsépius <ralf.corsepius@…>

  • wrapup/Makefile.am: Add libmd.a.
  • 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_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 LIBPOSIX
21TMP_LIBS += ../posix/libposix.a
22endif
23
24if LIBITRON
25TMP_LIBS += ../itron/libitron.a
26endif
27
28TMP_LIBS += ../libcsupport/libcsupport.a
29if !UNIX
30TMP_LIBS += ../libblock/libblock.a
31endif
32if LIBDOSFS
33TMP_LIBS += ../libfs/libdosfs.a
34endif
35TMP_LIBS += ../libfs/libimfs.a
36
37TMP_LIBS += ../libmisc/libmonitor.a
38TMP_LIBS += ../libmisc/libuntar.a
39TMP_LIBS += ../libmisc/libstackchk.a
40TMP_LIBS += ../libmisc/libcpuuse.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
59TMP_LIBS += ../libi2c/libi2c.a
60
61if LIBNETWORKING
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
72if NEWLIB
73TMP_LIBS += ../pppd/libmd.a
74endif
75
76librtemscpu.a: $(TMP_LIBS)
77        rm -f $@
78        $(MKDIR_P) $(ARCH)
79        rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
80        for f in $(TMP_LIBS); do \
81          case $$f in \
82          *.$(OBJEXT) | *.rel) \
83            if test -f $(ARCH)/`basename $$f`; then \
84              if cmp $$f $(ARCH)/`basename $$f`; then \
85                true; \
86              else \
87                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
88                exit 1; \
89              fi; \
90            else \
91              cp $$f $(ARCH)/; \
92              chmod a-w $(ARCH)/`basename $$f`; \
93            fi; \
94            ;; \
95          *.a) \
96            cd $(ARCH); \
97              $(AR) xv ../$$f || exit 1; \
98              chmod a-w * ; \
99            cd ..; \
100            ;; \
101          esac; \
102        done
103        $(AR) rc $@ $(ARCH)/*
104        rm -f $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
105        $(RANLIB) $@
106
107all-local: $(TMPINSTALL_FILES)
108
109include $(srcdir)/preinstall.am
110include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.