Deleted Added
full compact
Makefile (123959) Makefile (123960)
1# $FreeBSD: head/sys/modules/sio/Makefile 123959 2003-12-29 08:35:33Z bde $
1# $FreeBSD: head/sys/modules/sio/Makefile 123960 2003-12-29 08:45:38Z bde $
2
3.if ${MACHINE} == "pc98"
4.PATH: ${.CURDIR}/../../pc98/pc98
5.endif
6.PATH: ${.CURDIR}/../../dev/sio
7
8KMOD= sio
2
3.if ${MACHINE} == "pc98"
4.PATH: ${.CURDIR}/../../pc98/pc98
5.endif
6.PATH: ${.CURDIR}/../../dev/sio
7
8KMOD= sio
9SRCS= sio.c sio_pccard.c sio_pci.c sio_puc.c
10SRCS+= opt_sio.h opt_ddb.h opt_compat.h opt_comconsole.h \
11 bus_if.h card_if.h device_if.h isa_if.h pci_if.h
12
9SRCS= bus_if.h card_if.h device_if.h isa_if.h pci_if.h \
10 opt_comconsole.h opt_compat.h opt_ddb.h opt_sio.h \
11 sio.c sio_pccard.c sio_pci.c sio_puc.c
13.if ${MACHINE} == "pc98"
14SRCS+= sio_cbus.c
15.else
16SRCS+= sio_isa.c
17.endif
18.if ${MACHINE} == "sparc64"
19### untested
20SRCS+= sio_ebus.c
21.endif
22
23opt_compat.h:
12.if ${MACHINE} == "pc98"
13SRCS+= sio_cbus.c
14.else
15SRCS+= sio_isa.c
16.endif
17.if ${MACHINE} == "sparc64"
18### untested
19SRCS+= sio_ebus.c
20.endif
21
22opt_compat.h:
24 @echo '#define COMPAT_43 1' > opt_compat.h
25 @echo '#define COMPAT_FREEBSD4 1' >> opt_compat.h
23 echo "#define COMPAT_43 1" > ${.TARGET}
26
27.if ${MACHINE} == "pc98"
28opt_sio.h:
24
25.if ${MACHINE} == "pc98"
26opt_sio.h:
29 @echo '#define COM_MULTIPORT 1' > opt_sio.h
30 @echo '#define COM_ESP 1' >> opt_sio.h
27 echo "#define COM_MULTIPORT 1" > ${.TARGET}
28 echo "#define COM_ESP 1" >> ${.TARGET}
31.endif
32
33.include <bsd.kmod.mk>
29.endif
30
31.include <bsd.kmod.mk>