summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/handshake/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libssl/handshake/Makefile')
-rw-r--r--src/regress/lib/libssl/handshake/Makefile19
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
3PROGS += handshake_table 3PROGS += handshake_table
4PROGS += valid_handshakes_terminate 4PROGS += valid_handshakes_terminate
@@ -15,6 +15,23 @@ CFLAGS += -DLIBRESSL_INTERNAL -Wundef -Werror -I$(BSDSRCDIR)/lib/libssl
15print: handshake_table 15print: handshake_table
16 @./handshake_table -C 16 @./handshake_table -C
17 17
18handshake.gv: handshake_table
19 ./handshake_table -g > $@.tmp
20 mv $@.tmp $@
21
22CLEANFILES += handshake.gv
23
24.for _FMT in png svg ps
25handshake.${_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
32CLEANFILES += handshake.${_FMT}
33.endfor
34
18.for p in ${PROGS} 35.for p in ${PROGS}
19run-$p: $p 36run-$p: $p
20 @echo '\n======== $@ ========' 37 @echo '\n======== $@ ========'