1 .PHONY: all static clean regress install
3 all: Makefile.local gmid TAGS compile_flags.txt
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 puny.c \
17 utils.c log.c dirs.c fcgi.c
18 OBJS = ${SRCS:.c=.o} lex.yy.o y.tab.o ${COMPAT}
21 ${CC} ${OBJS} -o gmid ${LDFLAGS}
24 ${CC} ${OBJS} -o gmid ${LDFLAGS} ${STATIC}
27 @(etags ${SRCS} || true) 2>/dev/null
30 rm -f *.o compat/*.o lex.yy.c y.tab.c y.tab.h y.output gmid
31 rm -f compile_flags.txt
38 mkdir -p ${DESTDIR}${BINDIR}
39 mkdir -p ${DESTDIR}${MANDIR}/man1
40 ${INSTALL_PROGRAM} gmid ${DESTDIR}${BINDIR}
41 ${INSTALL_MAN} gmid.1 ${DESTDIR}${MANDIR}/man1
44 printf "%s\n" ${CFLAGS} > compile_flags.txt
46 # make sure we pass -o to ${CC}. OpenBSD default suffix rule doesn't
49 ${CC} ${CFLAGS} -c $< -o $@