graphene

diff test/Makefile @ 1:f85a59195206

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 24 Jul 2015 01:28:00 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/test/Makefile	Fri Jul 24 01:28:00 2015 +0300
     1.3 @@ -0,0 +1,21 @@
     1.4 +src = $(wildcard src/*.cc)
     1.5 +obj = $(src:.cc=.o)
     1.6 +bin = test
     1.7 +
     1.8 +gphroot = ..
     1.9 +
    1.10 +CXXFLAGS = -pedantic -Wall -g -I$(gphroot)/src
    1.11 +LDFLAGS = -L$(gphroot) -Wl,-rpath=$(gphroot) -lgraphene3d $(libgl)
    1.12 +
    1.13 +ifeq ($(shell uname -s), Darwin)
    1.14 +	libgl = -framework OpenGL -framework GLUT -lGLEW
    1.15 +else
    1.16 +	libgl = -lGL -lGLU -lglut -lGLEW
    1.17 +endif
    1.18 +
    1.19 +$(bin): $(obj)
    1.20 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.21 +
    1.22 +.PHONY: clean
    1.23 +clean:
    1.24 +	rm -f $(obj) $(bin)