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

4.104.114.84.95
Last change on this file since fcf0034 was fcf0034, checked in by Ralf Corsepius <ralf.corsepius@…>, on Feb 20, 2004 at 1:11:53 AM

2004-02-20 Ralf Corsepius <corsepiu@…>

  • libchip/Makefile.am, librdbg/Makefile.am, optman/Makefile.am, wrapup/Makefile.am: Fix automake problems having been introduced in previous patch.
  • Property mode set to 100644
File size: 2.6 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
10ARCH_OPTIMIZE_V = o-optimize
11ARCH_DEBUG_V = o-debug
12
13ARCH__V = $(ARCH_OPTIMIZE_V)
14ARCH = $(ARCH_$(VARIANT_V)_V)
15
16project_lib_DATA = $(ARCH)/librtemsbsp$(LIB_VARIANT).a
17CLEANFILES = o-optimize/librtemsbsp.a
18CLEANFILES += o-debug/librtemsbsp_g.a
19
20SRCS = ../support/libsupport$(LIB_VARIANT).a
21
22if HAS_LIBBSP
23if HAS_WRAPUP_LIBBSP
24SRCS += \
25    ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/wrapup/$(ARCH)/libbsp.a
26else
27SRCS += ../lib/libbsp/@RTEMS_CPU@/@RTEMS_BSP_FAMILY@/libbsp$(LIB_VARIANT).a
28endif
29endif
30
31if HAS_NETWORKING
32if HAS_POSIX
33SRCS += ../libnetworking/rtems_webserver/libhttpd$(LIB_VARIANT).a
34endif
35SRCS += ../libnetworking/pppd/libpppd$(LIB_VARIANT).a
36SRCS += ../libnetworking/rtems_servers/libftpd$(LIB_VARIANT).a
37SRCS += ../libnetworking/rtems_telnetd/libtelnetd$(LIB_VARIANT).a
38endif
39
40if HAS_RDBG
41SRCS += ../librdbg/librdbg$(LIB_VARIANT).a
42endif
43
44# FIXME: ATM, there is no libcpu.a, anymore.
45# SRCS += $(wildcard $(PROJECT_LIB)/libcpu$(LIB_VARIANT).a)
46
47if LIBCHIP
48SRCS += ../libchip/librtcio$(LIB_VARIANT).a
49SRCS += ../libchip/libserialio$(LIB_VARIANT).a
50SRCS += ../libchip/libide$(LIB_VARIANT).a
51if HAS_NETWORKING
52SRCS += ../libchip/libnetchip$(LIB_VARIANT).a
53endif
54endif
55
56SRCS += $(wildcard $(PROJECT_LIB)/lib/rtems-ctor$(LIB_VARIANT).$(OBJEXT))
57
58if HAS_MP
59SRCS += ../libchip/shmdr$(LIB_VARIANT).rel
60endif
61
62all-local: $(TMPINSTALL_FILES)
63
64$(ARCH)/librtemsbsp$(LIB_VARIANT).a: $(SRCS)
65        rm -f $@
66        $(mkdir_p) $(ARCH)
67        rm -rf $(ARCH)/*.a $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
68        for f in $(SRCS); do \
69          case $$f in \
70          *.$(OBJEXT) | *.rel) \
71            if test -f $(ARCH)/`basename $$f`; then \
72              if cmp $$f $(ARCH)/`basename $$f`; then \
73                true; \
74              else \
75                echo 1>&2 "ERROR -- `basename $$f` in multiple files"; \
76                exit 1; \
77              fi; \
78            else \
79              cp $$f $(ARCH)/; \
80              chmod a-w $(ARCH)/`basename $$f`; \
81            fi; \
82            ;; \
83          *.a) \
84            cd $(ARCH); \
85              $(AR) xv ../$$f || exit 1; \
86              chmod a-w * ; \
87            cd ..; \
88            ;; \
89          esac; \
90        done
91        $(AR) rc $@ $(ARCH)/*
92        rm -f $(ARCH)/*.$(OBJEXT) $(ARCH)/*.rel
93        $(RANLIB) $@
94
95TMPINSTALL_FILES =
96
97$(PROJECT_LIB)/$(dirstamp):
98        @$(mkdir_p) $(PROJECT_LIB)
99        @: > $(PROJECT_LIB)/$(dirstamp)
100TMPINSTALL_FILES += $(PROJECT_LIB)/$(dirstamp)
101
102$(PROJECT_LIB)/librtemsbsp$(LIB_VARIANT).a: $(ARCH)/librtemsbsp$(LIB_VARIANT).a $(PROJECT_LIB)/$(dirstamp)
103        $(INSTALL_DATA) $< $(PROJECT_LIB)/librtemsbsp$(LIB_VARIANT).a
104TMPINSTALL_FILES += $(PROJECT_LIB)/librtemsbsp$(LIB_VARIANT).a
105
106CLEANFILES += $(TMPINSTALL_FILES)
107
108include $(top_srcdir)/automake/local.am
Note: See TracBrowser for help on using the repository browser.