ports

zandra's ports tree
git clone git://zandra.org/ports
Log | Files | Refs | README | LICENSE

libarchive.mk (740B)


      1 <../v.mk
      2 
      3 BIN = tar/tar cpio/cpio
      4 LIB = libarchive.a libarchive_fe.a
      5 TARG = tar.1 cpio.1
      6 DEPS = zlib
      7 
      8 libarchive_a_OBJ = `{ls libarchive/*.c | sed 's/.$/o/' | grep -v '_windows.o$' | grep -v 'archive_entry_copy_bhfi.o$'}
      9 libarchive_fe_a_OBJ = `{ls libarchive_fe/*.c | sed 's/.$/o/'}
     10 
     11 cpio_cpio_OBJ = `{ls cpio/*.c | sed 's/.$/o/' | grep -v '_windows.o$'}
     12 tar_tar_OBJ = `{ls tar/*.c | sed 's/.$/o/' | grep -v '_windows.o$'}
     13 
     14 LOCAL_BIN_LDFLAGS = -L. -L${zlib_libdir} -lz -larchive -larchive_fe
     15 LOCAL_CFLAGS = -I. -Ilibarchive -Ilibarchive_fe -DHAVE_CONFIG_H
     16 
     17 <$mkbuild/mk.default
     18 
     19 INSTALL_BIN = tar/tar cpio/cpio
     20 INSTALL_MAN1 = tar.1 cpio.1
     21 
     22 $BIN: $LIB
     23 
     24 %.1:
     25 	cp $stem/bsd$stem.1 $stem.1
     26 
     27 %.o: config.h
     28 
     29 config.h:QV:
     30 	cp ../config.h config.h