Makefile 549 B

123456789101112131415161718192021222324252627
  1. .PHONY: all
  2. all: example
  3. # Shared flags etc.
  4. include ../../build/Makefile.conf
  5. .PHONY: example
  6. igl_lib=../../
  7. CFLAGS+=-g -Wall
  8. #deps=-MMD -MF depends.txt
  9. EIGEN3_INC=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
  10. inc=-I$(igl_lib)/include $(EIGEN3_INC)
  11. lib=$(OPENGL_LIB) $(GLUT_LIB) -L$(igl_lib)/lib -ligl
  12. example: example.o
  13. g++ $(CFLAGS) -o example example.o $(lib)
  14. example.o: example.cpp
  15. g++ $(CFLAGS) $(deps) -c example.cpp -o example.o $(inc)
  16. clean:
  17. rm -f example.o
  18. rm -f example
  19. rm -f depends.txt