1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PACKAGE= iscsi 6PROG= ctladm 7SRCS= ctladm.c util.c ctl_util.c ctl_scsi_all.c 8.PATH: ${SRCTOP}/sys/cam/ctl 9SDIR= ${SRCTOP}/sys 10CFLAGS+= -I${SDIR} 11# This is necessary because of these warnings: 12# warning: cast increases required alignment of target type 13# The solution is to either upgrade the compiler (preferred), or do void 14# pointer gymnastics to get around the warning. For now, disable the 15# warning instead of doing the void pointer workaround. 16.if ${MACHINE_CPUARCH} == "arm" 17WARNS?= 3 18.endif 19 20LIBADD= cam sbuf bsdxml util nv 21MAN= ctladm.8 22 23.if ${MK_ISCSI} != "no" 24CFLAGS+= -DWANT_ISCSI 25.endif 26 27.include <bsd.prog.mk> 28