2013-09-14 15:29:06 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-03-30 04:56:27 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2017-03-04 11:38:03 +00:00
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/libucl/include
|
|
|
|
.PATH: ${SRCTOP}/contrib/libucl/include
|
2016-02-03 15:45:13 +00:00
|
|
|
|
2013-09-14 15:29:06 +00:00
|
|
|
PROG= ctld
|
2014-10-25 12:50:26 +00:00
|
|
|
SRCS= chap.c ctld.c discovery.c isns.c kernel.c keys.c log.c
|
2016-02-03 15:45:13 +00:00
|
|
|
SRCS+= login.c parse.y pdu.c token.l y.tab.h uclparse.c
|
2013-09-14 15:29:06 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}
|
2017-03-04 11:38:03 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/cam/ctl
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/dev/iscsi
|
2013-09-14 15:29:06 +00:00
|
|
|
#CFLAGS+= -DICL_KERNEL_PROXY
|
|
|
|
MAN= ctld.8 ctl.conf.5
|
|
|
|
|
2019-09-10 07:28:27 +00:00
|
|
|
LIBADD= bsdxml md sbuf util ucl m nv
|
2013-09-14 15:29:06 +00:00
|
|
|
|
|
|
|
YFLAGS+= -v
|
|
|
|
CLEANFILES= y.tab.c y.tab.h y.output
|
|
|
|
|
2017-03-27 18:40:20 +00:00
|
|
|
WARNS?= 6
|
2013-09-14 15:29:06 +00:00
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
|
2017-03-30 04:56:27 +00:00
|
|
|
.if ${MK_ISCSI} != "no"
|
|
|
|
CFLAGS+= -DWANT_ISCSI
|
|
|
|
.endif
|
|
|
|
|
2013-09-14 15:29:06 +00:00
|
|
|
.include <bsd.prog.mk>
|