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