822923447e
the kernel by wrapping all targets for fake opt_*.h files in .if defined(KERNBUILDDIR). Thus, such fake files won't be created at all if modules are built with the kernel. Some modules undergo cleanup like removing unused or unneeded options or .h files, without which they wouldn't build this way or the other. Reviewed by: ru Tested by: no binary changes in modules built alone Tested on: i386 sparc64 amd64
30 lines
611 B
Makefile
30 lines
611 B
Makefile
# $FreeBSD$
|
|
|
|
.if ${MACHINE} == "pc98"
|
|
.PATH: ${.CURDIR}/../../pc98/cbus
|
|
.endif
|
|
.PATH: ${.CURDIR}/../../dev/sio
|
|
|
|
KMOD= sio
|
|
SRCS= bus_if.h card_if.h device_if.h isa_if.h pci_if.h \
|
|
opt_comconsole.h opt_compat.h opt_gdb.h opt_kdb.h opt_sio.h \
|
|
sio.c sio_pccard.c sio_pci.c sio_puc.c pccarddevs.h
|
|
.if ${MACHINE} == "pc98"
|
|
SRCS+= sio_cbus.c
|
|
.else
|
|
SRCS+= sio_isa.c
|
|
.endif
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
opt_compat.h:
|
|
echo "#define COMPAT_43 1" > ${.TARGET}
|
|
|
|
.if ${MACHINE} == "pc98"
|
|
opt_sio.h:
|
|
echo "#define COM_MULTIPORT 1" > ${.TARGET}
|
|
echo "#define COM_ESP 1" >> ${.TARGET}
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|