2002-08-01 01:36:39 +00:00
|
|
|
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../../dev/aic7xxx
|
|
|
|
KMOD= ahd
|
|
|
|
|
2005-01-26 16:29:07 +00:00
|
|
|
WERROR=
|
2004-10-24 07:54:44 +00:00
|
|
|
GENSRCS= aic79xx_seq.h aic79xx_reg.h
|
2003-01-22 21:56:54 +00:00
|
|
|
REG_PRINT_OPT=
|
|
|
|
AHD_REG_PRETTY_PRINT=1
|
|
|
|
.ifdef AHD_REG_PRETTY_PRINT
|
|
|
|
GENSRCS += aic79xx_reg_print.c
|
|
|
|
CFLAGS+= -DAHD_REG_PRETTY_PRINT=1
|
|
|
|
REG_PRINT_OPT= -p aic79xx_reg_print.c
|
|
|
|
.endif
|
|
|
|
BEFORE_DEPEND= ${GENSRCS}
|
2002-08-01 01:36:39 +00:00
|
|
|
|
2003-01-22 21:56:54 +00:00
|
|
|
../aicasm/aicasm: ${.CURDIR}/../../../dev/aic7xxx/aicasm/*.[chyl]
|
2002-08-01 01:36:39 +00:00
|
|
|
( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; )
|
|
|
|
|
2003-01-22 21:56:54 +00:00
|
|
|
${GENSRCS}: \
|
|
|
|
${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq} \
|
2002-08-31 06:57:50 +00:00
|
|
|
${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm
|
2002-11-03 23:48:14 +00:00
|
|
|
../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \
|
2002-08-31 06:57:50 +00:00
|
|
|
-I${.CURDIR}/../../../dev/aic7xxx \
|
|
|
|
-o aic79xx_seq.h -r aic79xx_reg.h \
|
2003-01-22 21:56:54 +00:00
|
|
|
${REG_PRINT_OPT} \
|
2002-08-31 06:57:50 +00:00
|
|
|
-i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \
|
|
|
|
${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq
|
2002-08-01 01:36:39 +00:00
|
|
|
|
|
|
|
SRCS= ${GENSRCS}
|
|
|
|
SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
|
|
|
|
SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
|
|
|
|
SRCS+= device_if.h bus_if.h pci_if.h
|
|
|
|
|
2003-01-22 21:56:54 +00:00
|
|
|
CLEANFILES= ${GENSRCS}
|
2002-08-01 01:36:39 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|