shithub: riscv

ref: 94e7de15311c12c6fba68cc3ccffdc16945eb9fb
dir: /sys/src/cmd/usb/kb/mkfile/

View raw version
</$objtype/mkfile

TARG=kb
OFILES=main.$O
LIBDOFILES=kb.$O
HFILES=\
	../lib/usb.h\
	hid.h\

LIBD=../lib/usbdev.a$O
LIBU=../lib/usb.a$O
LIB=\
	$LIBD\
	$LIBU\

BIN=/$objtype/bin/usb


UPDATE=\
	mkfile\
	$HFILES\
	${OFILES:%.$O=%.c}\

</sys/src/cmd/mkone
CFLAGS=-I../lib $CFLAGS

$LIBU:
	cd ../lib
	mk install
	mk clean

$LIBD:V: $LIBDOFILES
	ar vu $LIBD $newprereq
	rm $newprereq