################################################################
#   SPDX-License-Identifier: BSD-3-Clause
#   Copyright(c) 2007-2026 Intel Corporation
# 
#  version: QAT.B.3.15.0-00012
#   These contents may have been developed with support from one or more
#   Intel-operated generative artificial intelligence solutions.
################################################################

KMOD=	usdm_drv
SRCS=	qae_mem_drv_utils.c qae_mem_drv.c qae_mem_utils.c

NO_OBJ= 1

CFLAGS+= -fms-extensions

CFLAGS+= -D__KERNEL__
CFLAGS+= -I${CMN_ROOT} -I${CMN_ROOT}/include
CFLAGS+= -DKERNEL_SPACE

CFLAGS+= -Wformat -Wformat-security

CFLAGS+= -O2 -D_FORTIFY_SOURCE=2
CFLAGS+= -fno-delete-null-pointer-checks -fwrapv
CFLAGS+= -Wno-missing-field-initializers -fno-strict-aliasing -fstack-protector

CLEANFILES += .depend.*

distclean: clean cleandepend cleandir

install:
	@make all
	${INSTALL} -T release -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
	    ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}/

uninstall:
	@rm -rf $(KMODDIR)/${PROG}

.include <auto.obj.mk>
.include <bsd.kmod.mk>
