1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5CFLAGS+=-I${SRCTOP}/contrib/libucl/include 6.PATH: ${SRCTOP}/contrib/libucl/include 7 8PACKAGE= iscsi 9PROG= ctld 10SRCS= ctld.c discovery.c isns.c kernel.c 11SRCS+= login.c parse.y token.l y.tab.h uclparse.c 12CFLAGS+= -I${.CURDIR} 13CFLAGS+= -I${SRCTOP}/sys 14CFLAGS+= -I${SRCTOP}/sys/cam/ctl 15CFLAGS+= -I${SRCTOP}/sys/dev/iscsi 16CFLAGS+= -I${SRCTOP}/lib/libiscsiutil 17#CFLAGS+= -DICL_KERNEL_PROXY 18NO_WCAST_ALIGN= 19MAN= ctld.8 ctl.conf.5 20 21LIBADD= bsdxml iscsiutil md sbuf util ucl m nv 22 23YFLAGS+= -v 24CLEANFILES= y.tab.c y.tab.h y.output 25 26NO_WMISSING_VARIABLE_DECLARATIONS= 27 28.if ${MK_ISCSI} != "no" 29CFLAGS+= -DWANT_ISCSI 30.endif 31 32.include <bsd.prog.mk> 33