Makefile 518 B

123456789101112131415161718192021222324252627
  1. all: example1
  2. # Shared flags etc.
  3. include ../../Makefile.conf
  4. igl_lib=../../
  5. eigen_lib=$(OPT)/local/include/eigen3/
  6. CFLAGS=-g
  7. inc=-I$(igl_lib)/include -I$(eigen_lib)
  8. lib=-L$(igl_lib)/lib -ligl
  9. matlab_inc=-I$(MATLAB)/extern/include
  10. matlab_lib=-L$(MATLAB)/bin/maci64/ -leng -lmx
  11. example1: example1.o
  12. g++ $(CFLAGS) -o example1 example1.o $(OPENGL_LIB) $(GLUT_LIB) $(lib)
  13. example1.o: example1.cpp
  14. g++ $(CFLAGS) -c example1.cpp -o example1.o $(inc)
  15. clean:
  16. rm -f example1.o
  17. rm -f example1
  18. rm -f bunny_out.off