summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctladm/Makefile
blob: 4d08f6e7ab0296c6bf59e39e226911396a8dfc0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $FreeBSD$

PROG=		ctladm
SRCS=		ctladm.c util.c ctl_util.c ctl_scsi_all.c
.PATH:		${.CURDIR}/../../sys/cam/ctl 
SDIR=		${.CURDIR}/../../sys
CFLAGS+=	-I${SDIR}
# This is necessary because of these warnings:
# warning: cast increases required alignment of target type
# The solution is to either upgrade the compiler (preferred), or do void 
# pointer gymnastics to get around the warning.  For now, disable the
# warning instead of doing the void pointer workaround.
.if ${MACHINE_CPUARCH} == "arm"
WARNS?= 3
.endif

DPADD=		${LIBCAM} ${LIBSBUF} ${LIBBSDXML} ${LIBUTIL}
LDADD=		-lcam -lsbuf -lbsdxml -lutil
MAN=		ctladm.8

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud