Makefile revision 229997
1229997Sken# $FreeBSD: head/usr.sbin/ctladm/Makefile 229997 2012-01-12 00:34:33Z ken $
2229997Sken
3229997SkenPROG=		ctladm
4229997SkenSRCS=		ctladm.c util.c ctl_util.c ctl_scsi_all.c
5229997Sken.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
10229997Sken# 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
17229997SkenDPADD=		${LIBCAM} ${LIBSBUF}
18229997SkenLDADD=		-lcam -lsbuf -lbsdxml
19229997SkenMAN=		ctladm.8
20229997Sken
21229997Sken.include <bsd.prog.mk>
22