volmetrics
annotate Makefile @ 22:4e120dcd55ec
added shaders that just draw
author | Eleni Maria Stea <elene.mst@gmail.com> |
---|---|
date | Thu, 24 Apr 2014 20:47:48 +0300 |
parents | 1fbbe10c8e08 |
children | df4a277adb82 |
rev | line source |
---|---|
eleni@0 | 1 src = $(wildcard src/*.cc src/math/*.cc src/shaders/*.cc) |
eleni@0 | 2 obj = $(src:.cc=.o) |
eleni@0 | 3 dep = $(obj:.o=.d) |
eleni@0 | 4 bin = test1 |
eleni@0 | 5 |
eleni@0 | 6 dbg = -g |
eleni@0 | 7 opt = -O0 |
eleni@0 | 8 inc = -Isrc -I/usr/local/include -I/usr/local/lib |
eleni@0 | 9 |
eleni@0 | 10 CXX = g++ |
elene@4 | 11 CXXFLAGS = -std=c++11 -pedantic -Wall $(dbg) $(opt) $(inc) |
elene@9 | 12 LDFLAGS = -lGL -lGLU -lGLEW -lglut -limago -lm -lmetasurf -lglui |
eleni@0 | 13 |
eleni@0 | 14 $(bin): $(obj) |
eleni@0 | 15 $(CXX) -o $@ $(obj) $(LDFLAGS) |
eleni@0 | 16 |
eleni@0 | 17 -include $(dep) |
eleni@0 | 18 |
eleni@0 | 19 %.d: %.cc |
eleni@0 | 20 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
eleni@0 | 21 |
eleni@0 | 22 .PHONY: clean |
eleni@0 | 23 clean: |
eleni@0 | 24 rm -f $(obj) $(bin) $(dep) |