rbtree
annotate 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 |
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@0 | 8 LDFLAGS = -L.. -L/usr/local/lib $(libgl) -lrbtree -ldrawtext |
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) |