2 # $FreeBSD: src/sys/modules/aic7xxx/ahd/Makefile,v 1.2.2.1 2002/09/02 05:47:45 scottl Exp $
4 .PATH: ${.CURDIR}/../../../dev/aic7xxx
7 BEFORE_DEPEND= aic79xx_{seq,reg}.h
10 ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; )
12 aic79xx_{seq.h,reg.h,reg_print.c}: \
13 ${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq} \
14 ${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm
15 ${.OBJDIR}/../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \
16 -I${.CURDIR}/../../../dev/aic7xxx \
17 -o aic79xx_seq.h -r aic79xx_reg.h \
18 -p aic79xx_reg_print.c \
19 -i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \
20 ${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq
22 GENSRCS= aic79xx_reg.h aic79xx_seq.h
25 AHD_REG_PRETTY_PRINT=1
26 .ifdef AHD_REG_PRETTY_PRINT
27 SRCS+= aic79xx_reg_print.c
28 CFLAGS+= -DAHD_REG_PRETTY_PRINT=1
30 SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
31 SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
32 SRCS+= device_if.h bus_if.h pci_if.h
34 CLEANFILES= ${GENSRCS} aic79xx_reg_print.c
36 .include <bsd.kmod.mk>