1 2.PATH: ${SRCTOP}/sys/dev/aic7xxx 3KMOD= ahd 4 5GENSRCS= aic79xx_seq.h aic79xx_reg.h 6REG_PRINT_OPT= 7# AHD_REG_PRETTY_PRINT=1 8.ifdef AHD_REG_PRETTY_PRINT 9GENSRCS += aic79xx_reg_print.c 10CFLAGS+= -DAHD_REG_PRETTY_PRINT=1 11REG_PRINT_OPT= -p aic79xx_reg_print.c 12.endif 13BEFORE_DEPEND= ${GENSRCS} 14 15.if make(ahdfirmware) 16ahdfirmware: ${GENSRCS} 17${GENSRCS}: \ 18 ${SRCTOP}/sys/dev/aic7xxx/aic79xx.{reg,seq} \ 19 ${SRCTOP}/sys/cam/scsi/scsi_message.h 20 aicasm ${INCLUDES} -I${SRCTOP}/sys/cam/scsi \ 21 -I${SRCTOP}/sys/dev/aic7xxx \ 22 -o aic79xx_seq.h -r aic79xx_reg.h \ 23 ${REG_PRINT_OPT} \ 24 -i ${SRCTOP}/sys/dev/aic7xxx/aic79xx_osm.h \ 25 ${SRCTOP}/sys/dev/aic7xxx/aic79xx.seq 26.else 27${GENSRCS}: .NOMETA 28 @echo "Error: ${.TARGET} is missing. Run 'make ahdfirmware'." 29.endif 30 31 32SRCS= ${GENSRCS} 33SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c 34SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h 35SRCS+= device_if.h bus_if.h pci_if.h 36 37.if make(cleanfirmware) 38cleanfirmware: clean 39CLEANFILES= ${GENSRCS} 40.endif 41 42.include <bsd.kmod.mk> 43 44CWARNFLAGS.ahd_pci.c= ${NO_WCONSTANT_CONVERSION} 45