mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-07-19 05:24:29 -04:00
made threadsafe
This commit is contained in:
35
Makefile
35
Makefile
@ -1,8 +1,4 @@
|
||||
KFVER=1_2_9
|
||||
|
||||
DISTDIR=kiss_fft_v$(KFVER)
|
||||
TARBALL=kiss_fft_v$(KFVER).tar.gz
|
||||
ZIPFILE=kiss_fft_v$(KFVER).zip
|
||||
KFVER=129
|
||||
|
||||
doc:
|
||||
@echo "Start by reading the README file. If you want to build and test lots of stuff, do a 'make testall'"
|
||||
@ -10,36 +6,25 @@ doc:
|
||||
|
||||
testall:
|
||||
# The simd and int32_t types may or may not work on your machine
|
||||
export DATATYPE=simd && cd test && make test
|
||||
export DATATYPE=int32_t && cd test && make test
|
||||
export DATATYPE=int16_t && cd test && make test
|
||||
export DATATYPE=float && cd test && make test
|
||||
export DATATYPE=double && cd test && make test
|
||||
make -C test DATATYPE=simd CFLAGADD="$(CFLAGADD)" test
|
||||
make -C test DATATYPE=int32_t CFLAGADD="$(CFLAGADD)" test
|
||||
make -C test DATATYPE=int16_t CFLAGADD="$(CFLAGADD)" test
|
||||
make -C test DATATYPE=float CFLAGADD="$(CFLAGADD)" test
|
||||
make -C test DATATYPE=double CFLAGADD="$(CFLAGADD)" test
|
||||
|
||||
tarball: clean
|
||||
tar --exclude CVS --exclude .cvsignore --exclude $(TARBALL) -cvzf $(TARBALL) .
|
||||
hg archive -r v$(KFVER) -t tgz kiss_fft$(KFVER).tar.gz
|
||||
hg archive -r v$(KFVER) -t zip kiss_fft$(KFVER).zip
|
||||
|
||||
clean:
|
||||
cd test && make clean
|
||||
cd tools && make clean
|
||||
rm -f kiss_fft*.tar.gz *~ *.pyc kiss_fft*.zip
|
||||
rm -rf $(DISTDIR)
|
||||
|
||||
dist: tarball
|
||||
mkdir $(DISTDIR)
|
||||
cd $(DISTDIR) && tar -zxf ../$(TARBALL)
|
||||
rm $(TARBALL)
|
||||
tar -czf $(TARBALL) $(DISTDIR)
|
||||
zip -r $(ZIPFILE) $(DISTDIR)
|
||||
rm -rf $(DISTDIR)
|
||||
|
||||
upload: dist
|
||||
ncftpput upload.sourceforge.net incoming $(ZIPFILE) $(TARBALL)
|
||||
|
||||
asm: kiss_fft.s
|
||||
|
||||
kiss_fft.s: kiss_fft.c kiss_fft.h _kiss_fft_guts.h
|
||||
[ -e kiss_fft.s ] && mv kiss_fft.s kiss_fft.s~ || true
|
||||
gcc -S kiss_fft.c -O3 -march=pentiumpro -ffast-math -fomit-frame-pointer -dA -fverbose-asm
|
||||
gcc -o kiss_fft_short.s -S kiss_fft.c -O3 -march=pentiumpro -ffast-math -fomit-frame-pointer -dA -fverbose-asm -DFIXED_POINT
|
||||
gcc -S kiss_fft.c -O3 -mtune=native -ffast-math -fomit-frame-pointer -unroll-loops -dA -fverbose-asm
|
||||
gcc -o kiss_fft_short.s -S kiss_fft.c -O3 -mtune=native -ffast-math -fomit-frame-pointer -dA -fverbose-asm -DFIXED_POINT
|
||||
[ -e kiss_fft.s~ ] && diff kiss_fft.s~ kiss_fft.s || true
|
||||
|
Reference in New Issue
Block a user