4 .PATH: ${.CURDIR}/../../../dev/aic7xxx
8 GENSRCS= aic79xx_seq.h aic79xx_reg.h
10 AHD_REG_PRETTY_PRINT=1
11 .ifdef AHD_REG_PRETTY_PRINT
12 GENSRCS += aic79xx_reg_print.c
13 CFLAGS+= -DAHD_REG_PRETTY_PRINT=1
14 REG_PRINT_OPT= -p aic79xx_reg_print.c
16 BEFORE_DEPEND= ${GENSRCS}
19 ahdfirmware: ${GENSRCS}
21 ${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq} \
22 ${.CURDIR}/../../../cam/scsi/scsi_message.h
23 aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \
24 -I${.CURDIR}/../../../dev/aic7xxx \
25 -o aic79xx_seq.h -r aic79xx_reg.h \
27 -i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \
28 ${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq
31 @echo "Error: ${.TARGET} is missing. Run 'make ahdfirmware'."
36 SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
37 SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
38 SRCS+= device_if.h bus_if.h pci_if.h
40 .if make(cleanfirmware)
42 CLEANFILES= ${GENSRCS}
45 .include <bsd.kmod.mk>
47 CWARNFLAGS.ahd_pci.c= ${NO_WCONSTANT_CONVERSION}
48 CWARNFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}}