Makefile 349 B

12345678910111213141516171819202122
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../Makefile.conf
  4. all: example
  5. .PHONY: example
  6. #CFLAGS+=-g
  7. CFLAGS+=-Os -DNDEBUG
  8. inc=$(LIBIGL_INC) $(EIGEN3_INC)
  9. lib=$(LIBIGL_LIB)
  10. example: example.o
  11. g++ $(CFLAGS) -o example example.o $(lib)
  12. example.o: example.cpp
  13. g++ $(CFLAGS) -c example.cpp -o example.o $(inc)
  14. clean:
  15. rm -f example.o
  16. rm -f example