summaryrefslogtreecommitdiffstats
path: root/sys/modules/aic7xxx/ahd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/aic7xxx/ahd/Makefile')
-rw-r--r--sys/modules/aic7xxx/ahd/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/modules/aic7xxx/ahd/Makefile b/sys/modules/aic7xxx/ahd/Makefile
index b1e7900..79c96ec 100644
--- a/sys/modules/aic7xxx/ahd/Makefile
+++ b/sys/modules/aic7xxx/ahd/Makefile
@@ -15,6 +15,8 @@ REG_PRINT_OPT= -p aic79xx_reg_print.c
.endif
BEFORE_DEPEND= ${GENSRCS}
+.if make(ahdfirmware)
+ahdfirmware: ${GENSRCS}
${GENSRCS}: \
${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq} \
${.CURDIR}/../../../cam/scsi/scsi_message.h
@@ -24,13 +26,21 @@ ${GENSRCS}: \
${REG_PRINT_OPT} \
-i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \
${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq
+.else
+${GENSRCS}:
+ @echo "Error: ${.TARGET} is missing. Run 'make ahdfirmware'."
+.endif
+
SRCS= ${GENSRCS}
SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
SRCS+= device_if.h bus_if.h pci_if.h
+.if make(cleanfirmware)
+cleanfirmware: clean
CLEANFILES= ${GENSRCS}
+.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud