source: rtems/c/src/wrapup/Makefile.am @ 9cd49d42

4.104.114.84.95
Last change on this file since 9cd49d42 was 9cd49d42, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 12, 2005 at 3:43:07 AM

2005-02-11 Ralf Corsepius <ralf.corsepius@…>

  • configure.ac: Remove HAS_WRAPUP_LIBBSP.
  • wrapup/Makefile.am: Remove HAS_WRAPUP_LIBBSP.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1##
2##  $Id$
3##
4##  build and install "glommed" librtemsbsp.a
5##
6
7include $(top_srcdir)/automake/compile.am
8
9## Setup the variant build subdirectory
10project_lib_DATA = o-optimize/librtemsbsp.a
11CLEANFILES = o-optimize/librtemsbsp.a
12
13SRCS = ../support/libsupport.a
14
15if HAS_LIBBSP
16SRCS += ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/libbsp.a
17endif
18
19if HAS_NETWORKING
20SRCS += ../libnetworking/pppd/libpppd.a
21SRCS += ../libnetworking/rtems_telnetd/libtelnetd.a
22endif
23
24if HAS_RDBG
25SRCS += ../librdbg/librdbg.a
26endif
27
28# FIXME: ATM, there is no libcpu.a, anymore.
29# SRCS += $(wildcard $(PROJECT_LIB)/libcpu.a)
30
31if LIBCHIP
32SRCS += ../libchip/librtcio.a
33SRCS += ../libchip/libserialio.a
34SRCS += ../libchip/libide.a
35if HAS_NETWORKING
36SRCS += ../libchip/libnetchip.a
37endif
38endif
39
40if HAS_MP
41SRCS += ../libchip/shmdr.rel
42endif
43
44all-local: $(TMPINSTALL_FILES)
45
46o-optimize/librtemsbsp.a: $(SRCS)
47        rm -f $@
48        $(mkdir_p) o-optimize
49        rm -rf o-optimize/*.a o-optimize/*.$(OBJEXT) o-optimize/*.rel
50        for f in $(SRCS); do \
51          case $$f in \
52          *.$(OBJEXT) | *.rel) \
53            if test -f o-optimize/`basename $$f`; then \
54              if cmp $$f o-optimize/`basename $$f`; then \
55                true; \
56              else \
57                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
58                exit 1; \
59              fi; \
60            else \
61              cp $$f o-optimize/; \
62              chmod a-w o-optimize/`basename $$f`; \
63            fi; \
64            ;; \
65          *.a) \
66            cd o-optimize; \
67              $(AR) xv ../$$f || exit 1; \
68              chmod a-w * ; \
69            cd ..; \
70            ;; \
71          esac; \
72        done
73        $(AR) rc $@ o-optimize/*
74        rm -f o-optimize/*.$(OBJEXT) o-optimize/*.rel
75        $(RANLIB) $@
76
77TMPINSTALL_FILES =
78
79$(PROJECT_LIB)/$(dirstamp):
80        @$(mkdir_p) $(PROJECT_LIB)
81        @: > $(PROJECT_LIB)/$(dirstamp)
82TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
83
84$(PROJECT_LIB)/librtemsbsp.a: o-optimize/librtemsbsp.a $(PROJECT_LIB)/$(dirstamp)
85        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemsbsp.a
86TMPINSTALL_FILES += $(PROJECT_LIB)/librtemsbsp.a
87
88CLEANFILES += $(TMPINSTALL_FILES)
89
90include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.