1229997Sken# $FreeBSD$ 2229997Sken 3229997SkenPROG= ctladm 4229997SkenSRCS= ctladm.c util.c ctl_util.c ctl_scsi_all.c 5274870Strasz.PATH: ${.CURDIR}/../../sys/cam/ctl 6229997SkenSDIR= ${.CURDIR}/../../sys 7229997SkenCFLAGS+= -I${SDIR} 8229997Sken# This is necessary because of these warnings: 9229997Sken# warning: cast increases required alignment of target type 10274870Strasz# The solution is to either upgrade the compiler (preferred), or do void 11229997Sken# pointer gymnastics to get around the warning. For now, disable the 12229997Sken# warning instead of doing the void pointer workaround. 13229997Sken.if ${MACHINE_CPUARCH} == "arm" 14229997SkenWARNS?= 3 15229997Sken.endif 16229997Sken 17232604StraszDPADD= ${LIBCAM} ${LIBSBUF} ${LIBBSDXML} ${LIBUTIL} 18232604StraszLDADD= -lcam -lsbuf -lbsdxml -lutil 19229997SkenMAN= ctladm.8 20229997Sken 21229997Sken.include <bsd.prog.mk> 22