graphene
view test/Makefile @ 3:d71b4e899e08
minimal matrix and vec4
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 25 Jul 2015 05:52:39 +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)