1101131Sscottl 2101131Sscottl# $FreeBSD$ 3101131Sscottl 4101131Sscottl.PATH: ${.CURDIR}/../../../dev/aic7xxx 5101131SscottlKMOD= ahd 6101131Sscottl 7140867SimpWERROR= 8136854SruGENSRCS= aic79xx_seq.h aic79xx_reg.h 9109708SgibbsREG_PRINT_OPT= 10109708SgibbsAHD_REG_PRETTY_PRINT=1 11109708Sgibbs.ifdef AHD_REG_PRETTY_PRINT 12109708SgibbsGENSRCS += aic79xx_reg_print.c 13109708SgibbsCFLAGS+= -DAHD_REG_PRETTY_PRINT=1 14109708SgibbsREG_PRINT_OPT= -p aic79xx_reg_print.c 15109708Sgibbs.endif 16109708SgibbsBEFORE_DEPEND= ${GENSRCS} 17101131Sscottl 18109708Sgibbs../aicasm/aicasm: ${.CURDIR}/../../../dev/aic7xxx/aicasm/*.[chyl] 19101131Sscottl ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) 20101131Sscottl 21109708Sgibbs${GENSRCS}: \ 22109708Sgibbs ${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq} \ 23102690Sgibbs ${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm 24106389Sscottl ../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ 25102690Sgibbs -I${.CURDIR}/../../../dev/aic7xxx \ 26102690Sgibbs -o aic79xx_seq.h -r aic79xx_reg.h \ 27109708Sgibbs ${REG_PRINT_OPT} \ 28102690Sgibbs -i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \ 29102690Sgibbs ${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq 30101131Sscottl 31101131SscottlSRCS= ${GENSRCS} 32101131SscottlSRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c 33101131SscottlSRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h 34101131SscottlSRCS+= device_if.h bus_if.h pci_if.h 35101131Sscottl 36109708SgibbsCLEANFILES= ${GENSRCS} 37101131Sscottl 38101131Sscottl.include <bsd.kmod.mk> 39228805Sdim 40228805SdimCWARNFLAGS.ahd_pci.c= ${NO_WCONSTANT_CONVERSION} 41228805SdimCWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 42