libanim
annotate example/Makefile @ 55:16f1cdc49887
added local install post-build event in the vs2008 vcproj
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 16 Nov 2013 09:08:42 +0200 |
parents | |
children | 3c2428cb38f7 |
rev | line source |
---|---|
nuclear@8 | 1 src = $(wildcard *.c) |
nuclear@8 | 2 obj = $(src:.c=.o) |
nuclear@8 | 3 bin = test |
nuclear@8 | 4 |
nuclear@8 | 5 CFLAGS = -pedantic -Wall -g -I../src |
nuclear@8 | 6 LDFLAGS = -L.. -lanim -lvmath $(libgl) -lm |
nuclear@8 | 7 |
nuclear@8 | 8 ifeq ($(shell uname -s), Darwin) |
nuclear@8 | 9 libgl = -framework OpenGL -framework GLUT |
nuclear@8 | 10 else |
nuclear@8 | 11 libgl = -lGL -lGLU -lglut |
nuclear@8 | 12 endif |
nuclear@8 | 13 |
nuclear@8 | 14 $(bin): $(obj) ../libanim.a |
nuclear@8 | 15 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@8 | 16 |
nuclear@8 | 17 .PHONY: clean |
nuclear@8 | 18 clean: |
nuclear@8 | 19 rm -f $(obj) $(bin) |