source: rtems/c/src/wrapup/Makefile.am @ daaacdb

4.104.114.84.95
Last change on this file since daaacdb was daaacdb, checked in by Ralf Corsepius <ralf.corsepius@…>, on Aug 9, 2002 at 8:26:28 AM

2002-08-09 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Use @RTEMS_BSP_FAMILY@ instead of $(@RTEMS_BSP_FAMILY).
  • configure.ac: Remove RTEMS_BSP_ALIAS. Add RTEMS_CHECK_BSP_CACHE. Use RTEMS_BSP_FAMILY to detect the bare BSP.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1##
2##  $Id$
3##
4##  build and install "glommed" librtemsbsp.a
5##
6
7ACLOCAL_AMFLAGS = -I ../../../aclocal
8
9include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
10include $(top_srcdir)/../../../automake/compile.am
11include $(top_srcdir)/../../../automake/lib.am
12
13LIB = $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
14
15if HAS_NETWORKING
16LIBNETWORKING = ../libnetworking/wrapup/$(ARCH)/libnetapps.a
17endif
18
19if HAS_RDBG
20LIBRDBG = $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a
21endif
22
23if HAS_LIBBSP
24LIBBSP = ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/wrapup/$(ARCH)/libbsp.a
25endif
26
27SRCS = $(LIBBSP) $(LIBNETWORKING) $(LIBRDBG) \
28    $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
29    $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
30    $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
31    $(wildcard $(PROJECT_RELEASE)/lib/libnetchip$(LIB_VARIANT).a) \
32    ../libmisc/wrapup/$(ARCH)/libmisc.a \
33    $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o)
34
35TMPINSTALL_FILES += $(PROJECT_RELEASE)/lib/librtemsbsp${LIB_VARIANT}.a
36
37all-local: $(ARCH) $(TMPINSTALL_FILES)
38
39$(LIB): $(SRCS)
40        rm -f $@
41        rm -rf $(ARCH)/*
42        test -d $(ARCH) || mkdir $(ARCH)
43        for f in $(SRCS); do \
44          case $$f in \
45          *.o | *.rel) \
46            if test -f $(ARCH)/`basename $$f`; then \
47              if cmp $$f $(ARCH)/`basename $$f`; then \
48                true; \
49              else \
50                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
51                exit 1; \
52              fi; \
53            else \
54              cp $$f $(ARCH)/; \
55              chmod a-w $(ARCH)/`basename $$f`; \
56            fi; \
57            ;; \
58          *.a) \
59            cd $(ARCH); \
60              $(AR) xv ../$$f || exit 1; \
61              chmod a-w * ; \
62            cd ..; \
63            ;; \
64          esac; \
65        done
66        $(AR) rc $@ $(ARCH)/*
67        rm -f $(ARCH)/*
68        $(RANLIB) $@
69
70bsplib_DATA = $(LIB)
71
72include $(top_srcdir)/../../../automake/local.am
Note: See TracBrowser for help on using the repository browser.