libanim

diff example/Makefile @ 8:2fe32e62e2a7

added an example program
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 01 Mar 2013 09:46:53 +0200
parents
children 3c2428cb38f7
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/example/Makefile	Fri Mar 01 09:46:53 2013 +0200
     1.3 @@ -0,0 +1,19 @@
     1.4 +src = $(wildcard *.c)
     1.5 +obj = $(src:.c=.o)
     1.6 +bin = test
     1.7 +
     1.8 +CFLAGS = -pedantic -Wall -g -I../src
     1.9 +LDFLAGS = -L.. -lanim -lvmath $(libgl) -lm
    1.10 +
    1.11 +ifeq ($(shell uname -s), Darwin)
    1.12 +	libgl = -framework OpenGL -framework GLUT
    1.13 +else
    1.14 +	libgl = -lGL -lGLU -lglut
    1.15 +endif
    1.16 +
    1.17 +$(bin): $(obj) ../libanim.a
    1.18 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.19 +
    1.20 +.PHONY: clean
    1.21 +clean:
    1.22 +	rm -f $(obj) $(bin)