1 .PHONY: all static clean test install
3 all: Makefile.local gmid TAGS
5 Makefile.local: configure
10 lex.yy.c: lex.l y.tab.c
14 ${YACC} -b y -d parse.y
16 SRCS = gmid.c iri.c utf8.c ex.c server.c sandbox.c mime.c
17 OBJS = ${SRCS:.c=.o} lex.yy.o y.tab.o ${COMPAT}
20 ${CC} ${OBJS} -o gmid ${LDFLAGS}
23 ${CC} -static ${OBJS} \
24 ${LIBDIR}/libcrypto.a ${LIBDIR}/libtls.a ${LIBDIR}/libssl.a \
29 -etags ${SRCS} || true
32 rm -f *.o lex.yy.c y.tab.c y.tab.h y.output gmid iri_test
35 iri_test: iri_test.o iri.o utf8.o
36 ${CC} iri_test.o iri.o utf8.o -o iri_test ${LDFLAGS}
40 @echo "=============================="
44 @echo "=============================="
48 install -o root -g wheel -m 0755 gmid ${PREFIX}/bin/
49 install -o root -g wheel -m 0644 gmid.1 ${PREFIX}/man/man1