rbtree

view test/vis/Makefile @ 6:028a21468abf

added rbshell test
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 12 Oct 2011 07:03:03 +0300
parents 6621337b6378
children ea44ca011995
line source
1 obj = test.o
2 bin = test
4 font = linux-libertine.ttf
6 CC = gcc
7 CFLAGS = -pedantic -Wall -g -I../src -I/usr/local/include
8 LDFLAGS = -L.. -L/usr/local/lib $(libgl) -lrbtree -ldrawtext
10 ifeq ($(shell uname -s), Darwin)
11 libgl = -framework OpenGL -framework GLUT
12 else
13 libgl = -lGL -lglut
14 endif
16 .PHONY: all
17 all: $(bin) $(font)
19 $(bin): $(obj)
20 $(CC) -o $@ $(obj) $(LDFLAGS)
22 $(font):
23 wget http://downloads.sourceforge.net/project/linuxlibertine/linuxlibertine/5.1.3-2/LinLibertineTTF_5.1.3_2011_06_21.tgz
24 mkdir -p linlibertine
25 cd linlibertine; tar xzvf ../LinLibertineTTF_5.1.3_2011_06_21.tgz
26 rm -f LinLibertineTTF_5.1.3_2011_06_21.tgz
27 cp linlibertine/LinLibertine_R.ttf $@
30 .PHONY: clean
31 clean:
32 rm -f $(obj) $(bin)