mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
c42e9af5f1
While here only compile both of them if WITH_ISCSI is set (this is the default). Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D30755 Sponsored by: Diablotin Systems
31 lines
639 B
Makefile
31 lines
639 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/libucl/include
|
|
.PATH: ${SRCTOP}/contrib/libucl/include
|
|
|
|
PACKAGE= iscsi
|
|
PROG= ctld
|
|
SRCS= chap.c ctld.c discovery.c isns.c kernel.c keys.c log.c
|
|
SRCS+= login.c parse.y pdu.c token.l y.tab.h uclparse.c
|
|
CFLAGS+= -I${.CURDIR}
|
|
CFLAGS+= -I${SRCTOP}/sys
|
|
CFLAGS+= -I${SRCTOP}/sys/cam/ctl
|
|
CFLAGS+= -I${SRCTOP}/sys/dev/iscsi
|
|
#CFLAGS+= -DICL_KERNEL_PROXY
|
|
MAN= ctld.8 ctl.conf.5
|
|
|
|
LIBADD= bsdxml md sbuf util ucl m nv
|
|
|
|
YFLAGS+= -v
|
|
CLEANFILES= y.tab.c y.tab.h y.output
|
|
|
|
NO_WMISSING_VARIABLE_DECLARATIONS=
|
|
|
|
.if ${MK_ISCSI} != "no"
|
|
CFLAGS+= -DWANT_ISCSI
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|