goat3dgfx

annotate examples/cubemap/Makefile @ 29:9d581abd0bfb

merged
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 02 Mar 2014 02:18:15 +0200
parents
children
rev   line source
nuclear@14 1 src = $(wildcard src/*.cc)
nuclear@14 2 obj = $(src:.cc=.o)
nuclear@14 3 bin = cubemap
nuclear@14 4
nuclear@14 5 CXXFLAGS = -pedantic -Wall -g
nuclear@14 6 LDFLAGS = $(libgl) -lgoat3dgfx -lvmath
nuclear@14 7
nuclear@14 8 ifeq ($(shell uname -s), Darwin)
nuclear@14 9 libgl = -framework OpenGL -framework GLUT -lGLEW
nuclear@14 10 else
nuclear@14 11 libgl = -lGL -lGLU -lglut -lGLEW
nuclear@14 12 endif
nuclear@14 13
nuclear@14 14 $(bin): $(obj)
nuclear@14 15 $(CXX) -o $@ $(obj) $(LDFLAGS)
nuclear@14 16
nuclear@14 17 .PHONY: clean
nuclear@14 18 clean:
nuclear@14 19 rm -f $(obj) $(bin)