mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 21:20:27 -04:00
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
KFVER=1_2_6
|
|
|
|
DISTDIR=kiss_fft_v$(KFVER)
|
|
TARBALL=kiss_fft_v$(KFVER).tar.gz
|
|
ZIPFILE=kiss_fft_v$(KFVER).zip
|
|
|
|
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
|
|
|
|
tarball: clean
|
|
tar --exclude CVS --exclude .cvsignore --exclude $(TARBALL) -cvzf $(TARBALL) .
|
|
|
|
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
|
|
[ -e kiss_fft.s~ ] && diff kiss_fft.s~ kiss_fft.s || true
|