libdrawtext
diff examples/nofreetype/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 | |
children | 03699346d59f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/examples/nofreetype/Makefile Tue Apr 15 05:10:39 2014 +0300 1.3 @@ -0,0 +1,32 @@ 1.4 +obj = simple-noft.o 1.5 +bin = simple-noft 1.6 + 1.7 +CC = gcc 1.8 +CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include 1.9 +LDFLAGS = -Wl,-rpath=. $(lib_so) $(libgl) 1.10 + 1.11 +font = serif.ttf 1.12 + 1.13 +ifeq ($(shell uname -s), Darwin) 1.14 + libgl = -framework OpenGL -framework GLUT 1.15 + lib_so = libdrawtext-noft.dylib 1.16 +else 1.17 + libgl = -lGL -lGLU -lglut 1.18 + lib_so = libdrawtext-noft.so.0.0 1.19 + lib_soname = libdrawtext-noft.so.0 1.20 +endif 1.21 + 1.22 +$(bin): $(obj) $(lib_so) $(lib_soname) 1.23 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.24 + 1.25 +$(lib_so): ../../$(lib_so) 1.26 + rm -f $@ 1.27 + ln -s $< $@ 1.28 + 1.29 +$(lib_soname): ../../$(lib_so) 1.30 + rm -f $@ 1.31 + ln -s $< $@ 1.32 + 1.33 +.PHONY: clean 1.34 +clean: 1.35 + rm -f $(obj) $(bin) $(lib_so)