libdrawtext
annotate 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 |
rev | line source |
---|---|
nuclear@3 | 1 obj = unicode.o |
nuclear@3 | 2 bin = unicode |
nuclear@3 | 3 |
nuclear@3 | 4 CC = gcc |
nuclear@3 | 5 CFLAGS = -pedantic -Wall -g -I../../src |
nuclear@3 | 6 LDFLAGS = -L. -ldrawtext $(libgl) |
nuclear@3 | 7 |
nuclear@3 | 8 lib_so = libdrawtext.so |
nuclear@3 | 9 fonts = serif.ttf klingon.ttf |
nuclear@3 | 10 |
nuclear@3 | 11 ifeq ($(shell uname -s), Darwin) |
nuclear@3 | 12 libgl = -framework OpenGL -framework GLUT |
nuclear@3 | 13 else |
nuclear@3 | 14 libgl = -lGL -lGLU -lglut |
nuclear@3 | 15 endif |
nuclear@3 | 16 |
nuclear@3 | 17 $(bin): $(obj) $(lib_so) $(fonts) |
nuclear@3 | 18 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@3 | 19 |
nuclear@3 | 20 $(lib_so): ../../libdrawtext.so.0.0 |
nuclear@3 | 21 rm -f $@ |
nuclear@3 | 22 ln -s $< $@ |
nuclear@3 | 23 |
nuclear@3 | 24 serif.ttf: ../fonts/FreeSerif.ttf |
nuclear@3 | 25 rm -f $@ |
nuclear@3 | 26 ln -s $< $@ |
nuclear@3 | 27 |
nuclear@3 | 28 klingon.ttf: ../fonts/klingon.ttf |
nuclear@3 | 29 rm -f $@ |
nuclear@3 | 30 ln -s $< $@ |
nuclear@3 | 31 |
nuclear@3 | 32 .PHONY: clean |
nuclear@3 | 33 clean: |
nuclear@3 | 34 rm -f $(obj) $(bin) $(lib_so) |