source: rtems/c/src/wrapup/Makefile.am @ 6882be7

5
Last change on this file since 6882be7 was 28a6bb8, checked in by Sebastian Huber <sebastian.huber@…>, on 03/22/18 at 05:36:11

mpci: Avoid use of RTEMS_RELLDFLAGS

  • Property mode set to 100644
File size: 1.7 KB
Line 
1##
2##  build and install "glommed" librtemsbsp.a
3##
4
5include $(top_srcdir)/automake/compile.am
6
7## Setup the variant build subdirectory
8project_lib_DATA = o-optimize/librtemsbsp.a
9
10$(PROJECT_LIB)/librtemsbsp.a: o-optimize/librtemsbsp.a
11        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemsbsp.a
12TMPINSTALL_FILES = $(PROJECT_LIB)/librtemsbsp.a
13
14CLEANFILES = o-optimize/librtemsbsp.a
15
16SRCS = ../support/libsupport.a
17
18SRCS += ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/libbsp.a
19
20# FIXME: ATM, there is no libcpu.a, anymore.
21# SRCS += $(wildcard $(PROJECT_LIB)/libcpu.a)
22
23SRCS += ../libchip/libflash.a
24SRCS += ../libchip/librtcio.a
25SRCS += ../libchip/libserialio.a
26SRCS += ../libchip/libide.a
27if HAS_NETWORKING
28SRCS += ../libchip/libnetchip.a
29endif
30SRCS += ../libchip/libi2cio.a
31SRCS += ../libchip/libdisplay.a
32
33if HAS_MP
34SRCS += ../libchip/libshmdr.a
35endif
36
37o-optimize/librtemsbsp.a: $(SRCS)
38        rm -f $@
39        $(MKDIR_P) o-optimize
40        rm -rf o-optimize/*.a o-optimize/*.$(OBJEXT) o-optimize/*.rel
41        for f in $(SRCS); do \
42          case $$f in \
43          *.$(OBJEXT) | *.rel) \
44            if test -f o-optimize/`basename $$f`; then \
45              if cmp $$f o-optimize/`basename $$f`; then \
46                true; \
47              else \
48                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
49                exit 1; \
50              fi; \
51            else \
52              cp $$f o-optimize/; \
53              chmod a-w o-optimize/`basename $$f`; \
54            fi; \
55            ;; \
56          *.a) \
57            cd o-optimize; \
58              $(AR) xv ../$$f || exit 1; \
59              chmod a-w * ; \
60            cd ..; \
61            ;; \
62          esac; \
63        done
64        ls o-optimize/*.$(OBJEXT) > $@-list
65        -ls o-optimize/*.rel >> $@-list
66        $(AR) rc $@ @$@-list
67        rm -f $@-list o-optimize/*.$(OBJEXT) o-optimize/*.rel
68        $(RANLIB) $@
69
70include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.