Makefile 434 B

12345678910111213141516171819202122
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../Makefile.conf
  4. all: example
  5. .PHONY: example
  6. CFLAGS+=-O3
  7. INC=$(LIBIGL_INC) $(ANTTWEAKBAR_INC) $(EIGEN3_INC)
  8. LIB=$(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB) $(LIBIGL_LIB)
  9. example: example.o
  10. g++ $(OPENMP) $(AFLAGS) $(CFLAGS) -o example example.o $(LIB)
  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