coeng

annotate Makefile @ 2:4a1c9597f4d3

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 05 Feb 2015 11:04:07 +0200
parents
children 66d1762eb203
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@2 5 CXXFLAGS = -pedantic -Wall -g
nuclear@2 6 LDFLAGS = $(libgl) -lm -lvmath
nuclear@2 7
nuclear@2 8 ifeq ($(shell uname -s), Darwin)
nuclear@2 9 libgl = -framework OpenGL -framework GLUT -lGLEW
nuclear@2 10 else
nuclear@2 11 libgl = -lGL -lGLU -lglut -lGLEW
nuclear@2 12 endif
nuclear@2 13
nuclear@2 14 $(bin): $(obj)
nuclear@2 15 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@2 16
nuclear@2 17 .PHONY: clean
nuclear@2 18 clean:
nuclear@2 19 rm -f $(obj) $(bin)