Makefile 371 B

123456789101112131415161718192021222324
  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. INC=$(LIBIGL_INC)
  9. LIB=$(OPENGL_LIB) $(GLUT_LIB) $(LIBIGL_LIB)
  10. example: example.o
  11. g++ $(CFLAGS) -o example example.o $(LIB)
  12. example.o: example.cpp
  13. g++ $(CFLAGS) $(deps) -c example.cpp -o example.o $(INC)
  14. clean:
  15. rm -f example.o
  16. rm -f example