summaryrefslogblamecommitdiffstats
path: root/c/src/exec/libfs/wrapup/Makefile.am
blob: 87f159d62d5d1ac3c0640a1bd479d0abea6ad4a0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



       


                          


                                             
 
                                       
 
        
                                          
     

                                 
 











                                                              
                         


                 
                                          
##
## $Id$
##

LIBNAME = libfs
LIB = $(ARCH)/$(LIBNAME).a

include $(top_srcdir)/../automake/multilib.am
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/lib.am

IMFSLIB = ../src/imfs/$(ARCH)/libimfs.a

if !UNIX
DOSFSLIB = ../src/dosfs/$(ARCH)/libdosfs.a
endif

TMP_LIBS = $(IMFSLIB) $(DOSFSLIB)

#
# (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-local: $(ARCH) $(LIB)

.PRECIOUS: $(LIB)

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