libdrawtext

annotate examples/nofreetype/Makefile @ 22:df6d52b36bd6

- 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
children 03699346d59f
rev   line source
nuclear@22 1 obj = simple-noft.o
nuclear@22 2 bin = simple-noft
nuclear@22 3
nuclear@22 4 CC = gcc
nuclear@22 5 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include
nuclear@22 6 LDFLAGS = -Wl,-rpath=. $(lib_so) $(libgl)
nuclear@22 7
nuclear@22 8 font = serif.ttf
nuclear@22 9
nuclear@22 10 ifeq ($(shell uname -s), Darwin)
nuclear@22 11 libgl = -framework OpenGL -framework GLUT
nuclear@22 12 lib_so = libdrawtext-noft.dylib
nuclear@22 13 else
nuclear@22 14 libgl = -lGL -lGLU -lglut
nuclear@22 15 lib_so = libdrawtext-noft.so.0.0
nuclear@22 16 lib_soname = libdrawtext-noft.so.0
nuclear@22 17 endif
nuclear@22 18
nuclear@22 19 $(bin): $(obj) $(lib_so) $(lib_soname)
nuclear@22 20 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@22 21
nuclear@22 22 $(lib_so): ../../$(lib_so)
nuclear@22 23 rm -f $@
nuclear@22 24 ln -s $< $@
nuclear@22 25
nuclear@22 26 $(lib_soname): ../../$(lib_so)
nuclear@22 27 rm -f $@
nuclear@22 28 ln -s $< $@
nuclear@22 29
nuclear@22 30 .PHONY: clean
nuclear@22 31 clean:
nuclear@22 32 rm -f $(obj) $(bin) $(lib_so)