Mercurial > hg > qm-dsp
comparison ext/kissfft/Makefile @ 409:1f1999b0f577
Bring in kissfft into this repo (formerly a subrepo, but the remote is not responding)
| author | Chris Cannam <c.cannam@qmul.ac.uk> |
|---|---|
| date | Tue, 21 Jul 2015 07:34:15 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 408:5316fa4b0f33 | 409:1f1999b0f577 |
|---|---|
| 1 KFVER=130 | |
| 2 | |
| 3 doc: | |
| 4 @echo "Start by reading the README file. If you want to build and test lots of stuff, do a 'make testall'" | |
| 5 @echo "but be aware that 'make testall' has dependencies that the basic kissfft software does not." | |
| 6 @echo "It is generally unneeded to run these tests yourself, unless you plan on changing the inner workings" | |
| 7 @echo "of kissfft and would like to make use of its regression tests." | |
| 8 | |
| 9 testall: | |
| 10 # The simd and int32_t types may or may not work on your machine | |
| 11 make -C test DATATYPE=simd CFLAGADD="$(CFLAGADD)" test | |
| 12 make -C test DATATYPE=int32_t CFLAGADD="$(CFLAGADD)" test | |
| 13 make -C test DATATYPE=int16_t CFLAGADD="$(CFLAGADD)" test | |
| 14 make -C test DATATYPE=float CFLAGADD="$(CFLAGADD)" test | |
| 15 make -C test DATATYPE=double CFLAGADD="$(CFLAGADD)" test | |
| 16 echo "all tests passed" | |
| 17 | |
| 18 tarball: clean | |
| 19 hg archive -r v$(KFVER) -t tgz kiss_fft$(KFVER).tar.gz | |
| 20 hg archive -r v$(KFVER) -t zip kiss_fft$(KFVER).zip | |
| 21 | |
| 22 clean: | |
| 23 cd test && make clean | |
| 24 cd tools && make clean | |
| 25 rm -f kiss_fft*.tar.gz *~ *.pyc kiss_fft*.zip | |
| 26 | |
| 27 asm: kiss_fft.s | |
| 28 | |
| 29 kiss_fft.s: kiss_fft.c kiss_fft.h _kiss_fft_guts.h | |
| 30 [ -e kiss_fft.s ] && mv kiss_fft.s kiss_fft.s~ || true | |
| 31 gcc -S kiss_fft.c -O3 -mtune=native -ffast-math -fomit-frame-pointer -unroll-loops -dA -fverbose-asm | |
| 32 gcc -o kiss_fft_short.s -S kiss_fft.c -O3 -mtune=native -ffast-math -fomit-frame-pointer -dA -fverbose-asm -DFIXED_POINT | |
| 33 [ -e kiss_fft.s~ ] && diff kiss_fft.s~ kiss_fft.s || true |
