</$objtype/mkfile

CC=pcc -c -B
LD=pcc

LIB=libmad.a

CFLAGS=\
	 -D_POSIX_SOURCE -DUNIX\
	 -DHAVE_CONFIG_H -DFPM_APPROX

HFILES=\
	version.h\
	fixed.h\
	bit.h\
	timer.h\
	stream.h\
	frame.h\
	synth.h\
	decoder.h\

OFILES=\
	version.$O\
	fixed.$O\
	bit.$O\
	timer.$O\
	stream.$O\
	frame.$O\
	synth.$O\
	decoder.$O\
	layer12.$O\
	layer3.$O\
	huffman.$O\


</sys/src/cmd/mklib

$OFILES: $HFILES mad.h

#mad.h: mad.h.sed $HFILES mkfile
#	{
#	grep '^# *define  *OPT_(SPEED|ACCURACY)' config.h
#	grep '^# *define  *SIZEOF_' config.h
#	sed -nf mad.h.sed $HFILES
#	} >mad.h

clean:V:
	rm -f *.[$OS] [$OS].out libmad.a
