summaryrefslogtreecommitdiff
path: root/udev/Makefile.am
blob: 6c0b94e2cf7de54d117c3f73c399c020daab347b (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
include $(top_srcdir)/Makefile.am.inc

sbin_PROGRAMS = \
	udevd \
	udevadm

noinst_PROGRAMS = \
	test-udev

common_ldadd =

common_files = \
	udev.h \
	udev-event.c \
	udev-watch.c \
	udev-node.c \
	udev-rules.c \
	../libudev/libudev.h \
	../libudev/libudev-private.h \
	../libudev/libudev.c \
	../libudev/libudev-list.c \
	../libudev/libudev-util.c \
	../libudev/libudev-util-private.c \
	../libudev/libudev-device.c \
	../libudev/libudev-device-private.c \
	../libudev/libudev-monitor.c \
	../libudev/libudev-enumerate.c \
	../libudev/libudev-queue.c \
	../libudev/libudev-queue-private.c \
	../libudev/libudev-ctrl.c

if WITH_SELINUX
common_files += \
	../libudev/libudev-selinux-private.c
common_ldadd += \
	$(SELINUX_LIBS)
endif

udevd_SOURCES = \
	$(common_files) \
	udevd.c

udevd_LDADD = \
	$(common_ldadd)


udevadm_SOURCES = \
	$(common_files) \
	udevadm.c \
	udevadm-info.c \
	udevadm-control.c \
	udevadm-test.c \
	udevadm-monitor.c \
	udevadm-settle.c \
	udevadm-trigger.c

udevadm_LDADD = \
	$(common_ldadd)


test_udev_SOURCES = \
	$(common_files) \
	test-udev.c

test_udev_LDADD = \
	$(common_ldadd)


dist_man_MANS = \
	udev.7 \
	udevadm.8 \
	udevd.8

pkgconfigdir = $(datadir)/pkgconfig
pkgconfig_DATA = udev.pc

EXTRA_DIST = \
	udev.pc.in \
	udev.xml \
	udevadm.xml \
	udevd.xml

%.7 %.8 : %.xml
	$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<

MAINTAINERCLEANFILES = \
	$(dist_man_MANS)

git-clean:
	rm -f Makefile.in