coeng

annotate Makefile @ 4:49a2e70ac455

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