glamtk
view Makefile @ 5:86ba127ac2f2
trying to put some glamour in the toolkit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 09 Mar 2011 01:13:28 +0200 |
parents | |
children | 5b86b98ee988 |
line source
1 src = $(wildcard *.c src/*.c)
2 obj = $(src:.c=.o)
3 bin = test
5 CC = gcc
6 CFLAGS = -pedantic -Wall -g -Isrc
7 LDFLAGS = $(libgl)
9 ifeq ($(shell uname -s), Darwin)
10 libgl = -framework OpenGL -framework GLUT
11 else
12 libgl = -lGL -lglut
13 endif
15 $(bin): $(obj)
16 $(CC) -o $@ $(obj) $(LDFLAGS)
18 .PHONY: clean
19 clean:
20 rm -f $(obj) $(bin)