]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/modules/aic7xxx/ahd/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.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 .if make(ahdfirmware)
19 ahdfirmware: ${GENSRCS}
20 ${GENSRCS}:                                                              \
21                 ${.CURDIR}/../../../dev/aic7xxx/aic79xx.{reg,seq}        \
22                 ${.CURDIR}/../../../cam/scsi/scsi_message.h
23         aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi        \
24                         -I${.CURDIR}/../../../dev/aic7xxx                \
25                         -o aic79xx_seq.h -r aic79xx_reg.h                \
26                         ${REG_PRINT_OPT}                                 \
27                         -i ${.CURDIR}/../../../dev/aic7xxx/aic79xx_osm.h \
28                         ${.CURDIR}/../../../dev/aic7xxx/aic79xx.seq
29 .else
30 ${GENSRCS}:
31         @echo "Error: ${.TARGET} is missing.  Run 'make ahdfirmware'."
32 .endif
33
34
35 SRCS= ${GENSRCS}
36 SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
37 SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
38 SRCS+= device_if.h bus_if.h pci_if.h
39
40 .if make(cleanfirmware)
41 cleanfirmware: clean
42 CLEANFILES= ${GENSRCS}
43 .endif
44
45 .include <bsd.kmod.mk>
46
47 CWARNFLAGS.ahd_pci.c=   ${NO_WCONSTANT_CONVERSION}
48 CWARNFLAGS+=            ${CWARNFLAGS.${.IMPSRC:T}}