From: Mikko Rasa Date: Fri, 23 Nov 2012 21:51:21 +0000 (+0200) Subject: Makefile improvements X-Git-Tag: 1.0~1 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=daf02e48d96691e2a5757d4fdc8f37aa46a19ab4;p=ttf2png.git Makefile improvements --- diff --git a/Makefile b/Makefile index cfe0ee0..a5d2b3a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,15 @@ +CFLAGS := -Wall -Wextra -Werror -std=c89 -pedantic -O2 +FREETYPE_FLAGS := $(shell freetype-config --cflags --libs) +LIBPNG_FLAGS := $(shell pkg-config --cflags --libs libpng12) + ttf2png: ttf2png.c - gcc -Wall -Wextra -Werror -std=c89 -pedantic -O2 $^ -o $@ $(shell freetype-config --cflags --libs) $(shell pkg-config --cflags --libs libpng12) + $(CC) $(CFLAGS) $^ -o $@ $(FREETYPE_FLAGS) $(LIBPNG_FLAGS) + +.PHONY: clean +clean: + $(RM) ttf2png -VER=0.3 +VER = 0.3 .PHONY: tarball tarball: ttf2png-$(VER).tar.gz