shithub: soundpipe

ref: 50243ce8b8f884879d506c0900da0591ce4b4603
dir: /mkfile/

View raw version
<mkfile.common

HEADER=h/soundpipe.h
PWD=`{pwd}

CLEANFILES=$HEADER

DIRS=modules lib/dr_wav lib/inih lib/kissfft lib/openlpc lib/spa

default:V: all

all:VQ: $HEADER
	for(d in $DIRS){ cd $d && mk; cd $PWD }

clean:VQ:
	rm -f $HEADER
	for(d in $DIRS){ cd $d && mk clean; cd $PWD }

$HEADER: $HFILES
	{
		echo '#ifndef _soundpipe_h_'
		echo '#define _soundpipe_h_'
		echo
		echo '#pragma lib' "^$PWD^/modules/libspmodules.a^$O^"
		echo '#pragma lib' "^$PWD^/lib/dr_wav/libdr_wav.a^$O^"
		echo '#pragma lib' "^$PWD^/lib/inih/libinih.a^$O^"
		echo '#pragma lib' "^$PWD^/lib/kissfft/libkissfft.a^$O^"
		echo '#pragma lib' "^$PWD^/lib/openlpc/libopenlpc.a^$O^"
		echo '#pragma lib' "^$PWD^/lib/spa/libspa.a^$O^"
		echo
		for(f in $HFILES){
			echo '#include' "^`{basename $f}^"
		}
		echo
		echo '#endif'
	} >$target