Add an ISA attachement to the aic7xxx driver to handle 284X controllers.
[dragonfly.git] / sys / dev / disk / aic7xxx / ahc / Makefile
1
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.6 2007/07/06 04:56:22 pavalos Exp $
4
5 .PATH:  ${.CURDIR}/..
6 KMOD=   ahc
7 SUBDIR= ahc_eisa ahc_isa ahc_pci
8
9 BEFORE_DEPEND= aic7xxx_{seq,reg}.h
10
11 ../aicasm/aicasm.nx:
12         ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm.nx; )
13
14 aic7xxx_{seq.h,reg.h,reg_print.c}:                                      \
15                 ${.CURDIR}/../aic7xxx.{reg,seq} \
16                 ${.CURDIR}/../../../../bus/cam/scsi/scsi_message.h ../aicasm/aicasm.nx
17         ${.OBJDIR}/../aicasm/aicasm.nx ${INCLUDES} -I${.CURDIR}/../../../../bus/cam/scsi \
18                         -I${.CURDIR}/..                                  \
19                         -o aic7xxx_seq.h -r aic7xxx_reg.h                \
20                         -p aic7xxx_reg_print.c                           \
21                         -i ${.CURDIR}/../aic7xxx_osm.h \
22                         ${.CURDIR}/../aic7xxx.seq
23
24 GENSRCS= aic7xxx_reg.h aic7xxx_seq.h use_pci.h
25
26 AHC_REG_PRETTY_PRINT=1
27 SRCS= ${GENSRCS}
28 .ifdef AHC_REG_PRETTY_PRINT
29 SRCS+= aic7xxx_reg_print.c
30 CFLAGS+= -DAHC_REG_PRETTY_PRINT=1
31 .endif
32 SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c
33 SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h
34 SRCS+= device_if.h bus_if.h pci_if.h
35
36 CLEANFILES= ${GENSRCS} aic7xxx_reg_print.c
37
38 .if !defined(BUILDING_WITH_KERNEL)
39 use_pci.h:
40         echo "#define NPCI 1" > use_pci.h
41 .endif
42
43 .include <bsd.kmod.mk>