Makefile 816 B

123456789101112131415161718192021222324252627282930
  1. .PHONY: all
  2. # Shared flags etc.
  3. all: example
  4. .PHONY: example
  5. LIBIGL=/usr/local/igl/libigl/
  6. include $(LIBIGL)/build/Makefile.conf
  7. LIBIGL_INC=-I$(LIBIGL)/include
  8. LIBIGL_LIB=-L$(LIBIGL)/lib -ligl -liglembree
  9. EIGEN3_INC=-I/opt/local/include/eigen3 -I/opt/local/include/eigen3/unsupported
  10. CFLAGS+=-std=c++11 -g -Wno-deprecated-declarations
  11. ANTTWEAKBAR_INC=-I$(LIBIGL)/external/AntTweakBar/include
  12. ANTTWEAKBAR_LIB=-L$(LIBIGL)/external/AntTweakBar/lib -lAntTweakBar -framework AppKit
  13. INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC)
  14. LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB)
  15. example: example.o
  16. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -o example example.o $(LIB)
  17. example.o: example.cpp
  18. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c example.cpp -o example.o $(INC)
  19. clean:
  20. rm -f example.o
  21. rm -f example