Makefile 418 B

12345678910111213141516171819202122232425
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../Makefile.conf
  4. LIBIGL_LIB+=-liglpng
  5. # YIMG dependency
  6. all: example
  7. .PHONY: example
  8. IGL=../../
  9. inc=$(LIBIGL_INC) $(YIMG_INC) $(EIGEN3_INC)
  10. lib=$(LIBIGL_LIB) $(OPENGL_LIB) $(GLUT_LIB) $(YIMG_LIB)
  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