Makefile 475 B

123456789101112131415161718192021222324
  1. all: example1
  2. igl_lib=../../
  3. eigen_lib=/opt/local/include/eigen3/
  4. CFLAGS=-g
  5. inc=-I$(igl_lib)/include -I$(eigen_lib)
  6. lib=-L$(igl_lib)/lib -ligl
  7. matlab_inc=-I$(MATLAB)/extern/include
  8. matlab_lib=-L$(MATLAB)/bin/maci64/ -leng -lmx
  9. example1: example1.o
  10. g++ $(CFLAGS) -o example1 example1.o -framework OpenGL -framework GLUT $(lib)
  11. example1.o: example1.cpp
  12. g++ $(CFLAGS) -c example1.cpp -o example1.o $(inc)
  13. clean:
  14. rm -f example1.o
  15. rm -f example1
  16. rm -f bunny_out.off