graphene

view test/Makefile @ 1:f85a59195206

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 24 Jul 2015 01:28:00 +0300
parents
children
line source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 bin = test
5 gphroot = ..
7 CXXFLAGS = -pedantic -Wall -g -I$(gphroot)/src
8 LDFLAGS = -L$(gphroot) -Wl,-rpath=$(gphroot) -lgraphene3d $(libgl)
10 ifeq ($(shell uname -s), Darwin)
11 libgl = -framework OpenGL -framework GLUT -lGLEW
12 else
13 libgl = -lGL -lGLU -lglut -lGLEW
14 endif
16 $(bin): $(obj)
17 $(CXX) -o $@ $(obj) $(LDFLAGS)
19 .PHONY: clean
20 clean:
21 rm -f $(obj) $(bin)