Makefile 402 B

123456789101112131415161718192021222324
  1. .PHONY: all
  2. all: example
  3. .PHONY: example
  4. igl_lib=-I../../
  5. eigen=-I/usr/local/include/eigen3 -I/usr/local/include/eigen3/unsupported
  6. #CFLAGS=-g
  7. CFLAGS=-Os -DNDEBUG
  8. inc=$(igl_lib) $(eigen)
  9. lib=
  10. example: example.o
  11. g++ $(CFLAGS) -o example example.o $(lib)
  12. rm example.o
  13. example.o: example.cpp SparseSolver.h
  14. g++ $(CFLAGS) -c example.cpp -o example.o $(inc)
  15. clean:
  16. rm -f example.o
  17. rm -f example