Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 -liglcgal
  9. CGAL=/opt/local/
  10. CGAL_LIB=-L$(CGAL)/lib -lCGAL -lCGAL_Core -lgmp -lmpfr -lboost_thread-mt -lboost_system-mt
  11. CGAL_INC=-I$(CGAL)/include -I/usr/include/
  12. # This is absolutely necessary for Exact Construction
  13. CGAL_FLAGS=-frounding-math -fsignaling-nans
  14. EIGEN3_INC=-I/opt/local/include/eigen3 -I/opt/local/include/eigen3/unsupported
  15. #EMBREE=$(LIBIGL)/external/embree
  16. #EMBREE_INC=-I$(EMBREE)/rtcore -I$(EMBREE)/common
  17. #EMBREE_LIB=-L$(EMBREE)/build -lrtcore -lsys
  18. EMBREE=$(LIBIGL)/external/embree
  19. EMBREE_INC=-I$(EMBREE)/ -I$(EMBREE)/embree
  20. EMBREE_LIB=-L$(EMBREE)/build -lembree -lsys
  21. ANTTWEAKBAR_INC=-I$(LIBIGL)/external/AntTweakBar/include
  22. ANTTWEAKBAR_LIB=-L$(LIBIGL)/external/AntTweakBar/lib -lAntTweakBar -framework AppKit
  23. INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC) $(EMBREE_INC) $(CGAL_INC)
  24. LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB) $(EMBREE_LIB) $(CGAL_LIB)
  25. CFLAGS+=$(CGAL_FLAGS)
  26. example: example.o
  27. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) $(LIB) -o example example.o
  28. example.o: example.cpp
  29. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c example.cpp -o example.o $(INC)
  30. clean:
  31. rm -f example.o
  32. rm -f example