4 .PATH: ${SRCTOP}/sys/dev/aic7xxx
7 GENSRCS= aic79xx_seq.h aic79xx_reg.h
9 # AHD_REG_PRETTY_PRINT=1
10 .ifdef AHD_REG_PRETTY_PRINT
11 GENSRCS += aic79xx_reg_print.c
12 CFLAGS+= -DAHD_REG_PRETTY_PRINT=1
13 REG_PRINT_OPT= -p aic79xx_reg_print.c
15 BEFORE_DEPEND= ${GENSRCS}
18 ahdfirmware: ${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 \
26 -i ${SRCTOP}/sys/dev/aic7xxx/aic79xx_osm.h \
27 ${SRCTOP}/sys/dev/aic7xxx/aic79xx.seq
30 @echo "Error: ${.TARGET} is missing. Run 'make ahdfirmware'."
35 SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
36 SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
37 SRCS+= device_if.h bus_if.h pci_if.h
39 .if make(cleanfirmware)
41 CLEANFILES= ${GENSRCS}
44 .include <bsd.kmod.mk>
46 CWARNFLAGS.ahd_pci.c= ${NO_WCONSTANT_CONVERSION}