]> git.tdb.fi Git - ttf2png.git/blob - Makefile
Bump version to 2.0
[ttf2png.git] / Makefile
1 CFLAGS := -Wall -Wextra -Werror -std=c89 -pedantic -O2
2 FREETYPE_FLAGS := $(shell freetype-config --cflags --libs)
3 LIBPNG_FLAGS := $(shell pkg-config --cflags --libs libpng12)
4
5 ttf2png: ttf2png.c
6         $(CC) $(CFLAGS) $^ -o $@ $(FREETYPE_FLAGS) $(LIBPNG_FLAGS)
7
8 .PHONY: clean
9 clean:
10         $(RM) ttf2png
11
12 VER = 1.1
13
14 .PHONY: tarball
15 tarball: ttf2png-$(VER).tar.gz
16 ttf2png-$(VER).tar.gz: ttf2png.c Readme Makefile gpl.txt
17         rm -rf ttf2png-$(VER)
18         mkdir ttf2png-$(VER)
19         cp -a $^ ttf2png-$(VER)
20         tar -czf $@ ttf2png-$(VER)
21         rm -rf ttf2png-$(VER)