Makefile 289 B

12345678910111213141516171819202122
  1. .PHONY: all
  2. all: example
  3. .PHONY: example
  4. igl_lib=../../
  5. CFLAGS=-g -Wall
  6. inc=-I$(igl_lib)
  7. lib=
  8. example: example.o
  9. g++ $(CFLAGS) -o example example.o $(lib)
  10. rm example.o
  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