Makefile revision 229997
1# $FreeBSD: head/usr.sbin/ctladm/Makefile 229997 2012-01-12 00:34:33Z ken $
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}
18LDADD=		-lcam -lsbuf -lbsdxml
19MAN=		ctladm.8
20
21.include <bsd.prog.mk>
22