libdrawtext
annotate examples/unicode/Makefile @ 9:9d44f6b0591f
fixed for macosx
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 20 Sep 2011 15:16:35 +0300 |
parents | 17fed026b24b |
children | 805936da8d6b |
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@4 | 8 fonts = serif.ttf cjk.ttf klingon.ttf |
nuclear@3 | 9 |
nuclear@3 | 10 ifeq ($(shell uname -s), Darwin) |
nuclear@3 | 11 libgl = -framework OpenGL -framework GLUT |
nuclear@9 | 12 lib_so = libdrawtext.dylib |
nuclear@3 | 13 else |
nuclear@3 | 14 libgl = -lGL -lGLU -lglut |
nuclear@9 | 15 lib_so = libdrawtext.so.0.0 |
nuclear@3 | 16 endif |
nuclear@3 | 17 |
nuclear@3 | 18 $(bin): $(obj) $(lib_so) $(fonts) |
nuclear@3 | 19 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@3 | 20 |
nuclear@9 | 21 $(lib_so): ../../$(lib_so) |
nuclear@3 | 22 rm -f $@ |
nuclear@3 | 23 ln -s $< $@ |
nuclear@3 | 24 |
nuclear@4 | 25 serif.ttf: ../fonts/linux-libertine.ttf |
nuclear@4 | 26 rm -f $@ |
nuclear@4 | 27 ln -s $< $@ |
nuclear@4 | 28 |
nuclear@4 | 29 cjk.ttf: ../fonts/sazanami-mincho.ttf |
nuclear@3 | 30 rm -f $@ |
nuclear@3 | 31 ln -s $< $@ |
nuclear@3 | 32 |
nuclear@3 | 33 klingon.ttf: ../fonts/klingon.ttf |
nuclear@3 | 34 rm -f $@ |
nuclear@3 | 35 ln -s $< $@ |
nuclear@3 | 36 |
nuclear@3 | 37 .PHONY: clean |
nuclear@3 | 38 clean: |
nuclear@3 | 39 rm -f $(obj) $(bin) $(lib_so) |