tesspot

view Makefile @ 2:178a9e3c3c8c

isolines
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 03 Dec 2012 07:30:39 +0200
parents 72b7f9f2eead
children
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = test
5 CFLAGS = -pedantic -Wall -g -O3 -ffast-math
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)