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