source: rtems/c/src/wrapup/Makefile.am @ 6028f94

4.104.114.84.9
Last change on this file since 6028f94 was 6028f94, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 26, 2005 at 4:30:49 PM

Remove libpppd.a.

  • 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
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_RDBG
20SRCS += ../librdbg/librdbg.a
21endif
22
23# FIXME: ATM, there is no libcpu.a, anymore.
24# SRCS += $(wildcard $(PROJECT_LIB)/libcpu.a)
25
26if LIBCHIP
27SRCS += ../libchip/librtcio.a
28SRCS += ../libchip/libserialio.a
29SRCS += ../libchip/libide.a
30if HAS_NETWORKING
31SRCS += ../libchip/libnetchip.a
32endif
33endif
34
35if HAS_MP
36SRCS += ../libchip/shmdr.rel
37endif
38
39all-local: $(TMPINSTALL_FILES)
40
41o-optimize/librtemsbsp.a: $(SRCS)
42        rm -f $@
43        $(mkdir_p) o-optimize
44        rm -rf o-optimize/*.a o-optimize/*.$(OBJEXT) o-optimize/*.rel
45        for f in $(SRCS); do \
46          case $$f in \
47          *.$(OBJEXT) | *.rel) \
48            if test -f o-optimize/`basename $$f`; then \
49              if cmp $$f o-optimize/`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 o-optimize/; \
57              chmod a-w o-optimize/`basename $$f`; \
58            fi; \
59            ;; \
60          *.a) \
61            cd o-optimize; \
62              $(AR) xv ../$$f || exit 1; \
63              chmod a-w * ; \
64            cd ..; \
65            ;; \
66          esac; \
67        done
68        $(AR) rc $@ o-optimize/*
69        rm -f o-optimize/*.$(OBJEXT) o-optimize/*.rel
70        $(RANLIB) $@
71
72TMPINSTALL_FILES =
73
74$(PROJECT_LIB)/$(dirstamp):
75        @$(mkdir_p) $(PROJECT_LIB)
76        @: > $(PROJECT_LIB)/$(dirstamp)
77TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
78
79$(PROJECT_LIB)/librtemsbsp.a: o-optimize/librtemsbsp.a $(PROJECT_LIB)/$(dirstamp)
80        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemsbsp.a
81TMPINSTALL_FILES += $(PROJECT_LIB)/librtemsbsp.a
82
83CLEANFILES += $(TMPINSTALL_FILES)
84
85include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.