From daf02e48d96691e2a5757d4fdc8f37aa46a19ab4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 23 Nov 2012 23:51:21 +0200 Subject: [PATCH] Makefile improvements --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- 2.43.0