2 CFLAGS = -Wall -Wextra -g
9 # /usr/local/lib on FreeBSD
12 .PHONY: all static clean test install
16 lex.yy.c: lex.l y.tab.c
20 ${YACC} -b y -d parse.y
22 SRCS = gmid.c iri.c utf8.c ex.c server.c sandbox.c mime.c
23 OBJS = ${SRCS:.c=.o} lex.yy.o y.tab.o
26 ${CC} ${OBJS} -o gmid ${LDFLAGS}
29 ${CC} -static ${OBJS} \
30 ${LIBDIR}/libcrypto.a ${LIBDIR}/libtls.a ${LIBDIR}/libssl.a \
35 -etags ${SRCS} || true
38 rm -f *.o lex.yy.c y.tab.c y.tab.h y.output gmid iri_test
40 iri_test: iri_test.o iri.o utf8.o
41 ${CC} iri_test.o iri.o utf8.o -o iri_test ${LDFLAGS}
45 @echo "=============================="
49 @echo "=============================="
53 install -o root -g wheel -m 0755 gmid ${PREFIX}/bin/
54 install -o root -g wheel -m 0644 gmid.1 ${PREFIX}/man/man1