shithub: soundpipe

ref: 25a9fcc24ad00c6a406042818b9e6f2e7bba0dd1
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