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

4.104.114.84.95
Last change on this file since a29d2e7 was 846a4af, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 1, 2005 at 10:41:29 AM

2005-01-01 Ralf Corsepius <ralf.corsepius@…>

  • automake/compile.am, httpd/Makefile.am, itron/Makefile.am, libblock/Makefile.am, libcsupport/Makefile.am, libfs/Makefile.am, libmisc/Makefile.am, libnetworking/Makefile.am, librpc/Makefile.am, posix/Makefile.am, rtems/Makefile.am, sapi/Makefile.am, score/Makefile.am, wrapup/Makefile.am: Remove build-variant support.
  • Property mode set to 100644
File size: 2.6 KB
Line 
1##
2## $Id$
3##
4
5include $(top_srcdir)/automake/multilib.am
6include $(top_srcdir)/automake/compile.am
7
8## Setup the variant build subdirectory
9ARCH = o-optimize
10
11project_lib_DATA = librtemscpu.a
12CLEANFILES = librtemscpu.a
13
14TMP_LIBS =
15if LIBSCORECPU
16TMP_LIBS += ../score/cpu/@RTEMS_CPU@/libscorecpu.a
17endif
18TMP_LIBS += ../score/libscore.a
19TMP_LIBS += ../sapi/libsapi.a
20TMP_LIBS += ../rtems/librtems.a
21
22if HAS_POSIX
23TMP_LIBS += ../posix/libposix.a
24endif
25
26if HAS_ITRON
27TMP_LIBS += ../itron/libitron.a
28endif
29
30TMP_LIBS += ../libcsupport/libcsupport.a
31if !UNIX
32TMP_LIBS += ../libblock/libblock.a
33TMP_LIBS += ../libfs/libdosfs.a
34endif
35TMP_LIBS += ../libfs/libimfs.a
36
37TMP_LIBS += ../libmisc/libmonitor.a
38TMP_LIBS += ../libmisc/libuntar.a
39TMP_LIBS += ../libmisc/libstackchk.a
40TMP_LIBS += ../libmisc/libcpuuse.a
41TMP_LIBS += ../libmisc/librtmonuse.a
42
43## XXX temporarily removed because it causes a
44## XXX number of BSPs to not link "main(){}" used by autoconf
45# if LIBSERDBG
46# TMP_LIBS += ../libmisc/libserdbg.a
47# endif
48
49if LIBSHELL
50TMP_LIBS += ../libmisc/libshell.a
51endif
52
53TMP_LIBS += ../libmisc/libdumpbuf.a
54TMP_LIBS += ../libmisc/libdevnull.a
55TMP_LIBS += ../libmisc/libdummy.a
56TMP_LIBS += ../libmisc/libmw-fb.a
57TMP_LIBS += ../libmisc/libcapture.a
58TMP_LIBS += ../libmisc/libfsmount.a
59
60if HAS_NETWORKING
61TMP_LIBS += ../libnetworking/libnetworking.a
62TMP_LIBS += ../libnetworking/libc.a
63TMP_LIBS += ../libnetworking/lib.a
64endif
65
66if LIBRPC
67TMP_LIBS += ../librpc/librpc.a
68TMP_LIBS += ../librpc/libxdr.a
69endif
70
71librtemscpu.a: $(TMP_LIBS)
72        rm -f $@
73        $(mkdir_p) $(ARCH)
74        rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
75        for f in $(TMP_LIBS); do \
76          case $$f in \
77          *.$(OBJEXT) | *.rel) \
78            if test -f $(ARCH)/`basename $$f`; then \
79              if cmp $$f $(ARCH)/`basename $$f`; then \
80                true; \
81              else \
82                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
83                exit 1; \
84              fi; \
85            else \
86              cp $$f $(ARCH)/; \
87              chmod a-w $(ARCH)/`basename $$f`; \
88            fi; \
89            ;; \
90          *.a) \
91            cd $(ARCH); \
92              $(AR) xv ../$$f || exit 1; \
93              chmod a-w * ; \
94            cd ..; \
95            ;; \
96          esac; \
97        done
98        $(AR) rc $@ $(ARCH)/*
99        rm -f $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
100        $(RANLIB) $@
101
102all-local: $(TMPINSTALL_FILES)
103
104TMPINSTALL_FILES =
105
106$(PROJECT_LIB)/$(dirstamp):
107        @$(mkdir_p) $(PROJECT_LIB)
108        @: > $(PROJECT_LIB)/$(dirstamp)
109TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
110
111$(PROJECT_LIB)/librtemscpu.a: librtemscpu.a $(PROJECT_LIB)/$(dirstamp)
112        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemscpu.a
113TMPINSTALL_FILES += $(PROJECT_LIB)/librtemscpu.a
114
115CLEANFILES += $(TMPINSTALL_FILES)
116
117include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.