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