rbtree
diff test/Makefile @ 0:6621337b6378
red-black tree lib
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sun, 09 Oct 2011 07:48:14 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/Makefile Sun Oct 09 07:48:14 2011 +0300 1.3 @@ -0,0 +1,32 @@ 1.4 +obj = test.o 1.5 +bin = test 1.6 + 1.7 +font = linux-libertine.ttf 1.8 + 1.9 +CC = gcc 1.10 +CFLAGS = -pedantic -Wall -g -I../src -I/usr/local/include 1.11 +LDFLAGS = -L.. -L/usr/local/lib $(libgl) -lrbtree -ldrawtext 1.12 + 1.13 +ifeq ($(shell uname -s), Darwin) 1.14 + libgl = -framework OpenGL -framework GLUT 1.15 +else 1.16 + libgl = -lGL -lglut 1.17 +endif 1.18 + 1.19 +.PHONY: all 1.20 +all: $(bin) $(font) 1.21 + 1.22 +$(bin): $(obj) 1.23 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.24 + 1.25 +$(font): 1.26 + wget http://downloads.sourceforge.net/project/linuxlibertine/linuxlibertine/5.1.3-2/LinLibertineTTF_5.1.3_2011_06_21.tgz 1.27 + mkdir -p linlibertine 1.28 + cd linlibertine; tar xzvf ../LinLibertineTTF_5.1.3_2011_06_21.tgz 1.29 + rm -f LinLibertineTTF_5.1.3_2011_06_21.tgz 1.30 + cp linlibertine/LinLibertine_R.ttf $@ 1.31 + 1.32 + 1.33 +.PHONY: clean 1.34 +clean: 1.35 + rm -f $(obj) $(bin)