Makefile 503 B

1234567891011121314151617181920
  1. LD_FLAGS =
  2. LD_LIBS = -lasound -lfftw3f -lm -pthread # note single-prec FFTW library
  3. CXX = g++
  4. CXX_FLAGS = -O2
  5. DEBUG_FLAGS = -g
  6. all: sspect
  7. sspect: sspect.cpp Makefile
  8. ${CXX} ${CXX_FLAGS} sspect.cpp -lglut -lGL ${LD_LIBS} -o sspect
  9. debug: sspect.cpp Makefile
  10. ${CXX} ${CXX_FLAGS} ${DEBUG_FLAGS} sspect.cpp -lglut -lGL ${LD_LIBS} -o sspect
  11. clean:
  12. rm -f core *.o sspect
  13. tar: all
  14. (cd ..; tar cvfz sspect.tgz sspect/README.md sspect/Makefile sspect/sspect.cpp sspect/sspect sspect/screenshot.png)