shithub: neindaw

ref: fb785323a3088953f80459b04c0c796c527af4ac
dir: neindaw/dsp/mkfile

View raw version
</$objtype/mkfile

TARG=\
	kick_drum\

OFILES=\
	common.$O\
	fs.$O\
	uiglue.$O\

CFLAGS=$CFLAGS -I..

default:V:	all

CLEANFILES=\

</sys/src/cmd/mkmany

%.c: %.dsp
	os -d `{../osdir} nix-shell ../nix/shell.nix --run './dsp2c '^$"prereq || \
	{ echo $target needs to be regenerated with "./dsp2c $prereq"; exit 1 }

$BIN/%:	$O.%
	mkdir -p $BIN
	cp $O.$stem $BIN/$stem

common.$O: ../common.c
	$CC $CFLAGS $prereq