goat3dgfx

diff examples/viewscn/Makefile @ 16:f61cc1df533c

added viewscn example (under dev)
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 30 Nov 2013 20:53:26 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/viewscn/Makefile	Sat Nov 30 20:53:26 2013 +0200
     1.3 @@ -0,0 +1,19 @@
     1.4 +src = $(wildcard src/*.cc)
     1.5 +obj = $(src:.cc=.o)
     1.6 +bin = viewscn
     1.7 +
     1.8 +CXXFLAGS = -pedantic -Wall -g
     1.9 +LDFLAGS = $(libgl) -lgoat3dgfx -lvmath
    1.10 +
    1.11 +ifeq ($(shell uname -s), Darwin)
    1.12 +	libgl = -framework OpenGL -framework GLUT -lGLEW
    1.13 +else
    1.14 +	libgl = -lGL -lGLU -lglut -lGLEW
    1.15 +endif
    1.16 +
    1.17 +$(bin): $(obj)
    1.18 +	$(CXX) -o $@ $(obj) $(LDFLAGS)
    1.19 +
    1.20 +.PHONY: clean
    1.21 +clean:
    1.22 +	rm -f $(obj) $(bin)