xref: /openbsd/sbin/unwind/Makefile (revision 46ebbf29)
1*46ebbf29Sderaadt#	$OpenBSD: Makefile,v 1.9 2022/08/29 17:00:30 deraadt Exp $
2018cebfbSflorian
3018cebfbSflorianPROG=	unwind
458b5b9b8SflorianSRCS=	control.c resolver.c frontend.c log.c unwind.c parse.y printconf.c
500b0420eSflorianSRCS+=	dns64_synth.c
6018cebfbSflorianMAN=	unwind.8 unwind.conf.5
7018cebfbSflorian
8018cebfbSflorian.include "${.CURDIR}/libunbound/Makefile.inc"
9018cebfbSflorian
107e27e97fSotto#DEBUG=	-g -DDEBUG=3 -O0
11018cebfbSflorianCFLAGS+= -Wall -I${.CURDIR} -I ${.CURDIR}/libunbound/libunbound
12018cebfbSflorianCFLAGS+= -I ${.CURDIR}/libunbound
13018cebfbSflorianCFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
14018cebfbSflorianCFLAGS+= -Wmissing-declarations
15018cebfbSflorianCFLAGS+= -Wshadow -Wpointer-arith
16018cebfbSflorianCFLAGS+= -Wsign-compare
17018cebfbSflorianYFLAGS=
18f3ea9bf1SflorianLDADD+=	-levent -lutil -lssl -lcrypto
19f3ea9bf1SflorianDPADD+= ${LIBEVENT} ${LIBUTIL} ${LIBSSL} ${LIBCRYPTO}
20018cebfbSflorian
21018cebfbSflorian.include <bsd.prog.mk>
22*46ebbf29Sderaadt
23*46ebbf29Sderaadt# Don't compile unwind as static binary by default
24*46ebbf29SderaadtLDSTATIC=
25