1SYSDIR?=${SRCTOP}/sys 2.PATH: ${SYSDIR}/dev/aic7xxx 3KMOD= ahc 4SUBDIR+= ahc_isa ahc_pci 5 6GENSRCS= aic7xxx_seq.h aic7xxx_reg.h 7# AHC_REG_PRETTY_PRINT=1 8REG_PRINT_OPT= 9.ifdef AHC_REG_PRETTY_PRINT 10GENSRCS+= aic7xxx_reg_print.c 11CFLAGS+= -DAHC_REG_PRETTY_PRINT=1 12REG_PRINT_OPT= -p aic7xxx_reg_print.c 13.endif 14BEFORE_DEPEND = ${GENSRCS} 15 16../aicasm/aicasm: ${SYSDIR}/dev/aic7xxx/aicasm/*.[chyl] 17 ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) 18 19.if make(ahcfirmware) 20ahcfirmware: ${GENSRCS} 21${GENSRCS}: \ 22 ${SYSDIR}/dev/aic7xxx/aic7xxx.{reg,seq} \ 23 ${SYSDIR}/cam/scsi/scsi_message.h 24 ../aicasm/aicasm ${INCLUDES} -I${SYSDIR}/cam/scsi \ 25 -I${SYSDIR}/dev/aic7xxx \ 26 -o aic7xxx_seq.h -r aic7xxx_reg.h \ 27 ${REG_PRINT_OPT} \ 28 -i "<dev/aic7xxx/aic7xxx_osm.h>" \ 29 ${SYSDIR}/dev/aic7xxx/aic7xxx.seq 30.elif defined(.MAKE.LEVEL) 31# This target interfers with fmake's world view and causes this message 32# to appear when building the tree from 8.x worlds where fmake is the 33# default. fmake doens't define .MAKE.LEVEL so key off that to omit it, 34# while still allowing more-modern makes to theoretically update things. 35${GENSRCS}: .NOMETA 36 @echo "Error: ${.TARGET} is missing. Run 'make ahcfirmware'" 37.endif 38 39 40SRCS= ${GENSRCS} 41SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c 42SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h 43SRCS+= device_if.h bus_if.h pci_if.h 44 45.if make(cleanfirmware) 46cleanfirmware: clean 47CLEANFILES= ${GENSRCS} 48.endif 49 50EXPORT_SYMS= YES 51 52.include <bsd.kmod.mk> 53