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

4.115
Last change on this file since a31845f7 was a31845f7, checked in by Daniel Hellstrom <daniel@…>, on Nov 28, 2011 at 9:11:10 AM

LIBPCI: added PCI layer to cpukit/libpci

  • Property mode set to 100644
File size: 2.8 KB
Line 
1include $(top_srcdir)/automake/multilib.am
2include $(top_srcdir)/automake/compile.am
3
4## Setup the variant build subdirectory
5ARCH = o-optimize
6
7project_lib_LIBRARIES = librtemscpu.a
8librtemscpu_a_SOURCES =
9
10TMP_LIBS =
11TMP_LIBS += ../dev/libdev.a
12TMP_LIBS += ../score/cpu/@RTEMS_CPU@/libscorecpu.a
13TMP_LIBS += ../score/libscore.a
14TMP_LIBS += ../sapi/libsapi.a
15TMP_LIBS += ../rtems/librtems.a
16TMP_LIBS += ../posix/libposix.a
17
18if LIBGNAT
19TMP_LIBS += ../libgnat/libgnat.a
20endif
21
22TMP_LIBS += ../libcrypt/libcrypt.a
23TMP_LIBS += ../libcsupport/libcsupport.a
24TMP_LIBS += ../libblock/libblock.a
25if LIBDOSFS
26TMP_LIBS += ../libfs/libdosfs.a
27endif
28TMP_LIBS += ../libfs/libdefaultfs.a
29TMP_LIBS += ../libfs/libdevfs.a
30TMP_LIBS += ../libfs/libimfs.a
31TMP_LIBS += ../libfs/librfs.a
32TMP_LIBS += ../libfs/libjffs2.a
33
34TMP_LIBS += ../libmisc/libmonitor.a
35TMP_LIBS += ../libmisc/libuntar.a
36TMP_LIBS += ../libmisc/libstackchk.a
37TMP_LIBS += ../libmisc/libcpuuse.a
38
39## XXX temporarily removed because it causes a
40## XXX number of BSPs to not link "main(){}" used by autoconf
41# if LIBSERDBG
42# TMP_LIBS += ../libmisc/libserdbg.a
43# endif
44
45if LIBSHELL
46TMP_LIBS += ../libmisc/libshell.a
47endif
48
49TMP_LIBS += ../libmisc/libbspcmdline.a
50TMP_LIBS += ../libmisc/libcapture.a
51TMP_LIBS += ../libmisc/libdumpbuf.a
52TMP_LIBS += ../libmisc/libdevnull.a
53TMP_LIBS += ../libmisc/libdummy.a
54TMP_LIBS += ../libmisc/libfsmount.a
55TMP_LIBS += ../libmisc/libmouse.a
56TMP_LIBS += ../libmisc/libmw-fb.a
57TMP_LIBS += ../libmisc/libredirector.a
58TMP_LIBS += ../libmisc/libstringto.a
59TMP_LIBS += ../libmisc/libtestsupport.a
60
61if LIBUTF8PROC
62TMP_LIBS += ../libmisc/libutf8proc.a
63endif
64
65TMP_LIBS += ../libmisc/libuuid.a
66
67TMP_LIBS += ../libi2c/libi2c.a
68
69TMP_LIBS += ../libpci/libpci.a
70
71if LIBNETWORKING
72TMP_LIBS += ../libnetworking/libnetworking.a
73TMP_LIBS += ../libnetworking/libc.a
74TMP_LIBS += ../libnetworking/lib.a
75endif
76
77if LIBRPC
78TMP_LIBS += ../librpc/librpc.a
79TMP_LIBS += ../librpc/libxdr.a
80endif
81
82if NEWLIB
83TMP_LIBS += ../libmd/libmd.a
84endif
85
86if LIBDL
87TMP_LIBS += ../libdl/libdl.a
88endif
89
90librtemscpu.a: $(TMP_LIBS)
91        rm -f $@
92        $(MKDIR_P) $(ARCH)
93        rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
94        for f in $(TMP_LIBS); do \
95          case $$f in \
96          *.$(OBJEXT) | *.rel) \
97            if test -f $(ARCH)/`basename $$f`; then \
98              if cmp $$f $(ARCH)/`basename $$f`; then \
99                true; \
100              else \
101                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
102                exit 1; \
103              fi; \
104            else \
105              cp $$f $(ARCH)/; \
106              chmod a-w $(ARCH)/`basename $$f`; \
107            fi; \
108            ;; \
109          *.a) \
110            cd $(ARCH); \
111              $(AR) xv ../$$f || exit 1; \
112              chmod a-w * ; \
113            cd ..; \
114            ;; \
115          esac; \
116        done
117        ls $(ARCH)/* > $@-list
118        $(AR) rc $@ @$@-list
119        rm -f $@-list $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
120        $(RANLIB) $@
121
122all-local: $(TMPINSTALL_FILES)
123
124include $(srcdir)/preinstall.am
125include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.