Makefile 439 B

123456789101112131415161718192021222324
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../../Makefile.conf
  4. all: example
  5. .PHONY: example
  6. igl_lib=../../
  7. APPKIT_LIB =
  8. lib= $(ANTTWEAKBAR_LIB) -L$(igl_lib)/lib -ligl -L$(OPT)/local/lib $(OPENGL_LIB) $(GLUT_LIB)
  9. inc=-I$(igl_lib)/include -I$(OPT)/local/include
  10. example: example.o
  11. g++ $(CFLAGS) -o example example.o $(lib)
  12. example.o: example.cpp
  13. g++ $(CFLAGS) -c example.cpp -o example.o $(inc)
  14. clean:
  15. rm -f example.o
  16. rm -f example