Makefile 418 B

123456789101112131415161718192021222324
  1. all: example1
  2. # Shared flags etc.
  3. include ../../build/Makefile.conf
  4. igl_lib=../../
  5. eigen_lib=$(DEFAULT_PREFIX)/include/eigen3/
  6. CFLAGS+=-g
  7. inc=-I$(igl_lib)/include -I$(eigen_lib)
  8. lib=-L$(igl_lib)/lib -ligl
  9. example1: example1.o
  10. g++ $(CFLAGS) -o example1 example1.o $(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