Makefile 417 B

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