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 libpng16)
6 $(CC) $(CFLAGS) $^ -o $@ $(FREETYPE_FLAGS) $(LIBPNG_FLAGS)
15 tarball: ttf2png-$(VER).tar.gz
16 ttf2png-$(VER).tar.gz: ttf2png.c Readme Makefile gpl.txt
19 cp -a $^ ttf2png-$(VER)
20 tar -czf $@ ttf2png-$(VER)