libdrawtext
view tools/font2glyphmap/Makefile @ 43:43444ec90632
drx_open_font_glyphmap now mimics dtx_open_font's behaviour in setting dtx_font
automatically if it's null.
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 08 Jun 2014 06:40:30 +0300 |
parents | c750059a1258 |
children | 4452a6143d12 |
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 bin = font2glyphmap
5 CC = gcc
6 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include
7 LDFLAGS = -L. -L/usr/local/lib -ldrawtext
9 ifeq ($(shell uname -s), Darwin)
10 lib_so = libdrawtext.dylib
11 else
12 lib_so = libdrawtext.so.0.2
13 endif
15 $(bin): $(obj) $(lib_so) $(font)
16 $(CC) -o $@ $(obj) $(LDFLAGS)
18 $(lib_so): ../../$(lib_so)
19 rm -f $@
20 ln -s $< $@
22 .PHONY: clean
23 clean:
24 rm -f $(obj) $(bin) $(lib_so)