2013-09-14 16:29:06 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-03-30 05:56:27 +01: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
|
|
|
|
2021-06-19 16:49:57 +01:00
|
|
|
PACKAGE= iscsi
|
2013-09-14 16:29:06 +01:00
|
|
|
PROG= ctld
|
2014-10-25 13:50:26 +01: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 16:29:06 +01: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 16:29:06 +01:00
|
|
|
#CFLAGS+= -DICL_KERNEL_PROXY
|
|
|
|
MAN= ctld.8 ctl.conf.5
|
|
|
|
|
2019-09-10 08:28:27 +01:00
|
|
|
LIBADD= bsdxml md sbuf util ucl m nv
|
2013-09-14 16:29:06 +01:00
|
|
|
|
|
|
|
YFLAGS+= -v
|
|
|
|
CLEANFILES= y.tab.c y.tab.h y.output
|
|
|
|
|
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
|
2017-03-30 05:56:27 +01:00
|
|
|
.if ${MK_ISCSI} != "no"
|
|
|
|
CFLAGS+= -DWANT_ISCSI
|
|
|
|
.endif
|
|
|
|
|
2013-09-14 16:29:06 +01:00
|
|
|
.include <bsd.prog.mk>
|