libdrawtext
view examples/unicode/Makefile @ 7:10cfb642d0b8
added dtx_char_at_pt (not tested)
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sun, 18 Sep 2011 01:30:30 +0300 |
parents | fe0c54e574ae |
children | 9d44f6b0591f |
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 cjk.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/linux-libertine.ttf
25 rm -f $@
26 ln -s $< $@
28 cjk.ttf: ../fonts/sazanami-mincho.ttf
29 rm -f $@
30 ln -s $< $@
32 klingon.ttf: ../fonts/klingon.ttf
33 rm -f $@
34 ln -s $< $@
36 .PHONY: clean
37 clean:
38 rm -f $(obj) $(bin) $(lib_so)