shithub: soundpipe

ref: 95e6f8be0c1c450fc3800b6dd57e7d63212ea42c
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 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/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