coeng
view Makefile @ 4:49a2e70ac455
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 10 Feb 2015 17:21:30 +0200 |
parents | 66d1762eb203 |
children | 2f872a179914 |
line source
1 ccsrc = $(wildcard src/*.cc)
2 obj = $(ccsrc:.cc=.o)
3 bin = test
5 warn = -pedantic -Wall
6 dbg = -g
8 CXXFLAGS = -std=c++11 $(warn) $(dbg)
9 LDFLAGS = $(libgl) -lm -lvmath -lpthread
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)