source: rtems/c/src/wrapup/Makefile.am @ 0e31ed7

4.104.114.84.9
Last change on this file since 0e31ed7 was 0e31ed7, checked in by Ralf Corsepius <ralf.corsepius@…>, on Dec 11, 2003 at 12:43:55 PM

2003-12-11 Ralf Corsepius <corsepiu@…>

  • aclocal/env-rtemsbsp.m4: AC_SUBST(project_libdir).
  • automake/lib.am: Remove project_libdir.
  • wrapup/Makefile.am: Reworked.
  • Property mode set to 100644
File size: 1.8 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/${ARCH}/libsupport.a
13
14if HAS_LIBBSP
15SRCS += \
16    ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/wrapup/$(ARCH)/libbsp.a
17endif
18
19if HAS_NETWORKING
20SRCS += ../libnetworking/wrapup/$(ARCH)/libnetapps.a
21endif
22
23if HAS_RDBG
24SRCS += ../librdbg/src/$(RTEMS_CPU)/$(ARCH)/librdbg.a
25endif
26
27SRCS += $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a)
28
29if LIBCHIP
30SRCS += ../libchip/rtc/$(ARCH)/librtcio.a
31SRCS += ../libchip/serial/$(ARCH)/libserialio.a
32SRCS += ../libchip/ide/$(ARCH)/libide.a
33if HAS_NETWORKING
34SRCS += ../libchip/network/$(ARCH)/libnetchip$(LIB_VARIANT).a
35endif
36endif
37
38SRCS += $(wildcard \
39    $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).$(OBJEXT))
40
41all-local: $(TMPINSTALL_FILES)
42
43$(ARCH)/librtemsbsp$(LIB_VARIANT).a: $(SRCS) $(ARCH)/$(dirstamp)
44        rm -rf $(ARCH)/*.a $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
45        for f in $(SRCS); do \
46          case $$f in \
47          *.$(OBJEXT) | *.rel) \
48            if test -f $(ARCH)/`basename $$f`; then \
49              if cmp $$f $(ARCH)/`basename $$f`; then \
50                true; \
51              else \
52                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
53                exit 1; \
54              fi; \
55            else \
56              cp $$f $(ARCH)/; \
57              chmod a-w $(ARCH)/`basename $$f`; \
58            fi; \
59            ;; \
60          *.a) \
61            cd $(ARCH); \
62              $(AR) xv ../$$f || exit 1; \
63              chmod a-w * ; \
64            cd ..; \
65            ;; \
66          esac; \
67        done
68        $(AR) rc $@ $(ARCH)/*
69        $(RANLIB) $@
70
71${PROJECT_RELEASE}/lib/librtemsbsp$(LIB_VARIANT).a: $(ARCH)/librtemsbsp$(LIB_VARIANT).a ${PROJECT_RELEASE}/lib/$(dirstamp)
72        $(INSTALL_DATA) $< ${PROJECT_RELEASE}/lib/librtemsbsp$(LIB_VARIANT).a
73TMPINSTALL_FILES += ${PROJECT_RELEASE}/lib/librtemsbsp$(LIB_VARIANT).a
74
75include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.