Blob


1 CC = cc
2 CFLAGS = -Wall -Wextra -g
3 LDFLAGS = -ltls
4 LEX = lex
5 YACC = yacc
7 .PHONY: all clean test
9 all: gmid TAGS README.md
11 lex.yy.c: lex.l y.tab.c
12 ${LEX} lex.l
14 y.tab.c: parse.y
15 ${YACC} -b y -d parse.y
17 OBJS = gmid.o iri.o utf8.o lex.yy.o y.tab.o sandbox.o
18 gmid: ${OBJS}
19 ${CC} ${OBJS} -o gmid ${LDFLAGS}
21 TAGS: gmid.c iri.c utf8.c
22 -etags gmid.c iri.c utf8.c || true
24 clean:
25 rm -f *.o lex.yy.c y.tab.c y.tab.h y.output gmid iri_test
27 iri_test: iri_test.o iri.o utf8.o
28 ${CC} iri_test.o iri.o utf8.o -o iri_test ${LDFLAGS}
30 test: iri_test
31 ./iri_test