opnsense-src/share/examples/scsi_target/Makefile
Alan Somers 001d66bb18 targ: fix compiling the example
The targ example program doesn't compile with current clang, and
probably hasn't for multiple releases.  Fix the build.  I don't have the
right hardware to test it, though.

Sponsored by:	Axcient

(cherry picked from commit 873881b7dbb72077f3723f49a9f10a432231c532)
2024-09-19 14:25:09 -06:00

15 lines
343 B
Makefile

PACKAGE=examples
FILESDIR=${SHAREDIR}/examples/${PROG}
PROG= scsi_target
SRCS= scsi_target.h scsi_target.c scsi_cmds.c
DPADD= ${LIBCAM} ${LIBSBUF}
LIBADD+= cam
LIBADD+= sbuf
# cast-qual is triggered only in a code path where the volatile keyword doesn't
# matter
CFLAGS.scsi_cmds.c= -Wno-cast-qual
MAN= scsi_target.8
.include <bsd.prog.mk>