Makefile 369 B

123456789101112131415161718192021
  1. .PHONY: all
  2. all: example
  3. .PHONY: example
  4. igl_lib=../../
  5. lib=-lAntTweakBar -framework AppKit -L$(igl_lib)/lib -ligl
  6. inc=-I$(igl_lib)/include
  7. example: example.o
  8. g++ $(CFLAGS) -o example example.o -framework OpenGL -framework GLUT $(lib)
  9. rm example.o
  10. example.o: example.cpp
  11. g++ $(CFLAGS) -c example.cpp -o example.o $(inc)
  12. clean:
  13. rm -f example.o
  14. rm -f example