graphene
annotate test/Makefile @ 6:9fbbc96e6fbe
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 31 Jul 2015 04:59:28 +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) |