Blame


1 3096da4e 2021-10-07 op # tests to run as a port of the regression suite. Leave empty to run
2 3096da4e 2021-10-07 op # all.
3 3096da4e 2021-10-07 op TESTS=
4 3096da4e 2021-10-07 op
5 5c2e310e 2021-01-22 op .PHONY: all static clean regress install
6 3e4749f7 2020-10-02 op
7 5c7abf01 2021-12-29 op all: Makefile.local gmid gg TAGS compile_flags.txt
8 3e4749f7 2020-10-02 op
9 12042ad7 2021-01-21 op Makefile.local: configure
10 12042ad7 2021-01-21 op ./configure
11 771d8f28 2021-01-17 op
12 12042ad7 2021-01-21 op include Makefile.local
13 771d8f28 2021-01-17 op
14 15902770 2021-01-15 op y.tab.c: parse.y
15 74f0778b 2021-06-16 op ${YACC} -b y parse.y
16 15902770 2021-01-15 op
17 11c98667 2021-04-25 op SRCS = gmid.c iri.c utf8.c ex.c server.c sandbox.c mime.c puny.c \
18 72b033ef 2021-12-29 op utils.c log.c dirs.c fcgi.c proxy.c
19 74f0778b 2021-06-16 op OBJS = ${SRCS:.c=.o} y.tab.o ${COMPAT}
20 0fbe79b3 2021-01-18 op
21 dafb57b8 2021-01-15 op gmid: ${OBJS}
22 dafb57b8 2021-01-15 op ${CC} ${OBJS} -o gmid ${LDFLAGS}
23 15902770 2021-01-15 op
24 5c7abf01 2021-12-29 op gg: gg.o iri.o utf8.o ${COMPAT}
25 5c7abf01 2021-12-29 op ${CC} gg.o iri.o utf8.o ${COMPAT} -o $@ ${LDFLAGS}
26 5c7abf01 2021-12-29 op
27 771d8f28 2021-01-17 op static: ${OBJS}
28 8b462a5d 2021-03-29 op ${CC} ${OBJS} -o gmid ${LDFLAGS} ${STATIC}
29 771d8f28 2021-01-17 op
30 0fbe79b3 2021-01-18 op TAGS: ${SRCS}
31 548c2849 2021-04-14 op @(etags ${SRCS} || true) 2>/dev/null
32 3e4749f7 2020-10-02 op
33 3e4749f7 2020-10-02 op clean:
34 2d383cbd 2021-06-16 op rm -f *.o compat/*.o y.tab.c y.tab.h y.output gmid
35 d5f4d615 2021-02-01 op rm -f compile_flags.txt
36 8518014c 2021-07-11 op ${MAKE} -C regress clean
37 33d32d1f 2020-12-25 op
38 f48e3b85 2021-05-24 op regress: gmid
39 3096da4e 2021-10-07 op ${MAKE} TESTS=${TESTS} -C regress all
40 5c2e310e 2021-01-22 op
41 771d8f28 2021-01-17 op install: gmid
42 ac69e83a 2021-01-21 op mkdir -p ${DESTDIR}${BINDIR}
43 ac69e83a 2021-01-21 op mkdir -p ${DESTDIR}${MANDIR}/man1
44 ac69e83a 2021-01-21 op ${INSTALL_PROGRAM} gmid ${DESTDIR}${BINDIR}
45 91d7870b 2021-01-30 op ${INSTALL_MAN} gmid.1 ${DESTDIR}${MANDIR}/man1
46 d5f4d615 2021-02-01 op
47 d5f4d615 2021-02-01 op compile_flags.txt:
48 d5f4d615 2021-02-01 op printf "%s\n" ${CFLAGS} > compile_flags.txt
49 a3c5f745 2021-02-23 op
50 a3c5f745 2021-02-23 op # make sure we pass -o to ${CC}. OpenBSD default suffix rule doesn't
51 a3c5f745 2021-02-23 op .SUFFIXES: .c .o
52 a3c5f745 2021-02-23 op .c.o:
53 a3c5f745 2021-02-23 op ${CC} ${CFLAGS} -c $< -o $@