libdrawtext

view examples/simple/Makefile @ 74:838d473cf6cc

- properly supported building of no-freetype version, separately installed as libdrawtext-noft.whatever - saving/loading glyphmaps now work correctly - added nofreetype program in examples, to illustrate how to use libdrawtext-noft with prebuilt glyphmaps (see tools/font2glyphmap)
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Apr 2014 05:10:39 +0300
parents 9d44f6b0591f
children 03699346d59f
line source
1 obj = simple.o
2 bin = simple
4 CC = gcc
5 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include
6 LDFLAGS = -L. -L/usr/local/lib -ldrawtext $(libgl)
8 font = serif.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.0
16 endif
18 $(bin): $(obj) $(lib_so) $(font)
19 $(CC) -o $@ $(obj) $(LDFLAGS)
21 $(lib_so): ../../$(lib_so)
22 rm -f $@
23 ln -s $< $@
25 $(font): ../fonts/linux-libertine.ttf
26 rm -f $@
27 ln -s $< $@
29 .PHONY: clean
30 clean:
31 rm -f $(obj) $(bin) $(lib_so)