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

4.104.114.84.95
Last change on this file since d7a7573 was d7a7573, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 9, 2004 at 6:14:38 PM

2004-01-08 Ralf Corsepius <corsepiu@…>

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