Makefile 474 B

1234567891011121314151617181920212223242526
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../../build/Makefile.conf
  4. all: example
  5. .PHONY: example
  6. igl_lib=../../
  7. eigen=-I$(DEFAULT_PREFIX)/include/eigen3 -I$(DEFAULT_PREFIX)/include/eigen3/unsupported
  8. #CFLAGS+=-g
  9. CFLAGS+=-Os -DNDEBUG
  10. inc=-I$(igl_lib)/include $(eigen)
  11. lib=-L$(igl_lib)/lib -ligl
  12. example: example.o
  13. g++ $(CFLAGS) -o example example.o $(lib)
  14. example.o: example.cpp
  15. g++ $(CFLAGS) -c example.cpp -o example.o $(inc)
  16. clean:
  17. rm -f example.o
  18. rm -f example