xref: /freebsd/sbin/devd/Makefile (revision 1b806e607f52285f973fb1106491668fd28da6a4)
1cdfa64aaSAlan Somers.include <src.opts.mk>
2cdfa64aaSAlan Somers
35e50df6dSWarner LoshWARNS?= 6
4ea0850e4SEmmanuel VadotPACKAGE=devd
544e1285cSBrad DavisCONFGROUPS=	CONFS DEVD
644e1285cSBrad DavisCONFS=	devd.conf
7*1b806e60SLexi 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
35*1b806e60SLexi WinterCONFGROUPS+=		SND
36*1b806e60SLexi WinterSNDDIR=			${DEVDDIR}
37*1b806e60SLexi WinterSND=			snd.conf
38*1b806e60SLexi WinterSNDPACKAGE=		sound
39*1b806e60SLexi Winter
409150a045SEmmanuel Vadot.if ${MK_BLUETOOTH} != "no"
419150a045SEmmanuel VadotCONFGROUPS+=		BLUETOOTH
429150a045SEmmanuel VadotBLUETOOTHDIR=		${DEVDDIR}
439150a045SEmmanuel VadotBLUETOOTH+=		bluetooth.conf
449150a045SEmmanuel VadotBLUETOOTHPACKAGE=	bluetooth
459150a045SEmmanuel Vadot.endif
469150a045SEmmanuel Vadot
4744e1285cSBrad Davis.if ${MK_HYPERV} != "no"
487ac164dcSMina GalićCONFGROUPS+=	HYPERV
497ac164dcSMina GalićHYPERVDIR=${DEVDDIR}
507ac164dcSMina GalićHYPERV+=	hyperv.conf
517ac164dcSMina GalićHYPERVPACKAGE=	hyperv-tools
5244e1285cSBrad Davis.endif
5344e1285cSBrad Davis
545c59cec2SJohn BaldwinCONFGROUPS+=		NVME
555c59cec2SJohn BaldwinNVMEDIR=		${DEVDDIR}
565c59cec2SJohn BaldwinNVME+=			nvmf.conf
575c59cec2SJohn BaldwinNVMEPACKAGE=		nvme-tools
585c59cec2SJohn Baldwin
5944e1285cSBrad Davis.if ${MK_USB} != "no"
6044e1285cSBrad DavisDEVD+=	uath.conf ulpt.conf
6144e1285cSBrad Davis.endif
6244e1285cSBrad Davis
6344e1285cSBrad Davis.if ${MACHINE_ARCH} == "powerpc"
6444e1285cSBrad DavisDEVD+=	apple.conf
6544e1285cSBrad Davis.endif
6644e1285cSBrad Davis
6744e1285cSBrad Davis.if ${MK_ZFS} != "no"
6844e1285cSBrad DavisDEVD+=	zfs.conf
6944e1285cSBrad Davis.endif
7044e1285cSBrad Davis
713054f218SWarner LoshPROG_CXX=devd
723054f218SWarner LoshSRCS=	devd.cc token.l parse.y y.tab.h
739f887a80STim J. RobbinsMAN=	devd.8 devd.conf.5
749538bab3SJohn Birrell
75e6f059a9SBaptiste DaroussinLIBADD=	util
76e530e044SWarner Losh
77e530e044SWarner LoshYFLAGS+=-v
78e530e044SWarner LoshCFLAGS+=-I. -I${.CURDIR}
79695a3b29SEitan AdlerCFLAGS.clang += -Wno-missing-variable-declarations
80e8d9a1edSEitan AdlerCFLAGS.gcc = -Wno-redundant-decls
81e8d9a1edSEitan AdlerCXXFLAGS.gcc = -Wno-redundant-decls
82e530e044SWarner Losh
830bc60783SEitan AdlerCLEANFILES= y.output y.tab.i
84e530e044SWarner Losh
85d511b20aSEnji CooperHAS_TESTS=
864b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
87cdfa64aaSAlan Somers
88e530e044SWarner Losh.include <bsd.prog.mk>
89