Makefile 377 B

123456789101112131415161718192021
  1. .PHONY: all
  2. # Shared flags etc.
  3. include ../Makefile.conf
  4. all: example
  5. .PHONY: example
  6. inc=$(LIBIGL_INC) $(ANTTWEAKBAR_INC)
  7. lib=$(LIBIGL_LIB) $(OPENGL_LIB) $(GLUT_LIB) $(ANTTWEAKBAR_LIB)
  8. CFLAGS+=-g
  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