libdrawtext
view examples/unicode/Makefile @ 37:2eee67616f5c
another pointless change to test my outgoing hooks
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 17 Apr 2014 07:08:41 +0300 |
parents | 805936da8d6b |
children |
line source
1 obj = unicode.o
2 bin = unicode
4 CC = gcc
5 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include
6 LDFLAGS = -L. -L/usr/local/lib -ldrawtext $(libgl)
8 fonts = serif.ttf cjk.ttf klingon.ttf
10 ifeq ($(shell uname -s), Darwin)
11 libgl = -framework OpenGL -framework GLUT
12 lib_so = libdrawtext.dylib
13 else
14 libgl = -lGL -lGLU -lglut
15 lib_so = libdrawtext.so.0.2
16 endif
18 $(bin): $(obj) $(lib_so) $(fonts)
19 $(CC) -o $@ $(obj) $(LDFLAGS)
21 $(lib_so): ../../$(lib_so)
22 rm -f $@
23 ln -s $< $@
25 serif.ttf: ../fonts/linux-libertine.ttf
26 rm -f $@
27 ln -s $< $@
29 cjk.ttf: ../fonts/sazanami-mincho.ttf
30 rm -f $@
31 ln -s $< $@
33 klingon.ttf: ../fonts/klingon.ttf
34 rm -f $@
35 ln -s $< $@
37 .PHONY: clean
38 clean:
39 rm -f $(obj) $(bin) $(lib_so)