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

Last change on this file since a2a71b5 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
RevLine 
[fed6210d]1include $(top_srcdir)/automake/multilib.am
[b178462c]2include $(top_srcdir)/automake/compile.am
[d7a7573]3
4## Setup the variant build subdirectory
[846a4af]5ARCH = o-optimize
[d7a7573]6
[61d1060b]7project_lib_LIBRARIES = librtemscpu.a
[2afb22b]8
9$(PROJECT_LIB)/librtemscpu.a: librtemscpu.a
10        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemscpu.a
11TMPINSTALL_FILES = $(PROJECT_LIB)/librtemscpu.a
12
[61d1060b]13librtemscpu_a_SOURCES =
[731656e]14
[b178462c]15TMP_LIBS =
[846a4af]16TMP_LIBS += ../score/cpu/@RTEMS_CPU@/libscorecpu.a
17TMP_LIBS += ../score/libscore.a
[54c0b57]18TMP_LIBS += ../libcpukit.a
[846a4af]19TMP_LIBS += ../rtems/librtems.a
20TMP_LIBS += ../posix/libposix.a
[16e0ba0f]21
[846a4af]22TMP_LIBS += ../libmisc/libmonitor.a
23TMP_LIBS += ../libmisc/libuntar.a
24TMP_LIBS += ../libmisc/libstackchk.a
25TMP_LIBS += ../libmisc/libcpuuse.a
[22ade8e1]26
27## XXX temporarily removed because it causes a
28## XXX number of BSPs to not link "main(){}" used by autoconf
29# if LIBSERDBG
[846a4af]30# TMP_LIBS += ../libmisc/libserdbg.a
[22ade8e1]31# endif
32
33if LIBSHELL
[846a4af]34TMP_LIBS += ../libmisc/libshell.a
[22ade8e1]35endif
36
[e152ecb]37TMP_LIBS += ../libmisc/libbspcmdline.a
38TMP_LIBS += ../libmisc/libcapture.a
[846a4af]39TMP_LIBS += ../libmisc/libdumpbuf.a
40TMP_LIBS += ../libmisc/libdevnull.a
41TMP_LIBS += ../libmisc/libdummy.a
42TMP_LIBS += ../libmisc/libfsmount.a
[3d6c1bb]43TMP_LIBS += ../libmisc/libmouse.a
[e152ecb]44TMP_LIBS += ../libmisc/libmw-fb.a
[7ecd1fc]45TMP_LIBS += ../libmisc/libredirector.a
[602b184f]46TMP_LIBS += ../libmisc/librtemsfdt.a
[e8d59ca]47TMP_LIBS += ../libmisc/libstringto.a
[18d0a49]48TMP_LIBS += ../libmisc/libtestsupport.a
[91404de]49
50if LIBUTF8PROC
[46b7f921]51TMP_LIBS += ../libmisc/libutf8proc.a
[91404de]52endif
53
[a4e752c]54TMP_LIBS += ../libmisc/libuuid.a
[826f3afa]55TMP_LIBS += ../libmisc/libxz.a
[c7a6508]56
[3fe615ba]57if LIBNETWORKING
[846a4af]58TMP_LIBS += ../libnetworking/libnetworking.a
[3e39b47]59endif
60
[846a4af]61librtemscpu.a: $(TMP_LIBS)
[af6168c6]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 \
[3e39b47]66          case $$f in \
[305dd8bd]67          *.$(OBJEXT) | *.rel) \
[3e39b47]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); \
[af6168c6]82              $(AR) xv ../$$f > /dev/null || exit 1; \
[3e39b47]83              chmod a-w * ; \
84            cd ..; \
85            ;; \
86          esac; \
87        done
[af6168c6]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) $@
[20db683]92
[731656e]93all-local: $(TMPINSTALL_FILES)
[20db683]94
[fed6210d]95include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.