You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4KB

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