libdrawtext
diff tools/font2glyphmap/Makefile @ 21:c750059a1258
font2glyphmap tool
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 15 Apr 2014 03:33:39 +0300 |
parents | |
children | 03699346d59f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tools/font2glyphmap/Makefile Tue Apr 15 03:33:39 2014 +0300 1.3 @@ -0,0 +1,24 @@ 1.4 +src = $(wildcard src/*.c) 1.5 +obj = $(src:.c=.o) 1.6 +bin = font2glyphmap 1.7 + 1.8 +CC = gcc 1.9 +CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include 1.10 +LDFLAGS = -L. -L/usr/local/lib -ldrawtext 1.11 + 1.12 +ifeq ($(shell uname -s), Darwin) 1.13 + lib_so = libdrawtext.dylib 1.14 +else 1.15 + lib_so = libdrawtext.so.0.0 1.16 +endif 1.17 + 1.18 +$(bin): $(obj) $(lib_so) $(font) 1.19 + $(CC) -o $@ $(obj) $(LDFLAGS) 1.20 + 1.21 +$(lib_so): ../../$(lib_so) 1.22 + rm -f $@ 1.23 + ln -s $< $@ 1.24 + 1.25 +.PHONY: clean 1.26 +clean: 1.27 + rm -f $(obj) $(bin) $(lib_so)