summaryrefslogtreecommitdiff
path: root/src/udev/Makefile.am
blob: 1dc738c51c11ace0151bd3d98714004580dab9e9 (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

rootprefix=@rootprefix@
udevlibexecdir=$(rootprefix)/lib/udev
udevhomedir = $(udevlibexecdir)

AM_CPPFLAGS = \
	-include $(top_builddir)/config.h \
	-DROOTPREFIX=\"$(rootprefix)\" \
	-DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
	-I $(top_srcdir)/src/libudev

sbin_PROGRAMS = \
	udevd \
	udevadm

udevd_SOURCES = \
	udevd.c

udevd_LDADD = \
	libudev-core.la

udevadm_SOURCES = \
	udevadm.c \
	udevadm-info.c \
	udevadm-control.c \
	udevadm-monitor.c \
	udevadm-hwdb.c \
	udevadm-settle.c \
	udevadm-trigger.c \
	udevadm-test.c \
	udevadm-test-builtin.c

udevadm_LDADD = \
	libudev-core.la

noinst_LTLIBRARIES = \
        libudev-core.la

libudev_core_la_SOURCES = \
	udev-event.c \
	udev-watch.c \
	udev-node.c \
	udev-rules.c \
	udev-ctrl.c \
	udev-builtin.c \
	udev-builtin-blkid.c \
	udev-builtin-btrfs.c \
	udev-builtin-firmware.c \
	udev-builtin-hwdb.c \
	udev-builtin-input_id.c \
	udev-builtin-net_id.c \
	udev-builtin-path_id.c \
	udev-builtin-usb_id.c \
	acl-util.c \
	conf-files.c \
	cgroup-util.c \
	dev-setup.c \
	exit-status.c \
	hashmap.c \
	label.c \
	log.c \
	logind-acl.c \
	mkdir.c \
	path-util.c \
	sd-daemon.c \
	sd-login.c \
	set.c \
	strbuf.c \
	strv.c \
	util.c

noinst_HEADERS = \
	acl-util.h \
	cgroup-util.h \
	conf-files.h \
	def.h \
	dev-setup.h \
	exit-status.h \
	hashmap.h \
	ioprio.h \
	label.h \
	log.h \
	logind-acl.h \
	macro.h \
	missing.h \
	mkdir.h \
	path-util.h \
	sd-daemon.h \
	sd-login.h \
	set.h \
	socket-util.h \
	sparse-endian.h \
	strbuf.h \
	strv.h \
	util.h

include_HEADERS = \
	udev.h

libudev_core_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(BLKID_CFLAGS)

libudev_core_la_LIBADD = \
	$(top_builddir)/src/libudev/libudev-private.la \
	$(BLKID_LIBS)

if HAVE_ACL
libudev_core_la_SOURCES += \
	udev-builtin-uaccess.c

libudev_core_la_LIBADD += \
        $(ACL_LIBS)
endif


libudev_core_la_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	-DFIRMWARE_PATH="$(FIRMWARE_PATH)"

#
# Extras
#
udevconfdir = $(sysconfdir)/udev
dist_udevconf_DATA = \
	udev.conf

sharepkgconfigdir = $(datadir)/pkgconfig
sharepkgconfig_DATA = \
	udev.pc

EXTRA_DIST = \
	udev.pc.in

CLEANFILES = \
	udev.pc