]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/aic7xxx/ahd/Makefile
MFV: r351091
[FreeBSD/FreeBSD.git] / sys / modules / aic7xxx / ahd / Makefile
1
2 # $FreeBSD$
3
4 .PATH:  ${SRCTOP}/sys/dev/aic7xxx
5 KMOD=   ahd
6
7 GENSRCS= aic79xx_seq.h aic79xx_reg.h
8 REG_PRINT_OPT=
9 # AHD_REG_PRETTY_PRINT=1
10 .ifdef AHD_REG_PRETTY_PRINT
11 GENSRCS += aic79xx_reg_print.c
12 CFLAGS+= -DAHD_REG_PRETTY_PRINT=1
13 REG_PRINT_OPT= -p aic79xx_reg_print.c
14 .endif
15 BEFORE_DEPEND= ${GENSRCS}
16
17 .if make(ahdfirmware)
18 ahdfirmware: ${GENSRCS}
19 ${GENSRCS}:                                                              \
20                 ${SRCTOP}/sys/dev/aic7xxx/aic79xx.{reg,seq}      \
21                 ${SRCTOP}/sys/cam/scsi/scsi_message.h
22         aicasm ${INCLUDES} -I${SRCTOP}/sys/cam/scsi      \
23                         -I${SRCTOP}/sys/dev/aic7xxx              \
24                         -o aic79xx_seq.h -r aic79xx_reg.h                \
25                         ${REG_PRINT_OPT}                                 \
26                         -i ${SRCTOP}/sys/dev/aic7xxx/aic79xx_osm.h \
27                         ${SRCTOP}/sys/dev/aic7xxx/aic79xx.seq
28 .else
29 ${GENSRCS}: .NOMETA
30         @echo "Error: ${.TARGET} is missing.  Run 'make ahdfirmware'."
31 .endif
32
33
34 SRCS= ${GENSRCS}
35 SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
36 SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
37 SRCS+= device_if.h bus_if.h pci_if.h
38
39 .if make(cleanfirmware)
40 cleanfirmware: clean
41 CLEANFILES= ${GENSRCS}
42 .endif
43
44 .include <bsd.kmod.mk>
45
46 CWARNFLAGS.ahd_pci.c=   ${NO_WCONSTANT_CONVERSION}