rbtree

view test/vis/Makefile @ 12:ea44ca011995

fixed the vis makefile
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 18 Jan 2014 15:26:11 +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)