tesspot

view Makefile @ 1:befe01bbd27f

tessellated the teapot
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 02 Dec 2012 17:16:32 +0200
parents
children 178a9e3c3c8c
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = test
5 CFLAGS = -pedantic -Wall -g
6 LDFLAGS = $(libgl)
8 ifeq ($(shell uname -s), Darwin)
9 libgl = -framework OpenGL -framework GLUT -lglew
10 else
11 libgl = -lGL -lGLU -lglut -lGLEW
12 endif
14 $(bin): $(obj)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)