Makefile 767 B

12345678910111213141516171819202122232425262728
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../Makefile.conf
  4. LIBIGL_LIB=+liglcgal
  5. all: example
  6. .PHONY: example
  7. CGAL=/opt/local/
  8. CGAL_LIB=-L$(CGAL)/lib -lCGAL -lCGAL_Core -lgmp -lmpfr -lboost_thread-mt -lboost_system-mt
  9. CGAL_INC=-I$(CGAL)/include -I/usr/include/
  10. # This is absolutely necessary for Exact Construction
  11. CGAL_FLAGS=-frounding-math -fsignaling-nans
  12. INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC) $(EMBREE_INC) $(CGAL_INC)
  13. LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB) $(EMBREE_LIB) $(CGAL_LIB)
  14. CFLAGS+=$(CGAL_FLAGS)
  15. example: example.o
  16. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) $(LIB) -o example example.o
  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