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