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

4.104.115
Last change on this file since a4e752c was a4e752c, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 05/05/09 at 13:36:07

Update

  • Property mode set to 100644
File size: 2.4 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 LIBGNAT
25TMP_LIBS += ../libgnat/libgnat.a
26endif
27
28if LIBITRON
29TMP_LIBS += ../itron/libitron.a
30endif
31
32TMP_LIBS += ../libcsupport/libcsupport.a
33if !UNIX
34TMP_LIBS += ../libblock/libblock.a
35endif
36if LIBDOSFS
37TMP_LIBS += ../libfs/libdosfs.a
38endif
39TMP_LIBS += ../libfs/libimfs.a
40
41TMP_LIBS += ../libmisc/libmonitor.a
42TMP_LIBS += ../libmisc/libuntar.a
43TMP_LIBS += ../libmisc/libstackchk.a
44TMP_LIBS += ../libmisc/libcpuuse.a
45
46## XXX temporarily removed because it causes a
47## XXX number of BSPs to not link "main(){}" used by autoconf
48# if LIBSERDBG
49# TMP_LIBS += ../libmisc/libserdbg.a
50# endif
51
52if LIBSHELL
53TMP_LIBS += ../libmisc/libshell.a
54endif
55
56TMP_LIBS += ../libmisc/libdumpbuf.a
57TMP_LIBS += ../libmisc/libdevnull.a
58TMP_LIBS += ../libmisc/libdummy.a
59TMP_LIBS += ../libmisc/libmw-fb.a
60TMP_LIBS += ../libmisc/libcapture.a
61TMP_LIBS += ../libmisc/libfsmount.a
62TMP_LIBS += ../libmisc/libuuid.a
63
64TMP_LIBS += ../libi2c/libi2c.a
65
66if LIBNETWORKING
67TMP_LIBS += ../libnetworking/libnetworking.a
68TMP_LIBS += ../libnetworking/libc.a
69TMP_LIBS += ../libnetworking/lib.a
70endif
71
72if LIBRPC
73TMP_LIBS += ../librpc/librpc.a
74TMP_LIBS += ../librpc/libxdr.a
75endif
76
77if NEWLIB
78TMP_LIBS += ../libmd/libmd.a
79endif
80
81librtemscpu.a: $(TMP_LIBS)
82        rm -f $@
83        $(MKDIR_P) $(ARCH)
84        rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
85        for f in $(TMP_LIBS); do \
86          case $$f in \
87          *.$(OBJEXT) | *.rel) \
88            if test -f $(ARCH)/`basename $$f`; then \
89              if cmp $$f $(ARCH)/`basename $$f`; then \
90                true; \
91              else \
92                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
93                exit 1; \
94              fi; \
95            else \
96              cp $$f $(ARCH)/; \
97              chmod a-w $(ARCH)/`basename $$f`; \
98            fi; \
99            ;; \
100          *.a) \
101            cd $(ARCH); \
102              $(AR) xv ../$$f || exit 1; \
103              chmod a-w * ; \
104            cd ..; \
105            ;; \
106          esac; \
107        done
108        ls $(ARCH)/* > $@-list
109        $(AR) rc $@ @$@-list
110        rm -f $@-list $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
111        $(RANLIB) $@
112
113all-local: $(TMPINSTALL_FILES)
114
115include $(srcdir)/preinstall.am
116include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.