Makefile 490 B

12345678910111213141516171819202122232425
  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. rm example1.o
  12. example1.o: example1.cpp
  13. g++ $(CFLAGS) -c example1.cpp -o example1.o $(inc)
  14. clean:
  15. rm -f example1.o
  16. rm -f example1
  17. rm -f bunny_out.off