coeng

view Makefile @ 3:66d1762eb203

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 05 Feb 2015 23:20:20 +0200
parents 4a1c9597f4d3
children 49a2e70ac455
line source
1 ccsrc = $(wildcard src/*.cc)
2 obj = $(ccsrc:.cc=.o)
3 bin = test
5 warn = -pedantic -Wall
6 dbg = -g
8 CXXFLAGS = $(warn) $(dbg)
9 LDFLAGS = $(libgl) -lm -lvmath
11 ifeq ($(shell uname -s), Darwin)
12 libgl = -framework OpenGL -framework GLUT -lGLEW
13 warn += -Wno-deprecated-declarations
14 else
15 libgl = -lGL -lGLU -lglut -lGLEW
16 endif
18 $(bin): $(obj)
19 $(CXX) -o $@ $(obj) $(LDFLAGS)
21 .PHONY: clean
22 clean:
23 rm -f $(obj) $(bin)