Makefile 382 B

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