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