libdrawtext

annotate tools/font2glyphmap/Makefile @ 81:59e4bbbabddd

fixed the example makefiles
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Apr 2014 05:49:05 +0300
parents c750059a1258
children 4452a6143d12
rev   line source
nuclear@21 1 src = $(wildcard src/*.c)
nuclear@21 2 obj = $(src:.c=.o)
nuclear@21 3 bin = font2glyphmap
nuclear@21 4
nuclear@21 5 CC = gcc
nuclear@21 6 CFLAGS = -pedantic -Wall -g -I../../src -I/usr/local/include
nuclear@21 7 LDFLAGS = -L. -L/usr/local/lib -ldrawtext
nuclear@21 8
nuclear@21 9 ifeq ($(shell uname -s), Darwin)
nuclear@21 10 lib_so = libdrawtext.dylib
nuclear@21 11 else
nuclear@29 12 lib_so = libdrawtext.so.0.2
nuclear@21 13 endif
nuclear@21 14
nuclear@21 15 $(bin): $(obj) $(lib_so) $(font)
nuclear@21 16 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@21 17
nuclear@21 18 $(lib_so): ../../$(lib_so)
nuclear@21 19 rm -f $@
nuclear@21 20 ln -s $< $@
nuclear@21 21
nuclear@21 22 .PHONY: clean
nuclear@21 23 clean:
nuclear@21 24 rm -f $(obj) $(bin) $(lib_so)