libdrawtext
diff examples/unicode/Makefile @ 55:59e5858de836
fixed a bug in utf-8 decoding
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Thu, 15 Sep 2011 23:32:39 +0300 |
parents | |
children | 17fed026b24b |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/examples/unicode/Makefile Thu Sep 15 23:32:39 2011 +0300 1.3 @@ -0,0 +1,34 @@ 1.4 +obj = unicode.o 1.5 +bin = unicode 1.6 + 1.7 +CC = gcc 1.8 +CFLAGS = -pedantic -Wall -g -I../../src 1.9 +LDFLAGS = -L. -ldrawtext $(libgl) 1.10 + 1.11 +lib_so = libdrawtext.so 1.12 +fonts = serif.ttf klingon.ttf 1.13 + 1.14 +ifeq ($(shell uname -s), Darwin) 1.15 + libgl = -framework OpenGL -framework GLUT 1.16 +else 1.17 + libgl = -lGL -lGLU -lglut 1.18 +endif 1.19 + 1.20 +$(bin): $(obj) $(lib_so) $(fonts) 1.21 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.22 + 1.23 +$(lib_so): ../../libdrawtext.so.0.0 1.24 + rm -f $@ 1.25 + ln -s $< $@ 1.26 + 1.27 +serif.ttf: ../fonts/FreeSerif.ttf 1.28 + rm -f $@ 1.29 + ln -s $< $@ 1.30 + 1.31 +klingon.ttf: ../fonts/klingon.ttf 1.32 + rm -f $@ 1.33 + ln -s $< $@ 1.34 + 1.35 +.PHONY: clean 1.36 +clean: 1.37 + rm -f $(obj) $(bin) $(lib_so)