summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libmisc/wrapup/Makefile.in
blob: 752c0d8bb00791090f8eac9003f2890d9c17cbfd (plain)
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
#
#  $Id$
#

@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = ..
subdir = wrapup

RTEMS_ROOT = @RTEMS_ROOT@
PROJECT_ROOT = @PROJECT_ROOT@

VPATH = @srcdir@

LIB = $(ARCH)/libmisc.a

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

INSTALL_CHANGE = @INSTALL_CHANGE@

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

LIBS = ../monitor/$(ARCH)/libmonitor-tmp.a ../untar/$(ARCH)/libuntar-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)/*
	$(RANLIB) $@

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