# Makefile - DF-4330/DF-4331 probe KLD.
# Compiles the UNMODIFIED kernel source mrsas_fp.c into the module.
# In /root/fp4330_fixed the local mrsas_fp.c (patched with fix.diff) is used.
KMOD=	fp_probe
FP_SRCDIR?=	/usr/src/sys/dev/raid/mrsas
SRCS=	fp_probe.c mrsas_fp.c
SRCS+=	device_if.h bus_if.h pci_if.h opt_cam.h

.include <bsd.kmod.mk>

# bsd.kmod.mk reassigns CFLAGS (sys/conf/kmod.mk:98) - append AFTER include
CFLAGS+=	-include ${.CURDIR}/rename.h

mrsas_fp.c: ${FP_SRCDIR}/mrsas_fp.c
	cp ${.ALLSRC} ${.TARGET}
