vrfileman

view Makefile @ 2:282da6123fd4

lalalala
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Feb 2015 12:51:10 +0200
parents dca518e371cf
children
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 dep = $(obj:.o=.d)
4 bin = vrfileman
6 warn = -pedantic -Wall
7 dbg = -g
9 CXXFLAGS = $(warn) $(opt) $(dbg) $(inc)
10 LDFLAGS = $(libgl) -lvmath
13 ifeq ($(shell uname -s), Darwin)
14 libgl = -framework OpenGL -framework GLUT -lGLEW
15 else
16 libgl = -lGL -lGLU -lglut -lGLEW
17 endif
20 $(bin): $(obj)
21 $(CXX) -o $@ $(obj) $(LDFLAGS)
23 -include $(dep)
25 %.d: %.cc
26 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@