tesspot

annotate Makefile @ 2:178a9e3c3c8c

isolines
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 03 Dec 2012 07:30:39 +0200
parents 72b7f9f2eead
children
rev   line source
nuclear@0 1 src = $(wildcard src/*.c)
nuclear@0 2 obj = $(src:.c=.o)
nuclear@0 3 bin = test
nuclear@0 4
nuclear@2 5 CFLAGS = -pedantic -Wall -g -O3 -ffast-math
nuclear@0 6 LDFLAGS = $(libgl)
nuclear@0 7
nuclear@0 8 ifeq ($(shell uname -s), Darwin)
nuclear@0 9 libgl = -framework OpenGL -framework GLUT -lglew
nuclear@0 10 else
nuclear@0 11 libgl = -lGL -lGLU -lglut -lGLEW
nuclear@0 12 endif
nuclear@0 13
nuclear@0 14 $(bin): $(obj)
nuclear@0 15 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 16
nuclear@0 17 .PHONY: clean
nuclear@0 18 clean:
nuclear@0 19 rm -f $(obj) $(bin)