]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/modules/aic7xxx/ahd/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / modules / aic7xxx / ahd / Makefile
1
2 # $FreeBSD$
3
4 .PATH:  ${.CURDIR}/../../../dev/aic7xxx
5 KMOD=   ahd
6
7 WERROR=
8 GENSRCS= aic79xx_seq.h aic79xx_reg.h
9 REG_PRINT_OPT=
10 AHD_REG_PRETTY_PRINT=1
11 .ifdef AHD_REG_PRETTY_PRINT
12 GENSRCS += aic79xx_reg_print.c
13 CFLAGS+= -DAHD_REG_PRETTY_PRINT=1
14 REG_PRINT_OPT= -p aic79xx_reg_print.c
15 .endif
16 BEFORE_DEPEND= ${GENSRCS}
17
18 ../aicasm/aicasm: ${.CURDIR}/../../../dev/aic7xxx/aicasm/*.[chyl]
19         ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; )
20
21 ${GENSRCS}:                                                              \
22                 ${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq}        \
23                 ${.CURDIR}/../../../cam/scsi/scsi_message.h ../aicasm/aicasm
24         ../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi      \
25                         -I${.CURDIR}/../../../dev/aic7xxx                \
26                         -o aic79xx_seq.h -r aic79xx_reg.h                \
27                         ${REG_PRINT_OPT}                                 \
28                         -i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \
29                         ${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq
30
31 SRCS= ${GENSRCS}
32 SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
33 SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
34 SRCS+= device_if.h bus_if.h pci_if.h
35
36 CLEANFILES= ${GENSRCS}
37
38 .include <bsd.kmod.mk>
39
40 CWARNFLAGS.ahd_pci.c=   ${NO_WCONSTANT_CONVERSION}
41 CWARNFLAGS+=            ${CWARNFLAGS.${.IMPSRC:T}}