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

Last change on this file since 5079524 was 5079524, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 14, 2018 at 1:56:26 PM

build: Merge librpc/Makefile.am

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