f0f8a1af01
Implement MK_NVME now that the expression for where NVMe is complicated. Default it to "yes" for x86 and powerpc64 and no everywhere else. Use it in camcontrol to define WITH_NVME for those platforms where we support nvme. This should fix the newly introduced nvme files to camcontrol which were building everywhere. Pointy Hat To: imp Sponsored by: Netflix
28 lines
575 B
Makefile
28 lines
575 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PACKAGE=runtime
|
|
PROG= camcontrol
|
|
SRCS= camcontrol.c util.c
|
|
.if !defined(RELEASE_CRUNCH)
|
|
SRCS+= attrib.c epc.c fwdownload.c modeedit.c persist.c progress.c timestamp.c zone.c
|
|
.else
|
|
CFLAGS+= -DMINIMALISTIC
|
|
.endif
|
|
.if ${MK_NVME} != "no"
|
|
.PATH: ${SRCTOP}/sbin/nvmecontrol
|
|
CFLAGS+= -I${SRCTOP}/sbin/nvmecontrol -DWITH_NVME
|
|
SRCS+= identify_ext.c nc_util.c
|
|
.PATH: ${SRCTOP}/sys/dev/nvme
|
|
SRCS+= nvme_util.c
|
|
.endif
|
|
# This is verboten
|
|
.if ${MACHINE_CPUARCH} == "arm"
|
|
WARNS?= 3
|
|
.endif
|
|
LIBADD= cam sbuf util
|
|
MAN= camcontrol.8
|
|
|
|
.include <bsd.prog.mk>
|