Makefile 1022 B

123456789101112131415161718192021222324252627282930313233343536
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../../build/Makefile.conf
  4. all: example
  5. .PHONY: example
  6. LIBIGL=../../
  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. #EMBREE=$(LIBIGL)/external/embree
  11. #EMBREE_INC=-I$(EMBREE)/rtcore -I$(EMBREE)/common
  12. #EMBREE_LIB=-L$(EMBREE)/build -lrtcore -lsys
  13. EMBREE=$(LIBIGL)/external/embree
  14. EMBREE_INC=-I$(EMBREE)/ -I$(EMBREE)/embree
  15. EMBREE_LIB=-L$(EMBREE)/build -lembree -lsys
  16. ANTTWEAKBAR_INC=-I$(LIBIGL)/external/AntTweakBar/include
  17. ANTTWEAKBAR_LIB=-L$(LIBIGL)/external/AntTweakBar/lib -lAntTweakBar -framework AppKit
  18. INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC) $(EMBREE_INC)
  19. LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB) $(EMBREE_LIB)
  20. example: example.o
  21. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) $(LIB) -o example example.o
  22. example.o: example.cpp
  23. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c example.cpp -o example.o $(INC)
  24. clean:
  25. rm -f example.o
  26. rm -f example