graphene

annotate test/Makefile @ 1:f85a59195206

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