summaryrefslogtreecommitdiffstats
path: root/c/src/libmisc/wrapup/Makefile.in
blob: b43a7c6115c2eb7abf6ef2e5608331075cf9cf44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
#  $Id$
#

@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ../../../../..
subdir = c/src/lib/libmisc/wrapup

INSTALL = @INSTALL@

RTEMS_ROOT = $(top_srcdir)/@RTEMS_TOPdir@
PROJECT_ROOT = @PROJECT_ROOT@

VPATH = @srcdir@

LIB=$(ARCH)/libmisc.a

include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
include $(RTEMS_ROOT)/make/lib.cfg

#  Using the wildcard on the Purify support makes sure it may not be there

LIBS=../monitor/$(ARCH)/libmonitor-tmp.a \
     ../error/$(ARCH)/liberror-tmp.a \
     ../assoc/$(ARCH)/libassoc-tmp.a \
     ../stackchk/$(ARCH)/libstackchk-tmp.a \
     ../cpuuse/$(ARCH)/libcpuuse-tmp.a \
     ../rtmonuse/$(ARCH)/librtmonuse-tmp.a \
     ../dumpbuf/$(ARCH)/libdumpbuf-tmp.a

RELS=

CLEAN_ADDITIONS +=
CLOBBER_ADDITIONS +=

$(LIB): ${LIBS} $(RELS)
	$(RM) -r $(ARCH)
	mkdir $(ARCH)
	cd $(ARCH); for lib in $(LIBS:%=../%); do \
                         $(AR) -xv $$lib; \
                    done
	$(RM) $@
	$(AR) ruv $@ $(ARCH)/*
	$(MKLIB) $@

all:	${ARCH} $(SRCS) $(LIB)
	$(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	cd $(top_builddir) \
	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status