shithub: soundpipe

ref: 0df3039072e1eb47d710348117063fa45cfaf2dd
dir: /mkfile/

View raw version
<mkfile.common

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

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

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
		for(d in \
				modules/libspmodules lib/dr_wav/libdr_wav lib/fft/libfft \
				lib/inih/libinih lib/kissfft/libkissfft lib/openlpc/libopenlpc \
				lib/spa/libspa tangled/libtangled){
			echo '#pragma lib' "^$PWD^/^$d^'.a$O"'
		}
		echo
		for(f in $HFILES){
			echo '#include' "^`{basename $f}^"
		}
		echo
		echo '#endif'
	} >$target