Makefile 299 B

123456789101112131415161718192021
  1. .PHONY: all
  2. all: example
  3. .PHONY: example
  4. igl_lib=../../
  5. CFLAGS=-g
  6. inc=-I$(igl_lib)/include
  7. lib=-L$(igl_lib)/lib -ligl
  8. example: example.o
  9. g++ $(CFLAGS) -o example example.o $(lib)
  10. example.o: example.cpp
  11. g++ $(CFLAGS) -c example.cpp -o example.o $(inc)
  12. clean:
  13. rm -f example.o
  14. rm -f example