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