2 # $FreeBSD: src/sys/modules/aic7xxx/ahc/Makefile,v 1.2.2.1 2002/09/02 05:47:44 scottl Exp $
3 # $DragonFly: src/sys/dev/disk/aic7xxx/ahc/Makefile,v 1.2 2003/06/17 04:28:43 dillon Exp $
5 .PATH: ${.CURDIR}/../../../dev/aic7xxx
7 SUBDIR= ahc_eisa ahc_pci
9 BEFORE_DEPEND= aic7xxx_{seq,reg}.h
12 ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; )
14 aic7xxx_{seq.h,reg.h,reg_print.c}: \
15 ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.{reg,seq} \
16 ${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm
17 ${.OBJDIR}/../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \
18 -I${.CURDIR}/../../../dev/aic7xxx \
19 -o aic7xxx_seq.h -r aic7xxx_reg.h \
20 -p aic7xxx_reg_print.c \
21 -i ${.CURDIR}/../../../dev/aic7xxx/aic7xxx_osm.h \
22 ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.seq
24 GENSRCS= aic7xxx_reg.h aic7xxx_seq.h pci.h
26 AHC_REG_PRETTY_PRINT=1
28 .ifdef AHC_REG_PRETTY_PRINT
29 SRCS+= aic7xxx_reg_print.c
30 CFLAGS+= -DAHC_REG_PRETTY_PRINT=1
32 SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c
33 SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h
34 SRCS+= device_if.h bus_if.h pci_if.h
36 CLEANFILES= ${GENSRCS} aic7xxx_reg_print.c
39 echo "#define NPCI 1" > pci.h
41 .include <bsd.kmod.mk>