libanim
view example/Makefile @ 14:b6352323cbd5
disable link-time code generation in visual studio
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 30 Apr 2013 05:02:36 +0300 |
parents | |
children | 3c2428cb38f7 |
line source
1 src = $(wildcard *.c)
2 obj = $(src:.c=.o)
3 bin = test
5 CFLAGS = -pedantic -Wall -g -I../src
6 LDFLAGS = -L.. -lanim -lvmath $(libgl) -lm
8 ifeq ($(shell uname -s), Darwin)
9 libgl = -framework OpenGL -framework GLUT
10 else
11 libgl = -lGL -lGLU -lglut
12 endif
14 $(bin): $(obj) ../libanim.a
15 $(CC) -o $@ $(obj) $(LDFLAGS)
17 .PHONY: clean
18 clean:
19 rm -f $(obj) $(bin)