Makefile 405 B

12345678910111213141516171819202122232425
  1. .PHONY: all
  2. all: example
  3. # Shared flags etc.
  4. include ../../build/Makefile.conf
  5. .PHONY: example
  6. igl_lib=../../
  7. eigen=$(DEFAULT_PREFIX)/include/eigen3
  8. CFLAGS+=-g
  9. inc=-I$(igl_lib)/include -I$(eigen)
  10. lib=-L$(igl_lib)/lib -ligl
  11. example: example.o
  12. g++ $(CFLAGS) -o example example.o $(lib)
  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