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

4.11
Last change on this file since 8f7b8f7b was 8f7b8f7b, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 14, 2010 at 3:44:44 PM

2010-07-14 Joel Sherrill <joel.sherrill@…>

  • libfs/Makefile.am: Remove reference to imfs_free.c, wrapup/Makefile.am: Split devfs into its own library.
  • libfs/src/imfs/fifoimfs_init.c, libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_init.c, libfs/src/rfs/rtems-rfs-rtems.c: Use default freenode implementation.
  • libfs/src/imfs/imfs_free.c: Removed.
  • Property mode set to 100644
File size: 2.5 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
19TMP_LIBS += ../posix/libposix.a
20
21if LIBGNAT
22TMP_LIBS += ../libgnat/libgnat.a
23endif
24
25TMP_LIBS += ../libcsupport/libcsupport.a
26TMP_LIBS += ../libblock/libblock.a
27if LIBDOSFS
28TMP_LIBS += ../libfs/libdosfs.a
29endif
30TMP_LIBS += ../libfs/libdefaultfs.a
31TMP_LIBS += ../libfs/libdevfs.a
32TMP_LIBS += ../libfs/libimfs.a
33TMP_LIBS += ../libfs/librfs.a
34
35TMP_LIBS += ../libmisc/libmonitor.a
36TMP_LIBS += ../libmisc/libuntar.a
37TMP_LIBS += ../libmisc/libstackchk.a
38TMP_LIBS += ../libmisc/libcpuuse.a
39
40## XXX temporarily removed because it causes a
41## XXX number of BSPs to not link "main(){}" used by autoconf
42# if LIBSERDBG
43# TMP_LIBS += ../libmisc/libserdbg.a
44# endif
45
46if LIBSHELL
47TMP_LIBS += ../libmisc/libshell.a
48endif
49
50TMP_LIBS += ../libmisc/libbspcmdline.a
51TMP_LIBS += ../libmisc/libcapture.a
52TMP_LIBS += ../libmisc/libdumpbuf.a
53TMP_LIBS += ../libmisc/libdevnull.a
54TMP_LIBS += ../libmisc/libdummy.a
55TMP_LIBS += ../libmisc/libfsmount.a
56TMP_LIBS += ../libmisc/libmw-fb.a
57TMP_LIBS += ../libmisc/libstringto.a
58TMP_LIBS += ../libmisc/libuuid.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
73if NEWLIB
74TMP_LIBS += ../libmd/libmd.a
75endif
76
77librtemscpu.a: $(TMP_LIBS)
78        rm -f $@
79        $(MKDIR_P) $(ARCH)
80        rm -rf $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
81        for f in $(TMP_LIBS); do \
82          case $$f in \
83          *.$(OBJEXT) | *.rel) \
84            if test -f $(ARCH)/`basename $$f`; then \
85              if cmp $$f $(ARCH)/`basename $$f`; then \
86                true; \
87              else \
88                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
89                exit 1; \
90              fi; \
91            else \
92              cp $$f $(ARCH)/; \
93              chmod a-w $(ARCH)/`basename $$f`; \
94            fi; \
95            ;; \
96          *.a) \
97            cd $(ARCH); \
98              $(AR) xv ../$$f || exit 1; \
99              chmod a-w * ; \
100            cd ..; \
101            ;; \
102          esac; \
103        done
104        ls $(ARCH)/* > $@-list
105        $(AR) rc $@ @$@-list
106        rm -f $@-list $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
107        $(RANLIB) $@
108
109all-local: $(TMPINSTALL_FILES)
110
111include $(srcdir)/preinstall.am
112include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.