2018-10-19 13:36:54 +02:00
|
|
|
CFLAGS = -Wall \
|
2018-10-25 14:15:00 +02:00
|
|
|
-Wextra \
|
|
|
|
-Wbad-function-cast \
|
|
|
|
-Wcast-align \
|
|
|
|
-Wcast-qual \
|
|
|
|
-Wmissing-declarations \
|
|
|
|
-Wnested-externs \
|
|
|
|
-Wpointer-arith \
|
|
|
|
-Wwrite-strings \
|
|
|
|
-Wno-discarded-qualifiers \
|
|
|
|
-pedantic \
|
|
|
|
-std=c99
|
|
|
|
|
2018-10-19 13:36:54 +02:00
|
|
|
SRC=$(wildcard *.c)
|
|
|
|
|
2018-10-25 12:17:28 +02:00
|
|
|
fn: $(SRC)
|
|
|
|
$(CC) -o $@ $^ $(CFLAGS)
|
|
|
|
|
2020-11-12 11:51:13 +01:00
|
|
|
man: fn.6
|
|
|
|
cat fn.6 | gzip - > fn.6.gz
|
|
|
|
|
|
|
|
man-test: fn.6.gz
|
|
|
|
groff -man -Tascii fn.6
|
2018-10-19 13:36:54 +02:00
|
|
|
|
2020-11-12 11:51:13 +01:00
|
|
|
all: fn man
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f fn{,.6.gz}
|