1 2# $FreeBSD$ 3 4.PATH: ${.CURDIR}/../../../dev/aic7xxx 5KMOD= ahd 6 7WERROR= 8GENSRCS= aic79xx_seq.h aic79xx_reg.h 9REG_PRINT_OPT= 10AHD_REG_PRETTY_PRINT=1 11.ifdef AHD_REG_PRETTY_PRINT 12GENSRCS += aic79xx_reg_print.c 13CFLAGS+= -DAHD_REG_PRETTY_PRINT=1 14REG_PRINT_OPT= -p aic79xx_reg_print.c 15.endif 16BEFORE_DEPEND= ${GENSRCS} 17 18${GENSRCS}: \ 19 ${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq} \ 20 ${.CURDIR}/../../../cam/scsi/scsi_message.h 21 aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ 22 -I${.CURDIR}/../../../dev/aic7xxx \ 23 -o aic79xx_seq.h -r aic79xx_reg.h \ 24 ${REG_PRINT_OPT} \ 25 -i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \ 26 ${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq 27 28SRCS= ${GENSRCS} 29SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c 30SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h 31SRCS+= device_if.h bus_if.h pci_if.h 32 33CLEANFILES= ${GENSRCS} 34 35.include <bsd.kmod.mk> 36 37CWARNFLAGS.ahd_pci.c= ${NO_WCONSTANT_CONVERSION} 38CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 39