rbtree

view 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 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)