nuclear@0: obj = test.o nuclear@0: bin = test nuclear@0: nuclear@0: font = linux-libertine.ttf nuclear@0: nuclear@0: CC = gcc nuclear@0: CFLAGS = -pedantic -Wall -g -I../src -I/usr/local/include nuclear@0: LDFLAGS = -L.. -L/usr/local/lib $(libgl) -lrbtree -ldrawtext nuclear@0: nuclear@0: ifeq ($(shell uname -s), Darwin) nuclear@0: libgl = -framework OpenGL -framework GLUT nuclear@0: else nuclear@0: libgl = -lGL -lglut nuclear@0: endif nuclear@0: nuclear@0: .PHONY: all nuclear@0: all: $(bin) $(font) nuclear@0: nuclear@0: $(bin): $(obj) nuclear@0: $(CC) -o $@ $(obj) $(LDFLAGS) nuclear@0: nuclear@0: $(font): nuclear@0: wget http://downloads.sourceforge.net/project/linuxlibertine/linuxlibertine/5.1.3-2/LinLibertineTTF_5.1.3_2011_06_21.tgz nuclear@0: mkdir -p linlibertine nuclear@0: cd linlibertine; tar xzvf ../LinLibertineTTF_5.1.3_2011_06_21.tgz nuclear@0: rm -f LinLibertineTTF_5.1.3_2011_06_21.tgz nuclear@0: cp linlibertine/LinLibertine_R.ttf $@ nuclear@0: nuclear@0: nuclear@0: .PHONY: clean nuclear@0: clean: nuclear@0: rm -f $(obj) $(bin)