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

4.115
Last change on this file since ee4e7f0 was ee4e7f0, checked in by Sebastian Huber <sebastian.huber@…>, on May 26, 2015 at 1:17:50 PM

jffs2: Move into separate library

In case the zlib compression was used, then the librtemscpu.a depended
on libz.a. To avoid a GCC patch or complicated link flags move the
JFFS2 support into a separate library to use a simple "-ljffs2 -lz" to
link the executable.

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