Makefile 435 B

1234567891011121314151617181920212223242526
  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=-I$(igl_lib)/include
  10. lib=$(OPENGL_LIB) $(GLUT_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) $(deps) -c example.cpp -o example.o $(inc)
  15. clean:
  16. rm -f example.o
  17. rm -f example
  18. rm -f depends.txt