coeng
view Makefile @ 5:0e5da17d589c
decided to really work on this, so first a slight rename
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Feb 2015 01:35:42 +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)