source: rtems/cpukit/wrapup/Makefile.am @ 3c96bee

4.11
Last change on this file since 3c96bee was 3c96bee, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 12, 2013 at 1:32:07 PM

JFFS2: Add RTEMS support

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