summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/wrapup/Makefile.am
blob: d5021a7be0652732b6a80369c8c549e479efef8d (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
##
##  $Id$
##

AUTOMAKE_OPTIONS = foreign 1.4

LIBNAME = libmisc
LIB = ${ARCH}/$(LIBNAME).a

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

TMP_LIBS = ../monitor/$(ARCH)/libmonitor-tmp.a ../untar/$(ARCH)/libuntar-tmp.a \
    ../stackchk/$(ARCH)/libstackchk-tmp.a ../cpuuse/$(ARCH)/libcpuuse-tmp.a \
    ../rtmonuse/$(ARCH)/librtmonuse-tmp.a \
    ../dumpbuf/$(ARCH)/libdumpbuf-tmp.a

TMPINSTALL_FILES += \
$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a

$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
	$(INSTALL_DATA) $< $@

#
# (OPTIONAL) Add local stuff here using +=
#

$(LIB): $(TMP_LIBS)
	$(RM) $@
	$(RM) -r $(ARCH)
	mkdir $(ARCH)
	cd $(ARCH); for lib in $^; do \
                         $(AR) -xv ../$$lib; \
                    done
	$(AR) ruv $@ $(ARCH)/*
	$(RANLIB) $@

all: ${ARCH} $(LIB) $(TMPINSTALL_FILES)

include $(top_srcdir)/../../../automake/local.am