X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=Makefile;h=d80e348156246c86c43d697e3dac65b04c7c1c03;hb=e13494aae1ab762e1b799571c7971cfe0a730451;hp=57bb3e9733805185758662ecebd06360eb3c9668;hpb=4291a684d86dbd80880503d12e4a1f8db3a41579;p=ttf2png.git diff --git a/Makefile b/Makefile index 57bb3e9..d80e348 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,21 @@ +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: 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 +.PHONY: clean +clean: + $(RM) ttf2png +VER = 1.0 + +.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)