Makefile (6cec9cad762b6476313fb1f8e931a1647822db6b) | Makefile (df3394b3de0c40cae69e46b795dc794db3a80c2e) |
---|---|
1 2# $FreeBSD$ 3 | 1 2# $FreeBSD$ 3 |
4.include <src.opts.mk> | 4SYSDIR?=${.CURDIR}/../../.. 5.include "${SYSDIR}/conf/kern.opts.mk" |
5 | 6 |
6.PATH: ${.CURDIR}/../../../dev/aic7xxx | 7.PATH: ${SYSDIR}/dev/aic7xxx |
7KMOD= ahc 8.if ${MK_EISA} != "no" 9SUBDIR+= ahc_eisa 10.endif 11SUBDIR+= ahc_isa ahc_pci 12 13GENSRCS= aic7xxx_seq.h aic7xxx_reg.h 14AHC_REG_PRETTY_PRINT=1 15REG_PRINT_OPT= 16.ifdef AHC_REG_PRETTY_PRINT 17GENSRCS+= aic7xxx_reg_print.c 18CFLAGS+= -DAHC_REG_PRETTY_PRINT=1 19REG_PRINT_OPT= -p aic7xxx_reg_print.c 20.endif 21BEFORE_DEPEND = ${GENSRCS} 22 | 8KMOD= ahc 9.if ${MK_EISA} != "no" 10SUBDIR+= ahc_eisa 11.endif 12SUBDIR+= ahc_isa ahc_pci 13 14GENSRCS= aic7xxx_seq.h aic7xxx_reg.h 15AHC_REG_PRETTY_PRINT=1 16REG_PRINT_OPT= 17.ifdef AHC_REG_PRETTY_PRINT 18GENSRCS+= aic7xxx_reg_print.c 19CFLAGS+= -DAHC_REG_PRETTY_PRINT=1 20REG_PRINT_OPT= -p aic7xxx_reg_print.c 21.endif 22BEFORE_DEPEND = ${GENSRCS} 23 |
23../aicasm/aicasm: ${.CURDIR}/../../../dev/aic7xxx/aicasm/*.[chyl] | 24../aicasm/aicasm: ${SYSDIR}/dev/aic7xxx/aicasm/*.[chyl] |
24 ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) 25 26.if make(ahcfirmware) 27ahcfirmware: ${GENSRCS} 28${GENSRCS}: \ | 25 ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; ) 26 27.if make(ahcfirmware) 28ahcfirmware: ${GENSRCS} 29${GENSRCS}: \ |
29 ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.{reg,seq} \ 30 ${.CURDIR}/../../../cam/scsi/scsi_message.h 31 ../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../cam/scsi \ 32 -I${.CURDIR}/../../../dev/aic7xxx \ | 30 ${SYSDIR}/dev/aic7xxx/aic7xxx.{reg,seq} \ 31 ${SYSDIR}/cam/scsi/scsi_message.h 32 ../aicasm/aicasm ${INCLUDES} -I${SYSDIR}/cam/scsi \ 33 -I${SYSDIR}/dev/aic7xxx \ |
33 -o aic7xxx_seq.h -r aic7xxx_reg.h \ 34 ${REG_PRINT_OPT} \ | 34 -o aic7xxx_seq.h -r aic7xxx_reg.h \ 35 ${REG_PRINT_OPT} \ |
35 -i ${.CURDIR}/../../../dev/aic7xxx/aic7xxx_osm.h \ 36 ${.CURDIR}/../../../dev/aic7xxx/aic7xxx.seq | 36 -i ${SYSDIR}/dev/aic7xxx/aic7xxx_osm.h \ 37 ${SYSDIR}/dev/aic7xxx/aic7xxx.seq |
37.else 38${GENSRCS}: 39 @echo "Error: ${.TARGET} is missing. Run 'make ahcfirmware'" 40.endif 41 42 43SRCS= ${GENSRCS} 44SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c 45SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h 46SRCS+= device_if.h bus_if.h pci_if.h 47 48.if make(cleanfirmware) 49cleanfirmware: clean 50CLEANFILES= ${GENSRCS} 51.endif 52 53.include <bsd.kmod.mk> | 38.else 39${GENSRCS}: 40 @echo "Error: ${.TARGET} is missing. Run 'make ahcfirmware'" 41.endif 42 43 44SRCS= ${GENSRCS} 45SRCS+= aic7xxx.c aic7xxx_93cx6.c aic7xxx_osm.c aic7770.c 46SRCS+= opt_scsi.h opt_aic7xxx.h opt_cam.h 47SRCS+= device_if.h bus_if.h pci_if.h 48 49.if make(cleanfirmware) 50cleanfirmware: clean 51CLEANFILES= ${GENSRCS} 52.endif 53 54.include <bsd.kmod.mk> |