libdrawtext

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