scenefile

view scnviewgl/Makefile @ 4:d251485d33d8

scnviewgl makefile
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sat, 21 Jan 2012 04:14:38 +0200
parents
children
line source
1 obj = scnviewgl.o
2 bin = scnviewgl
4 CFLAGS = -pedantic -Wall -g -I../src
5 LDFLAGS = -L.. -lscenefile $(libgl) -lm
7 ifeq ($(shell uname -s), Darwin)
8 libgl = -framework OpenGL -framework GLUT
9 else
10 libgl = -lGL -lGLU -lglut
11 endif
13 $(bin): $(obj)
14 $(CC) -o $@ $(obj) $(LDFLAGS)
16 .PHONY: clean
17 clean:
18 rm -f $(obj) $(bin)