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