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