CC=gcc CXX=g++ #Basic flags used by all builds BASE=-ansi -pedantic -Wall #Debug specific flags DEBUG=-O0 -g -ftest-coverage -fprofile-arcs #Opitmized release flags OPTIMIZE=-O2 #Default is Debug build CFLAGS=${BASE} # ${DEBUG} #These are C++ specific flags CXX_FLAGS=${CFLAGS} ALL: ./bin/gensin ./bin/info ./bin/static ./bin/gendtmf.sh ./bin/gendtmf2.sh ./bin/split ./bin/combine ./bin/mix ./bin/audioutil ./bin/FHighLow.class ./bin/libfourier.so ./bin/reverb ./bin/dtmf ./bin/gensin: ./source/.o/gensin.o ./source/.o/fileio.o ${CC} ./source/.o/gensin.o ./source/.o/fileio.o -o ./bin/gensin -lm ${CFLAGS} ./bin/info: ./source/.o/info.o ./source/.o/fileio.o ${CC} ./source/.o/info.o ./source/.o/fileio.o -o ./bin/info ${CFLAGS} ./bin/split: ./source/.o/split.o ./source/.o/fileio.o ${CC} ./source/.o/split.o ./source/.o/fileio.o -o ./bin/split ${CFLAGS} ./bin/combine: ./source/.o/combine.o ./source/.o/fileio.o ${CC} ./source/.o/combine.o ./source/.o/fileio.o -o ./bin/combine ${CFLAGS} ./bin/audioutil: ./source/.o/audioutil.o ./source/.o/fileio.o ${CC} ./source/.o/audioutil.o ./source/.o/fileio.o -o ./bin/audioutil ${CFLAGS} ./bin/static: ./source/.o/static.o ${CC} ./source/.o/static.o -o ./bin/static ${CFLAGS} ./bin/mix: ./source/.o/mix.o ./source/.o/fileio.o ${CC} ./source/.o/mix.o ./source/.o/fileio.o -o ./bin/mix ${CFLAGS} ./bin/gendtmf.sh: ./source/gendtmf.sh cp ./source/gendtmf.sh ./bin/gendtmf.sh ./bin/gendtmf2.sh: ./source/gendtmf2.sh cp ./source/gendtmf2.sh ./bin/gendtmf2.sh ./bin/FHighLow.class: ./source/FHighLow.java javac -sourcepath ./source/ ./source/FHighLow.java -d ./bin/ javah -classpath ./bin/ -jni -d ./source/ FHighLow ./bin/libfourier.so: ./source/FHighLow.c ./source/FHighLow.h ./source/fileio.h gcc -shared -I/usr/lib/jvm/java-6-sun/include/ -I/usr/lib/jvm/java-6-sun/include/linux/ ./source/FHighLow.c ./source/fileio.c -o ./bin/libfourier.so ./bin/reverb: ./source/.o/reverb.o ./source/.o/fileio.o ${CC} ./source/.o/reverb.o ./source/.o/fileio.o -o ./bin/reverb ${CFLAGS} ./bin/dtmf: ./source/.o/dtmf.o ./source/.o/fileio.o ${CC} ./source/.o/dtmf.o ./source/.o/fileio.o -o ./bin/dtmf -lm ${CFLAGS} ./source/.o/gensin.o: ./source/gensin.c ./source/header.h ${CC} -c ./source/gensin.c -o ./source/.o/gensin.o ${CFLAGS} ./source/.o/info.o: ./source/info.c ./source/header.h ./source/fileio.h ${CC} -c ./source/info.c -o ./source/.o/info.o ${CFLAGS} ./source/.o/split.o: ./source/split.c ./source/header.h ./source/fileio.h ${CC} -c ./source/split.c -o ./source/.o/split.o ${CFLAGS} ./source/.o/combine.o: ./source/combine.c ./source/header.h ./source/fileio.h ${CC} -c ./source/combine.c -o ./source/.o/combine.o ${CFLAGS} ./source/.o/audioutil.o: ./source/audioutil.c ./source/header.h ./source/fileio.h ${CC} -c ./source/audioutil.c -o ./source/.o/audioutil.o ${CFLAGS} ./source/.o/fileio.o: ./source/fileio.c ./source/header.h ./source/fileio.h ${CC} -c ./source/fileio.c -o ./source/.o/fileio.o ${CFLAGS} ./source/.o/static.o: ./source/static.c ./source/header.h ${CC} -c ./source/static.c -o ./source/.o/static.o ${CFLAGS} ./source/.o/mix.o: ./source/mix.c ./source/header.h ./source/fileio.h ${CC} -c ./source/mix.c -o ./source/.o/mix.o ${CFLAGS} ./source/.o/dtmf.o: ./source/dtmf.c ./source/header.h ./source/fileio.h ${CC} -c ./source/dtmf.c -o ./source/.o/dtmf.o ${CFLAGS} ./source/.o/reverb.o: ./source/reverb.c ./source/header.h ./source/fileio.h ${CC} -c ./source/reverb.c -o ./source/.o/reverb.o ${CFLAGS} clean: cleandist rm -f ./source/.o/* rm -f ./source/*~ rm -f ./docs/*~ rm -f ./*~ cleandist: rm -f ./bin/*