scenefile

diff scnviewgl/Makefile @ 4:d251485d33d8

scnviewgl makefile
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sat, 21 Jan 2012 04:14:38 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scnviewgl/Makefile	Sat Jan 21 04:14:38 2012 +0200
     1.3 @@ -0,0 +1,18 @@
     1.4 +obj = scnviewgl.o
     1.5 +bin = scnviewgl
     1.6 +
     1.7 +CFLAGS = -pedantic -Wall -g -I../src
     1.8 +LDFLAGS = -L.. -lscenefile $(libgl) -lm
     1.9 +
    1.10 +ifeq ($(shell uname -s), Darwin)
    1.11 +	libgl = -framework OpenGL -framework GLUT
    1.12 +else
    1.13 +	libgl = -lGL -lGLU -lglut
    1.14 +endif
    1.15 +
    1.16 +$(bin): $(obj)
    1.17 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.18 +
    1.19 +.PHONY: clean
    1.20 +clean:
    1.21 +	rm -f $(obj) $(bin)