--- /dev/null
+# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $
+
+SUBDIR= runtests runtestspp benchmark
+
+.include <bsd.subdir.mk>
--- /dev/null
+# $OpenBSD: Makefile.inc,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $
+
+EXPATDIR= ${.CURDIR}/../../../../lib/libexpat
+.PATH: ${EXPATDIR}/tests ${EXPATDIR}/tests/benchmark
+PROG= ${.CURDIR:T}
+CFLAGS= -g -I${EXPATDIR}/lib
+CPPFLAGS= -g -I${EXPATDIR}/lib
+LDFLAGS= -g -static
+LDADD= -lexpat
+DPADD= ${LIBEXPAT}
--- /dev/null
+# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $
+
+# take any large xml file located in our source tree
+XMLFILE?= ${BSDSRCDIR}/gnu/lib/libstdc++/libstdc++/docs/html/17_intro/porting-howto.xml
+
+run-regress-benchmark: ${PROG}
+ time ./${PROG} ${XMLFILE} 65535 10000
+
+.include <bsd.regress.mk>
--- /dev/null
+# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $
+
+SRCS= runtests.c chardata.c memcheck.c minicheck.c
+
+.include <bsd.regress.mk>
--- /dev/null
+# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $
+
+SRCS= runtestspp.cpp chardata.c memcheck.c minicheck.c
+
+.include <bsd.regress.mk>