coeng

annotate Makefile @ 3:66d1762eb203

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 05 Feb 2015 23:20:20 +0200
parents 4a1c9597f4d3
children 49a2e70ac455
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@3 8 CXXFLAGS = $(warn) $(dbg)
nuclear@2 9 LDFLAGS = $(libgl) -lm -lvmath
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)