You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.3KB

  1. # $FreeBSD$
  2. #.PATH: ${SRCTOP}/sys/dev/iicbus/input
  3. .if !defined(OSVERSION)
  4. # Search for kernel source tree in standard places.
  5. .if empty(KERNBUILDDIR)
  6. .if !defined(SYSDIR)
  7. .for _dir in ${SRCTOP:D${SRCTOP}/sys} \
  8. ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
  9. ${.CURDIR}/../../../../.. /sys /usr/src/sys
  10. .if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
  11. SYSDIR= ${_dir:tA}
  12. .endif
  13. .endfor
  14. .endif
  15. .if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
  16. !exists(${SYSDIR}/conf/kmod.mk)
  17. .error Unable to locate the kernel source tree. Set SYSDIR to override.
  18. .endif
  19. .endif
  20. OSVERSION!= awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
  21. ${SYSDIR}/sys/param.h
  22. .endif
  23. KMOD = iichid
  24. SRCS = iichid.c iichid.h hconf.c hconf.h hms.c hmt.c hpen.c
  25. SRCS += hidbus.c hidbus.h hid_if.c hid_if.h hid.c hid.h hid_lookup.c
  26. SRCS += hid_debug.h hid_debug.c
  27. SRCS += usbdevs.h usbhid.c
  28. SRCS += acpi_if.h bus_if.h device_if.h iicbus_if.h
  29. SRCS += opt_acpi.h opt_usb.h opt_evdev.h
  30. # Revert 5d3a4a2 for compiling hkbd on pre 1300068 systems
  31. .if ${OSVERSION} >= 1300068
  32. SRCS += opt_kbd.h opt_hkbd.h hkbd.c
  33. .endif
  34. CFLAGS+= -I${.CURDIR}
  35. CFLAGS += -DHID_DEBUG
  36. CFLAGS += -DEVDEV_SUPPORT
  37. #CFLAGS += -DHAVE_ACPI_IICBUS
  38. #CFLAGS += -DHAVE_IG4_POLLING
  39. .include <bsd.kmod.mk>