source: rtems/cpukit/wrapup/Makefile.am @ 8fb3443

Last change on this file since 8fb3443 was 8fb3443, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 13, 2018 at 4:37:56 AM

build: Merge libfdt/Makefile.am

  • Property mode set to 100644
File size: 3.1 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
22if LIBGNAT
23TMP_LIBS += ../libgnat/libgnat.a
24endif
25
26TMP_LIBS += ../libcrypt/libcrypt.a
27TMP_LIBS += ../libstdthreads/libstdthreads.a
28TMP_LIBS += ../libcsupport/libcsupport.a
29TMP_LIBS += ../libcsupport/libcalloc.a
30TMP_LIBS += ../libblock/libblock.a
31if LIBDOSFS
32TMP_LIBS += ../libfs/libdosfs.a
33endif
34TMP_LIBS += ../libfs/libdefaultfs.a
35TMP_LIBS += ../libfs/libdevfs.a
36TMP_LIBS += ../libfs/libimfs.a
37TMP_LIBS += ../libfs/librfs.a
38
39TMP_LIBS += ../libmisc/libmonitor.a
40TMP_LIBS += ../libmisc/libuntar.a
41TMP_LIBS += ../libmisc/libstackchk.a
42TMP_LIBS += ../libmisc/libcpuuse.a
43
44## XXX temporarily removed because it causes a
45## XXX number of BSPs to not link "main(){}" used by autoconf
46# if LIBSERDBG
47# TMP_LIBS += ../libmisc/libserdbg.a
48# endif
49
50if LIBSHELL
51TMP_LIBS += ../libmisc/libshell.a
52endif
53
54TMP_LIBS += ../libmisc/libbspcmdline.a
55TMP_LIBS += ../libmisc/libcapture.a
56TMP_LIBS += ../libmisc/libdumpbuf.a
57TMP_LIBS += ../libmisc/libdevnull.a
58TMP_LIBS += ../libmisc/libdummy.a
59TMP_LIBS += ../libmisc/libfsmount.a
60TMP_LIBS += ../libmisc/libmouse.a
61TMP_LIBS += ../libmisc/libmw-fb.a
62TMP_LIBS += ../libmisc/libredirector.a
63TMP_LIBS += ../libmisc/librtemsfdt.a
64TMP_LIBS += ../libmisc/libstringto.a
65TMP_LIBS += ../libmisc/libtestsupport.a
66
67if LIBUTF8PROC
68TMP_LIBS += ../libmisc/libutf8proc.a
69endif
70
71TMP_LIBS += ../libmisc/libuuid.a
72TMP_LIBS += ../libmisc/libxz.a
73TMP_LIBS += ../libi2c/libi2c.a
74
75if LIBPCI
76TMP_LIBS += ../libpci/libpci.a
77endif
78
79if LIBDRVMGR
80TMP_LIBS += ../libdrvmgr/libdrvmgr.a
81endif
82
83if LIBNETWORKING
84TMP_LIBS += ../libnetworking/libnetworking.a
85TMP_LIBS += ../librpc/librpc.a
86TMP_LIBS += ../librpc/libxdr.a
87endif
88
89if NEWLIB
90TMP_LIBS += ../libmd/libmd.a
91endif
92
93if LIBDL
94TMP_LIBS += ../libdl/libdl.a
95endif
96
97librtemscpu.a: $(TMP_LIBS)
98        $(AM_V_GEN)rm -f $@
99        $(AM_V_GEN)$(MKDIR_P) $(ARCH)
100        $(AM_V_GEN)rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
101        $(AM_V_at)for f in $(TMP_LIBS); do \
102          case $$f in \
103          *.$(OBJEXT) | *.rel) \
104            if test -f $(ARCH)/`basename $$f`; then \
105              if cmp $$f $(ARCH)/`basename $$f`; then \
106                true; \
107              else \
108                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
109                exit 1; \
110              fi; \
111            else \
112              cp $$f $(ARCH)/; \
113              chmod a-w $(ARCH)/`basename $$f`; \
114            fi; \
115            ;; \
116          *.a) \
117            cd $(ARCH); \
118              $(AR) xv ../$$f > /dev/null || exit 1; \
119              chmod a-w * ; \
120            cd ..; \
121            ;; \
122          esac; \
123        done
124        $(AM_V_GEN)ls $(ARCH)/* > $@-list
125        $(AM_V_AR)$(AR) rc $@ @$@-list
126        $(AM_V_GEN)rm -f $@-list $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
127        $(AM_V_at)$(RANLIB) $@
128
129all-local: $(TMPINSTALL_FILES)
130
131include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.