source: rtems/c/src/wrapup/Makefile.am @ 4bf6a9f2

4.104.114.84.95
Last change on this file since 4bf6a9f2 was 4bf6a9f2, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/04/05 at 12:47:44

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

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