1 2.include <src.opts.mk> 3 4WARNS?= 6 5PACKAGE=devd 6CONFGROUPS= CONFS DEVD 7CONFS= devd.conf 8DEVD= devmatch.conf 9DEVDDIR= /etc/devd 10.if ${MK_ACPI} != "no" 11DEVD+= asus.conf 12.endif 13 14.if ${MK_AUTOFS} != "no" 15CONFGROUPS+= AUTOFS 16AUTOFSDIR= ${DEVDDIR} 17AUTOFS+= autofs.conf 18AUTOFSPACKAGE= autofs 19.endif 20 21CONFGROUPS+= DHCLIENT 22DHCLIENTDIR= ${DEVDDIR} 23DHCLIENT+= dhclient.conf 24DHCLIENTPACKAGE= dhclient 25 26CONFGROUPS+= POWERPROFILE 27POWERPROFILEDIR= ${DEVDDIR} 28POWERPROFILE+= power_profile.conf 29POWERPROFILEPACKAGE= acpi 30 31CONFGROUPS+= CONSOLE 32CONSOLEDIR= ${DEVDDIR} 33CONSOLE+= moused.conf syscons.conf 34CONSOLEPACKAGE= console-tools 35 36.if ${MK_BLUETOOTH} != "no" 37CONFGROUPS+= BLUETOOTH 38BLUETOOTHDIR= ${DEVDDIR} 39BLUETOOTH+= bluetooth.conf 40BLUETOOTHPACKAGE= bluetooth 41.endif 42 43.if ${MK_HYPERV} != "no" 44CONFGROUPS+= HYPERV 45HYPERVDIR=${DEVDDIR} 46HYPERV+= hyperv.conf 47HYPERVPACKAGE= hyperv-tools 48.endif 49 50.if ${MK_USB} != "no" 51DEVD+= uath.conf ulpt.conf 52.endif 53 54.if ${MACHINE_ARCH} == "powerpc" 55DEVD+= apple.conf 56.endif 57 58.if ${MK_ZFS} != "no" 59DEVD+= zfs.conf 60.endif 61 62PROG_CXX=devd 63SRCS= devd.cc token.l parse.y y.tab.h 64MAN= devd.8 devd.conf.5 65 66LIBADD= util 67 68YFLAGS+=-v 69CFLAGS+=-I. -I${.CURDIR} 70CFLAGS.clang += -Wno-missing-variable-declarations 71CFLAGS.gcc = -Wno-redundant-decls 72CXXFLAGS.gcc = -Wno-redundant-decls 73 74CLEANFILES= y.output y.tab.i 75 76HAS_TESTS= 77SUBDIR.${MK_TESTS}+= tests 78 79.include <bsd.prog.mk> 80