source: rtems/cpukit/wrapup/Makefile.am @ 028b0ce

Last change on this file since 028b0ce was a2a71b5, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 14, 2018 at 2:00:45 PM

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