]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/modules/aic7xxx/ahc/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / modules / aic7xxx / ahc / Makefile
1
2 # $FreeBSD$
3
4 .PATH:  ${.CURDIR}/../../../dev/aic7xxx
5 KMOD=   ahc
6 SUBDIR= ahc_eisa ahc_isa ahc_pci
7
8 GENSRCS= aic7xxx_seq.h aic7xxx_reg.h
9 AHC_REG_PRETTY_PRINT=1
10 REG_PRINT_OPT=
11 .ifdef AHC_REG_PRETTY_PRINT
12 GENSRCS+= aic7xxx_reg_print.c
13 CFLAGS+= -DAHC_REG_PRETTY_PRINT=1
14 REG_PRINT_OPT= -p aic7xxx_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 .if make(ahcfirmware)
22 ahcfirmware: ${GENSRCS}
23 ${GENSRCS}:                                                              \
24                 ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.{reg,seq}        \
25                 ${.CURDIR}/../../../cam/scsi/scsi_message.h 
26         ../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi      \
27                         -I${.CURDIR}/../../../dev/aic7xxx                \
28                         -o aic7xxx_seq.h -r aic7xxx_reg.h                \
29                         ${REG_PRINT_OPT}                                 \
30                         -i ${.CURDIR}/../../../dev/aic7xxx/aic7xxx_osm.h \
31                         ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.seq
32 .else
33 ${GENSRCS}:
34         @echo "Error: ${.TARGET} is missing.  Run 'make ahcfirmware'"
35 .endif
36
37
38 SRCS= ${GENSRCS}
39 SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c
40 SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h
41 SRCS+= device_if.h bus_if.h pci_if.h
42
43 .if make(cleanfirmware)
44 cleanfirmware: clean
45 CLEANFILES= ${GENSRCS}
46 .endif
47
48 .include <bsd.kmod.mk>