aboutsummaryrefslogtreecommitdiff
path: root/sbin/devd/Makefile
blob: 8120126807cea898ed2740e19bf79339cd5fd54c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $FreeBSD$

.include <src.opts.mk>

WARNS?= 3
PACKAGE=utilities
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

PROG_CXX=devd
SRCS=	devd.cc token.l parse.y y.tab.h
MAN=	devd.8 devd.conf.5

NO_SHARED?=YES

LIBADD=	util

YFLAGS+=-v
CFLAGS+=-I. -I${.CURDIR}
CFLAGS.clang += -Wno-missing-variable-declarations
CFLAGS.gcc = -Wno-redundant-decls
CXXFLAGS.gcc = -Wno-redundant-decls

CLEANFILES= y.output y.tab.i

HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests

.include <bsd.prog.mk>