25d6e2cc4f
Avoid creating (and subsequently using) fake opt_*.h files when the modules are built with the kernel and hence actual opt_*.h files are available in ${KERNBUILDDIR}. Fix a few small bugs that would prevent this from working. At last the build options of the modules become consistent with those of the kernel unless the MODULES_WITH_WORLD way still is used. Approved by: re (kensmith, scottl) Requested by: ru Tested on: amd64 i386 sparc64 Tested by: md5
14 lines
250 B
Makefile
14 lines
250 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../dev/usb
|
|
|
|
KMOD= ukbd
|
|
SRCS= bus_if.h device_if.h opt_usb.h opt_kbd.h opt_ukbd.h usbdevs.h ukbd.c
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
opt_kbd.h:
|
|
echo "#define KBD_INSTALL_CDEV 1" > ${.TARGET}
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|