Makefile revision 102690
1101131Sscottl
2101131Sscottl# $FreeBSD: head/sys/modules/aic7xxx/ahd/Makefile 102690 2002-08-31 06:57:50Z gibbs $
3101131Sscottl
4101131Sscottl.PATH:	${.CURDIR}/../../../dev/aic7xxx
5101131SscottlKMOD=	ahd
6101131Sscottl
7101131SscottlBEFORE_DEPEND= aic79xx_{seq,reg}.h
8101131Sscottl
9101131Sscottl../aicasm/aicasm:
10101131Sscottl	( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; )
11101131Sscottl
12102690Sgibbsaic79xx_{seq.h,reg.h,reg_print.c}:					\
13102690Sgibbs		${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq}	\
14102690Sgibbs		${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm
15102690Sgibbs	${.OBJDIR}/../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \
16102690Sgibbs			-I${.CURDIR}/../../../dev/aic7xxx		 \
17102690Sgibbs			-o aic79xx_seq.h -r aic79xx_reg.h		 \
18102690Sgibbs			-p aic79xx_reg_print.c				 \
19102690Sgibbs			-i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \
20102690Sgibbs			${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq
21101131Sscottl
22101131SscottlGENSRCS= aic79xx_reg.h aic79xx_seq.h
23101131Sscottl
24101131SscottlSRCS= ${GENSRCS}
25102690SgibbsAHD_REG_PRETTY_PRINT=1
26102690Sgibbs.ifdef AHD_REG_PRETTY_PRINT
27102690SgibbsSRCS+= aic79xx_reg_print.c
28102690SgibbsCFLAGS+= -DAHD_REG_PRETTY_PRINT=1
29102690Sgibbs.endif
30101131SscottlSRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
31101131SscottlSRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
32101131SscottlSRCS+= device_if.h bus_if.h pci_if.h
33101131Sscottl
34102690SgibbsCLEANFILES= ${GENSRCS} aic79xx_reg_print.c
35101131Sscottl
36101131Sscottl.include <bsd.kmod.mk>
37