]> git.tdb.fi Git - ttf2png.git/blobdiff - Makefile
Generate only as tall image as needed in sequantial grid mode
[ttf2png.git] / Makefile
index 7ec1398085433f051dbf8817a24757ca7d73f05f..d80e348156246c86c43d697e3dac65b04c7c1c03 100644 (file)
--- 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 $^ -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.2.1
+VER = 1.0
 
 .PHONY: tarball
 tarball: ttf2png-$(VER).tar.gz