Makefile 461 B

12345678910111213141516171819202122
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../Makefile.conf
  4. all: example
  5. .PHONY: example
  6. INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC) $(EMBREE_INC)
  7. LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB) $(EMBREE_LIB)
  8. CFLAGS+=-g
  9. example: example.o
  10. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) $(LIB) -o example example.o
  11. example.o: example.cpp
  12. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c example.cpp -o example.o $(INC)
  13. clean:
  14. rm -f example.o
  15. rm -f example