diff options
Diffstat (limited to 'src/regress/lib/libssl/handshake/Makefile')
-rw-r--r-- | src/regress/lib/libssl/handshake/Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/regress/lib/libssl/handshake/Makefile b/src/regress/lib/libssl/handshake/Makefile index 592e3b3f66..0b4248191a 100644 --- a/src/regress/lib/libssl/handshake/Makefile +++ b/src/regress/lib/libssl/handshake/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.3 2019/01/23 08:31:25 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.4 2019/01/24 16:32:29 tb Exp $ |
2 | 2 | ||
3 | PROGS += handshake_table | 3 | PROGS += handshake_table |
4 | PROGS += valid_handshakes_terminate | 4 | PROGS += valid_handshakes_terminate |
@@ -15,6 +15,23 @@ CFLAGS += -DLIBRESSL_INTERNAL -Wundef -Werror -I$(BSDSRCDIR)/lib/libssl | |||
15 | print: handshake_table | 15 | print: handshake_table |
16 | @./handshake_table -C | 16 | @./handshake_table -C |
17 | 17 | ||
18 | handshake.gv: handshake_table | ||
19 | ./handshake_table -g > $@.tmp | ||
20 | mv $@.tmp $@ | ||
21 | |||
22 | CLEANFILES += handshake.gv | ||
23 | |||
24 | .for _FMT in png svg ps | ||
25 | handshake.${_FMT}: handshake.gv | ||
26 | @if [ ! -x /usr/local/bin/dot ]; then \ | ||
27 | echo "pkg_add graphviz to generate png"; \ | ||
28 | false; \ | ||
29 | fi | ||
30 | dot -T${_FMT} handshake.gv -o $@ | ||
31 | |||
32 | CLEANFILES += handshake.${_FMT} | ||
33 | .endfor | ||
34 | |||
18 | .for p in ${PROGS} | 35 | .for p in ${PROGS} |
19 | run-$p: $p | 36 | run-$p: $p |
20 | @echo '\n======== $@ ========' | 37 | @echo '\n======== $@ ========' |