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

Last change on this file since b3ef89f9 was b3ef89f9, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 14, 2018 at 5:46:58 PM

build: Merge posix/Makefile.am

  • Property mode set to 100644
File size: 2.3 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
8
9$(PROJECT_LIB)/librtemscpu.a: librtemscpu.a
10        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemscpu.a
11TMPINSTALL_FILES = $(PROJECT_LIB)/librtemscpu.a
12
13librtemscpu_a_SOURCES =
14
15TMP_LIBS =
16TMP_LIBS += ../score/cpu/@RTEMS_CPU@/libscorecpu.a
17TMP_LIBS += ../score/libscore.a
18TMP_LIBS += ../libcpukit.a
19TMP_LIBS += ../rtems/librtems.a
20
21TMP_LIBS += ../libmisc/libmonitor.a
22TMP_LIBS += ../libmisc/libuntar.a
23TMP_LIBS += ../libmisc/libstackchk.a
24TMP_LIBS += ../libmisc/libcpuuse.a
25
26## XXX temporarily removed because it causes a
27## XXX number of BSPs to not link "main(){}" used by autoconf
28# if LIBSERDBG
29# TMP_LIBS += ../libmisc/libserdbg.a
30# endif
31
32if LIBSHELL
33TMP_LIBS += ../libmisc/libshell.a
34endif
35
36TMP_LIBS += ../libmisc/libbspcmdline.a
37TMP_LIBS += ../libmisc/libcapture.a
38TMP_LIBS += ../libmisc/libdumpbuf.a
39TMP_LIBS += ../libmisc/libdevnull.a
40TMP_LIBS += ../libmisc/libdummy.a
41TMP_LIBS += ../libmisc/libfsmount.a
42TMP_LIBS += ../libmisc/libmouse.a
43TMP_LIBS += ../libmisc/libmw-fb.a
44TMP_LIBS += ../libmisc/libredirector.a
45TMP_LIBS += ../libmisc/librtemsfdt.a
46TMP_LIBS += ../libmisc/libstringto.a
47TMP_LIBS += ../libmisc/libtestsupport.a
48
49if LIBUTF8PROC
50TMP_LIBS += ../libmisc/libutf8proc.a
51endif
52
53TMP_LIBS += ../libmisc/libuuid.a
54TMP_LIBS += ../libmisc/libxz.a
55
56if LIBNETWORKING
57TMP_LIBS += ../libnetworking/libnetworking.a
58endif
59
60librtemscpu.a: $(TMP_LIBS)
61        $(AM_V_GEN)rm -f $@
62        $(AM_V_GEN)$(MKDIR_P) $(ARCH)
63        $(AM_V_GEN)rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
64        $(AM_V_at)for f in $(TMP_LIBS); do \
65          case $$f in \
66          *.$(OBJEXT) | *.rel) \
67            if test -f $(ARCH)/`basename $$f`; then \
68              if cmp $$f $(ARCH)/`basename $$f`; then \
69                true; \
70              else \
71                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
72                exit 1; \
73              fi; \
74            else \
75              cp $$f $(ARCH)/; \
76              chmod a-w $(ARCH)/`basename $$f`; \
77            fi; \
78            ;; \
79          *.a) \
80            cd $(ARCH); \
81              $(AR) xv ../$$f > /dev/null || exit 1; \
82              chmod a-w * ; \
83            cd ..; \
84            ;; \
85          esac; \
86        done
87        $(AM_V_GEN)ls $(ARCH)/* > $@-list
88        $(AM_V_AR)$(AR) rc $@ @$@-list
89        $(AM_V_GEN)rm -f $@-list $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
90        $(AM_V_at)$(RANLIB) $@
91
92all-local: $(TMPINSTALL_FILES)
93
94include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.