Makefile 313 B

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