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