volmetrics

annotate Makefile @ 36:1df14c5ffa71

conversion to Qt
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 06 Feb 2015 22:39:51 +0200
parents 40febfed6cff
children
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
nuclear@35 6 warn = -pedantic -Wall
eleni@0 7 dbg = -g
eleni@0 8 opt = -O0
eleni@0 9 inc = -Isrc -I/usr/local/include -I/usr/local/lib
eleni@0 10
eleni@0 11 CXX = g++
nuclear@35 12 CXXFLAGS = -std=c++11 $(warn) $(dbg) $(opt) $(inc)
nuclear@35 13 LDFLAGS = $(libgl) -limago -lm
nuclear@35 14
nuclear@35 15 ifeq ($(shell uname -s), Darwin)
nuclear@35 16 libgl = -framework OpenGL -framework GLUT -lGLEW -lglui
nuclear@35 17 warn += -Wno-deprecated-declarations
nuclear@35 18 else
nuclear@35 19 libgl = -lGL -lGLU -lglut -lGLEW -lglui
nuclear@35 20 endif
eleni@0 21
eleni@0 22 $(bin): $(obj)
eleni@0 23 $(CXX) -o $@ $(obj) $(LDFLAGS)
eleni@0 24
eleni@0 25 -include $(dep)
eleni@0 26
eleni@0 27 %.d: %.cc
eleni@0 28 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@
eleni@0 29
eleni@0 30 .PHONY: clean
eleni@0 31 clean:
eleni@0 32 rm -f $(obj) $(bin) $(dep)