1 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6.PATH: ${.CURDIR}/../../../dev/aic7xxx 7KMOD= ahc 8.if ${MK_EISA} != "no" 9SUBDIR+= ahc_eisa 10.endif 11SUBDIR+= ahc_isa ahc_pci 12 13GENSRCS= aic7xxx_seq.h aic7xxx_reg.h 14AHC_REG_PRETTY_PRINT=1 15REG_PRINT_OPT= 16.ifdef AHC_REG_PRETTY_PRINT 17GENSRCS+= aic7xxx_reg_print.c 18CFLAGS+= -DAHC_REG_PRETTY_PRINT=1 19REG_PRINT_OPT= -p aic7xxx_reg_print.c 20.endif 21BEFORE_DEPEND = ${GENSRCS} 22 23../aicasm/aicasm: ${.CURDIR}/../../../dev/aic7xxx/aicasm/*.[chyl] 24 ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) 25 26.if make(ahcfirmware) 27ahcfirmware: ${GENSRCS} 28${GENSRCS}: \ 29 ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.{reg,seq} \ 30 ${.CURDIR}/../../../cam/scsi/scsi_message.h 31 ../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ 32 -I${.CURDIR}/../../../dev/aic7xxx \ 33 -o aic7xxx_seq.h -r aic7xxx_reg.h \ 34 ${REG_PRINT_OPT} \ 35 -i ${.CURDIR}/../../../dev/aic7xxx/aic7xxx_osm.h \ 36 ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.seq 37.else 38${GENSRCS}: 39 @echo "Error: ${.TARGET} is missing. Run 'make ahcfirmware'" 40.endif 41 42 43SRCS= ${GENSRCS} 44SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c 45SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h 46SRCS+= device_if.h bus_if.h pci_if.h 47 48.if make(cleanfirmware) 49cleanfirmware: clean 50CLEANFILES= ${GENSRCS} 51.endif 52 53.include <bsd.kmod.mk> 54