coeng

view Makefile @ 2:4a1c9597f4d3

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