1 .PHONY: all static clean regress 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} gg.o iri.o utf8.o -o $@ ${LDFLAGS}
26 ${CC} -static ${OBJS} \
27 ${LIBDIR}/libcrypto.a ${LIBDIR}/libtls.a ${LIBDIR}/libssl.a \
32 -etags ${SRCS} || true
35 rm -f *.o lex.yy.c y.tab.c y.tab.h y.output gmid
38 iri_test: iri_test.o iri.o utf8.o
39 ${CC} iri_test.o iri.o utf8.o -o iri_test ${LDFLAGS}
46 @echo "=============================="
50 @echo "=============================="
54 mkdir -p ${DESTDIR}${BINDIR}
55 mkdir -p ${DESTDIR}${MANDIR}/man1
56 ${INSTALL_PROGRAM} gmid ${DESTDIR}${BINDIR}
57 ${INSTALL_MAN} gmid.1 ${DESTDIR}${BINDIR}