libdrawtext

annotate examples/unicode/Makefile @ 11:805936da8d6b

fixed to work on freebsd
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 05 Oct 2011 02:27:08 +0300
parents 9d44f6b0591f
children 03699346d59f
rev   line source
nuclear@3 1 obj = unicode.o
nuclear@3 2 bin = unicode
nuclear@3 3
nuclear@3 4 CC = gcc
nuclear@11 5 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include
nuclear@11 6 LDFLAGS = -L. -L/usr/local/lib -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)