vrfileman
view Makefile @ 0:dca518e371cf
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 30 Jan 2015 12:25:16 +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) >$@