1# $FreeBSD$ 2 3PROG= ctladm 4SRCS= ctladm.c util.c ctl_util.c ctl_scsi_all.c 5.PATH: ${.CURDIR}/../../sys/cam/ctl 6SDIR= ${.CURDIR}/../../sys 7CFLAGS+= -I${SDIR} 8# This is necessary because of these warnings: 9# warning: cast increases required alignment of target type 10# The solution is to either upgrade the compiler (preferred), or do void 11# pointer gymnastics to get around the warning. For now, disable the 12# warning instead of doing the void pointer workaround. 13.if ${MACHINE_CPUARCH} == "arm" 14WARNS?= 3 15.endif 16 17DPADD= ${LIBCAM} ${LIBSBUF} ${LIBBSDXML} ${LIBUTIL} 18LDADD= -lcam -lsbuf -lbsdxml -lutil 19MAN= ctladm.8 20 21.include <bsd.prog.mk> 22