volmetrics

diff Makefile @ 0:88d390af583f

Image loader
author Eleni Maria Stea <eleni@mutantstargoat.com>
date Sat, 11 Jan 2014 17:22:36 +0200
parents
children 1fbbe10c8e08
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Makefile	Sat Jan 11 17:22:36 2014 +0200
     1.3 @@ -0,0 +1,24 @@
     1.4 +src = $(wildcard src/*.cc src/math/*.cc src/shaders/*.cc)
     1.5 +obj = $(src:.cc=.o)
     1.6 +dep = $(obj:.o=.d)
     1.7 +bin = test1
     1.8 +
     1.9 +dbg = -g
    1.10 +opt = -O0
    1.11 +inc = -Isrc -I/usr/local/include -I/usr/local/lib
    1.12 +
    1.13 +CXX = g++
    1.14 +CXXFLAGS = -pedantic -Wall $(dbg) $(opt) $(inc)
    1.15 +LDFLAGS = -lGL -lGLU -lGLEW -lglut -limago -lm
    1.16 +
    1.17 +$(bin): $(obj)
    1.18 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.19 +
    1.20 +-include $(dep)
    1.21 +
    1.22 +%.d: %.cc
    1.23 +	@$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
    1.24 +
    1.25 +.PHONY: clean
    1.26 +clean:
    1.27 +	rm -f $(obj) $(bin) $(dep)