Makefile 595 B

12345678910111213141516171819202122232425
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../Makefile.conf
  4. LIBIGL_LIB+=-liglembree
  5. all: example
  6. .PHONY: example
  7. EMBREE=$(LIBIGL)/external/embree
  8. EMBREE_INC=-I$(EMBREE)/ -I$(EMBREE)/include
  9. EMBREE_LIB=-L$(EMBREE)/build -lembree -lsys
  10. INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC) $(EMBREE_INC)
  11. LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB) $(EMBREE_LIB)
  12. example: example.o
  13. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) $(LIB) -o example example.o
  14. example.o: example.cpp
  15. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c example.cpp -o example.o $(INC)
  16. clean:
  17. rm -f example.o
  18. rm -f example