Makefile 430 B

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