2002-10-20 18:15:17 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2014-08-14 18:33:56 -04:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
|
2018-05-23 21:12:06 -04:00
|
|
|
WARNS?= 3
|
2019-09-05 10:15:47 -04:00
|
|
|
PACKAGE=utilities
|
2018-08-21 12:51:45 -04:00
|
|
|
CONFGROUPS= CONFS DEVD
|
|
|
|
|
CONFS= devd.conf
|
|
|
|
|
DEVD= devmatch.conf
|
|
|
|
|
DEVDDIR= /etc/devd
|
|
|
|
|
.if ${MK_ACPI} != "no"
|
|
|
|
|
DEVD+= asus.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MK_HYPERV} != "no"
|
|
|
|
|
DEVD+= hyperv.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MK_USB} != "no"
|
|
|
|
|
DEVD+= uath.conf ulpt.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc"
|
|
|
|
|
DEVD+= apple.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
|
|
|
DEVD+= zfs.conf
|
|
|
|
|
.endif
|
|
|
|
|
|
2002-12-07 03:04:36 -05:00
|
|
|
PROG_CXX=devd
|
|
|
|
|
SRCS= devd.cc token.l parse.y y.tab.h
|
2002-11-14 05:00:01 -05:00
|
|
|
MAN= devd.8 devd.conf.5
|
2007-11-18 19:19:01 -05:00
|
|
|
|
2004-12-21 04:59:45 -05:00
|
|
|
NO_SHARED?=YES
|
2003-08-17 04:40:49 -04:00
|
|
|
|
2019-09-10 04:19:46 -04:00
|
|
|
LIBADD= util
|
2002-10-20 18:15:17 -04:00
|
|
|
|
|
|
|
|
YFLAGS+=-v
|
|
|
|
|
CFLAGS+=-I. -I${.CURDIR}
|
2018-05-23 06:03:09 -04:00
|
|
|
CFLAGS.clang += -Wno-missing-variable-declarations
|
2018-05-23 03:44:50 -04:00
|
|
|
CFLAGS.gcc = -Wno-redundant-decls
|
|
|
|
|
CXXFLAGS.gcc = -Wno-redundant-decls
|
2002-10-20 18:15:17 -04:00
|
|
|
|
2018-05-23 03:39:05 -04:00
|
|
|
CLEANFILES= y.output y.tab.i
|
2002-10-20 18:15:17 -04:00
|
|
|
|
2017-08-02 04:50:42 -04:00
|
|
|
HAS_TESTS=
|
2017-08-02 04:35:51 -04:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2014-08-14 18:33:56 -04:00
|
|
|
|
2002-10-20 18:15:17 -04:00
|
|
|
.include <bsd.prog.mk>
|