xref: /freebsd/sbin/devd/Makefile (revision f4d9116de1dadc26d35302e1c5eb125e7de30db1)
1e530e044SWarner Losh# $FreeBSD$
2e530e044SWarner Losh
3cdfa64aaSAlan Somers.include <src.opts.mk>
4cdfa64aaSAlan Somers
53741a56cSMatt MacyWARNS?= 3
6ea0850e4SEmmanuel VadotPACKAGE=devd
744e1285cSBrad DavisCONFGROUPS=	CONFS DEVD
844e1285cSBrad DavisCONFS=	devd.conf
944e1285cSBrad DavisDEVD=	devmatch.conf
1044e1285cSBrad DavisDEVDDIR=	/etc/devd
1144e1285cSBrad Davis.if ${MK_ACPI} != "no"
1244e1285cSBrad DavisDEVD+=	asus.conf
1344e1285cSBrad Davis.endif
1444e1285cSBrad Davis
15*f4d9116dSEmmanuel VadotCONFGROUPS+=		DHCLIENT
16*f4d9116dSEmmanuel VadotDHCLIENTDIR=		${DEVDDIR}
17*f4d9116dSEmmanuel VadotDHCLIENT+=		dhclient.conf
18*f4d9116dSEmmanuel VadotDHCLIENTPACKAGE=	dhclient
19*f4d9116dSEmmanuel Vadot
2044e1285cSBrad Davis.if ${MK_HYPERV} != "no"
217ac164dcSMina GalićCONFGROUPS+=	HYPERV
227ac164dcSMina GalićHYPERVDIR=${DEVDDIR}
237ac164dcSMina GalićHYPERV+=	hyperv.conf
247ac164dcSMina GalićHYPERVPACKAGE=	hyperv-tools
2544e1285cSBrad Davis.endif
2644e1285cSBrad Davis
2744e1285cSBrad Davis.if ${MK_USB} != "no"
2844e1285cSBrad DavisDEVD+=	uath.conf ulpt.conf
2944e1285cSBrad Davis.endif
3044e1285cSBrad Davis
3144e1285cSBrad Davis.if ${MACHINE_ARCH} == "powerpc"
3244e1285cSBrad DavisDEVD+=	apple.conf
3344e1285cSBrad Davis.endif
3444e1285cSBrad Davis
3544e1285cSBrad Davis.if ${MK_ZFS} != "no"
3644e1285cSBrad DavisDEVD+=	zfs.conf
3744e1285cSBrad Davis.endif
3844e1285cSBrad Davis
393054f218SWarner LoshPROG_CXX=devd
403054f218SWarner LoshSRCS=	devd.cc token.l parse.y y.tab.h
419f887a80STim J. RobbinsMAN=	devd.8 devd.conf.5
429538bab3SJohn Birrell
43e6f059a9SBaptiste DaroussinLIBADD=	util
44e530e044SWarner Losh
45e530e044SWarner LoshYFLAGS+=-v
46e530e044SWarner LoshCFLAGS+=-I. -I${.CURDIR}
47695a3b29SEitan AdlerCFLAGS.clang += -Wno-missing-variable-declarations
48e8d9a1edSEitan AdlerCFLAGS.gcc = -Wno-redundant-decls
49e8d9a1edSEitan AdlerCXXFLAGS.gcc = -Wno-redundant-decls
50e530e044SWarner Losh
510bc60783SEitan AdlerCLEANFILES= y.output y.tab.i
52e530e044SWarner Losh
53d511b20aSEnji CooperHAS_TESTS=
544b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests
55cdfa64aaSAlan Somers
56e530e044SWarner Losh.include <bsd.prog.mk>
57