fa255ab1b8
clang complains about the downcasts from struct connection to struct
ctld_connection as the alignment of struct ctld_connection is higher
on 32-bit platforms. However, the warning is in this case harmless as
the downcasts are on objects originally allocated as instances of
struct ctld_connection with suitable alignment.
Reported by: npn, gjb
Fixes: 6378393308
Add an internal libiscsiutil library.
Sponsored by: Chelsio Communications
33 lines
677 B
Makefile
33 lines
677 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
CFLAGS+=-I${SRCTOP}/contrib/libucl/include
|
|
.PATH: ${SRCTOP}/contrib/libucl/include
|
|
|
|
PACKAGE= iscsi
|
|
PROG= ctld
|
|
SRCS= ctld.c discovery.c isns.c kernel.c
|
|
SRCS+= login.c parse.y 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+= -I${SRCTOP}/lib/libiscsiutil
|
|
#CFLAGS+= -DICL_KERNEL_PROXY
|
|
NO_WCAST_ALIGN=
|
|
MAN= ctld.8 ctl.conf.5
|
|
|
|
LIBADD= bsdxml iscsiutil 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>
|