1653e7d63SEnji Cooper.include <src.opts.mk> 2653e7d63SEnji Cooper 3*76a61252SLexi WinterPACKAGE= ctl 4130f4520SKenneth D. MerryPROG= ctladm 56f308bcfSJohn BaldwinSRCS= ctladm.c util.c ctl_util.c ctl_nvme_all.c ctl_scsi_all.c 664a0982bSEnji Cooper.PATH: ${SRCTOP}/sys/cam/ctl 764a0982bSEnji CooperSDIR= ${SRCTOP}/sys 8130f4520SKenneth D. MerryCFLAGS+= -I${SDIR} 9130f4520SKenneth D. Merry# This is necessary because of these warnings: 10130f4520SKenneth D. Merry# warning: cast increases required alignment of target type 11130f4520SKenneth D. Merry# The solution is to either upgrade the compiler (preferred), or do void 12130f4520SKenneth D. Merry# pointer gymnastics to get around the warning. For now, disable the 13130f4520SKenneth D. Merry# warning instead of doing the void pointer workaround. 14130f4520SKenneth D. Merry.if ${MACHINE_CPUARCH} == "arm" 15130f4520SKenneth D. MerryWARNS?= 3 16130f4520SKenneth D. Merry.endif 17130f4520SKenneth D. Merry 188951f055SMarcelo AraujoLIBADD= cam sbuf bsdxml util nv 19130f4520SKenneth D. MerryMAN= ctladm.8 20130f4520SKenneth D. Merry 21653e7d63SEnji Cooper.if ${MK_ISCSI} != "no" 22653e7d63SEnji CooperCFLAGS+= -DWANT_ISCSI 23653e7d63SEnji Cooper.endif 24653e7d63SEnji Cooper 259747d11dSAlan SomersHAS_TESTS= 269747d11dSAlan SomersSUBDIR.${MK_TESTS}+= tests 279747d11dSAlan Somers 28130f4520SKenneth D. Merry.include <bsd.prog.mk> 29