aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 76f05bd5b384c8a23073a5d6f29ba5a0312c16a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CC =		cc
CFLAGS =	-Wall -Wextra -g
LDFLAGS =	-ltls

.PHONY: all clean test

all: gmid TAGS README.md

gmid: gmid.o uri.o utf8.o
	${CC} gmid.o uri.o utf8.o -o gmid ${LDFLAGS}

TAGS: gmid.c uri.c utf8.c
	-etags gmid.c uri.c utf8.c || true

clean:
	rm -f *.o gmid

uri_test: uri_test.o uri.o utf8.o
	${CC} uri_test.o uri.o utf8.o -o uri_test ${LDFLAGS}

test: uri_test
	./uri_test