# # $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 \ ../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)/* $(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