Makefile 393 B

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