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

4.104.114.84.95
Last change on this file since c943413 was c943413, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/21/07 at 17:03:25

2007-02-21 Ralf Corsepius <ralf.corsepius@…>

  • wrapup/Makefile.am: Use MKDIR_P instead of mkdir_p.
  • Property mode set to 100644
File size: 2.3 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_LIBRARIES = librtemscpu.a
12librtemscpu_a_SOURCES =
13
14TMP_LIBS =
15TMP_LIBS += ../score/cpu/@RTEMS_CPU@/libscorecpu.a
16TMP_LIBS += ../score/libscore.a
17TMP_LIBS += ../sapi/libsapi.a
18TMP_LIBS += ../rtems/librtems.a
19
20if HAS_POSIX
21TMP_LIBS += ../posix/libposix.a
22endif
23
24if LIBITRON
25TMP_LIBS += ../itron/libitron.a
26endif
27
28TMP_LIBS += ../libcsupport/libcsupport.a
29if !UNIX
30TMP_LIBS += ../libblock/libblock.a
31endif
32if LIBDOSFS
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
60TMP_LIBS += ../libi2c/libi2c.a
61
62if LIBNETWORKING
63TMP_LIBS += ../libnetworking/libnetworking.a
64TMP_LIBS += ../libnetworking/libc.a
65TMP_LIBS += ../libnetworking/lib.a
66endif
67
68if LIBRPC
69TMP_LIBS += ../librpc/librpc.a
70TMP_LIBS += ../librpc/libxdr.a
71endif
72
73librtemscpu.a: $(TMP_LIBS)
74        rm -f $@
75        $(MKDIR_P) $(ARCH)
76        rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
77        for f in $(TMP_LIBS); do \
78          case $$f in \
79          *.$(OBJEXT) | *.rel) \
80            if test -f $(ARCH)/`basename $$f`; then \
81              if cmp $$f $(ARCH)/`basename $$f`; then \
82                true; \
83              else \
84                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
85                exit 1; \
86              fi; \
87            else \
88              cp $$f $(ARCH)/; \
89              chmod a-w $(ARCH)/`basename $$f`; \
90            fi; \
91            ;; \
92          *.a) \
93            cd $(ARCH); \
94              $(AR) xv ../$$f || exit 1; \
95              chmod a-w * ; \
96            cd ..; \
97            ;; \
98          esac; \
99        done
100        $(AR) rc $@ $(ARCH)/*
101        rm -f $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
102        $(RANLIB) $@
103
104all-local: $(TMPINSTALL_FILES)
105
106include $(srcdir)/preinstall.am
107include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.