Mercurial > hg > constant-q-cpp
comparison src/ext/kissfft/Makefile @ 174:5ed6e970541b
Remote location for this subrepo is unresponsive, include sources in this repo instead
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 17 Jul 2015 15:48:01 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
173:223f2a8c4f65 | 174:5ed6e970541b |
---|---|
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 |