source: rtems/cpukit/wrapup/Makefile.am @ 16f4661f

Last change on this file since 16f4661f was 16f4661f, checked in by Sebastian Huber <sebastian.huber@…>, on Mar 9, 2018 at 7:38:18 AM

network: Optionally install network headers

Install the network headers only if --enable-networking is specified.

Update #3254.

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