shithub: dumb

ref: 6620310ca002f8b6bf0a12dbba119022aafc8825
dir: /mkfile/

View raw version
</$objtype/mkfile

TARG=moddec
CFLAGS=$CFLAGS -p -Iinclude -Isrc/plan9 -DNDEBUG -DLONG_LONG=vlong -D__plan9__ -D__${objtype}__
BIN=/$objtype/bin/audio

HFILES=\
	include/dumb.h\
	include/internal/barray.h\
	include/internal/dumb.h\
	include/internal/dumbfile.h\
	include/internal/it.h\
	include/internal/lpc.h\
	include/internal/resampler.h\
	include/internal/riff.h\
	include/internal/stack_alloc.h\
	include/internal/tarray.h\

OFILES=\
	examples/moddec.$O\

default:V: all

CLEANFILES=$OFILES libdumb.a$O

</sys/src/cmd/mkone

%.$O: %.c
	$CC $CFLAGS -o $target $stem.c

$O.out: libdumb.a$O

libdumb.a$O:
	mk -f mkfile.lib

nuke:V:
	rm -f *.[$OS] [$OS].out y.tab.? lex.yy.c y.debug y.output *.acid $TARG $CLEANFILES
	mk -f mkfile.lib nuke

clean:V:
	rm -f *.[$OS] [$OS].out y.tab.? lex.yy.c y.debug y.output $TARG $CLEANFILES
	mk -f mkfile.lib clean