chiark / gitweb /
autogen.sh: add debug
[elogind.git] / udev / Makefile.am
1 SUBDIRS = \
2         lib
3
4 sbin_PROGRAMS = \
5         udevd \
6         udevadm
7
8 noinst_PROGRAMS = \
9         test-udev
10
11 AM_CPPFLAGS = \
12         -DSYSCONFDIR=\""$(sysconfdir)"\" \
13         -DUDEV_PREFIX=\""$(udev_prefix)"\"
14
15 common_ldadd =
16
17 common_files = \
18         list.h \
19         logging.h \
20         udev.h \
21         udev_rules.h \
22         udev_selinux.h \
23         udev_sysdeps.h \
24         udev_config.c \
25         udev_db.c \
26         udev_device.c \
27         udev_device_event.c \
28         udev_node.c \
29         udev_rules.c \
30         udev_rules_parse.c \
31         udev_sysdeps.c \
32         udev_sysfs.c \
33         udev_utils.c \
34         udev_utils_file.c \
35         udev_utils_string.c
36
37
38 if USE_SELINUX
39 common_files += \
40         udev_selinux.c
41
42 common_ldadd += \
43         $(SELINUX_LIBS)
44 endif
45
46 udevd_SOURCES = \
47         $(common_files) \
48         udevd.h \
49         udevd.c
50
51 udevd_LDADD = \
52         $(common_ldadd)
53
54
55 udevadm_SOURCES = \
56         $(common_files) \
57         udev-control.c \
58         udevadm.c \
59         udevadm-info.c \
60         udevadm-control.c \
61         udevadm-test.c \
62         udevadm-monitor.c \
63         udevadm-settle.c \
64         udevadm-trigger.c
65
66 udevadm_LDADD = \
67         $(common_ldadd)
68
69
70 test_udev_SOURCES = \
71         $(common_files) \
72         test-udev.c
73
74 test_udev_LDADD = \
75         $(common_ldadd)
76
77
78 dist_man_MANS = \
79         udev.7 \
80         udevadm.8 \
81         udevd.8
82
83 EXTRA_DIST = \
84         udev.xml \
85         udevadm.xml \
86         udevd.xml
87
88 %.7 %.8 : %.xml
89         $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
90
91 distclean-local:
92         rm -f Makefile.in
93         rm -f $(dist_man_MANS)