libdrawtext
annotate examples/unicode/Makefile @ 4:17fed026b24b
done with the unicode sample
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Fri, 16 Sep 2011 08:31:06 +0300 |
parents | fe0c54e574ae |
children | 9d44f6b0591f |
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@4 | 9 fonts = serif.ttf cjk.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@4 | 24 serif.ttf: ../fonts/linux-libertine.ttf |
nuclear@4 | 25 rm -f $@ |
nuclear@4 | 26 ln -s $< $@ |
nuclear@4 | 27 |
nuclear@4 | 28 cjk.ttf: ../fonts/sazanami-mincho.ttf |
nuclear@3 | 29 rm -f $@ |
nuclear@3 | 30 ln -s $< $@ |
nuclear@3 | 31 |
nuclear@3 | 32 klingon.ttf: ../fonts/klingon.ttf |
nuclear@3 | 33 rm -f $@ |
nuclear@3 | 34 ln -s $< $@ |
nuclear@3 | 35 |
nuclear@3 | 36 .PHONY: clean |
nuclear@3 | 37 clean: |
nuclear@3 | 38 rm -f $(obj) $(bin) $(lib_so) |