[fed6210d] | 1 | include $(top_srcdir)/automake/multilib.am |
---|
[b178462c] | 2 | include $(top_srcdir)/automake/compile.am |
---|
[d7a7573] | 3 | |
---|
| 4 | ## Setup the variant build subdirectory |
---|
[846a4af] | 5 | ARCH = o-optimize |
---|
[d7a7573] | 6 | |
---|
[61d1060b] | 7 | project_lib_LIBRARIES = librtemscpu.a |
---|
[2afb22b] | 8 | |
---|
| 9 | $(PROJECT_LIB)/librtemscpu.a: librtemscpu.a |
---|
| 10 | $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemscpu.a |
---|
| 11 | TMPINSTALL_FILES = $(PROJECT_LIB)/librtemscpu.a |
---|
| 12 | |
---|
[61d1060b] | 13 | librtemscpu_a_SOURCES = |
---|
[731656e9] | 14 | |
---|
[b178462c] | 15 | TMP_LIBS = |
---|
[846a4af] | 16 | TMP_LIBS += ../score/cpu/@RTEMS_CPU@/libscorecpu.a |
---|
| 17 | TMP_LIBS += ../score/libscore.a |
---|
[54c0b57] | 18 | TMP_LIBS += ../libcpukit.a |
---|
[846a4af] | 19 | TMP_LIBS += ../rtems/librtems.a |
---|
| 20 | TMP_LIBS += ../posix/libposix.a |
---|
[16e0ba0f] | 21 | |
---|
[846a4af] | 22 | TMP_LIBS += ../libmisc/libmonitor.a |
---|
| 23 | TMP_LIBS += ../libmisc/libuntar.a |
---|
| 24 | TMP_LIBS += ../libmisc/libstackchk.a |
---|
| 25 | TMP_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 | |
---|
| 33 | if LIBSHELL |
---|
[846a4af] | 34 | TMP_LIBS += ../libmisc/libshell.a |
---|
[22ade8e1] | 35 | endif |
---|
| 36 | |
---|
[e152ecb7] | 37 | TMP_LIBS += ../libmisc/libbspcmdline.a |
---|
| 38 | TMP_LIBS += ../libmisc/libcapture.a |
---|
[846a4af] | 39 | TMP_LIBS += ../libmisc/libdumpbuf.a |
---|
| 40 | TMP_LIBS += ../libmisc/libdevnull.a |
---|
| 41 | TMP_LIBS += ../libmisc/libdummy.a |
---|
| 42 | TMP_LIBS += ../libmisc/libfsmount.a |
---|
[3d6c1bb] | 43 | TMP_LIBS += ../libmisc/libmouse.a |
---|
[e152ecb7] | 44 | TMP_LIBS += ../libmisc/libmw-fb.a |
---|
[7ecd1fc] | 45 | TMP_LIBS += ../libmisc/libredirector.a |
---|
[602b184f] | 46 | TMP_LIBS += ../libmisc/librtemsfdt.a |
---|
[e8d59ca] | 47 | TMP_LIBS += ../libmisc/libstringto.a |
---|
[18d0a49] | 48 | TMP_LIBS += ../libmisc/libtestsupport.a |
---|
[91404de] | 49 | |
---|
| 50 | if LIBUTF8PROC |
---|
[46b7f921] | 51 | TMP_LIBS += ../libmisc/libutf8proc.a |
---|
[91404de] | 52 | endif |
---|
| 53 | |
---|
[a4e752c] | 54 | TMP_LIBS += ../libmisc/libuuid.a |
---|
[826f3afa] | 55 | TMP_LIBS += ../libmisc/libxz.a |
---|
[c7a6508] | 56 | |
---|
[3fe615ba] | 57 | if LIBNETWORKING |
---|
[846a4af] | 58 | TMP_LIBS += ../libnetworking/libnetworking.a |
---|
[3e39b47] | 59 | endif |
---|
| 60 | |
---|
[846a4af] | 61 | librtemscpu.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 | |
---|
[731656e9] | 93 | all-local: $(TMPINSTALL_FILES) |
---|
[20db683] | 94 | |
---|
[fed6210d] | 95 | include $(top_srcdir)/automake/local.am |
---|