-# $OpenBSD: Makefile,v 1.1 2014/08/25 19:22:20 reyk Exp $
+# $OpenBSD: Makefile,v 1.2 2017/05/29 20:57:21 markus Exp $
-SUBDIR= dh
+SUBDIR= test_helper dh parser
.include <bsd.subdir.mk>
--- /dev/null
+# $OpenBSD: Makefile.inc,v 1.1 2017/05/29 20:57:21 markus Exp $
+
+CDIAGFLAGS= -Wall
+#CDIAGFLAGS+= -Werror
+CDIAGFLAGS+= -Wextra
+CDIAGFLAGS+= -Wpointer-arith
+CDIAGFLAGS+= -Wstrict-prototypes
+CDIAGFLAGS+= -Wmissing-prototypes
+CDIAGFLAGS+= -Wunused
+CDIAGFLAGS+= -Wsign-compare
+CDIAGFLAGS+= -Wshadow
+CDIAGFLAGS+= -Wpointer-sign
+CDIAGFLAGS+= -Wno-unused-parameter #-Wno-error=unused-parameter
+CDIAGFLAGS+= -Wuninitialized
+.if (${CC:L} == "gcc" || ${CC:L} == "cc")
+CDIAGFLAGS+= -Wbounded
+.endif
+
+DEBUG= -g