4478eee407cca7f24840b80b6baef66dddaae7d2
[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
4 .PATH:  ${.CURDIR}/..
5 KMOD=   ahc
6 SUBDIR= ahc_pci
7
8 BEFORE_DEPEND= aic7xxx_{seq,reg}.h
9
10 ../aicasm/aicasm.nx:
11         ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm.nx; )
12
13 aic7xxx_{seq.h,reg.h,reg_print.c}:                                      \
14                 ${.CURDIR}/../aic7xxx.{reg,seq} \
15                 ${.CURDIR}/../../../../bus/cam/scsi/scsi_message.h ../aicasm/aicasm.nx
16         ${.OBJDIR}/../aicasm/aicasm.nx ${INCLUDES} -I${.CURDIR}/../../../../bus/cam/scsi \
17                         -I${.CURDIR}/..                                  \
18                         -o aic7xxx_seq.h -r aic7xxx_reg.h                \
19                         -p aic7xxx_reg_print.c                           \
20                         -i ${.CURDIR}/../aic7xxx_osm.h \
21                         ${.CURDIR}/../aic7xxx.seq
22
23 GENSRCS= aic7xxx_reg.h aic7xxx_seq.h use_pci.h
24
25 AHC_REG_PRETTY_PRINT=1
26 SRCS= ${GENSRCS}
27 .ifdef AHC_REG_PRETTY_PRINT
28 SRCS+= aic7xxx_reg_print.c
29 CFLAGS+= -DAHC_REG_PRETTY_PRINT=1
30 .endif
31 SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c
32 SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h
33 SRCS+= device_if.h bus_if.h pci_if.h
34
35 CLEANFILES= ${GENSRCS} aic7xxx_reg_print.c
36
37 .if !defined(BUILDING_WITH_KERNEL)
38 use_pci.h:
39         echo "#define NPCI 1" > ${.TARGET}
40 .endif
41
42 .include <bsd.kmod.mk>