vrfileman
view Makefile @ 1:9e3d77dad51b
moving on...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 31 Jan 2015 20:01:35 +0200 |
parents | |
children | 282da6123fd4 |
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)
13 # system-specific stuff
14 ifeq ($(shell uname -s), Darwin)
15 libgl = -framework OpenGL -framework GLUT -lGLEW
16 else
17 libgl = -lGL -lGLU -lglut -lGLEW
18 endif
21 $(bin): $(obj)
22 $(CXX) -o $@ $(obj) $(LDFLAGS)
24 -include $(dep)
26 %.d: %.cc
27 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@