labyrinth

view Makefile @ 0:8ba79034e8a6

labyrinth example initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 15 Jan 2015 14:59:38 +0200
parents
children 45b91185b298
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = lab
5 sys = $(shell uname -s)
7 libgl_Linux = -lGL -lGLU -lglut
8 libgl_Darwin = -framework OpenGL -framework GLUT
10 CFLAGS = -pedantic -Wall -g
11 LDFLAGS = $(libgl_$(sys)) -lm
13 $(bin): $(obj)
14 $(CC) -o $@ $(obj) $(LDFLAGS)
16 .PHONY: clean
17 clean:
18 rm -f $(obj) $(bin)