xref: /freebsd/usr.sbin/ctladm/Makefile (revision 5680cf6dc6e25cffa3930e9cb06f6982fcb80209)
1.include <src.opts.mk>
2
3PACKAGE=	iscsi
4PROG=		ctladm
5SRCS=		ctladm.c util.c ctl_util.c ctl_nvme_all.c ctl_scsi_all.c
6.PATH:		${SRCTOP}/sys/cam/ctl
7SDIR=		${SRCTOP}/sys
8CFLAGS+=	-I${SDIR}
9# This is necessary because of these warnings:
10# warning: cast increases required alignment of target type
11# The solution is to either upgrade the compiler (preferred), or do void
12# pointer gymnastics to get around the warning.  For now, disable the
13# warning instead of doing the void pointer workaround.
14.if ${MACHINE_CPUARCH} == "arm"
15WARNS?= 3
16.endif
17
18LIBADD=		cam sbuf bsdxml util nv
19MAN=		ctladm.8
20
21.if ${MK_ISCSI} != "no"
22CFLAGS+=	-DWANT_ISCSI
23.endif
24
25HAS_TESTS=
26SUBDIR.${MK_TESTS}+=	tests
27
28.include <bsd.prog.mk>
29