rbtree
view test/vis/Makefile @ 15:1b77b72688fe
- fixed bug in rb_init making it ignore comparison functions other than the builtin
- fixed rb_find and rb_findi return type, which should be struct rbnode*, not void*
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Nov 2014 11:00:27 +0200 |
parents | 56a08d00bb41 |
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 -lm
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)