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