shithub: dumb

ref: 52c579491bf9c0e188a1713fdc17155bcd53c997
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