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