CFLAGS = -Wall \ -Wextra \ -Wbad-function-cast \ -Wcast-align \ -Wcast-qual \ -Wmissing-declarations \ -Wnested-externs \ -Wpointer-arith \ -Wwrite-strings \ -Wno-discarded-qualifiers \ -pedantic \ -std=c99 SRC=$(wildcard *.c) fn: $(SRC) $(CC) -o $@ $^ $(CFLAGS) man: fn.6 cat fn.6 | gzip - > fn.6.gz man-test: fn.6.gz groff -man -Tascii fn.6 all: fn man clean: rm -f fn{,.6.gz}