1cdfa64aaSAlan Somers.include <src.opts.mk> 2cdfa64aaSAlan Somers 35e50df6dSWarner LoshWARNS?= 6 4ea0850e4SEmmanuel VadotPACKAGE=devd 544e1285cSBrad DavisCONFGROUPS= CONFS DEVD 644e1285cSBrad DavisCONFS= devd.conf 71b806e60SLexi WinterDEVD= devmatch.conf 844e1285cSBrad DavisDEVDDIR= /etc/devd 944e1285cSBrad Davis.if ${MK_ACPI} != "no" 1044e1285cSBrad DavisDEVD+= asus.conf 1144e1285cSBrad Davis.endif 1244e1285cSBrad Davis 13272b4b76STijl Coosemans.if ${MK_AUTOFS} != "no" 14b3c116d5SEmmanuel VadotCONFGROUPS+= AUTOFS 15b3c116d5SEmmanuel VadotAUTOFSDIR= ${DEVDDIR} 16b3c116d5SEmmanuel VadotAUTOFS+= autofs.conf 17b3c116d5SEmmanuel VadotAUTOFSPACKAGE= autofs 18272b4b76STijl Coosemans.endif 19b3c116d5SEmmanuel Vadot 20f4d9116dSEmmanuel VadotCONFGROUPS+= DHCLIENT 21f4d9116dSEmmanuel VadotDHCLIENTDIR= ${DEVDDIR} 22f4d9116dSEmmanuel VadotDHCLIENT+= dhclient.conf 23f4d9116dSEmmanuel VadotDHCLIENTPACKAGE= dhclient 24f4d9116dSEmmanuel Vadot 252878e21fSEmmanuel VadotCONFGROUPS+= POWERPROFILE 262878e21fSEmmanuel VadotPOWERPROFILEDIR= ${DEVDDIR} 272878e21fSEmmanuel VadotPOWERPROFILE+= power_profile.conf 282878e21fSEmmanuel VadotPOWERPROFILEPACKAGE= acpi 292878e21fSEmmanuel Vadot 30cab549c7SEmmanuel VadotCONFGROUPS+= CONSOLE 31cab549c7SEmmanuel VadotCONSOLEDIR= ${DEVDDIR} 32cab549c7SEmmanuel VadotCONSOLE+= moused.conf syscons.conf 33cab549c7SEmmanuel VadotCONSOLEPACKAGE= console-tools 34cab549c7SEmmanuel Vadot 359150a045SEmmanuel Vadot.if ${MK_BLUETOOTH} != "no" 369150a045SEmmanuel VadotCONFGROUPS+= BLUETOOTH 379150a045SEmmanuel VadotBLUETOOTHDIR= ${DEVDDIR} 389150a045SEmmanuel VadotBLUETOOTH+= bluetooth.conf 399150a045SEmmanuel VadotBLUETOOTHPACKAGE= bluetooth 409150a045SEmmanuel Vadot.endif 419150a045SEmmanuel Vadot 4244e1285cSBrad Davis.if ${MK_HYPERV} != "no" 437ac164dcSMina GalićCONFGROUPS+= HYPERV 447ac164dcSMina GalićHYPERVDIR=${DEVDDIR} 457ac164dcSMina GalićHYPERV+= hyperv.conf 467ac164dcSMina GalićHYPERVPACKAGE= hyperv-tools 4744e1285cSBrad Davis.endif 4844e1285cSBrad Davis 495c59cec2SJohn BaldwinCONFGROUPS+= NVME 505c59cec2SJohn BaldwinNVMEDIR= ${DEVDDIR} 515c59cec2SJohn BaldwinNVME+= nvmf.conf 525c59cec2SJohn BaldwinNVMEPACKAGE= nvme-tools 535c59cec2SJohn Baldwin 54*f74f8915SChristos Margiolis.if ${MK_SOUND} != "no" 55*f74f8915SChristos MargiolisCONFGROUPS+= SND 56*f74f8915SChristos MargiolisSNDDIR= ${DEVDDIR} 57*f74f8915SChristos MargiolisSND= snd.conf 58*f74f8915SChristos MargiolisSNDPACKAGE= sound 59*f74f8915SChristos Margiolis.endif 60*f74f8915SChristos Margiolis 6144e1285cSBrad Davis.if ${MK_USB} != "no" 6244e1285cSBrad DavisDEVD+= uath.conf ulpt.conf 6344e1285cSBrad Davis.endif 6444e1285cSBrad Davis 6544e1285cSBrad Davis.if ${MACHINE_ARCH} == "powerpc" 6644e1285cSBrad DavisDEVD+= apple.conf 6744e1285cSBrad Davis.endif 6844e1285cSBrad Davis 6944e1285cSBrad Davis.if ${MK_ZFS} != "no" 7044e1285cSBrad DavisDEVD+= zfs.conf 7144e1285cSBrad Davis.endif 7244e1285cSBrad Davis 733054f218SWarner LoshPROG_CXX=devd 743054f218SWarner LoshSRCS= devd.cc token.l parse.y y.tab.h 759f887a80STim J. RobbinsMAN= devd.8 devd.conf.5 769538bab3SJohn Birrell 77e6f059a9SBaptiste DaroussinLIBADD= util 78e530e044SWarner Losh 79e530e044SWarner LoshYFLAGS+=-v 80e530e044SWarner LoshCFLAGS+=-I. -I${.CURDIR} 81695a3b29SEitan AdlerCFLAGS.clang += -Wno-missing-variable-declarations 82e8d9a1edSEitan AdlerCFLAGS.gcc = -Wno-redundant-decls 83e8d9a1edSEitan AdlerCXXFLAGS.gcc = -Wno-redundant-decls 84e530e044SWarner Losh 850bc60783SEitan AdlerCLEANFILES= y.output y.tab.i 86e530e044SWarner Losh 87d511b20aSEnji CooperHAS_TESTS= 884b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests 89cdfa64aaSAlan Somers 90e530e044SWarner Losh.include <bsd.prog.mk> 91