2003-12-27 19:50:37 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-12-28 12:27:34 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
2005-05-10 12:02:18 +00:00
|
|
|
.PATH: ${.CURDIR}/../../pc98/cbus
|
2003-12-28 12:27:34 +00:00
|
|
|
.endif
|
2003-12-27 19:50:37 +00:00
|
|
|
.PATH: ${.CURDIR}/../../dev/sio
|
|
|
|
|
|
|
|
KMOD= sio
|
2006-04-28 21:21:53 +00:00
|
|
|
SRCS= bus_if.h card_if.h device_if.h isa_if.h pci_if.h serdev_if.h \
|
2011-08-27 14:24:27 +00:00
|
|
|
opt_compat.h opt_gdb.h opt_kdb.h opt_sio.h \
|
2004-05-26 00:53:10 +00:00
|
|
|
sio.c sio_pccard.c sio_pci.c sio_puc.c pccarddevs.h
|
2003-12-27 19:50:37 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
2003-12-28 12:27:34 +00:00
|
|
|
SRCS+= sio_cbus.c
|
2003-12-27 19:50:37 +00:00
|
|
|
.else
|
|
|
|
SRCS+= sio_isa.c
|
|
|
|
.endif
|
2003-12-28 12:27:34 +00:00
|
|
|
|
2005-10-14 23:30:17 +00:00
|
|
|
.if !defined(KERNBUILDDIR)
|
2003-12-27 19:50:37 +00:00
|
|
|
opt_compat.h:
|
2003-12-29 08:45:38 +00:00
|
|
|
echo "#define COMPAT_43 1" > ${.TARGET}
|
2003-12-27 19:50:37 +00:00
|
|
|
|
2003-12-29 08:35:33 +00:00
|
|
|
.if ${MACHINE} == "pc98"
|
|
|
|
opt_sio.h:
|
2003-12-29 08:45:38 +00:00
|
|
|
echo "#define COM_MULTIPORT 1" > ${.TARGET}
|
|
|
|
echo "#define COM_ESP 1" >> ${.TARGET}
|
2003-12-29 08:35:33 +00:00
|
|
|
.endif
|
2005-10-14 23:30:17 +00:00
|
|
|
.endif
|
2003-12-27 19:50:37 +00:00
|
|
|
|
|
|
|
.include <bsd.kmod.mk>
|