source: rtems/c/src/wrapup/Makefile.am @ 477180fa

4.104.114.84.95
Last change on this file since 477180fa was 477180fa, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/02/04 at 18:13:10

2004-02-02 Ralf Corsepius <corsepiu@…>

  • aclocal/check-multiprocessing.m4: Remove AC_SUBST(HAS_MP). Add AM_CONDITIONAL(HAS_MP).
  • wrapup/Makefile.am: Fix path to ../libchip/shmdr.rel.
  • configure.ac: Remove AM_CONDITIONAL(HAS_MP).
  • aclocal/enable-cxx.m4, aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4, aclocal/enable-posix.m4, aclocal/enable-rdbg.m4, aclocal/multilib.m4: Use AS_HELP_STRING instead of AC_HELP_STRING (Deprecated by autoconf 2.59).
  • Property mode set to 100644
File size: 2.4 KB
Line 
1##
2##  $Id$
3##
4##  build and install "glommed" librtemsbsp.a
5##
6
7include $(top_srcdir)/automake/compile.am
8include $(top_srcdir)/automake/lib.am
9
10project_lib_DATA = $(ARCH)/librtemsbsp$(LIB_VARIANT).a
11
12SRCS = ../support/libsupport$(LIB_VARIANT).a
13
14if HAS_LIBBSP
15if HAS_WRAPUP_LIBBSP
16SRCS += \
17    ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/wrapup/$(ARCH)/libbsp.a
18else
19SRCS += \
20    ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/libbsp$(LIB_VARIANT).a
21endif
22endif
23
24if HAS_NETWORKING
25if HAS_POSIX
26SRCS += ../libnetworking/rtems_webserver/libhttpd$(LIB_VARIANT).a
27endif
28SRCS += ../libnetworking/pppd/libpppd$(LIB_VARIANT).a
29SRCS += ../libnetworking/rtems_servers/libftpd$(LIB_VARIANT).a
30SRCS += ../libnetworking/rtems_telnetd/libtelnetd$(LIB_VARIANT).a
31endif
32
33if HAS_RDBG
34SRCS += ../librdbg/src/@RTEMS_CPU@/librdbg$(LIB_VARIANT).a
35endif
36
37SRCS += $(wildcard $(PROJECT_LIB)/libcpu$(LIB_VARIANT).a)
38
39if LIBCHIP
40SRCS += ../libchip/librtcio$(LIB_VARIANT).a
41SRCS += ../libchip/libserialio$(LIB_VARIANT).a
42SRCS += ../libchip/libide$(LIB_VARIANT).a
43if HAS_NETWORKING
44SRCS += ../libchip/libnetchip$(LIB_VARIANT).a
45endif
46endif
47
48SRCS += $(wildcard $(PROJECT_LIB)/lib/rtems-ctor$(LIB_VARIANT).$(OBJEXT))
49
50if HAS_MP
51SRCS += ../libchip/shmdr$(LIB_VARIANT).rel
52endif
53
54all-local: $(TMPINSTALL_FILES)
55
56$(ARCH)/librtemsbsp$(LIB_VARIANT).a: $(SRCS) $(ARCH)/$(dirstamp)
57        rm -rf $(ARCH)/*.a $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
58        for f in $(SRCS); do \
59          case $$f in \
60          *.$(OBJEXT) | *.rel) \
61            if test -f $(ARCH)/`basename $$f`; then \
62              if cmp $$f $(ARCH)/`basename $$f`; then \
63                true; \
64              else \
65                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
66                exit 1; \
67              fi; \
68            else \
69              cp $$f $(ARCH)/; \
70              chmod a-w $(ARCH)/`basename $$f`; \
71            fi; \
72            ;; \
73          *.a) \
74            cd $(ARCH); \
75              $(AR) xv ../$$f || exit 1; \
76              chmod a-w * ; \
77            cd ..; \
78            ;; \
79          esac; \
80        done
81        $(AR) rc $@ $(ARCH)/*
82        $(RANLIB) $@
83
84TMPINSTALL_FILES =
85
86$(PROJECT_LIB)/$(dirstamp):
87        @$(mkdir_p) $(PROJECT_LIB)
88        @: > $(PROJECT_LIB)/$(dirstamp)
89TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
90
91$(PROJECT_LIB)/librtemsbsp$(LIB_VARIANT).a: $(ARCH)/librtemsbsp$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
92        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemsbsp$(LIB_VARIANT).a
93TMPINSTALL_FILES += $(PROJECT_LIB)/librtemsbsp$(LIB_VARIANT).a
94
95CLEANFILES = $(TMPINSTALL_FILES)
96
97include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.