2002-10-20 18:15:17 -04:00
|
|
|
|
2014-08-14 18:33:56 -04:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
|
2018-05-23 21:12:06 -04:00
|
|
|
WARNS?= 3
|
2022-07-22 08:46:30 -04:00
|
|
|
PACKAGE=devd
|
2018-08-21 12:51:45 -04:00
|
|
|
CONFGROUPS= CONFS DEVD
|
|
|
|
|
CONFS= devd.conf
|
|
|
|
|
DEVD= devmatch.conf
|
|
|
|
|
DEVDDIR= /etc/devd
|
|
|
|
|
.if ${MK_ACPI} != "no"
|
|
|
|
|
DEVD+= asus.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
2023-02-01 02:41:56 -05:00
|
|
|
CONFGROUPS+= DHCLIENT
|
|
|
|
|
DHCLIENTDIR= ${DEVDDIR}
|
|
|
|
|
DHCLIENT+= dhclient.conf
|
|
|
|
|
DHCLIENTPACKAGE= dhclient
|
|
|
|
|
|
2023-02-01 02:49:18 -05:00
|
|
|
CONFGROUPS+= POWERPROFILE
|
|
|
|
|
POWERPROFILEDIR= ${DEVDDIR}
|
|
|
|
|
POWERPROFILE+= power_profile.conf
|
|
|
|
|
POWERPROFILEPACKAGE= acpi
|
|
|
|
|
|
2023-02-01 04:35:56 -05:00
|
|
|
CONFGROUPS+= CONSOLE
|
|
|
|
|
CONSOLEDIR= ${DEVDDIR}
|
|
|
|
|
CONSOLE+= moused.conf syscons.conf
|
|
|
|
|
CONSOLEPACKAGE= console-tools
|
|
|
|
|
|
2023-02-01 02:44:46 -05:00
|
|
|
.if ${MK_BLUETOOTH} != "no"
|
|
|
|
|
CONFGROUPS+= BLUETOOTH
|
|
|
|
|
BLUETOOTHDIR= ${DEVDDIR}
|
|
|
|
|
BLUETOOTH+= bluetooth.conf
|
|
|
|
|
BLUETOOTHPACKAGE= bluetooth
|
|
|
|
|
.endif
|
|
|
|
|
|
2018-08-21 12:51:45 -04:00
|
|
|
.if ${MK_HYPERV} != "no"
|
2022-05-02 10:49:43 -04:00
|
|
|
CONFGROUPS+= HYPERV
|
|
|
|
|
HYPERVDIR=${DEVDDIR}
|
|
|
|
|
HYPERV+= hyperv.conf
|
|
|
|
|
HYPERVPACKAGE= hyperv-tools
|
2018-08-21 12:51:45 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MK_USB} != "no"
|
|
|
|
|
DEVD+= uath.conf ulpt.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
|
DEVD+= apple.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
|
|
|
DEVD+= zfs.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
2002-12-07 03:04:36 -05:00
|
|
|
PROG_CXX=devd
|
|
|
|
|
SRCS= devd.cc token.l parse.y y.tab.h
|
2002-11-14 05:00:01 -05:00
|
|
|
MAN= devd.8 devd.conf.5
|
2007-11-18 19:19:01 -05:00
|
|
|
|
2019-09-10 04:19:46 -04:00
|
|
|
LIBADD= util
|
2002-10-20 18:15:17 -04:00
|
|
|
|
|
|
|
|
YFLAGS+=-v
|
|
|
|
|
CFLAGS+=-I. -I${.CURDIR}
|
2018-05-23 06:03:09 -04:00
|
|
|
CFLAGS.clang += -Wno-missing-variable-declarations
|
2018-05-23 03:44:50 -04:00
|
|
|
CFLAGS.gcc = -Wno-redundant-decls
|
|
|
|
|
CXXFLAGS.gcc = -Wno-redundant-decls
|
2002-10-20 18:15:17 -04:00
|
|
|
|
2018-05-23 03:39:05 -04:00
|
|
|
CLEANFILES= y.output y.tab.i
|
2002-10-20 18:15:17 -04:00
|
|
|
|
2017-08-02 04:50:42 -04:00
|
|
|
HAS_TESTS=
|
2017-08-02 04:35:51 -04:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2014-08-14 18:33:56 -04:00
|
|
|
|
2002-10-20 18:15:17 -04:00
|
|
|
.include <bsd.prog.mk>
|