rbtree

annotate 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
rev   line source
nuclear@0 1 obj = test.o
nuclear@0 2 bin = test
nuclear@0 3
nuclear@0 4 font = linux-libertine.ttf
nuclear@0 5
nuclear@0 6 CC = gcc
nuclear@0 7 CFLAGS = -pedantic -Wall -g -I../src -I/usr/local/include
nuclear@12 8 LDFLAGS = -L.. -L/usr/local/lib $(libgl) -lrbtree -ldrawtext -lm
nuclear@0 9
nuclear@0 10 ifeq ($(shell uname -s), Darwin)
nuclear@0 11 libgl = -framework OpenGL -framework GLUT
nuclear@0 12 else
nuclear@0 13 libgl = -lGL -lglut
nuclear@0 14 endif
nuclear@0 15
nuclear@0 16 .PHONY: all
nuclear@0 17 all: $(bin) $(font)
nuclear@0 18
nuclear@0 19 $(bin): $(obj)
nuclear@0 20 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@0 21
nuclear@0 22 $(font):
nuclear@0 23 wget http://downloads.sourceforge.net/project/linuxlibertine/linuxlibertine/5.1.3-2/LinLibertineTTF_5.1.3_2011_06_21.tgz
nuclear@0 24 mkdir -p linlibertine
nuclear@0 25 cd linlibertine; tar xzvf ../LinLibertineTTF_5.1.3_2011_06_21.tgz
nuclear@0 26 rm -f LinLibertineTTF_5.1.3_2011_06_21.tgz
nuclear@0 27 cp linlibertine/LinLibertine_R.ttf $@
nuclear@0 28
nuclear@0 29
nuclear@0 30 .PHONY: clean
nuclear@0 31 clean:
nuclear@0 32 rm -f $(obj) $(bin)