blob: 1d355e3ba2d5b1d5fd244ed77062bc9b6952b0c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
CC = cc
CFLAGS = -Wall -Wextra -g
LDFLAGS = -ltls
.PHONY: all clean test
all: gmid TAGS README.md
gmid: gmid.o uri.o
${CC} gmid.o uri.o -o gmid ${LDFLAGS}
TAGS: gmid.c uri.c
-etags gmid.c uri.c || true
README.md: gmid.1
mandoc -Tmarkdown gmid.1 | sed -e '1d' -e '$$d' > README.md
clean:
rm -f *.o gmid
uri_test: uri_test.o uri.o
${CC} uri_test.o uri.o -o uri_test ${LDFLAGS}
test: uri_test
./uri_test
|