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 8*5a31987dSColin PercivalDEVD+= growfs_postboot.conf 944e1285cSBrad DavisDEVDDIR= /etc/devd 1044e1285cSBrad Davis.if ${MK_ACPI} != "no" 1144e1285cSBrad DavisDEVD+= asus.conf 1244e1285cSBrad Davis.endif 1344e1285cSBrad Davis 14272b4b76STijl Coosemans.if ${MK_AUTOFS} != "no" 15b3c116d5SEmmanuel VadotCONFGROUPS+= AUTOFS 16b3c116d5SEmmanuel VadotAUTOFSDIR= ${DEVDDIR} 17b3c116d5SEmmanuel VadotAUTOFS+= autofs.conf 18b3c116d5SEmmanuel VadotAUTOFSPACKAGE= autofs 19272b4b76STijl Coosemans.endif 20b3c116d5SEmmanuel Vadot 21f4d9116dSEmmanuel VadotCONFGROUPS+= DHCLIENT 22f4d9116dSEmmanuel VadotDHCLIENTDIR= ${DEVDDIR} 23f4d9116dSEmmanuel VadotDHCLIENT+= dhclient.conf 24f4d9116dSEmmanuel VadotDHCLIENTPACKAGE= dhclient 25f4d9116dSEmmanuel Vadot 26c4b244afSLexi Winter.if ${MACHINE} == "i386" || ${MACHINE} == "amd64" || \ 27c4b244afSLexi Winter ${MACHINE} == "arm64" 282878e21fSEmmanuel VadotCONFGROUPS+= POWERPROFILE 292878e21fSEmmanuel VadotPOWERPROFILEDIR= ${DEVDDIR} 302878e21fSEmmanuel VadotPOWERPROFILE+= power_profile.conf 312878e21fSEmmanuel VadotPOWERPROFILEPACKAGE= acpi 32c4b244afSLexi Winter.endif 332878e21fSEmmanuel Vadot 34cab549c7SEmmanuel VadotCONFGROUPS+= CONSOLE 35cab549c7SEmmanuel VadotCONSOLEDIR= ${DEVDDIR} 36cab549c7SEmmanuel VadotCONSOLE+= moused.conf syscons.conf 37cab549c7SEmmanuel VadotCONSOLEPACKAGE= console-tools 38cab549c7SEmmanuel Vadot 399150a045SEmmanuel Vadot.if ${MK_BLUETOOTH} != "no" 409150a045SEmmanuel VadotCONFGROUPS+= BLUETOOTH 419150a045SEmmanuel VadotBLUETOOTHDIR= ${DEVDDIR} 429150a045SEmmanuel VadotBLUETOOTH+= bluetooth.conf 439150a045SEmmanuel VadotBLUETOOTHPACKAGE= bluetooth 449150a045SEmmanuel Vadot.endif 459150a045SEmmanuel Vadot 4644e1285cSBrad Davis.if ${MK_HYPERV} != "no" 477ac164dcSMina GalićCONFGROUPS+= HYPERV 487ac164dcSMina GalićHYPERVDIR=${DEVDDIR} 497ac164dcSMina GalićHYPERV+= hyperv.conf 507ac164dcSMina GalićHYPERVPACKAGE= hyperv-tools 5144e1285cSBrad Davis.endif 5244e1285cSBrad Davis 535c59cec2SJohn BaldwinCONFGROUPS+= NVME 545c59cec2SJohn BaldwinNVMEDIR= ${DEVDDIR} 555c59cec2SJohn BaldwinNVME+= nvmf.conf 565c59cec2SJohn BaldwinNVMEPACKAGE= nvme-tools 575c59cec2SJohn Baldwin 58f74f8915SChristos Margiolis.if ${MK_SOUND} != "no" 59f74f8915SChristos MargiolisCONFGROUPS+= SND 60f74f8915SChristos MargiolisSNDDIR= ${DEVDDIR} 61f74f8915SChristos MargiolisSND= snd.conf 62f74f8915SChristos MargiolisSNDPACKAGE= sound 63f74f8915SChristos Margiolis.endif 64f74f8915SChristos Margiolis 6544e1285cSBrad Davis.if ${MK_USB} != "no" 6644e1285cSBrad DavisDEVD+= uath.conf ulpt.conf 6744e1285cSBrad Davis.endif 6844e1285cSBrad Davis 6944e1285cSBrad Davis.if ${MACHINE_ARCH} == "powerpc" 7044e1285cSBrad DavisDEVD+= apple.conf 7144e1285cSBrad Davis.endif 7244e1285cSBrad Davis 7344e1285cSBrad Davis.if ${MK_ZFS} != "no" 7444e1285cSBrad DavisDEVD+= zfs.conf 7544e1285cSBrad Davis.endif 7644e1285cSBrad Davis 773054f218SWarner LoshPROG_CXX=devd 783054f218SWarner LoshSRCS= devd.cc token.l parse.y y.tab.h 799f887a80STim J. RobbinsMAN= devd.8 devd.conf.5 809538bab3SJohn Birrell 81e6f059a9SBaptiste DaroussinLIBADD= util 82e530e044SWarner Losh 83e530e044SWarner LoshYFLAGS+=-v 84e530e044SWarner LoshCFLAGS+=-I. -I${.CURDIR} 85695a3b29SEitan AdlerCFLAGS.clang += -Wno-missing-variable-declarations 86e8d9a1edSEitan AdlerCFLAGS.gcc = -Wno-redundant-decls 87e8d9a1edSEitan AdlerCXXFLAGS.gcc = -Wno-redundant-decls 88e530e044SWarner Losh 890bc60783SEitan AdlerCLEANFILES= y.output y.tab.i 90e530e044SWarner Losh 91d511b20aSEnji CooperHAS_TESTS= 924b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests 93cdfa64aaSAlan Somers 94e530e044SWarner Losh.include <bsd.prog.mk> 95