</$objtype/mkfile

# Not sure what this is...
# opus_multistream

CC=pcc -c
TARG=opus_compare opus_demo repacketizer_demo
CFLAGS=-I. -I ../include -I ../celt -I ../silk  -DNONTHREADSAFE_PSEUDOSTACK '-DOPUS_BUILD=""'
OFILES=repacketizer.$O opus_decoder.$O opus_encoder.$O opus.$O 
LIB=../celt/libcelt.a$O   ../silk/libsilk.a$O  ../silk/float/libfloat.a$O ../silk/fixed/libfixed.a$O ../silk/libsilk.a$O 

</sys/src/cmd/mkmany

# We override mkmany here as we need to link libsilk more
# than once and $prereq strips duplicates - mk(1) assumes well
# designed libraries.
$O.%:	%.$O $OFILES $LIB
	$LD $LDFLAGS -o $target $stem.$O $OFILES $LIB

