summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-05-12 23:38:38 +0000
committerLennart Poettering <lennart@poettering.net>2007-05-12 23:38:38 +0000
commita64e85acf96bc0c55363fe55c9e9116aef2a8584 (patch)
tree69ec57b46bdebe0e7496bf11ea9a54cdf5806904 /Makefile
parent2eb6dec8e9f0114bdbad59cf8f11f197f8fdaaf3 (diff)
resampling works
git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@4 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index ab247e0..96700a7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,21 @@
-CFLAGS=-Wall -O0 -g -W -Wno-unused-parameter
+CFLAGS=-Wall -O0 -g -W -Wno-unused-parameter `pkg-config --cflags liboil-0.3` -DRANDOM_PREFIX=sa -DOUTSIDE_SPEEX -D_GNU_SOURCE
+LIBS=-lm `pkg-config --libs liboil-0.3`
-all: common.o malloc.o test-sine.o oss.o
- $(CC) $(CFLAGS) -o $@ $^
+test-sine: common.o malloc.o test-sine.o oss.o bbuffer.o format.o volscale.o byteswap.o continued-fraction.o zero.o add.o speex/resample.o resample.o interleave.o converter.o g711.o
+ $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
*.o: *.h
+indent:
+ indent -brf -kr -nbbo -nbc -ip0 -ppi 4 -cs -nbfde -npsl -br -brs -bap -i4 -bs -cdw -ce -npcs -nbfda -hnl -cli4 -nut -ci8 < oss.c
+# astyle --indent=spaces=4 --brackets=attach --indent-switches --max-instatement-indent=40 --pad=oper --unpad=paren --convert-tabs --mode=c < oss.c
+
clean:
- rm -f *.o
+ rm -f *.o meta-name-table.h
+
+
+meta-name-table.h: meta-name-table.gperf Makefile
+ gperf -t -N lookup_meta_name -H hash_meta_name -p -C < $< > $@
+
+fixme:
+ find -name '*.c' -exec fgrep -H -A 3 -B 3 -i FIXME \{\} \;