]> git.tdb.fi Git - ttf2png.git/blobdiff - Makefile
Use stricter warnings and make the code compile with them
[ttf2png.git] / Makefile
index 57bb3e9733805185758662ecebd06360eb3c9668..0bc7aad4364163f75f15b4b6ee627644d939fe10 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,13 @@
 ttf2png: ttf2png.c
-       gcc -Wall $^ -o $@ $(shell freetype-config --cflags --libs) $(shell pkg-config --cflags --libs libpng12)
+       gcc -Wall -Wextra -Werror -std=c89 -pedantic $^ -o $@ $(shell freetype-config --cflags --libs) $(shell pkg-config --cflags --libs libpng12)
 
-.PHONY: tarball
-tarball: ttf2png-0.1.tar.gz
-ttf2png-0.1.tar.gz: ttf2png.c Readme Makefile gpl.txt
-       rm -rf ttf2png-0.1
-       mkdir ttf2png-0.1
-       cp -a $^ ttf2png-0.1
-       tar -czf $@ ttf2png-0.1
-       rm -rf ttf2png-0.1
+VER=0.3
 
+.PHONY: tarball
+tarball: ttf2png-$(VER).tar.gz
+ttf2png-$(VER).tar.gz: ttf2png.c Readme Makefile gpl.txt
+       rm -rf ttf2png-$(VER)
+       mkdir ttf2png-$(VER)
+       cp -a $^ ttf2png-$(VER)
+       tar -czf $@ ttf2png-$(VER)
+       rm -rf ttf2png-$(VER)