Makefile 458 B

1234567891011121314151617181920
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../../build/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. example: example.o
  9. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) $(LIB) -o example example.o
  10. example.o: example.cpp
  11. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -c example.cpp -o example.o $(INC)
  12. clean:
  13. rm -f example.o
  14. rm -f example