shithub: riscv

ref: 46cf9d4eb02a3a7c2516be3053994d4fb69eb949
dir: /sys/src/ape/cmd/pax/mkfile/

View raw version
APE=/sys/src/ape
<$APE/config

TARG=pax
OFILES=pax.$O\
	append.$O\
	buffer.$O\
	cpio.$O\
	create.$O\
	extract.$O\
	fileio.$O\
	link.$O\
	list.$O\
	mem.$O\
	namelist.$O\
	names.$O\
	pass.$O\
	pathname.$O\
	port.$O\
	regexp.$O\
	replace.$O\
	tar.$O\
	ttyio.$O\
	warn.$O\
	wildmat.$O\

HFILES=config.h\
	func.h\
	limits.h\
	port.h\
	pax.h\

BIN=$APEBIN
</sys/src/cmd/mkone

CFLAGS =-c -D_POSIX_SOURCE -B -DPATH_MAX=1024

$O.out:	$OFILES $LIB
	$LD $LDFLAGS -o $target $prereq -lv