Make modules work again part 1: hook up 'dev'. Note that not all devices
[dragonfly.git] / sys / dev / disk / aic7xxx / ahd / Makefile
1
2 # $FreeBSD: src/sys/modules/aic7xxx/ahd/Makefile,v 1.2.2.1 2002/09/02 05:47:45 scottl Exp $
3 # $DragonFly: src/sys/dev/disk/aic7xxx/ahd/Makefile,v 1.3 2003/08/15 08:32:28 dillon Exp $
4
5 .PATH:  ${.CURDIR}/..
6 KMOD=   ahd
7
8 BEFORE_DEPEND= aic79xx_{seq,reg}.h
9
10 ../aicasm/aicasm:
11         ( cd ${.CURDIR}/../aicasm; ${MAKE} aicasm; )
12
13 aic79xx_{seq.h,reg.h,reg_print.c}:                                      \
14                 ${.CURDIR}/../aic79xx.{reg,seq} \
15                 ${.CURDIR}/../../../../bus/cam/scsi/scsi_message.h ../aicasm/aicasm
16         ${.OBJDIR}/../aicasm/aicasm ${INCLUDES} -I${.CURDIR}/../../../../bus/cam/scsi \
17                         -I${.CURDIR}/..          \
18                         -o aic79xx_seq.h -r aic79xx_reg.h                \
19                         -p aic79xx_reg_print.c                           \
20                         -i ${.CURDIR}/../aic79xx_osm.h \
21                         ${.CURDIR}/../aic79xx.seq
22
23 GENSRCS= aic79xx_reg.h aic79xx_seq.h
24
25 SRCS= ${GENSRCS}
26 AHD_REG_PRETTY_PRINT=1
27 .ifdef AHD_REG_PRETTY_PRINT
28 SRCS+= aic79xx_reg_print.c
29 CFLAGS+= -DAHD_REG_PRETTY_PRINT=1
30 .endif
31 SRCS+= aic79xx.c aic79xx_osm.c aic79xx_pci.c ahd_pci.c
32 SRCS+= opt_scsi.h opt_aic79xx.h opt_cam.h opt_ddb.h
33 SRCS+= device_if.h bus_if.h pci_if.h
34
35 CLEANFILES= ${GENSRCS} aic79xx_reg_print.c
36
37 .include <bsd.kmod.mk>