chiark / gitweb /
bootchart: various superficial cleanups
[elogind.git] / Makefile.am
1 #  -*- Mode: makefile; indent-tabs-mode: t -*-
2 #
3 #  This file is part of systemd.
4 #
5 #  Copyright 2010-2012 Lennart Poettering
6 #  Copyright 2010-2012 Kay Sievers
7 #  Copyright 2013 Zbigniew JÄ™drzejewski-Szmek
8 #
9 #  systemd is free software; you can redistribute it and/or modify it
10 #  under the terms of the GNU Lesser General Public License as published by
11 #  the Free Software Foundation; either version 2.1 of the License, or
12 #  (at your option) any later version.
13 #
14 #  systemd is distributed in the hope that it will be useful, but
15 #  WITHOUT ANY WARRANTY; without even the implied warranty of
16 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 #  Lesser General Public License for more details.
18 #
19 #  You should have received a copy of the GNU Lesser General Public License
20 #  along with systemd; If not, see <http://www.gnu.org/licenses/>.
21
22 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
23 AM_MAKEFLAGS = --no-print-directory
24 AUTOMAKE_OPTIONS = color-tests parallel-tests
25
26 SUBDIRS = . po
27
28 # remove targets if the command fails
29 .DELETE_ON_ERROR:
30
31 # keep intermediate files
32 .SECONDARY:
33
34 LIBUDEV_CURRENT=3
35 LIBUDEV_REVISION=2
36 LIBUDEV_AGE=2
37
38 LIBGUDEV_CURRENT=1
39 LIBGUDEV_REVISION=3
40 LIBGUDEV_AGE=1
41
42 LIBSYSTEMD_LOGIN_CURRENT=4
43 LIBSYSTEMD_LOGIN_REVISION=0
44 LIBSYSTEMD_LOGIN_AGE=4
45
46 LIBSYSTEMD_DAEMON_CURRENT=0
47 LIBSYSTEMD_DAEMON_REVISION=7
48 LIBSYSTEMD_DAEMON_AGE=0
49
50 LIBSYSTEMD_ID128_CURRENT=0
51 LIBSYSTEMD_ID128_REVISION=17
52 LIBSYSTEMD_ID128_AGE=0
53
54 LIBSYSTEMD_JOURNAL_CURRENT=8
55 LIBSYSTEMD_JOURNAL_REVISION=0
56 LIBSYSTEMD_JOURNAL_AGE=8
57
58 # Dirs of external packages
59 dbuspolicydir=@dbuspolicydir@
60 dbussessionservicedir=@dbussessionservicedir@
61 dbussystemservicedir=@dbussystemservicedir@
62 dbusinterfacedir=@dbusinterfacedir@
63 pamlibdir=@pamlibdir@
64 pkgconfigdatadir=$(datadir)/pkgconfig
65 pkgconfiglibdir=$(libdir)/pkgconfig
66 polkitpolicydir=$(datadir)/polkit-1/actions
67 bashcompletiondir=@bashcompletiondir@
68 rpmmacrosdir=$(sysconfdir)/rpm
69 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
70 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
71 varlogdir=$(localstatedir)/log
72 systemdstatedir=$(localstatedir)/lib/systemd
73 catalogstatedir=$(systemdstatedir)/catalog
74
75 # Our own, non-special dirs
76 pkgsysconfdir=$(sysconfdir)/systemd
77 userunitdir=$(prefix)/lib/systemd/user
78 userpresetdir=$(prefix)/lib/systemd/user-preset
79 tmpfilesdir=$(prefix)/lib/tmpfiles.d
80 sysctldir=$(prefix)/lib/sysctl.d
81 usergeneratordir=$(prefix)/lib/systemd/user-generators
82 pkgincludedir=$(includedir)/systemd
83 systemgeneratordir=$(rootlibexecdir)/system-generators
84 systemshutdowndir=$(rootlibexecdir)/system-shutdown
85 systemsleepdir=$(rootlibexecdir)/system-sleep
86 systemunitdir=$(rootprefix)/lib/systemd/system
87 systempresetdir=$(rootprefix)/lib/systemd/system-preset
88 udevlibexecdir=$(rootprefix)/lib/udev
89 udevhomedir=$(udevlibexecdir)
90 udevrulesdir=$(udevlibexecdir)/rules.d
91 udevhwdbdir=$(udevlibexecdir)/hwdb.d
92 catalogdir=$(prefix)/lib/systemd/catalog
93
94 # And these are the special ones for /
95 rootprefix=@rootprefix@
96 rootbindir=$(rootprefix)/bin
97 rootlibexecdir=$(rootprefix)/lib/systemd
98
99 CLEANFILES = $(BUILT_SOURCES)
100 EXTRA_DIST =
101 BUILT_SOURCES =
102 INSTALL_EXEC_HOOKS =
103 UNINSTALL_EXEC_HOOKS =
104 INSTALL_DATA_HOOKS =
105 UNINSTALL_DATA_HOOKS =
106 DISTCLEAN_LOCAL_HOOKS =
107 CLEAN_LOCAL_HOOKS =
108 pkginclude_HEADERS =
109 noinst_LTLIBRARIES =
110 lib_LTLIBRARIES =
111 include_HEADERS =
112 noinst_DATA =
113 pkgconfiglib_DATA =
114 polkitpolicy_in_in_files =
115 polkitpolicy_in_files =
116 polkitpolicy_files =
117 dist_udevrules_DATA =
118 nodist_udevrules_DATA =
119 dist_pkgsysconf_DATA =
120 dist_pkgdata_DATA =
121 dist_dbuspolicy_DATA =
122 dbusinterface_DATA =
123 dist_dbussystemservice_DATA =
124 check_PROGRAMS =
125 check_DATA =
126 noinst_tests=
127 noinst_PROGRAMS = $(noinst_tests)
128 TESTS = $(noinst_tests)
129 udevlibexec_PROGRAMS =
130
131 AM_CPPFLAGS = \
132         -include $(top_builddir)/config.h \
133         -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \
134         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
135         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
136         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
137         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
138         -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \
139         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
140         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
141         -DCATALOG_PATH=\"$(catalogstatedir)\" \
142         -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
143         -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
144         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
145         -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
146         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
147         -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
148         -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
149         -DROOTPREFIX=\"$(rootprefix)\" \
150         -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \
151         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
152         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
153         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
154         -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
155         -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
156         -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
157         -DX_SERVER=\"$(bindir)/X\" \
158         -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
159         -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
160         -I $(top_srcdir)/src \
161         -I $(top_srcdir)/src/shared \
162         -I $(top_srcdir)/src/login \
163         -I $(top_srcdir)/src/journal \
164         -I $(top_srcdir)/src/systemd \
165         -I $(top_builddir)/src/core \
166         -I $(top_srcdir)/src/core \
167         -I $(top_srcdir)/src/libudev \
168         -I $(top_srcdir)/src/udev \
169         $(OUR_CPPFLAGS)
170
171 AM_CFLAGS = $(OUR_CFLAGS)
172 AM_LDFLAGS = $(OUR_LDFLAGS)
173
174 # ------------------------------------------------------------------------------
175 define move-to-rootlibdir
176         if test "$(libdir)" != "$(rootlibdir)"; then \
177                 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
178                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
179                 so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
180                 ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
181                 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
182         fi
183 endef
184
185 INSTALL_DIRS =
186
187 RUNLEVEL1_TARGET_WANTS =
188 RUNLEVEL2_TARGET_WANTS =
189 RUNLEVEL3_TARGET_WANTS =
190 RUNLEVEL4_TARGET_WANTS =
191 RUNLEVEL5_TARGET_WANTS =
192 SHUTDOWN_TARGET_WANTS =
193 LOCAL_FS_TARGET_WANTS =
194 MULTI_USER_TARGET_WANTS =
195 SYSINIT_TARGET_WANTS =
196 BASIC_TARGET_WANTS =
197 SOCKETS_TARGET_WANTS =
198
199 SYSTEM_UNIT_ALIASES =
200 USER_UNIT_ALIASES =
201
202 GENERAL_ALIASES =
203
204 install-target-wants-hook:
205         what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants)
206         what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants)
207         what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants)
208         what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants)
209         what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants)
210         what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants)
211         what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants)
212         what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants)
213         what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants)
214         what="$(BASIC_TARGET_WANTS)" && wants=basic.target && $(add-wants)
215         what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants)
216
217 define add-wants
218         [ -z "$$what" ] || ( \
219           dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \
220           $(MKDIR_P) -m 0755 $$dir && \
221           cd $$dir && \
222           rm -f $$what && \
223           for i in $$what; do ln -s ../$$i . || exit $$? ; done )
224 endef
225
226 install-directories-hook:
227         $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
228
229 install-aliases-hook:
230         set -- $(SYSTEM_UNIT_ALIASES) && \
231                 dir=$(systemunitdir) && $(install-aliases)
232         set -- $(USER_UNIT_ALIASES) && \
233                 dir=$(userunitdir) && $(install-aliases)
234         set -- $(GENERAL_ALIASES) && \
235                 dir= && $(install-aliases)
236
237 define install-aliases
238         $(MKDIR_P) /$(DESTDIR)$$dir && \
239         while [ -n "$$1" ]; do \
240                 rm -f $(DESTDIR)$$dir/$$2 && \
241                 ln -s $$1 $(DESTDIR)$$dir/$$2 && \
242                 shift 2 || exit $$?; \
243         done
244 endef
245
246 INSTALL_EXEC_HOOKS += \
247         install-target-wants-hook \
248         install-directories-hook \
249         install-aliases-hook
250
251 # ------------------------------------------------------------------------------
252 AM_V_M4 = $(AM_V_M4_$(V))
253 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
254 AM_V_M4_0 = @echo "  M4      " $@;
255
256 AM_V_XSLT = $(AM_V_XSLT_$(V))
257 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
258 AM_V_XSLT_0 = @echo "  XSLT    " $@;
259
260 AM_V_GPERF = $(AM_V_GPERF_$(V))
261 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
262 AM_V_GPERF_0 = @echo "  GPERF   " $@;
263
264 AM_V_LN = $(AM_V_LN_$(V))
265 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
266 AM_V_LN_0 = @echo "  LN      " $@;
267
268 # ------------------------------------------------------------------------------
269 rootbin_PROGRAMS = \
270         systemctl \
271         systemd-notify \
272         systemd-ask-password \
273         systemd-tty-ask-password-agent \
274         systemd-tmpfiles \
275         systemd-machine-id-setup
276
277 bin_PROGRAMS = \
278         systemd-cgls \
279         systemd-cgtop \
280         systemd-stdio-bridge \
281         systemd-nspawn \
282         systemd-detect-virt \
283         systemd-delta \
284         systemd-analyze
285
286 bin_SCRIPTS = \
287         src/kernel-install/kernel-install
288
289 EXTRA_DIST += \
290         src/kernel-install/kernel-install
291
292 rootlibexec_PROGRAMS = \
293         systemd \
294         systemd-cgroups-agent \
295         systemd-initctl \
296         systemd-update-utmp \
297         systemd-shutdownd \
298         systemd-shutdown \
299         systemd-remount-fs \
300         systemd-reply-password \
301         systemd-fsck \
302         systemd-timestamp \
303         systemd-ac-power \
304         systemd-sysctl \
305         systemd-sleep
306
307 systemgenerator_PROGRAMS = \
308         systemd-getty-generator \
309         systemd-fstab-generator \
310         systemd-system-update-generator
311
312 systemd_analyze_SOURCES = \
313         src/analyze/systemd-analyze.c
314
315 systemd_analyze_CFLAGS = \
316         $(AM_CFLAGS) \
317         $(DBUS_CFLAGS)
318
319 systemd_analyze_LDADD = \
320         libsystemd-shared.la \
321         libsystemd-dbus.la
322
323 dist_bashcompletion_DATA = \
324         shell-completion/bash/journalctl \
325         shell-completion/bash/systemctl \
326         shell-completion/bash/udevadm
327
328 dist_tmpfiles_DATA = \
329         tmpfiles.d/systemd.conf \
330         tmpfiles.d/tmp.conf \
331         tmpfiles.d/x11.conf
332
333 if HAVE_SYSV_COMPAT
334 dist_tmpfiles_DATA += \
335         tmpfiles.d/legacy.conf
336 endif
337
338 dist_systemunit_DATA = \
339         units/graphical.target \
340         units/multi-user.target \
341         units/emergency.service \
342         units/emergency.target \
343         units/sysinit.target \
344         units/basic.target \
345         units/getty.target \
346         units/halt.target \
347         units/kexec.target \
348         units/local-fs.target \
349         units/local-fs-pre.target \
350         units/remote-fs.target \
351         units/remote-fs-pre.target \
352         units/network.target \
353         units/nss-lookup.target \
354         units/nss-user-lookup.target \
355         units/hibernate.target \
356         units/hybrid-sleep.target \
357         units/poweroff.target \
358         units/reboot.target \
359         units/rescue.target \
360         units/rpcbind.target \
361         units/time-sync.target \
362         units/shutdown.target \
363         units/final.target \
364         units/umount.target \
365         units/sigpwr.target \
366         units/sleep.target \
367         units/sockets.target \
368         units/suspend.target \
369         units/swap.target \
370         units/systemd-initctl.socket \
371         units/systemd-shutdownd.socket \
372         units/syslog.socket \
373         units/dev-hugepages.mount \
374         units/dev-mqueue.mount \
375         units/sys-kernel-config.mount \
376         units/sys-kernel-debug.mount \
377         units/sys-fs-fuse-connections.mount \
378         units/tmp.mount \
379         units/printer.target \
380         units/sound.target \
381         units/bluetooth.target \
382         units/smartcard.target \
383         units/systemd-tmpfiles-clean.timer \
384         units/quotaon.service \
385         units/systemd-ask-password-wall.path \
386         units/systemd-ask-password-console.path \
387         units/systemd-udevd-control.socket \
388         units/systemd-udevd-kernel.socket \
389         units/system-update.target \
390         units/initrd-switch-root.target
391
392 nodist_systemunit_DATA = \
393         units/getty@.service \
394         units/serial-getty@.service \
395         units/console-shell.service \
396         units/console-getty.service \
397         units/systemd-initctl.service \
398         units/systemd-shutdownd.service \
399         units/systemd-remount-fs.service \
400         units/systemd-update-utmp-runlevel.service \
401         units/systemd-update-utmp-shutdown.service \
402         units/systemd-tmpfiles-setup.service \
403         units/systemd-tmpfiles-clean.service \
404         units/systemd-ask-password-wall.service \
405         units/systemd-ask-password-console.service \
406         units/systemd-sysctl.service \
407         units/emergency.service \
408         units/rescue.service \
409         units/user@.service \
410         units/systemd-hibernate.service \
411         units/systemd-hybrid-sleep.service \
412         units/systemd-suspend.service \
413         units/systemd-halt.service \
414         units/systemd-poweroff.service \
415         units/systemd-reboot.service \
416         units/systemd-kexec.service \
417         units/systemd-fsck@.service \
418         units/systemd-fsck-root.service \
419         units/systemd-udevd.service \
420         units/systemd-udev-trigger.service \
421         units/systemd-udev-settle.service \
422         units/debug-shell.service \
423         units/initrd-parse-etc.service \
424         units/initrd-cleanup.service \
425         units/initrd-udevadm-cleanup-db.service \
426         units/initrd-switch-root.service
427
428 dist_userunit_DATA = \
429         units/user/default.target \
430         units/user/exit.target
431
432 nodist_userunit_DATA = \
433         units/user/systemd-exit.service
434
435 EXTRA_DIST += \
436         units/getty@.service.m4 \
437         units/serial-getty@.service.m4 \
438         units/console-shell.service.m4.in \
439         units/console-getty.service.m4.in \
440         units/rescue.service.m4.in \
441         units/systemd-initctl.service.in \
442         units/systemd-shutdownd.service.in \
443         units/systemd-remount-fs.service.in \
444         units/systemd-update-utmp-runlevel.service.in \
445         units/systemd-update-utmp-shutdown.service.in \
446         units/systemd-tmpfiles-setup.service.in \
447         units/systemd-tmpfiles-clean.service.in \
448         units/systemd-ask-password-wall.service.in \
449         units/systemd-ask-password-console.service.in \
450         units/systemd-sysctl.service.in \
451         units/emergency.service.in \
452         units/systemd-halt.service.in \
453         units/systemd-poweroff.service.in \
454         units/systemd-reboot.service.in \
455         units/systemd-kexec.service.in \
456         units/user/systemd-exit.service.in \
457         units/systemd-fsck@.service.in \
458         units/systemd-fsck-root.service.in \
459         units/user@.service.in \
460         units/systemd-udevd.service \
461         units/systemd-udev-trigger.service \
462         units/systemd-udev-settle.service \
463         units/debug-shell.service.in \
464         units/systemd-hibernate.service.in \
465         units/systemd-hybrid-sleep.service.in \
466         units/systemd-suspend.service.in \
467         units/quotaon.service.in \
468         units/initrd-parse-etc.service.in \
469         units/initrd-cleanup.service.in \
470         units/initrd-udevadm-cleanup-db.service.in \
471         units/initrd-switch-root.service.in \
472         introspect.awk \
473         man/custom-html.xsl
474
475 CLEANFILES += \
476         units/console-shell.service.m4 \
477         units/console-getty.service.m4 \
478         units/rescue.service.m4
479
480 if HAVE_SYSV_COMPAT
481 nodist_systemunit_DATA += \
482         units/rc-local.service \
483         units/halt-local.service
484
485 systemgenerator_PROGRAMS += \
486         systemd-rc-local-generator
487 endif
488
489 EXTRA_DIST += \
490         units/rc-local.service.in \
491         units/halt-local.service.in
492
493 dist_doc_DATA = \
494         README \
495         NEWS \
496         LICENSE.LGPL2.1 \
497         LICENSE.GPL2 \
498         LICENSE.MIT \
499         DISTRO_PORTING
500
501 @INTLTOOL_POLICY_RULE@
502
503 # ------------------------------------------------------------------------------
504
505 MANPAGES =
506 MANPAGES_ALIAS =
507
508 include Makefile-man.am
509
510 XML_FILES = \
511         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
512 HTML_FILES = \
513         ${XML_FILES:.xml=.html}
514 HTML_ALIAS = \
515         ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
516
517 if ENABLE_MANPAGES
518 man_MANS = \
519         $(MANPAGES) \
520         $(MANPAGES_ALIAS)
521
522 noinst_DATA += \
523         $(HTML_FILES) \
524         $(HTML_ALIAS)
525
526 CLEANFILES += \
527         $(man_MANS) \
528         $(HTML_FILES) \
529         $(HTML_ALIAS)
530
531 docs/html/man:
532         $(AM_V_at)$(MKDIR_P) $(dir $@)
533         $(AM_V_LN)$(LN_S) -f ../../man $@
534
535 noinst_DATA += \
536         docs/html/man
537
538 CLEANFILES += \
539         docs/html/man
540
541 if HAVE_PYTHON
542 man/index.html: man/systemd.index.html
543         $(AM_V_LN)$(LN_S) -f systemd.index.html $@
544
545 noinst_DATA += \
546         man/index.html
547
548 CLEANFILES += \
549         man/index.html
550
551 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
552
553 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_srcdir)/man/*.xml.in $(top_builddir)/man/*.xml)
554 update-man-list: make-man-rules.py $(XML_GLOB)
555         $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
556         $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
557         @echo "Makefile-man.am has been regenerated"
558
559 man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES)
560         $(AM_V_at)$(MKDIR_P) $(dir $@)
561         $(AM_V_GEN)$(PYTHON) $^ > $@
562
563 man/systemd.directives.xml: make-directive-index.py $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
564         $(AM_V_at)$(MKDIR_P) $(dir $@)
565         $(AM_V_GEN)$(PYTHON) $^ > $@
566
567 EXTRA_DIST += \
568         man/systemd.index.xml \
569         man/index.html \
570         man/systemd.directives.xml
571
572 CLEANFILES += \
573         man/systemd.index.xml \
574         man/systemd.directives.xml
575
576 endif
577
578 endif
579
580 EXTRA_DIST += \
581         $(XML_FILES) \
582         $(HTML_FILES) \
583         $(HTML_ALIAS) \
584         $(dist_MANS) \
585         make-man-index.py \
586         make-directive-index.py
587
588 # ------------------------------------------------------------------------------
589 noinst_LTLIBRARIES += \
590         libsystemd-shared.la
591
592 libsystemd_shared_la_SOURCES = \
593         src/shared/linux/auto_dev-ioctl.h \
594         src/shared/linux/fanotify.h \
595         src/shared/linux/seccomp.h \
596         src/shared/linux/seccomp-bpf.h \
597         src/shared/missing.h \
598         src/shared/list.h \
599         src/shared/macro.h \
600         src/shared/def.h \
601         src/shared/sparse-endian.h \
602         src/shared/util.c \
603         src/shared/util.h \
604         src/shared/virt.c \
605         src/shared/virt.h \
606         src/shared/efivars.c \
607         src/shared/efivars.h \
608         src/shared/path-util.c \
609         src/shared/path-util.h \
610         src/shared/time-util.c \
611         src/shared/time-util.h \
612         src/shared/hashmap.c \
613         src/shared/hashmap.h \
614         src/shared/set.c \
615         src/shared/set.h \
616         src/shared/fdset.c \
617         src/shared/fdset.h \
618         src/shared/strv.c \
619         src/shared/strv.h \
620         src/shared/env-util.c \
621         src/shared/env-util.h \
622         src/shared/strbuf.c \
623         src/shared/strbuf.h \
624         src/shared/strxcpyx.c \
625         src/shared/strxcpyx.h \
626         src/shared/conf-parser.c \
627         src/shared/conf-parser.h \
628         src/shared/log.c \
629         src/shared/log.h \
630         src/shared/ratelimit.h \
631         src/shared/ratelimit.c \
632         src/shared/exit-status.c \
633         src/shared/exit-status.h \
634         src/shared/utf8.c \
635         src/shared/utf8.h \
636         src/shared/pager.c \
637         src/shared/pager.h \
638         src/shared/ioprio.h \
639         src/shared/socket-util.c \
640         src/shared/socket-util.h \
641         src/shared/conf-files.c \
642         src/shared/conf-files.h \
643         src/shared/cgroup-util.c \
644         src/shared/cgroup-util.h \
645         src/shared/cgroup-show.c \
646         src/shared/cgroup-show.h \
647         src/shared/unit-name.c \
648         src/shared/unit-name.h \
649         src/shared/utmp-wtmp.c \
650         src/shared/utmp-wtmp.h \
651         src/shared/watchdog.c \
652         src/shared/watchdog.h \
653         src/shared/spawn-ask-password-agent.c \
654         src/shared/spawn-ask-password-agent.h \
655         src/shared/specifier.c \
656         src/shared/specifier.h \
657         src/shared/replace-var.c \
658         src/shared/replace-var.h \
659         src/shared/spawn-polkit-agent.c \
660         src/shared/spawn-polkit-agent.h \
661         src/shared/hwclock.c \
662         src/shared/hwclock.h \
663         src/shared/time-dst.c \
664         src/shared/time-dst.h \
665         src/shared/calendarspec.c \
666         src/shared/calendarspec.h \
667         src/shared/fileio.c \
668         src/shared/fileio.h \
669         src/shared/output-mode.h
670
671 #-------------------------------------------------------------------------------
672 noinst_LTLIBRARIES += \
673         libsystemd-dbus.la
674
675 libsystemd_dbus_la_SOURCES = \
676         src/shared/dbus-common.c \
677         src/shared/dbus-common.h \
678         src/shared/dbus-loop.c \
679         src/shared/dbus-loop.h \
680         src/shared/polkit.c \
681         src/shared/polkit.h
682
683 libsystemd_dbus_la_CFLAGS = \
684         $(AM_CFLAGS) \
685         $(DBUS_CFLAGS)
686
687 libsystemd_dbus_la_LIBADD = \
688         $(DBUS_LIBS)
689
690 # ------------------------------------------------------------------------------
691 noinst_LTLIBRARIES += \
692         libsystemd-units.la
693
694 libsystemd_units_la_SOURCES = \
695         src/shared/install.c \
696         src/shared/install.h \
697         src/shared/install-printf.c \
698         src/shared/install-printf.h \
699         src/shared/path-lookup.c \
700         src/shared/path-lookup.h
701
702 libsystemd_units_la_CFLAGS = \
703         $(AM_CFLAGS) \
704         $(DBUS_CFLAGS)
705
706 # ------------------------------------------------------------------------------
707 noinst_LTLIBRARIES += \
708         libsystemd-label.la
709
710 libsystemd_label_la_SOURCES = \
711         src/shared/cgroup-label.c \
712         src/shared/socket-label.c \
713         src/shared/label.c \
714         src/shared/label.h \
715         src/shared/selinux-util.c \
716         src/shared/selinux-util.h \
717         src/shared/mkdir.c \
718         src/shared/mkdir.h \
719         src/shared/ask-password-api.c \
720         src/shared/ask-password-api.h \
721         src/shared/fileio-label.c \
722         src/shared/fileio-label.h \
723         src/shared/dev-setup.c \
724         src/shared/dev-setup.h
725
726 libsystemd_label_la_CFLAGS = \
727         $(AM_CFLAGS) \
728         $(SELINUX_CFLAGS)
729
730 libsystemd_label_la_LIBADD = \
731         $(SELINUX_LIBS)
732
733 # ------------------------------------------------------------------------------
734 noinst_LTLIBRARIES += \
735         libsystemd-logs.la
736
737 libsystemd_logs_la_SOURCES = \
738         src/shared/logs-show.c \
739         src/shared/logs-show.h
740
741 libsystemd_logs_la_CFLAGS = \
742         $(AM_CFLAGS)
743
744 libsystemd_logs_la_LIBADD = \
745         libsystemd-journal-internal.la \
746         libsystemd-id128-internal.la \
747         libsystemd-shared.la
748
749 # ------------------------------------------------------------------------------
750 noinst_LTLIBRARIES += \
751         libsystemd-capability.la
752
753 libsystemd_capability_la_SOURCES = \
754         src/shared/capability.c \
755         src/shared/capability.h
756
757 libsystemd_capability_la_CFLAGS = \
758         $(AM_CFLAGS) \
759         $(CAP_CFLAGS)
760
761 libsystemd_capability_la_LIBADD = \
762         $(CAP_LIBS)
763
764 # ------------------------------------------------------------------------------
765 noinst_LTLIBRARIES += \
766         libsystemd-audit.la
767
768 libsystemd_audit_la_SOURCES = \
769         src/shared/audit.c \
770         src/shared/audit.h
771
772 libsystemd_audit_la_LIBADD = \
773         libsystemd-capability.la
774
775 # ------------------------------------------------------------------------------
776 if HAVE_ACL
777 noinst_LTLIBRARIES += \
778         libsystemd-acl.la
779
780 libsystemd_acl_la_SOURCES = \
781         src/shared/acl-util.c \
782         src/shared/acl-util.h
783
784 libsystemd_acl_la_CFLAGS = \
785         $(AM_CFLAGS) \
786         $(ACL_CFLAGS)
787
788 libsystemd_acl_la_LIBADD = \
789         $(ACL_LIBS)
790 endif
791
792 # ------------------------------------------------------------------------------
793 noinst_LTLIBRARIES += \
794         libsystemd-core.la
795
796 libsystemd_core_la_SOURCES = \
797         src/core/unit.c \
798         src/core/unit.h \
799         src/core/unit-printf.c \
800         src/core/unit-printf.h \
801         src/core/job.c \
802         src/core/job.h \
803         src/core/manager.c \
804         src/core/manager.h \
805         src/core/transaction.c \
806         src/core/transaction.h \
807         src/core/load-fragment.c \
808         src/core/load-fragment.h \
809         src/core/service.c \
810         src/core/service.h \
811         src/core/automount.c \
812         src/core/automount.h \
813         src/core/mount.c \
814         src/core/mount.h \
815         src/core/swap.c \
816         src/core/swap.h \
817         src/core/device.c \
818         src/core/device.h \
819         src/core/target.c \
820         src/core/target.h \
821         src/core/snapshot.c \
822         src/core/snapshot.h \
823         src/core/socket.c \
824         src/core/socket.h \
825         src/core/timer.c \
826         src/core/timer.h \
827         src/core/path.c \
828         src/core/path.h \
829         src/core/load-dropin.c \
830         src/core/load-dropin.h \
831         src/core/execute.c \
832         src/core/execute.h \
833         src/core/kill.c \
834         src/core/kill.h \
835         src/core/dbus.c \
836         src/core/dbus.h \
837         src/core/dbus-manager.c \
838         src/core/dbus-manager.h \
839         src/core/dbus-unit.c \
840         src/core/dbus-unit.h \
841         src/core/dbus-job.c \
842         src/core/dbus-job.h \
843         src/core/dbus-service.c \
844         src/core/dbus-service.h \
845         src/core/dbus-socket.c \
846         src/core/dbus-socket.h \
847         src/core/dbus-timer.c \
848         src/core/dbus-timer.h \
849         src/core/dbus-target.c \
850         src/core/dbus-target.h \
851         src/core/dbus-mount.c \
852         src/core/dbus-mount.h \
853         src/core/dbus-automount.c \
854         src/core/dbus-automount.h \
855         src/core/dbus-swap.c \
856         src/core/dbus-swap.h \
857         src/core/dbus-snapshot.c \
858         src/core/dbus-snapshot.h \
859         src/core/dbus-device.c \
860         src/core/dbus-device.h \
861         src/core/dbus-execute.c \
862         src/core/dbus-execute.h \
863         src/core/dbus-kill.c \
864         src/core/dbus-kill.h \
865         src/core/dbus-path.c \
866         src/core/dbus-path.h \
867         src/core/cgroup.c \
868         src/core/cgroup.h \
869         src/core/selinux-access.c \
870         src/core/selinux-access.h \
871         src/core/selinux-setup.c \
872         src/core/selinux-setup.h \
873         src/core/smack-setup.c \
874         src/core/smack-setup.h \
875         src/core/ima-setup.c \
876         src/core/ima-setup.h \
877         src/core/locale-setup.h \
878         src/core/locale-setup.c \
879         src/core/hostname-setup.c \
880         src/core/hostname-setup.h \
881         src/core/machine-id-setup.c \
882         src/core/machine-id-setup.h \
883         src/core/mount-setup.c \
884         src/core/mount-setup.h \
885         src/core/loopback-setup.h \
886         src/core/loopback-setup.c \
887         src/core/condition.c \
888         src/core/condition.h \
889         src/core/namespace.c \
890         src/core/namespace.h \
891         src/core/tcpwrap.c \
892         src/core/tcpwrap.h \
893         src/core/cgroup-attr.c \
894         src/core/cgroup-attr.h \
895         src/core/cgroup-semantics.c \
896         src/core/cgroup-semantics.h \
897         src/core/securebits.h \
898         src/core/initreq.h \
899         src/core/special.h \
900         src/core/bus-errors.h \
901         src/core/build.h \
902         src/core/sysfs-show.h \
903         src/core/switch-root.h \
904         src/core/switch-root.c \
905         src/core/killall.h \
906         src/core/killall.c \
907         src/core/syscall-list.c \
908         src/core/syscall-list.h \
909         src/core/audit-fd.c \
910         src/core/audit-fd.h \
911         src/core/sync.c \
912         src/core/sync.h
913
914 if HAVE_KMOD
915 libsystemd_core_la_SOURCES += \
916         src/core/kmod-setup.c \
917         src/core/kmod-setup.h
918 endif
919
920 nodist_libsystemd_core_la_SOURCES = \
921         src/core/load-fragment-gperf.c \
922         src/core/load-fragment-gperf-nulstr.c \
923         src/core/syscall-from-name.h \
924         src/core/syscall-to-name.h
925
926 libsystemd_core_la_CFLAGS = \
927         $(AM_CFLAGS) \
928         $(DBUS_CFLAGS) \
929         $(LIBWRAP_CFLAGS) \
930         $(PAM_CFLAGS) \
931         $(AUDIT_CFLAGS) \
932         $(KMOD_CFLAGS) \
933         -pthread
934
935 libsystemd_core_la_LIBADD = \
936         libsystemd-capability.la \
937         libsystemd-units.la \
938         libsystemd-label.la \
939         libsystemd-shared.la \
940         libsystemd-dbus.la \
941         libsystemd-audit.la \
942         libsystemd-id128-internal.la \
943         libsystemd-daemon.la \
944         libudev.la \
945         $(LIBWRAP_LIBS) \
946         $(PAM_LIBS) \
947         $(AUDIT_LIBS) \
948         $(CAP_LIBS) \
949         $(KMOD_LIBS)
950
951 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
952         $(AM_V_at)$(MKDIR_P) $(dir $@)
953         $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
954
955 EXTRA_DIST += \
956         src/core/load-fragment-gperf.gperf.m4
957
958 CLEANFILES += \
959         src/core/load-fragment-gperf.gperf \
960         src/core/load-fragment-gperf.c \
961         src/core/load-fragment-gperf-nulstr.c \
962         src/core/syscall-list.txt \
963         src/core/syscall-from-name.gperf
964
965 BUILT_SOURCES += \
966         src/core/syscall-from-name.h \
967         src/core/syscall-to-name.h
968
969 src/core/syscall-list.txt: Makefile
970         $(AM_V_at)$(MKDIR_P) $(dir $@)
971         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9(]/ { sub(/__NR_/, "", $$2); print $$2; }' > $@
972
973 src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile
974         $(AM_V_at)$(MKDIR_P) $(dir $@)
975         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct syscall_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, __NR_%s\n", $$1, $$1 }' < $< > $@
976
977 src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile
978         $(AM_V_at)$(MKDIR_P) $(dir $@)
979         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@
980
981 src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile
982         $(AM_V_at)$(MKDIR_P) $(dir $@)
983         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
984
985 # ------------------------------------------------------------------------------
986 systemd_SOURCES = \
987         src/core/main.c
988
989 systemd_CFLAGS = \
990         $(AM_CFLAGS) \
991         $(DBUS_CFLAGS)
992
993 systemd_LDADD = \
994         libsystemd-core.la \
995         libsystemd-daemon.la \
996         libsystemd-id128-internal.la \
997         libsystemd-dbus.la
998
999 dist_pkgsysconf_DATA += \
1000         src/core/system.conf \
1001         src/core/user.conf
1002
1003 dist_dbuspolicy_DATA += \
1004         src/core/org.freedesktop.systemd1.conf
1005
1006 dist_dbussystemservice_DATA += \
1007         src/core/org.freedesktop.systemd1.service
1008
1009 dbusinterface_DATA += \
1010         org.freedesktop.systemd1.Manager.xml \
1011         org.freedesktop.systemd1.Job.xml \
1012         org.freedesktop.systemd1.Unit.xml \
1013         org.freedesktop.systemd1.Service.xml \
1014         org.freedesktop.systemd1.Socket.xml \
1015         org.freedesktop.systemd1.Timer.xml \
1016         org.freedesktop.systemd1.Target.xml \
1017         org.freedesktop.systemd1.Device.xml \
1018         org.freedesktop.systemd1.Mount.xml \
1019         org.freedesktop.systemd1.Automount.xml \
1020         org.freedesktop.systemd1.Snapshot.xml \
1021         org.freedesktop.systemd1.Swap.xml \
1022         org.freedesktop.systemd1.Path.xml
1023
1024 polkitpolicy_in_in_files += \
1025         src/core/org.freedesktop.systemd1.policy.in.in
1026
1027 org.freedesktop.systemd1.%.xml: systemd
1028         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
1029                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
1030                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
1031
1032 pkgconfigdata_DATA = \
1033         src/core/systemd.pc
1034
1035 nodist_rpmmacros_DATA = \
1036         src/core/macros.systemd
1037
1038 EXTRA_DIST += \
1039         src/core/systemd.pc.in \
1040         src/core/macros.systemd.in
1041
1042 CLEANFILES += \
1043         src/core/macros.systemd \
1044         src/core/org.freedesktop.systemd1.policy.in
1045
1046 # ------------------------------------------------------------------------------
1047 noinst_PROGRAMS += \
1048         test-engine \
1049         test-ns \
1050         test-loopback \
1051         test-hostname \
1052         test-daemon \
1053         test-cgroup \
1054         test-install \
1055         test-watchdog \
1056         test-log
1057
1058 noinst_tests += \
1059         test-job-type \
1060         test-env-replace \
1061         test-strbuf \
1062         test-strv \
1063         test-strxcpyx \
1064         test-unit-name \
1065         test-unit-file \
1066         test-util \
1067         test-date \
1068         test-sleep \
1069         test-replace-var \
1070         test-sched-prio \
1071         test-calendarspec \
1072         test-strip-tab-ansi \
1073         test-cgroup-util
1074
1075 EXTRA_DIST += \
1076         test/sched_idle_bad.service \
1077         test/sched_idle_ok.service \
1078         test/sched_rr_bad.service \
1079         test/sched_rr_ok.service \
1080         test/sched_rr_change.service
1081
1082 test_engine_SOURCES = \
1083         src/test/test-engine.c
1084
1085 test_engine_CFLAGS = \
1086         $(AM_CFLAGS) \
1087         $(DBUS_CFLAGS)
1088
1089 test_engine_LDADD = \
1090         libsystemd-core.la \
1091         libsystemd-daemon.la \
1092         libsystemd-dbus.la
1093
1094 test_job_type_SOURCES = \
1095         src/test/test-job-type.c
1096
1097 test_job_type_CFLAGS = \
1098         $(AM_CFLAGS) \
1099         $(DBUS_CFLAGS)
1100
1101 test_job_type_LDADD = \
1102         libsystemd-core.la \
1103         libsystemd-daemon.la
1104
1105 test_ns_SOURCES = \
1106         src/test/test-ns.c
1107
1108 test_ns_LDADD = \
1109         libsystemd-core.la
1110
1111 test_loopback_SOURCES = \
1112         src/test/test-loopback.c
1113
1114 test_loopback_LDADD = \
1115         libsystemd-shared.la \
1116         libsystemd-core.la
1117
1118 test_hostname_SOURCES = \
1119         src/test/test-hostname.c
1120
1121 test_hostname_LDADD = \
1122         libsystemd-core.la
1123
1124 if ENABLE_EFI
1125 noinst_PROGRAMS += \
1126         test-efivars
1127
1128 test_efivars_SOURCES = \
1129         src/test/test-efivars.c
1130
1131 test_efivars_LDADD = \
1132         libsystemd-shared.la
1133 endif
1134
1135 test_unit_name_SOURCES = \
1136         src/test/test-unit-name.c
1137
1138 test_unit_name_CFLAGS = \
1139         $(AM_CFLAGS) \
1140         $(DBUS_CFLAGS)
1141
1142 test_unit_name_LDADD = \
1143         libsystemd-core.la
1144
1145 test_unit_file_SOURCES = \
1146         src/test/test-unit-file.c
1147
1148 test_unit_file_CFLAGS = \
1149         $(AM_CFLAGS) \
1150         $(DBUS_CFLAGS)
1151
1152 test_unit_file_LDADD = \
1153         libsystemd-core.la
1154
1155 test_util_SOURCES = \
1156         src/test/test-util.c
1157
1158 test_util_CFLAGS = \
1159         $(AM_CFLAGS)
1160
1161 test_util_LDADD = \
1162         libsystemd-core.la
1163
1164 test_log_SOURCES = \
1165         src/test/test-log.c
1166
1167 test_log_LDADD = \
1168         libsystemd-core.la
1169
1170 test_date_SOURCES = \
1171         src/test/test-date.c
1172
1173 test_date_LDADD = \
1174         libsystemd-core.la
1175
1176 test_sleep_SOURCES = \
1177         src/test/test-sleep.c
1178
1179 test_sleep_LDADD = \
1180         libsystemd-core.la
1181
1182 test_replace_var_SOURCES = \
1183         src/test/test-replace-var.c
1184
1185 test_replace_var_LDADD = \
1186         libsystemd-shared.la
1187
1188 test_calendarspec_SOURCES = \
1189         src/test/test-calendarspec.c
1190
1191 test_calendarspec_LDADD = \
1192         libsystemd-shared.la
1193
1194 test_strip_tab_ansi_SOURCES = \
1195         src/test/test-strip-tab-ansi.c
1196
1197 test_strip_tab_ansi_LDADD = \
1198         libsystemd-shared.la
1199
1200 test_daemon_SOURCES = \
1201         src/test/test-daemon.c
1202
1203 test_daemon_LDADD = \
1204         libsystemd-shared.la \
1205         libsystemd-daemon.la
1206
1207 test_cgroup_SOURCES = \
1208         src/test/test-cgroup.c
1209
1210 test_cgroup_LDADD = \
1211         libsystemd-label.la \
1212         libsystemd-shared.la
1213
1214 test_cgroup_util_SOURCES = \
1215         src/test/test-cgroup-util.c
1216
1217 test_cgroup_util_LDADD = \
1218         libsystemd-label.la \
1219         libsystemd-shared.la
1220
1221 test_env_replace_SOURCES = \
1222         src/test/test-env-replace.c
1223
1224 test_env_replace_LDADD = \
1225         libsystemd-shared.la
1226
1227 test_strbuf_SOURCES = \
1228         src/test/test-strbuf.c
1229
1230 test_strbuf_LDADD = \
1231         libsystemd-shared.la
1232
1233 test_strv_SOURCES = \
1234         src/test/test-strv.c
1235
1236 test_strv_LDADD = \
1237         libsystemd-shared.la \
1238         libsystemd-id128-internal.la
1239
1240 test_strxcpyx_SOURCES = \
1241         src/test/test-strxcpyx.c
1242
1243 test_strxcpyx_LDADD = \
1244         libsystemd-shared.la
1245
1246 test_install_SOURCES = \
1247         src/test/test-install.c
1248
1249 test_install_CFLAGS = \
1250         $(AM_CFLAGS) \
1251         $(DBUS_CFLAGS)
1252
1253 test_install_LDADD = \
1254         libsystemd-units.la \
1255         libsystemd-label.la \
1256         libsystemd-shared.la \
1257         libsystemd-id128-internal.la
1258
1259 test_watchdog_SOURCES = \
1260         src/test/test-watchdog.c
1261
1262 test_watchdog_LDADD = \
1263         libsystemd-shared.la
1264
1265 test_sched_prio_SOURCES = \
1266         src/test/test-sched-prio.c
1267
1268 test_sched_prio_CFLAGS = \
1269         $(AM_CFLAGS) \
1270         $(DBUS_CFLAGS) \
1271         -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)"
1272
1273 test_sched_prio_LDADD = \
1274         libsystemd-core.la \
1275         libsystemd-daemon.la
1276
1277 # ------------------------------------------------------------------------------
1278 systemd_initctl_SOURCES = \
1279         src/initctl/initctl.c
1280
1281 systemd_initctl_CFLAGS = \
1282         $(AM_CFLAGS) \
1283         $(DBUS_CFLAGS)
1284
1285 systemd_initctl_LDADD = \
1286         libsystemd-shared.la \
1287         libsystemd-daemon.la \
1288         libsystemd-dbus.la
1289
1290 # ------------------------------------------------------------------------------
1291 systemd_update_utmp_SOURCES = \
1292         src/update-utmp/update-utmp.c
1293
1294 systemd_update_utmp_CFLAGS = \
1295         $(AM_CFLAGS) \
1296         $(DBUS_CFLAGS) \
1297         $(AUDIT_CFLAGS)
1298
1299 systemd_update_utmp_LDADD = \
1300         libsystemd-shared.la \
1301         libsystemd-dbus.la \
1302         $(AUDIT_LIBS)
1303
1304 # ------------------------------------------------------------------------------
1305 systemd_shutdownd_SOURCES = \
1306         src/shutdownd/shutdownd.c
1307
1308 systemd_shutdownd_LDADD = \
1309         libsystemd-label.la \
1310         libsystemd-shared.la \
1311         libsystemd-daemon.la
1312
1313 pkginclude_HEADERS += \
1314         src/systemd/sd-shutdown.h
1315
1316 # ------------------------------------------------------------------------------
1317 systemd_shutdown_SOURCES = \
1318         src/core/umount.c \
1319         src/core/umount.h \
1320         src/core/shutdown.c \
1321         src/core/mount-setup.c \
1322         src/core/mount-setup.h \
1323         src/core/killall.h \
1324         src/core/killall.c
1325
1326 systemd_shutdown_LDADD = \
1327         libsystemd-label.la \
1328         libsystemd-shared.la \
1329         libudev.la
1330
1331 # ------------------------------------------------------------------------------
1332 if HAVE_KMOD
1333 systemd_modules_load_SOURCES = \
1334         src/modules-load/modules-load.c
1335
1336 systemd_modules_load_CFLAGS = \
1337         $(AM_CFLAGS) \
1338         $(KMOD_CFLAGS)
1339
1340 systemd_modules_load_LDADD = \
1341         libsystemd-shared.la \
1342         $(KMOD_LIBS)
1343
1344 rootlibexec_PROGRAMS += \
1345         systemd-modules-load
1346
1347 nodist_systemunit_DATA += \
1348         units/systemd-modules-load.service
1349 SYSINIT_TARGET_WANTS += \
1350         systemd-modules-load.service
1351
1352 dist_udevrules_DATA += \
1353         rules/80-drivers.rules
1354
1355 endif
1356
1357 EXTRA_DIST += \
1358         units/systemd-modules-load.service.in
1359
1360 # ------------------------------------------------------------------------------
1361 systemd_tmpfiles_SOURCES = \
1362         src/tmpfiles/tmpfiles.c
1363
1364 systemd_tmpfiles_LDADD = \
1365         libsystemd-label.la \
1366         libsystemd-shared.la \
1367         libsystemd-capability.la
1368
1369 # ------------------------------------------------------------------------------
1370 systemd_machine_id_setup_SOURCES = \
1371         src/machine-id-setup/machine-id-setup-main.c \
1372         src/core/machine-id-setup.c \
1373         src/core/machine-id-setup.h
1374
1375 systemd_machine_id_setup_LDADD = \
1376         libsystemd-label.la \
1377         libsystemd-shared.la \
1378         libsystemd-id128-internal.la
1379
1380 # ------------------------------------------------------------------------------
1381 systemd_sysctl_SOURCES = \
1382         src/sysctl/sysctl.c
1383
1384 systemd_sysctl_LDADD = \
1385         libsystemd-shared.la
1386
1387 # ------------------------------------------------------------------------------
1388 systemd_sleep_SOURCES = \
1389         src/sleep/sleep.c
1390
1391 systemd_sleep_LDADD = \
1392         libsystemd-shared.la
1393
1394 # ------------------------------------------------------------------------------
1395 systemd_fsck_SOURCES = \
1396         src/fsck/fsck.c
1397
1398 systemd_fsck_CFLAGS = \
1399         $(AM_CFLAGS) \
1400         $(DBUS_CFLAGS)
1401
1402 systemd_fsck_LDADD = \
1403         libsystemd-shared.la \
1404         libsystemd-dbus.la \
1405         libudev.la
1406
1407 # ------------------------------------------------------------------------------
1408 systemd_timestamp_SOURCES = \
1409         src/timestamp/timestamp.c
1410
1411 systemd_timestamp_LDADD = \
1412         libsystemd-shared.la
1413
1414 # ------------------------------------------------------------------------------
1415 systemd_ac_power_SOURCES = \
1416         src/ac-power/ac-power.c
1417
1418 systemd_ac_power_LDADD = \
1419         libsystemd-shared.la \
1420         libudev.la
1421
1422 # ------------------------------------------------------------------------------
1423 systemd_detect_virt_SOURCES = \
1424         src/detect-virt/detect-virt.c
1425
1426 systemd_detect_virt_LDADD = \
1427         libsystemd-shared.la
1428
1429 systemd-detect-virt-install-hook:
1430         -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1431
1432 INSTALL_EXEC_HOOKS += \
1433         systemd-detect-virt-install-hook
1434
1435 # ------------------------------------------------------------------------------
1436 systemd_delta_SOURCES = \
1437         src/delta/delta.c
1438
1439 systemd_delta_LDADD = \
1440         libsystemd-shared.la
1441
1442 # ------------------------------------------------------------------------------
1443 systemd_getty_generator_SOURCES = \
1444         src/getty-generator/getty-generator.c
1445
1446 systemd_getty_generator_LDADD = \
1447         libsystemd-label.la \
1448         libsystemd-shared.la
1449
1450 # ------------------------------------------------------------------------------
1451 systemd_fstab_generator_SOURCES = \
1452         src/fstab-generator/fstab-generator.c \
1453         src/core/mount-setup.c
1454
1455 systemd_fstab_generator_LDADD = \
1456         libsystemd-label.la \
1457         libsystemd-shared.la
1458
1459 # ------------------------------------------------------------------------------
1460 systemd_system_update_generator_SOURCES = \
1461         src/system-update-generator/system-update-generator.c
1462
1463 systemd_system_update_generator_LDADD = \
1464         libsystemd-label.la \
1465         libsystemd-shared.la
1466
1467 # ------------------------------------------------------------------------------
1468 if ENABLE_EFI
1469 systemgenerator_PROGRAMS +=  \
1470         systemd-efi-boot-generator
1471
1472 systemd_efi_boot_generator_SOURCES = \
1473         src/efi-boot-generator/efi-boot-generator.c
1474
1475 systemd_efi_boot_generator_LDADD = \
1476         libsystemd-label.la \
1477         libsystemd-shared.la
1478 endif
1479
1480 # ------------------------------------------------------------------------------
1481 systemd_rc_local_generator_SOURCES = \
1482         src/rc-local-generator/rc-local-generator.c
1483
1484 systemd_rc_local_generator_LDADD = \
1485         libsystemd-label.la \
1486         libsystemd-shared.la
1487
1488 # ------------------------------------------------------------------------------
1489 systemd_remount_fs_SOURCES = \
1490         src/remount-fs/remount-fs.c \
1491         src/core/mount-setup.c \
1492         src/core/mount-setup.h
1493
1494 systemd_remount_fs_LDADD = \
1495         libsystemd-label.la \
1496         libsystemd-shared.la
1497
1498 # ------------------------------------------------------------------------------
1499 systemd_cgroups_agent_SOURCES = \
1500         src/cgroups-agent/cgroups-agent.c
1501
1502 systemd_cgroups_agent_CFLAGS = \
1503         $(AM_CFLAGS) \
1504         $(DBUS_CFLAGS)
1505
1506 systemd_cgroups_agent_LDADD = \
1507         libsystemd-shared.la \
1508         libsystemd-dbus.la
1509
1510 # ------------------------------------------------------------------------------
1511 systemctl_SOURCES = \
1512         src/systemctl/systemctl.c
1513
1514 systemctl_CFLAGS = \
1515         $(AM_CFLAGS) \
1516         $(DBUS_CFLAGS)
1517
1518 systemctl_LDADD = \
1519         libsystemd-units.la \
1520         libsystemd-label.la \
1521         libsystemd-shared.la \
1522         libsystemd-daemon.la \
1523         libsystemd-dbus.la \
1524         libsystemd-logs.la
1525
1526 # ------------------------------------------------------------------------------
1527 systemd_notify_SOURCES = \
1528         src/notify/notify.c \
1529         src/readahead/sd-readahead.c
1530
1531 systemd_notify_LDADD = \
1532         libsystemd-shared.la \
1533         libsystemd-daemon.la
1534
1535 # ------------------------------------------------------------------------------
1536 systemd_ask_password_SOURCES = \
1537         src/ask-password/ask-password.c
1538
1539 systemd_ask_password_LDADD = \
1540         libsystemd-label.la \
1541         libsystemd-shared.la
1542
1543 # ------------------------------------------------------------------------------
1544 systemd_reply_password_SOURCES = \
1545         src/reply-password/reply-password.c
1546
1547 systemd_reply_password_LDADD = \
1548         libsystemd-shared.la
1549
1550 # ------------------------------------------------------------------------------
1551 systemd_cgls_SOURCES = \
1552         src/cgls/cgls.c
1553
1554 systemd_cgls_LDADD = \
1555         libsystemd-shared.la
1556
1557 # ------------------------------------------------------------------------------
1558 systemd_cgtop_SOURCES = \
1559         src/cgtop/cgtop.c
1560
1561 systemd_cgtop_LDADD = \
1562         libsystemd-shared.la
1563
1564 # ------------------------------------------------------------------------------
1565 systemd_nspawn_SOURCES = \
1566         src/nspawn/nspawn.c \
1567         src/core/mount-setup.c \
1568         src/core/mount-setup.h \
1569         src/core/loopback-setup.c \
1570         src/core/loopback-setup.h
1571
1572 systemd_nspawn_LDADD = \
1573         libsystemd-label.la \
1574         libsystemd-capability.la \
1575         libsystemd-shared.la \
1576         libsystemd-daemon.la \
1577         libsystemd-id128-internal.la
1578
1579 # ------------------------------------------------------------------------------
1580 systemd_stdio_bridge_SOURCES = \
1581         src/stdio-bridge/stdio-bridge.c
1582
1583 systemd_stdio_bridge_LDADD = \
1584         libsystemd-shared.la
1585
1586 # ------------------------------------------------------------------------------
1587 systemd_tty_ask_password_agent_SOURCES = \
1588         src/tty-ask-password-agent/tty-ask-password-agent.c
1589
1590 systemd_tty_ask_password_agent_LDADD = \
1591         libsystemd-label.la \
1592         libsystemd-shared.la
1593
1594 # ------------------------------------------------------------------------------
1595 libsystemd_daemon_la_SOURCES = \
1596         src/libsystemd-daemon/sd-daemon.c
1597
1598 libsystemd_daemon_internal_la_SOURCES = \
1599         $(libsystemd_daemon_la_SOURCES)
1600
1601 libsystemd_daemon_la_CFLAGS = \
1602         $(AM_CFLAGS) \
1603         -fvisibility=hidden \
1604         -DSD_EXPORT_SYMBOLS
1605
1606 libsystemd_daemon_la_LDFLAGS = \
1607         $(AM_LDFLAGS) \
1608         -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1609         -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1610
1611 pkginclude_HEADERS += \
1612         src/systemd/sd-daemon.h
1613
1614 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1615 libsystemd-daemon-install-hook:
1616         libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1617
1618 libsystemd-daemon-uninstall-hook:
1619         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1620
1621 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1622 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1623
1624 lib_LTLIBRARIES += \
1625         libsystemd-daemon.la
1626
1627 noinst_LTLIBRARIES += \
1628         libsystemd-daemon-internal.la
1629
1630 pkgconfiglib_DATA += \
1631         src/libsystemd-daemon/libsystemd-daemon.pc
1632
1633 EXTRA_DIST += \
1634         src/libsystemd-daemon/libsystemd-daemon.pc.in \
1635         src/libsystemd-daemon/libsystemd-daemon.sym
1636
1637 # ------------------------------------------------------------------------------
1638 if ENABLE_GTK_DOC
1639 SUBDIRS += \
1640         docs/libudev
1641
1642 noinst_DATA += \
1643         docs/html/libudev \
1644         docs/html/gudev
1645 endif
1646
1647 include_HEADERS += \
1648         src/libudev/libudev.h
1649
1650 lib_LTLIBRARIES += \
1651         libudev.la
1652
1653 libudev_la_SOURCES =\
1654         src/libudev/libudev-private.h \
1655         src/libudev/libudev.c \
1656         src/libudev/libudev-list.c \
1657         src/libudev/libudev-util.c \
1658         src/libudev/libudev-device.c \
1659         src/libudev/libudev-enumerate.c \
1660         src/libudev/libudev-monitor.c \
1661         src/libudev/libudev-queue.c \
1662         src/libudev/libudev-hwdb-def.h \
1663         src/libudev/libudev-hwdb.c
1664
1665 libudev_la_CFLAGS = \
1666         $(AM_CFLAGS) \
1667         -fvisibility=hidden
1668
1669 libudev_la_LDFLAGS = \
1670         $(AM_LDFLAGS) \
1671         -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
1672         -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
1673
1674 libudev_la_LIBADD = \
1675         libsystemd-shared.la \
1676         libsystemd-daemon-internal.la \
1677         libsystemd-id128-internal.la
1678
1679 pkgconfiglib_DATA += \
1680         src/libudev/libudev.pc
1681
1682 EXTRA_DIST += \
1683         src/libudev/libudev.pc.in \
1684         src/libudev/libudev.sym
1685
1686 CLEANFILES += \
1687         src/libudev/libudev.pc \
1688         docs/html/libudev \
1689         docs/html/gudev
1690
1691 docs/html/libudev:
1692         $(AM_V_at)$(MKDIR_P) $(dir $@)
1693         $(AM_V_LN)$(LN_S) -f ../libudev/html $@
1694
1695 docs/html/gudev:
1696         $(AM_V_at)$(MKDIR_P) $(dir $@)
1697         $(AM_V_LN)$(LN_S) -f ../gudev/html $@
1698
1699 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1700 libudev-install-hook:
1701         libname=libudev.so && $(move-to-rootlibdir)
1702
1703 libudev-uninstall-hook:
1704         rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
1705
1706 INSTALL_EXEC_HOOKS += libudev-install-hook
1707 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
1708
1709 # ------------------------------------------------------------------------------
1710 noinst_LTLIBRARIES += \
1711         libudev-private.la
1712
1713 libudev_private_la_SOURCES =\
1714         $(libudev_la_SOURCES) \
1715         src/libudev/libudev-device-private.c \
1716         src/libudev/libudev-queue-private.c
1717
1718 libudev_private_la_CFLAGS = \
1719         $(AM_CFLAGS) \
1720         -fvisibility=default
1721
1722 libudev_private_la_LIBADD = \
1723         libsystemd-shared.la
1724
1725 # ------------------------------------------------------------------------------
1726 INSTALL_DIRS += \
1727         $(sysconfdir)/udev/rules.d \
1728         $(sysconfdir)/udev/hwdb.d
1729
1730 dist_udevrules_DATA += \
1731         rules/99-systemd.rules \
1732         rules/42-usb-hid-pm.rules \
1733         rules/50-udev-default.rules \
1734         rules/60-persistent-storage-tape.rules \
1735         rules/60-persistent-serial.rules \
1736         rules/60-persistent-input.rules \
1737         rules/60-persistent-alsa.rules \
1738         rules/60-persistent-storage.rules \
1739         rules/64-btrfs.rules \
1740         rules/75-net-description.rules \
1741         rules/75-tty-description.rules \
1742         rules/78-sound-card.rules \
1743         rules/80-net-name-slot.rules \
1744         rules/95-udev-late.rules
1745
1746 dist_udevhwdb_DATA = \
1747         hwdb/20-pci-vendor-product.hwdb \
1748         hwdb/20-pci-classes.hwdb \
1749         hwdb/20-usb-vendor-product.hwdb \
1750         hwdb/20-usb-classes.hwdb \
1751         hwdb/20-bluetooth-vendor-product.hwdb \
1752         hwdb/20-acpi-vendor.hwdb \
1753         hwdb/20-OUI.hwdb
1754
1755 udevconfdir = $(sysconfdir)/udev
1756 dist_udevconf_DATA = \
1757         src/udev/udev.conf
1758
1759 sharepkgconfigdir = $(datadir)/pkgconfig
1760 sharepkgconfig_DATA = \
1761         src/udev/udev.pc
1762
1763 EXTRA_DIST += \
1764         rules/99-systemd.rules.in \
1765         src/udev/udev.pc.in
1766
1767 CLEANFILES += \
1768         rules/99-systemd.rules \
1769         src/udev/udev.pc
1770
1771 EXTRA_DIST += \
1772         units/systemd-udevd.service.in \
1773         units/systemd-udev-trigger.service.in \
1774         units/systemd-udev-settle.service.in
1775
1776 CLEANFILES += \
1777         units/systemd-udevd.service \
1778         units/systemd-udev-trigger.service \
1779         units/systemd-udev-settle.service
1780
1781 SOCKETS_TARGET_WANTS += \
1782         systemd-udevd-control.socket \
1783         systemd-udevd-kernel.socket
1784 SYSINIT_TARGET_WANTS += \
1785         systemd-udevd.service \
1786         systemd-udev-trigger.service
1787
1788 rootbin_PROGRAMS += \
1789         udevadm
1790
1791 rootlibexec_PROGRAMS += \
1792         systemd-udevd
1793
1794 noinst_LTLIBRARIES += \
1795         libudev-core.la
1796
1797 libudev_core_la_SOURCES = \
1798         src/udev/udev.h \
1799         src/udev/udev-event.c \
1800         src/udev/udev-watch.c \
1801         src/udev/udev-node.c \
1802         src/udev/udev-rules.c \
1803         src/udev/udev-ctrl.c \
1804         src/udev/udev-builtin.c \
1805         src/udev/udev-builtin-btrfs.c \
1806         src/udev/udev-builtin-firmware.c \
1807         src/udev/udev-builtin-hwdb.c \
1808         src/udev/udev-builtin-input_id.c \
1809         src/udev/udev-builtin-net_id.c \
1810         src/udev/udev-builtin-path_id.c \
1811         src/udev/udev-builtin-usb_id.c
1812
1813 libudev_core_la_CFLAGS = \
1814         $(AM_CFLAGS) \
1815         $(BLKID_CFLAGS) \
1816         $(KMOD_CFLAGS)
1817
1818 libudev_core_la_LIBADD = \
1819         libudev-private.la \
1820         libsystemd-label.la \
1821         libsystemd-daemon-internal.la \
1822         libsystemd-shared.la \
1823         $(BLKID_LIBS) \
1824         $(KMOD_LIBS)
1825
1826 libudev_core_la_CPPFLAGS = \
1827         $(AM_CPPFLAGS) \
1828         -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
1829
1830 if HAVE_KMOD
1831 libudev_core_la_SOURCES += \
1832         src/udev/udev-builtin-kmod.c
1833 endif
1834
1835 if HAVE_BLKID
1836 libudev_core_la_SOURCES += \
1837         src/udev/udev-builtin-blkid.c
1838 endif
1839
1840 if HAVE_ACL
1841 libudev_core_la_SOURCES += \
1842         src/udev/udev-builtin-uaccess.c \
1843         src/login/logind-acl.c \
1844         src/login/sd-login.c
1845
1846 libudev_core_la_LIBADD += \
1847         libsystemd-acl.la
1848 endif
1849
1850 systemd_udevd_SOURCES = \
1851         src/udev/udevd.c
1852
1853 systemd_udevd_LDADD = \
1854         libudev-core.la
1855
1856 udevadm_SOURCES = \
1857         src/udev/udevadm.c \
1858         src/udev/udevadm-info.c \
1859         src/udev/udevadm-control.c \
1860         src/udev/udevadm-monitor.c \
1861         src/udev/udevadm-hwdb.c \
1862         src/udev/udevadm-settle.c \
1863         src/udev/udevadm-trigger.c \
1864         src/udev/udevadm-test.c \
1865         src/udev/udevadm-test-builtin.c
1866
1867 udevadm_LDADD = \
1868         libudev-core.la \
1869         libsystemd-shared.la
1870
1871 # Update hwdb on installation. Do not bother if installing
1872 # in DESTDIR, since this is likely for packaging purposes.
1873 hwdb-update-hook:
1874         -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
1875
1876 INSTALL_DATA_HOOKS += \
1877         hwdb-update-hook
1878
1879 hwdb-remove-hook:
1880         -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
1881
1882 # ------------------------------------------------------------------------------
1883 TESTS += \
1884         test/udev-test.pl \
1885         test/rules-test.sh
1886
1887 noinst_PROGRAMS += \
1888         test-libudev \
1889         test-udev
1890
1891 test_libudev_SOURCES = \
1892         src/test/test-libudev.c
1893
1894 test_libudev_LDADD = \
1895         libsystemd-label.la \
1896         libsystemd-shared.la \
1897         libudev.la
1898
1899 test_udev_SOURCES = \
1900         src/test/test-udev.c
1901
1902 test_udev_LDADD = \
1903         libudev-core.la \
1904         libsystemd-shared.la \
1905         $(BLKID_LIBS) \
1906         $(KMOD_LIBS) \
1907         $(SELINUX_LIBS)
1908
1909 if HAVE_ACL
1910 test_udev_LDADD += \
1911         libsystemd-acl.la
1912 endif
1913
1914 check_DATA += \
1915         test/sys
1916
1917 # packed sysfs test tree
1918 test/sys:
1919         $(AM_V_at)$(MKDIR_P) $(dir $@)
1920         $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
1921
1922 test-sys-distclean:
1923         -rm -rf test/sys
1924 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
1925
1926 EXTRA_DIST += \
1927         test/sys.tar.xz \
1928         test/udev-test.pl \
1929         test/rules-test.sh \
1930         test/rule-syntax-check.py
1931
1932 # ------------------------------------------------------------------------------
1933 ata_id_SOURCES = \
1934         src/udev/ata_id/ata_id.c
1935
1936 ata_id_LDADD = \
1937         libudev-private.la \
1938         libsystemd-shared.la
1939
1940 udevlibexec_PROGRAMS += \
1941         ata_id
1942
1943 # ------------------------------------------------------------------------------
1944 cdrom_id_SOURCES = \
1945         src/udev/cdrom_id/cdrom_id.c
1946
1947 cdrom_id_LDADD = \
1948         libudev.la \
1949         libsystemd-shared.la
1950
1951 udevlibexec_PROGRAMS += \
1952         cdrom_id
1953
1954 dist_udevrules_DATA += \
1955         rules/60-cdrom_id.rules
1956
1957 # ------------------------------------------------------------------------------
1958 collect_SOURCES = \
1959         src/udev/collect/collect.c
1960
1961 collect_LDADD = \
1962         libudev-private.la
1963
1964 udevlibexec_PROGRAMS += \
1965         collect
1966
1967 # ------------------------------------------------------------------------------
1968 scsi_id_SOURCES =\
1969         src/udev/scsi_id/scsi_id.c \
1970         src/udev/scsi_id/scsi_serial.c \
1971         src/udev/scsi_id/scsi.h \
1972         src/udev/scsi_id/scsi_id.h
1973
1974 scsi_id_LDADD = \
1975         libudev-private.la \
1976         libsystemd-shared.la
1977
1978 udevlibexec_PROGRAMS += \
1979         scsi_id
1980
1981 EXTRA_DIST += \
1982         src/udev/scsi_id/README
1983
1984 # ------------------------------------------------------------------------------
1985 v4l_id_SOURCES = \
1986         src/udev/v4l_id/v4l_id.c
1987
1988 v4l_id_LDADD = \
1989         libudev.la
1990
1991 udevlibexec_PROGRAMS += \
1992         v4l_id
1993
1994 dist_udevrules_DATA += \
1995         rules/60-persistent-v4l.rules
1996
1997 # ------------------------------------------------------------------------------
1998 accelerometer_SOURCES = \
1999         src/udev/accelerometer/accelerometer.c
2000
2001 accelerometer_LDADD = \
2002         libudev.la -lm \
2003         libsystemd-shared.la
2004
2005 udevlibexec_PROGRAMS += \
2006         accelerometer
2007
2008 dist_udevrules_DATA += \
2009         rules/61-accelerometer.rules
2010
2011 # ------------------------------------------------------------------------------
2012 if ENABLE_GUDEV
2013 if ENABLE_GTK_DOC
2014 SUBDIRS += \
2015         docs/gudev
2016 endif
2017
2018 libgudev_includedir = \
2019         $(includedir)/gudev-1.0/gudev
2020
2021 libgudev_include_HEADERS = \
2022         src/gudev/gudev.h \
2023         src/gudev/gudevenums.h \
2024         src/gudev/gudevenumtypes.h \
2025         src/gudev/gudevtypes.h \
2026         src/gudev/gudevclient.h \
2027         src/gudev/gudevdevice.h \
2028         src/gudev/gudevenumerator.h
2029
2030 lib_LTLIBRARIES += libgudev-1.0.la
2031
2032 pkgconfiglib_DATA += \
2033         src/gudev/gudev-1.0.pc
2034
2035 CLEANFILES += \
2036         src/gudev/gudev-1.0.pc
2037
2038 libgudev_1_0_la_SOURCES = \
2039         src/gudev/gudevenums.h \
2040         src/gudev/gudevenumtypes.h \
2041         src/gudev/gudevenumtypes.h\
2042         src/gudev/gudevtypes.h \
2043         src/gudev/gudevclient.h \
2044         src/gudev/gudevclient.c \
2045         src/gudev/gudevdevice.h \
2046         src/gudev/gudevdevice.c \
2047         src/gudev/gudevenumerator.h \
2048         src/gudev/gudevenumerator.c \
2049         src/gudev/gudevprivate.h
2050
2051 nodist_libgudev_1_0_la_SOURCES = \
2052         src/gudev/gudevmarshal.h \
2053         src/gudev/gudevmarshal.c \
2054         src/gudev/gudevenumtypes.h \
2055         src/gudev/gudevenumtypes.c
2056
2057 BUILT_SOURCES += \
2058         $(nodist_libgudev_1_0_la_SOURCES)
2059
2060 libgudev_1_0_la_CPPFLAGS = \
2061         $(AM_CPPFLAGS) \
2062         -I$(top_builddir)/src\
2063         -I$(top_srcdir)/src\
2064         -I$(top_builddir)/src/gudev \
2065         -I$(top_srcdir)/src/gudev \
2066         -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2067         -D_GUDEV_COMPILATION \
2068         -DG_LOG_DOMAIN=\"GUdev\"
2069
2070 libgudev_1_0_la_CFLAGS = \
2071         $(AM_CFLAGS) \
2072         -fvisibility=default \
2073         $(GLIB_CFLAGS)
2074
2075 libgudev_1_0_la_LIBADD = \
2076         libudev.la \
2077         $(GLIB_LIBS)
2078
2079 libgudev_1_0_la_LDFLAGS = \
2080         $(AM_LDFLAGS) \
2081         -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2082         -export-dynamic -no-undefined \
2083         -export-symbols-regex '^g_udev_.*'
2084
2085 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2086         $(AM_V_at)$(MKDIR_P) $(dir $@)
2087         $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2088
2089 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2090         $(AM_V_at)$(MKDIR_P) $(dir $@)
2091         $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2092         glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2093
2094 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2095         $(AM_V_at)$(MKDIR_P) $(dir $@)
2096         $(AM_V_GEN)glib-mkenums --template $^ > $@
2097
2098 if HAVE_INTROSPECTION
2099 -include $(INTROSPECTION_MAKEFILE)
2100
2101 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2102
2103 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2104
2105 src_gudev_GUdev_1_0_gir_CFLAGS = \
2106         $(INCLUDES) \
2107         -D_GUDEV_COMPILATION \
2108         -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2109         -I$(top_srcdir)/src \
2110         -I$(top_builddir)/src \
2111         -I$(top_srcdir)/src/gdev \
2112         -I$(top_builddir)/src/gdev
2113
2114 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2115
2116 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2117         --pkg-export=gudev-1.0 \
2118         --warn-all
2119
2120 src_gudev_GUdev_1_0_gir_FILES = \
2121         src/gudev/gudev.h \
2122         src/gudev/gudevtypes.h \
2123         src/gudev/gudevenums.h \
2124         src/gudev/gudevenumtypes.h \
2125         src/gudev/gudevclient.h \
2126         src/gudev/gudevdevice.h \
2127         src/gudev/gudevenumerator.h \
2128         src/gudev/gudevclient.c \
2129         src/gudev/gudevdevice.c \
2130         src/gudev/gudevenumerator.c
2131
2132 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2133 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2134
2135 girdir = $(datadir)/gir-1.0
2136 gir_DATA = \
2137         src/gudev/GUdev-1.0.gir
2138
2139 typelibsdir = $(libdir)/girepository-1.0
2140 typelibs_DATA = \
2141         src/gudev/GUdev-1.0.typelib
2142
2143 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2144 endif # HAVE_INTROSPECTION
2145
2146 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2147 libgudev-install-hook:
2148         libname=libgudev-1.0.so && $(move-to-rootlibdir)
2149
2150 libgudev-uninstall-hook:
2151         rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2152
2153 INSTALL_EXEC_HOOKS += libgudev-install-hook
2154 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2155 endif
2156
2157 EXTRA_DIST += \
2158         src/gudev/gudev-1.0.pc.in \
2159         src/gudev/gudevmarshal.list \
2160         src/gudev/gudevenumtypes.h.template \
2161         src/gudev/gudevenumtypes.c.template \
2162         src/gudev/gjs-example.js \
2163         src/gudev/seed-example-enum.js \
2164         src/gudev/seed-example.js
2165
2166 # ------------------------------------------------------------------------------
2167 if ENABLE_KEYMAP
2168 keymap_SOURCES = \
2169         src/udev/keymap/keymap.c
2170
2171 keymap_CPPFLAGS = \
2172         $(AM_CPPFLAGS) -I src/udev/keymap
2173
2174 keymap_LDADD = \
2175         libsystemd-shared.la
2176
2177 nodist_keymap_SOURCES = \
2178         src/udev/keymap/keys-from-name.h \
2179         src/udev/keymap/keys-to-name.h
2180
2181 BUILT_SOURCES += \
2182         $(nodist_keymap_SOURCES)
2183
2184 udevlibexec_PROGRAMS += \
2185         keymap
2186
2187 dist_doc_DATA += \
2188         src/udev/keymap/README.keymap.txt
2189
2190 dist_udevrules_DATA += \
2191         src/udev/keymap/95-keymap.rules \
2192         src/udev/keymap/95-keyboard-force-release.rules
2193
2194 dist_udevhome_SCRIPTS = \
2195         src/udev/keymap/findkeyboards \
2196         src/udev/keymap/keyboard-force-release.sh
2197
2198 TESTS += \
2199         src/udev/keymap/check-keymaps.sh
2200
2201 CLEANFILES += \
2202         src/udev/keymap/keys.txt \
2203         src/udev/keymap/keys-from-name.gperf \
2204         src/udev/keymap/keyboard-force-release.sh
2205
2206 udevkeymapdir = $(udevlibexecdir)/keymaps
2207 dist_udevkeymap_DATA = \
2208         keymaps/acer \
2209         keymaps/acer-aspire_5720 \
2210         keymaps/acer-aspire_8930 \
2211         keymaps/acer-aspire_5920g \
2212         keymaps/acer-aspire_6920 \
2213         keymaps/acer-travelmate_c300 \
2214         keymaps/asus \
2215         keymaps/compaq-e_evo \
2216         keymaps/dell \
2217         keymaps/dell-latitude-xt2 \
2218         keymaps/everex-xt5000 \
2219         keymaps/fujitsu-amilo_li_2732 \
2220         keymaps/fujitsu-amilo_pa_2548 \
2221         keymaps/fujitsu-amilo_pro_edition_v3505 \
2222         keymaps/fujitsu-amilo_pro_v3205 \
2223         keymaps/fujitsu-amilo_si_1520 \
2224         keymaps/fujitsu-esprimo_mobile_v5 \
2225         keymaps/fujitsu-esprimo_mobile_v6 \
2226         keymaps/genius-slimstar-320 \
2227         keymaps/hewlett-packard \
2228         keymaps/hewlett-packard-2510p_2530p \
2229         keymaps/hewlett-packard-compaq_elitebook \
2230         keymaps/hewlett-packard-pavilion \
2231         keymaps/hewlett-packard-presario-2100 \
2232         keymaps/hewlett-packard-tablet \
2233         keymaps/hewlett-packard-tx2 \
2234         keymaps/hewlett-packard_elitebook-8440p \
2235         keymaps/hewlett-packard-hdx9494nr \
2236         keymaps/ibm-thinkpad-usb-keyboard-trackpoint \
2237         keymaps/inventec-symphony_6.0_7.0 \
2238         keymaps/lenovo-3000 \
2239         keymaps/lenovo-ideapad \
2240         keymaps/lenovo-thinkpad-usb-keyboard-trackpoint \
2241         keymaps/lenovo-thinkpad_x6_tablet \
2242         keymaps/lenovo-thinkpad_x200_tablet \
2243         keymaps/lg-x110 \
2244         keymaps/logitech-wave \
2245         keymaps/logitech-wave-cordless \
2246         keymaps/logitech-wave-pro-cordless \
2247         keymaps/maxdata-pro_7000 \
2248         keymaps/medion-fid2060 \
2249         keymaps/medionnb-a555 \
2250         keymaps/micro-star \
2251         keymaps/module-asus-w3j \
2252         keymaps/module-ibm \
2253         keymaps/module-lenovo \
2254         keymaps/module-sony \
2255         keymaps/module-sony-old \
2256         keymaps/module-sony-vgn \
2257         keymaps/module-sony-vpc \
2258         keymaps/olpc-xo \
2259         keymaps/onkyo \
2260         keymaps/oqo-model2 \
2261         keymaps/samsung-other \
2262         keymaps/samsung-series-9 \
2263         keymaps/samsung-sq1us \
2264         keymaps/samsung-sx20s \
2265         keymaps/toshiba-satellite_a100 \
2266         keymaps/toshiba-satellite_a110 \
2267         keymaps/toshiba-satellite_m30x \
2268         keymaps/zepto-znote
2269
2270 udevkeymapforcereldir = $(udevlibexecdir)/keymaps/force-release
2271 dist_udevkeymapforcerel_DATA = \
2272         keymaps-force-release/dell-touchpad \
2273         keymaps-force-release/dell-xps \
2274         keymaps-force-release/hp-other \
2275         keymaps-force-release/samsung-other \
2276         keymaps-force-release/samsung-series-9 \
2277         keymaps-force-release/common-volume-keys
2278
2279 src/udev/keymap/keys.txt: Makefile
2280         $(AM_V_at)$(MKDIR_P) $(dir $@)
2281         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9]/ { if ($$2 != "KEY_MAX") { print $$2 } }' | sed 's/^KEY_COFFEE$$/KEY_SCREENLOCK/' > $@
2282
2283 src/udev/keymap/keys-from-name.gperf: src/udev/keymap/keys.txt Makefile
2284         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
2285
2286 src/udev/keymap/keys-from-name.h: src/udev/keymap/keys-from-name.gperf Makefile
2287         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
2288
2289 src/udev/keymap/keys-to-name.h: src/udev/keymap/keys.txt Makefile
2290         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2291 endif
2292
2293 EXTRA_DIST += \
2294         src/udev/keymap/check-keymaps.sh \
2295         src/udev/keymap/keyboard-force-release.sh.in
2296
2297 # ------------------------------------------------------------------------------
2298 mtd_probe_SOURCES =  \
2299         src/udev/mtd_probe/mtd_probe.c \
2300         src/udev/mtd_probe/mtd_probe.h \
2301         src/udev/mtd_probe/probe_smartmedia.c
2302
2303 mtd_probe_CPPFLAGS = \
2304         $(AM_CPPFLAGS)
2305
2306 dist_udevrules_DATA += \
2307         rules/75-probe_mtd.rules
2308
2309 udevlibexec_PROGRAMS += \
2310         mtd_probe
2311
2312 # ------------------------------------------------------------------------------
2313 libsystemd_id128_la_SOURCES = \
2314         src/libsystemd-id128/sd-id128.c
2315
2316 libsystemd_id128_la_CFLAGS = \
2317         $(AM_CFLAGS) \
2318         -fvisibility=hidden
2319
2320 libsystemd_id128_la_LDFLAGS = \
2321         $(AM_LDFLAGS) \
2322         -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2323         -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2324
2325 libsystemd_id128_la_LIBADD = \
2326         libsystemd-shared.la
2327
2328 libsystemd_id128_internal_la_SOURCES = \
2329         $(libsystemd_id128_la_SOURCES)
2330
2331 test_id128_SOURCES = \
2332         src/test/test-id128.c
2333
2334 test_id128_LDADD = \
2335         libsystemd-shared.la \
2336         libsystemd-id128-internal.la
2337
2338 noinst_tests += \
2339         test-id128
2340
2341 pkginclude_HEADERS += \
2342         src/systemd/sd-id128.h
2343
2344 lib_LTLIBRARIES += \
2345         libsystemd-id128.la
2346
2347 noinst_LTLIBRARIES += \
2348         libsystemd-id128-internal.la
2349
2350 pkgconfiglib_DATA += \
2351         src/libsystemd-id128/libsystemd-id128.pc
2352
2353 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2354 libsystemd-id128-install-hook:
2355         libname=libsystemd-id128.so && $(move-to-rootlibdir)
2356
2357 libsystemd-id128-uninstall-hook:
2358         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2359
2360 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2361 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2362
2363 EXTRA_DIST += \
2364         src/libsystemd-id128/libsystemd-id128.pc.in \
2365         src/libsystemd-id128/libsystemd-id128.sym
2366
2367 # ------------------------------------------------------------------------------
2368
2369 rootlibexec_PROGRAMS += \
2370         systemd-activate
2371
2372 systemd_activate_SOURCES = \
2373         src/activate/activate.c
2374
2375 systemd_activate_LDADD = \
2376         libsystemd-shared.la \
2377         libsystemd-daemon.la
2378
2379 # ------------------------------------------------------------------------------
2380 systemd_journald_SOURCES = \
2381         src/journal/journald.c \
2382         src/journal/journald-server.h
2383
2384 systemd_journald_LDADD = \
2385         libsystemd-journal-internal.la \
2386         libsystemd-shared.la \
2387         libsystemd-id128-internal.la
2388
2389 systemd_cat_SOURCES = \
2390         src/journal/cat.c
2391
2392 systemd_cat_LDADD = \
2393         libsystemd-shared.la \
2394         libsystemd-journal-internal.la
2395
2396 journalctl_SOURCES = \
2397         src/journal/journalctl.c
2398
2399 journalctl_CFLAGS = \
2400         $(AM_CFLAGS)
2401
2402 journalctl_LDADD = \
2403         libsystemd-shared.la \
2404         libsystemd-journal-internal.la \
2405         libsystemd-id128-internal.la \
2406         libsystemd-logs.la
2407
2408 if HAVE_QRENCODE
2409 journalctl_SOURCES += \
2410         src/journal/journal-qrcode.c \
2411         src/journal/journal-qrcode.h
2412
2413 journalctl_CFLAGS += \
2414         $(QRENCODE_CFLAGS)
2415
2416 journalctl_LDADD += \
2417         $(QRENCODE_LIBS)
2418 endif
2419
2420 test_journal_SOURCES = \
2421         src/journal/test-journal.c
2422
2423 test_journal_LDADD = \
2424         libsystemd-shared.la \
2425         libsystemd-journal-internal.la \
2426         libsystemd-id128-internal.la
2427
2428 test_journal_send_SOURCES = \
2429         src/journal/test-journal-send.c
2430
2431 test_journal_send_LDADD = \
2432         libsystemd-shared.la \
2433         libsystemd-journal-internal.la \
2434         libsystemd-id128-internal.la
2435
2436 test_journal_syslog_SOURCES = \
2437         src/journal/test-journal-syslog.c
2438
2439 test_journal_syslog_LDADD = \
2440         libsystemd-journal-internal.la \
2441         libsystemd-shared.la \
2442         libsystemd-id128-internal.la
2443
2444 test_journal_match_SOURCES = \
2445         src/journal/test-journal-match.c
2446
2447 test_journal_match_LDADD = \
2448         libsystemd-shared.la \
2449         libsystemd-journal-internal.la \
2450         libsystemd-id128-internal.la
2451
2452 test_journal_enum_SOURCES = \
2453         src/journal/test-journal-enum.c
2454
2455 test_journal_enum_LDADD = \
2456         libsystemd-shared.la \
2457         libsystemd-journal-internal.la \
2458         libsystemd-id128-internal.la
2459
2460 test_journal_stream_SOURCES = \
2461         src/journal/test-journal-stream.c
2462
2463 test_journal_stream_LDADD = \
2464         libsystemd-shared.la \
2465         libsystemd-journal-internal.la \
2466         libsystemd-id128-internal.la
2467
2468 test_journal_verify_SOURCES = \
2469         src/journal/test-journal-verify.c
2470
2471 test_journal_verify_LDADD = \
2472         libsystemd-shared.la \
2473         libsystemd-journal-internal.la \
2474         libsystemd-id128-internal.la
2475
2476 test_mmap_cache_SOURCES = \
2477         src/journal/test-mmap-cache.c
2478
2479 test_mmap_cache_LDADD = \
2480         libsystemd-shared.la \
2481         libsystemd-journal-internal.la
2482
2483 test_catalog_SOURCES = \
2484         src/journal/test-catalog.c
2485
2486 test_catalog_LDADD = \
2487         libsystemd-shared.la \
2488         libsystemd-label.la \
2489         libsystemd-journal-internal.la \
2490         libsystemd-id128-internal.la
2491
2492 libsystemd_journal_la_SOURCES = \
2493         src/journal/sd-journal.c \
2494         src/systemd/sd-journal.h \
2495         src/journal/journal-file.c \
2496         src/journal/journal-file.h \
2497         src/journal/journal-vacuum.c \
2498         src/journal/journal-vacuum.h \
2499         src/journal/journal-verify.c \
2500         src/journal/journal-verify.h \
2501         src/journal/lookup3.c \
2502         src/journal/lookup3.h \
2503         src/journal/journal-send.c \
2504         src/journal/journal-def.h \
2505         src/journal/compress.h \
2506         src/journal/catalog.c \
2507         src/journal/catalog.h \
2508         src/journal/mmap-cache.c \
2509         src/journal/mmap-cache.h
2510
2511 libsystemd_journal_la_CFLAGS = \
2512         $(AM_CFLAGS) \
2513         -fvisibility=hidden
2514
2515 libsystemd_journal_la_LDFLAGS = \
2516         $(AM_LDFLAGS) \
2517         -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2518         -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2519
2520 libsystemd_journal_la_LIBADD = \
2521         libsystemd-shared.la \
2522         libsystemd-label.la \
2523         libsystemd-daemon-internal.la \
2524         libsystemd-id128-internal.la
2525
2526 libsystemd_journal_internal_la_SOURCES = \
2527         $(libsystemd_journal_la_SOURCES) \
2528         src/journal/journald-kmsg.c \
2529         src/journal/journald-kmsg.h \
2530         src/journal/journald-syslog.c \
2531         src/journal/journald-syslog.h \
2532         src/journal/journald-stream.c \
2533         src/journal/journald-stream.h \
2534         src/journal/journald-server.c \
2535         src/journal/journald-server.h \
2536         src/journal/journald-console.c \
2537         src/journal/journald-console.h \
2538         src/journal/journald-native.c \
2539         src/journal/journald-native.h \
2540         src/journal/journald-rate-limit.c \
2541         src/journal/journald-rate-limit.h \
2542         src/journal/journal-internal.h
2543
2544 libsystemd_journal_internal_la_CFLAGS = \
2545         $(AM_CFLAGS)
2546
2547 libsystemd_journal_internal_la_LIBADD = \
2548         libsystemd-label.la \
2549         libsystemd-audit.la \
2550         libsystemd-daemon.la \
2551         libudev.la \
2552         libsystemd-shared.la \
2553         libsystemd-label.la
2554
2555 nodist_libsystemd_journal_internal_la_SOURCES = \
2556         src/journal/journald-gperf.c
2557
2558 if ENABLE_LOGIND
2559 libsystemd_journal_internal_la_LIBADD += \
2560         libsystemd-login-internal.la
2561 endif
2562
2563 if HAVE_ACL
2564 libsystemd_journal_internal_la_LIBADD += \
2565         libsystemd-acl.la
2566 endif
2567
2568 if HAVE_XZ
2569 libsystemd_journal_la_SOURCES += \
2570         src/journal/compress.c
2571
2572 libsystemd_journal_la_CFLAGS += \
2573         $(XZ_CFLAGS)
2574
2575 libsystemd_journal_la_LIBADD += \
2576         $(XZ_LIBS)
2577
2578 libsystemd_journal_internal_la_CFLAGS += \
2579         $(XZ_CFLAGS)
2580
2581 libsystemd_journal_internal_la_LIBADD += \
2582         $(XZ_LIBS)
2583
2584 endif
2585
2586 if HAVE_GCRYPT
2587 libsystemd_journal_la_SOURCES += \
2588         src/journal/journal-authenticate.c \
2589         src/journal/journal-authenticate.h \
2590         src/journal/fsprg.c \
2591         src/journal/fsprg.h
2592
2593 libsystemd_journal_la_CFLAGS += \
2594         $(GCRYPT_CFLAGS) \
2595         -Wno-pointer-arith
2596
2597 libsystemd_journal_la_LIBADD += \
2598         $(GCRYPT_LIBS)
2599
2600 libsystemd_journal_internal_la_CFLAGS += \
2601         $(GCRYPT_CFLAGS) \
2602         -Wno-pointer-arith
2603
2604 libsystemd_journal_internal_la_LIBADD += \
2605         $(GCRYPT_LIBS)
2606 endif
2607
2608 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
2609 # needed. Also, grant read access to new journal files to members of
2610 # "adm" and "wheel".
2611 libsystemd-journal-install-hook:
2612         libname=libsystemd-journal.so && $(move-to-rootlibdir)
2613         -$(MKDIR_P) $(DESTDIR)/var/log/journal
2614         -chown 0:0 $(DESTDIR)/var/log/journal
2615         -chmod 755 $(DESTDIR)/var/log/journal
2616         -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
2617         -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
2618
2619 libsystemd-journal-uninstall-hook:
2620         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
2621
2622 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
2623 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
2624
2625 # ------------------------------------------------------------------------------
2626
2627 # Update catalog on installation. Do not bother if installing
2628 # in DESTDIR, since this is likely for packaging purposes.
2629 catalog-update-hook:
2630         -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
2631
2632 INSTALL_DATA_HOOKS += \
2633         catalog-update-hook
2634
2635 catalog-remove-hook:
2636         -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
2637
2638 UNINSTALL_DATA_HOOKS += \
2639         catalog-remove-hook
2640
2641 noinst_PROGRAMS += \
2642         test-journal-enum \
2643         test-catalog
2644
2645 noinst_tests += \
2646         test-journal \
2647         test-journal-send \
2648         test-journal-syslog \
2649         test-journal-match \
2650         test-journal-stream \
2651         test-journal-verify \
2652         test-mmap-cache
2653
2654 pkginclude_HEADERS += \
2655         src/systemd/sd-journal.h \
2656         src/systemd/sd-messages.h
2657
2658 lib_LTLIBRARIES += \
2659         libsystemd-journal.la
2660
2661 noinst_LTLIBRARIES += \
2662         libsystemd-journal-internal.la
2663
2664 rootlibexec_PROGRAMS += \
2665         systemd-journald
2666
2667 rootbin_PROGRAMS += \
2668         journalctl
2669
2670 bin_PROGRAMS += \
2671         systemd-cat
2672
2673 dist_systemunit_DATA += \
2674         units/systemd-journald.socket
2675
2676 nodist_systemunit_DATA += \
2677         units/systemd-journald.service \
2678         units/systemd-journal-flush.service
2679
2680 dist_pkgsysconf_DATA += \
2681         src/journal/journald.conf
2682
2683 pkgconfiglib_DATA += \
2684         src/journal/libsystemd-journal.pc
2685
2686 dist_catalog_DATA = \
2687         catalog/systemd.catalog
2688
2689 SOCKETS_TARGET_WANTS += \
2690         systemd-journald.socket
2691 SYSINIT_TARGET_WANTS += \
2692         systemd-journald.service \
2693         systemd-journal-flush.service
2694
2695 EXTRA_DIST += \
2696         src/journal/libsystemd-journal.pc.in \
2697         src/journal/libsystemd-journal.sym \
2698         units/systemd-journald.service.in \
2699         units/systemd-journal-flush.service.in \
2700         src/journal/journald-gperf.gperf
2701
2702 CLEANFILES += \
2703         src/journal/journald-gperf.c
2704
2705 # ------------------------------------------------------------------------------
2706 if HAVE_MICROHTTPD
2707 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
2708
2709 rootlibexec_PROGRAMS += \
2710         systemd-journal-gatewayd
2711
2712 systemd_journal_gatewayd_SOURCES = \
2713         src/journal/journal-gatewayd.c \
2714         src/journal/microhttpd-util.h \
2715         src/journal/microhttpd-util.c
2716
2717 systemd_journal_gatewayd_LDADD = \
2718         libsystemd-shared.la \
2719         libsystemd-logs.la \
2720         libsystemd-journal-internal.la \
2721         libsystemd-id128-internal.la \
2722         libsystemd-daemon.la \
2723         $(MICROHTTPD_LIBS)
2724
2725 systemd_journal_gatewayd_CFLAGS = \
2726         -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
2727         $(AM_CFLAGS) \
2728         $(MICROHTTPD_CFLAGS)
2729
2730 dist_systemunit_DATA += \
2731         units/systemd-journal-gatewayd.socket
2732
2733 nodist_systemunit_DATA += \
2734         units/systemd-journal-gatewayd.service
2735
2736 dist_gatewayddocumentroot_DATA = \
2737         src/journal/browse.html
2738
2739 endif
2740
2741 EXTRA_DIST += \
2742         units/systemd-journal-gatewayd.service.in
2743
2744 # ------------------------------------------------------------------------------
2745 if ENABLE_COREDUMP
2746 systemd_coredump_SOURCES = \
2747         src/journal/coredump.c
2748
2749 systemd_coredump_LDADD = \
2750         libsystemd-journal-internal.la \
2751         libsystemd-label.la \
2752         libsystemd-shared.la
2753
2754 if ENABLE_LOGIND
2755 systemd_coredump_LDADD += \
2756         libsystemd-login-internal.la
2757 endif
2758
2759 rootlibexec_PROGRAMS += \
2760         systemd-coredump
2761
2762 systemd_coredumpctl_SOURCES = \
2763         src/journal/coredumpctl.c
2764
2765 systemd_coredumpctl_LDADD = \
2766         libsystemd-shared.la \
2767         libsystemd-journal.la
2768
2769 bin_PROGRAMS += \
2770         systemd-coredumpctl
2771
2772 dist_bashcompletion_DATA += \
2773         shell-completion/bash/systemd-coredumpctl
2774
2775 sysctl_DATA = \
2776         sysctl.d/coredump.conf
2777
2778 CLEANFILES += \
2779         sysctl.d/coredump.conf
2780 endif
2781
2782 EXTRA_DIST += \
2783         sysctl.d/coredump.conf.in
2784
2785 # ------------------------------------------------------------------------------
2786 if ENABLE_BINFMT
2787 systemd_binfmt_SOURCES = \
2788         src/binfmt/binfmt.c
2789
2790 systemd_binfmt_LDADD = \
2791         libsystemd-shared.la
2792
2793 rootlibexec_PROGRAMS += \
2794         systemd-binfmt
2795
2796 dist_systemunit_DATA += \
2797         units/proc-sys-fs-binfmt_misc.automount \
2798         units/proc-sys-fs-binfmt_misc.mount
2799
2800 nodist_systemunit_DATA += \
2801         units/systemd-binfmt.service
2802
2803 INSTALL_DIRS += \
2804         $(prefix)/lib/binfmt.d \
2805         $(sysconfdir)/binfmt.d
2806
2807 SYSINIT_TARGET_WANTS += \
2808         systemd-binfmt.service \
2809         proc-sys-fs-binfmt_misc.automount
2810
2811 endif
2812
2813 EXTRA_DIST += \
2814         units/systemd-binfmt.service.in
2815
2816 # ------------------------------------------------------------------------------
2817 if ENABLE_VCONSOLE
2818 systemd_vconsole_setup_SOURCES = \
2819         src/vconsole/vconsole-setup.c
2820
2821 systemd_vconsole_setup_LDADD = \
2822         libsystemd-shared.la
2823
2824 rootlibexec_PROGRAMS += \
2825         systemd-vconsole-setup
2826
2827 nodist_systemunit_DATA += \
2828         units/systemd-vconsole-setup.service
2829
2830 SYSINIT_TARGET_WANTS += \
2831         systemd-vconsole-setup.service
2832 endif
2833
2834 EXTRA_DIST += \
2835         units/systemd-vconsole-setup.service.in
2836
2837 # ------------------------------------------------------------------------------
2838 if ENABLE_READAHEAD
2839 systemd_readahead_SOURCES = \
2840         src/readahead/readahead.c \
2841         src/readahead/readahead-collect.c \
2842         src/readahead/readahead-replay.c \
2843         src/readahead/readahead-analyze.c \
2844         src/readahead/readahead-common.c \
2845         src/readahead/readahead-common.h
2846
2847 systemd_readahead_LDADD = \
2848         libsystemd-shared.la \
2849         libsystemd-daemon.la \
2850         libudev.la
2851
2852 dist_doc_DATA += \
2853         src/readahead/sd-readahead.c \
2854         src/systemd/sd-readahead.h
2855
2856 rootlibexec_PROGRAMS += \
2857         systemd-readahead
2858
2859 dist_systemunit_DATA += \
2860         units/systemd-readahead-drop.service \
2861         units/systemd-readahead-done.timer
2862
2863 nodist_systemunit_DATA += \
2864         units/systemd-readahead-collect.service \
2865         units/systemd-readahead-replay.service \
2866         units/systemd-readahead-done.service
2867
2868 endif
2869
2870 EXTRA_DIST += \
2871         units/systemd-readahead-collect.service.in \
2872         units/systemd-readahead-replay.service.in \
2873         units/systemd-readahead-done.service.in
2874
2875 # ------------------------------------------------------------------------------
2876 if ENABLE_BOOTCHART
2877 systemd_bootchart_SOURCES = \
2878         src/bootchart/bootchart.c \
2879         src/bootchart/bootchart.h \
2880         src/bootchart/store.c \
2881         src/bootchart/store.h \
2882         src/bootchart/svg.c
2883
2884 systemd_bootchart_LDADD = \
2885         libsystemd-shared.la
2886
2887 rootlibexec_PROGRAMS += \
2888         systemd-bootchart
2889
2890 dist_pkgsysconf_DATA += \
2891         src/bootchart/bootchart.conf
2892 endif
2893
2894 # ------------------------------------------------------------------------------
2895 if ENABLE_QUOTACHECK
2896 rootlibexec_PROGRAMS += \
2897         systemd-quotacheck
2898
2899 nodist_systemunit_DATA += \
2900         units/systemd-quotacheck.service
2901
2902 systemd_quotacheck_SOURCES = \
2903         src/quotacheck/quotacheck.c
2904
2905 systemd_quotacheck_LDADD = \
2906         libsystemd-shared.la
2907 endif
2908
2909 EXTRA_DIST += \
2910         units/systemd-quotacheck.service.in
2911
2912 nodist_systemunit_DATA += \
2913         units/quotaon.service
2914
2915 # ------------------------------------------------------------------------------
2916 if ENABLE_RANDOMSEED
2917 rootlibexec_PROGRAMS += \
2918         systemd-random-seed
2919
2920 nodist_systemunit_DATA += \
2921         units/systemd-random-seed-save.service \
2922         units/systemd-random-seed-load.service
2923
2924 systemd_random_seed_SOURCES = \
2925         src/random-seed/random-seed.c
2926
2927 systemd_random_seed_LDADD = \
2928         libsystemd-label.la \
2929         libsystemd-shared.la
2930
2931 SHUTDOWN_TARGET_WANTS += \
2932         systemd-random-seed-save.service
2933 SYSINIT_TARGET_WANTS += \
2934         systemd-random-seed-load.service
2935
2936 endif
2937
2938 EXTRA_DIST += \
2939         units/systemd-random-seed-save.service.in \
2940         units/systemd-random-seed-load.service.in
2941
2942 # ------------------------------------------------------------------------------
2943 if HAVE_LIBCRYPTSETUP
2944 rootlibexec_PROGRAMS += \
2945         systemd-cryptsetup
2946
2947 systemgenerator_PROGRAMS += \
2948         systemd-cryptsetup-generator
2949
2950 dist_systemunit_DATA += \
2951         units/cryptsetup.target
2952
2953 systemd_cryptsetup_SOURCES = \
2954         src/cryptsetup/cryptsetup.c
2955
2956 systemd_cryptsetup_CFLAGS = \
2957         $(AM_CFLAGS) \
2958         $(LIBCRYPTSETUP_CFLAGS)
2959
2960 systemd_cryptsetup_LDADD = \
2961         libsystemd-label.la \
2962         libsystemd-shared.la \
2963         libudev.la \
2964         $(LIBCRYPTSETUP_LIBS)
2965
2966 systemd_cryptsetup_generator_SOURCES = \
2967         src/cryptsetup/cryptsetup-generator.c
2968
2969 systemd_cryptsetup_generator_LDADD = \
2970         libsystemd-label.la \
2971         libsystemd-shared.la
2972
2973 SYSINIT_TARGET_WANTS += \
2974         cryptsetup.target
2975
2976 endif
2977
2978 # ------------------------------------------------------------------------------
2979 if ENABLE_HOSTNAMED
2980 systemd_hostnamed_SOURCES = \
2981         src/hostname/hostnamed.c
2982
2983 systemd_hostnamed_CFLAGS = \
2984         $(AM_CFLAGS) \
2985         $(DBUS_CFLAGS)
2986
2987 systemd_hostnamed_LDADD = \
2988         libsystemd-label.la \
2989         libsystemd-shared.la \
2990         libsystemd-daemon.la \
2991         libsystemd-dbus.la
2992
2993 rootlibexec_PROGRAMS += \
2994         systemd-hostnamed
2995
2996 nodist_systemunit_DATA += \
2997         units/systemd-hostnamed.service
2998
2999 dist_dbuspolicy_DATA += \
3000         src/hostname/org.freedesktop.hostname1.conf
3001
3002 dist_dbussystemservice_DATA += \
3003         src/hostname/org.freedesktop.hostname1.service
3004
3005 polkitpolicy_files += \
3006         src/hostname/org.freedesktop.hostname1.policy
3007
3008 dbusinterface_DATA += \
3009         org.freedesktop.hostname1.xml
3010
3011 org.freedesktop.hostname1.xml: systemd-hostnamed
3012         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
3013                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3014                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3015
3016 SYSTEM_UNIT_ALIASES += \
3017         systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3018
3019 hostnamectl_SOURCES = \
3020         src/hostname/hostnamectl.c
3021
3022 hostnamectl_CFLAGS = \
3023         $(AM_CFLAGS) \
3024         $(DBUS_CFLAGS)
3025
3026 hostnamectl_LDADD = \
3027         libsystemd-shared.la \
3028         libsystemd-dbus.la \
3029         libsystemd-id128-internal.la
3030
3031 bin_PROGRAMS += \
3032         hostnamectl
3033
3034 dist_bashcompletion_DATA += \
3035         shell-completion/bash/hostnamectl
3036
3037 endif
3038
3039 polkitpolicy_in_files += \
3040         src/hostname/org.freedesktop.hostname1.policy.in
3041
3042 EXTRA_DIST += \
3043         units/systemd-hostnamed.service.in
3044
3045 # ------------------------------------------------------------------------------
3046 if ENABLE_LOCALED
3047 systemd_localed_SOURCES = \
3048         src/locale/localed.c
3049
3050 systemd_localed_CFLAGS = \
3051         $(AM_CFLAGS) \
3052         $(DBUS_CFLAGS)
3053
3054 systemd_localed_LDADD = \
3055         libsystemd-label.la \
3056         libsystemd-shared.la \
3057         libsystemd-daemon.la \
3058         libsystemd-dbus.la
3059
3060 nodist_systemunit_DATA += \
3061         units/systemd-localed.service
3062
3063 rootlibexec_PROGRAMS += \
3064         systemd-localed
3065
3066 dist_dbuspolicy_DATA += \
3067         src/locale/org.freedesktop.locale1.conf
3068
3069 dist_dbussystemservice_DATA += \
3070         src/locale/org.freedesktop.locale1.service
3071
3072 polkitpolicy_files += \
3073         src/locale/org.freedesktop.locale1.policy
3074
3075 dbusinterface_DATA += \
3076         org.freedesktop.locale1.xml
3077
3078 org.freedesktop.locale1.xml: systemd-localed
3079         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
3080                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3081                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3082
3083 SYSTEM_UNIT_ALIASES += \
3084         systemd-localed.service dbus-org.freedesktop.locale1.service
3085
3086 dist_pkgdata_DATA += \
3087         src/locale/kbd-model-map
3088
3089 dist_noinst_SCRIPT = \
3090         src/locale/generate-kbd-model-map
3091
3092 update-kbd-model-map: src/locale/generate-kbd-model-map
3093         $PYTHON $< > src/locale/kbd-model-map
3094
3095 localectl_SOURCES = \
3096         src/locale/localectl.c
3097
3098 localectl_CFLAGS = \
3099         $(AM_CFLAGS) \
3100         $(DBUS_CFLAGS)
3101
3102 localectl_LDADD = \
3103         libsystemd-shared.la \
3104         libsystemd-dbus.la \
3105         libsystemd-id128-internal.la
3106
3107 bin_PROGRAMS += \
3108         localectl
3109
3110 dist_bashcompletion_DATA += \
3111         shell-completion/bash/localectl
3112
3113 endif
3114
3115 polkitpolicy_in_files += \
3116         src/locale/org.freedesktop.locale1.policy.in
3117
3118 EXTRA_DIST += \
3119         units/systemd-localed.service.in
3120
3121 # ------------------------------------------------------------------------------
3122 if ENABLE_TIMEDATED
3123 systemd_timedated_SOURCES = \
3124         src/timedate/timedated.c
3125
3126 systemd_timedated_CFLAGS = \
3127         $(AM_CFLAGS) \
3128         $(DBUS_CFLAGS)
3129
3130 systemd_timedated_LDADD = \
3131         libsystemd-label.la \
3132         libsystemd-shared.la \
3133         libsystemd-daemon.la \
3134         libsystemd-dbus.la
3135
3136 rootlibexec_PROGRAMS += \
3137         systemd-timedated
3138
3139 dist_dbussystemservice_DATA += \
3140         src/timedate/org.freedesktop.timedate1.service
3141
3142 dist_dbuspolicy_DATA += \
3143         src/timedate/org.freedesktop.timedate1.conf
3144
3145 nodist_systemunit_DATA += \
3146         units/systemd-timedated.service
3147
3148 polkitpolicy_files += \
3149         src/timedate/org.freedesktop.timedate1.policy
3150
3151 org.freedesktop.timedate1.xml: systemd-timedated
3152         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
3153                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3154                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3155
3156 dbusinterface_DATA += \
3157         org.freedesktop.timedate1.xml
3158
3159 INSTALL_DIRS += \
3160         $(prefix)/lib/systemd/ntp-units.d \
3161         $(sysconfdir)/systemd/ntp-units.d
3162
3163 SYSTEM_UNIT_ALIASES += \
3164         systemd-timedated.service dbus-org.freedesktop.timedate1.service
3165
3166 timedatectl_SOURCES = \
3167         src/timedate/timedatectl.c
3168
3169 timedatectl_CFLAGS = \
3170         $(AM_CFLAGS) \
3171         $(DBUS_CFLAGS)
3172
3173 timedatectl_LDADD = \
3174         libsystemd-shared.la \
3175         libsystemd-dbus.la
3176
3177 bin_PROGRAMS += \
3178         timedatectl
3179
3180 dist_bashcompletion_DATA += \
3181         shell-completion/bash/timedatectl
3182 endif
3183
3184 polkitpolicy_in_files += \
3185         src/timedate/org.freedesktop.timedate1.policy.in
3186
3187 EXTRA_DIST += \
3188         units/systemd-timedated.service.in
3189
3190 # ------------------------------------------------------------------------------
3191 if ENABLE_EFI
3192 bootctl_SOURCES = \
3193         src/boot/boot.h \
3194         src/boot/boot-loader.h \
3195         src/boot/bootctl.c \
3196         src/boot/boot-loader.c \
3197         src/boot/boot-efi.c
3198
3199 bootctl_LDADD = \
3200         libsystemd-shared.la \
3201         libsystemd-id128.la \
3202         libsystemd-daemon.la
3203
3204 bin_PROGRAMS += \
3205         bootctl
3206 endif
3207
3208 # ------------------------------------------------------------------------------
3209 if HAVE_MYHOSTNAME
3210 libnss_myhostname_la_SOURCES = \
3211         src/nss-myhostname/nss-myhostname.c \
3212         src/nss-myhostname/ifconf.h \
3213         src/nss-myhostname/netlink.c
3214
3215 libnss_myhostname_la_CFLAGS = \
3216         $(AM_CFLAGS)
3217
3218 libnss_myhostname_la_LDFLAGS = \
3219         $(AM_LDFLAGS) \
3220         -module \
3221         -export-dynamic \
3222         -avoid-version \
3223         -shared \
3224         -shrext .so.2
3225
3226 lib_LTLIBRARIES += \
3227         libnss_myhostname.la
3228 endif
3229
3230 # ------------------------------------------------------------------------------
3231 if ENABLE_LOGIND
3232 systemd_logind_SOURCES = \
3233         src/login/logind.c \
3234         src/login/logind.h \
3235         src/login/logind-dbus.c \
3236         src/login/logind-device.c \
3237         src/login/logind-device.h \
3238         src/login/logind-button.c \
3239         src/login/logind-button.h \
3240         src/login/logind-action.c \
3241         src/login/logind-action.h \
3242         src/login/logind-seat.c \
3243         src/login/logind-seat.h \
3244         src/login/logind-session.c \
3245         src/login/logind-session.h \
3246         src/login/logind-user.c \
3247         src/login/logind-user.h \
3248         src/login/logind-inhibit.c \
3249         src/login/logind-inhibit.h \
3250         src/login/logind-session-dbus.c \
3251         src/login/logind-seat-dbus.c \
3252         src/login/logind-user-dbus.c \
3253         src/login/logind-acl.h
3254
3255 nodist_systemd_logind_SOURCES = \
3256         src/login/logind-gperf.c
3257
3258 systemd_logind_CFLAGS = \
3259         $(AM_CFLAGS) \
3260         $(DBUS_CFLAGS)
3261
3262 systemd_logind_LDADD = \
3263         libsystemd-label.la \
3264         libsystemd-shared.la \
3265         libsystemd-audit.la \
3266         libsystemd-daemon.la \
3267         libsystemd-dbus.la \
3268         libudev.la
3269
3270 if HAVE_ACL
3271 systemd_logind_SOURCES += \
3272         src/login/logind-acl.c
3273
3274 systemd_logind_LDADD += \
3275         libsystemd-acl.la
3276 endif
3277
3278 systemd_user_sessions_SOURCES = \
3279         src/login/user-sessions.c
3280
3281 systemd_user_sessions_LDADD = \
3282         libsystemd-shared.la
3283
3284 rootlibexec_PROGRAMS += \
3285         systemd-logind \
3286         systemd-user-sessions
3287
3288 loginctl_SOURCES = \
3289         src/login/loginctl.c \
3290         src/login/sysfs-show.c
3291
3292 loginctl_CFLAGS = \
3293         $(AM_CFLAGS) \
3294         $(DBUS_CFLAGS)
3295
3296 loginctl_LDADD = \
3297         libsystemd-shared.la \
3298         libsystemd-dbus.la \
3299         libudev.la
3300
3301 rootbin_PROGRAMS += \
3302         loginctl
3303
3304 dist_bashcompletion_DATA += \
3305         shell-completion/bash/loginctl
3306
3307 systemd_inhibit_SOURCES = \
3308         src/login/inhibit.c
3309
3310 systemd_inhibit_CFLAGS = \
3311         $(AM_CFLAGS) \
3312         $(DBUS_CFLAGS)
3313
3314 systemd_inhibit_LDADD = \
3315         libsystemd-shared.la \
3316         libsystemd-dbus.la
3317
3318 rootbin_PROGRAMS += \
3319         systemd-inhibit
3320
3321 test_login_SOURCES = \
3322         src/login/test-login.c
3323
3324 test_login_LDADD = \
3325         libsystemd-login-internal.la \
3326         libsystemd-shared.la
3327
3328 test_inhibit_SOURCES = \
3329         src/login/test-inhibit.c
3330
3331 test_inhibit_LDADD = \
3332         libsystemd-shared.la \
3333         libsystemd-dbus.la
3334
3335 test_inhibit_CFLAGS = \
3336         $(AM_CFLAGS) \
3337         $(DBUS_CFLAGS)
3338
3339 noinst_PROGRAMS += \
3340         test-login \
3341         test-inhibit
3342
3343 libsystemd_login_la_SOURCES = \
3344         src/login/sd-login.c
3345
3346 libsystemd_login_la_CFLAGS = \
3347         $(AM_CFLAGS) \
3348         -fvisibility=hidden
3349
3350 libsystemd_login_la_LDFLAGS = \
3351         $(AM_LDFLAGS) \
3352         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3353         -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3354
3355 libsystemd_login_la_LIBADD = \
3356         libsystemd-shared.la
3357
3358 libsystemd_login_internal_la_SOURCES = \
3359         $(libsystemd_login_la_SOURCES)
3360
3361 if HAVE_PAM
3362 pam_systemd_la_SOURCES = \
3363         src/login/pam-module.c
3364
3365 pam_systemd_la_CFLAGS = \
3366         $(AM_CFLAGS) \
3367         $(PAM_CFLAGS) \
3368         $(DBUS_CFLAGS) \
3369         -fvisibility=hidden
3370
3371 pam_systemd_la_LDFLAGS = \
3372         $(AM_LDFLAGS) \
3373         -module \
3374         -export-dynamic \
3375         -avoid-version \
3376         -shared \
3377         -export-symbols-regex '^pam_sm_.*'
3378
3379 pam_systemd_la_LIBADD = \
3380         libsystemd-daemon.la \
3381         libsystemd-audit.la \
3382         libsystemd-dbus.la \
3383         libsystemd-shared.la \
3384         $(PAM_LIBS)
3385
3386 pamlib_LTLIBRARIES = \
3387         pam_systemd.la
3388 endif
3389
3390 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3391 libsystemd-login-install-hook:
3392         libname=libsystemd-login.so && $(move-to-rootlibdir)
3393
3394 libsystemd-login-uninstall-hook:
3395         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3396
3397 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3398 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3399
3400 nodist_systemunit_DATA += \
3401         units/systemd-logind.service \
3402         units/systemd-user-sessions.service
3403
3404 dist_dbussystemservice_DATA += \
3405         src/login/org.freedesktop.login1.service
3406
3407 dist_dbuspolicy_DATA += \
3408         src/login/org.freedesktop.login1.conf
3409
3410 dist_pkgsysconf_DATA += \
3411         src/login/logind.conf
3412
3413 pkginclude_HEADERS += \
3414         src/systemd/sd-login.h
3415
3416 lib_LTLIBRARIES += \
3417         libsystemd-login.la
3418
3419 noinst_LTLIBRARIES += \
3420         libsystemd-login-internal.la
3421
3422 pkgconfiglib_DATA += \
3423         src/login/libsystemd-login.pc
3424
3425 polkitpolicy_files += \
3426         src/login/org.freedesktop.login1.policy
3427
3428 INSTALL_DIRS += \
3429         $(systemdstatedir)
3430
3431 MULTI_USER_TARGET_WANTS += \
3432         systemd-logind.service \
3433         systemd-user-sessions.service
3434
3435 SYSTEM_UNIT_ALIASES += \
3436         systemd-logind.service dbus-org.freedesktop.login1.service
3437
3438 systemd_multi_seat_x_SOURCES = \
3439         src/login/multi-seat-x.c
3440
3441 systemd_multi_seat_x_LDADD = \
3442         libsystemd-label.la \
3443         libsystemd-shared.la
3444
3445 rootlibexec_PROGRAMS += \
3446         systemd-multi-seat-x
3447
3448 dist_udevrules_DATA += \
3449         src/login/70-uaccess.rules \
3450         src/login/70-power-switch.rules
3451
3452 nodist_udevrules_DATA += \
3453         src/login/71-seat.rules \
3454         src/login/73-seat-late.rules
3455
3456 CLEANFILES += \
3457         src/login/logind-gperf.c \
3458         src/login/71-seat.rules \
3459         src/login/73-seat-late.rules
3460 endif
3461
3462 polkitpolicy_in_files += \
3463         src/login/org.freedesktop.login1.policy.in
3464
3465 EXTRA_DIST += \
3466         src/login/logind-gperf.gperf \
3467         src/login/libsystemd-login.pc.in \
3468         src/login/libsystemd-login.sym \
3469         src/login/71-seat.rules.in \
3470         src/login/73-seat-late.rules.in \
3471         units/systemd-logind.service.in \
3472         units/systemd-user-sessions.service.in
3473
3474 # ------------------------------------------------------------------------------
3475 if HAVE_PYTHON_DEVEL
3476 pkgpyexec_LTLIBRARIES = \
3477         _journal.la \
3478         id128.la \
3479         _reader.la
3480
3481 _journal_la_SOURCES = \
3482         src/python-systemd/_journal.c
3483
3484 _journal_la_CFLAGS = \
3485         $(AM_CFLAGS) \
3486         -fvisibility=default \
3487         $(PYTHON_CFLAGS)
3488
3489 _journal_la_LDFLAGS = \
3490         $(AM_LDFLAGS) \
3491         -shared \
3492         -module \
3493         -avoid-version
3494
3495 _journal_la_LIBADD = \
3496         $(PYTHON_LIBS) \
3497         libsystemd-journal.la
3498
3499 id128_la_SOURCES = \
3500         src/python-systemd/id128.c \
3501         src/python-systemd/id128-constants.h \
3502         src/python-systemd/pyutil.c \
3503         src/python-systemd/pyutil.h
3504
3505 id128_la_CFLAGS = \
3506         $(AM_CFLAGS) \
3507         -fvisibility=default \
3508         $(PYTHON_CFLAGS) \
3509         -I$(top_builddir)/src/python-systemd
3510
3511 id128_la_LDFLAGS = \
3512         $(AM_LDFLAGS) \
3513         -shared \
3514         -module \
3515         -avoid-version
3516
3517 id128_la_LIBADD = \
3518         $(PYTHON_LIBS) \
3519         libsystemd-id128.la
3520
3521 _reader_la_SOURCES = \
3522         src/python-systemd/_reader.c \
3523         src/python-systemd/pyutil.c \
3524         src/python-systemd/pyutil.h
3525
3526 _reader_la_CFLAGS = \
3527         $(AM_CFLAGS) \
3528         -fvisibility=default \
3529         $(PYTHON_CFLAGS)
3530
3531 _reader_la_LDFLAGS = \
3532         $(AM_LDFLAGS) \
3533         -shared \
3534         -module \
3535         -avoid-version
3536
3537 _reader_la_LIBADD = \
3538         $(PYTHON_LIBS) \
3539         libsystemd-journal.la \
3540         libsystemd-id128.la \
3541         libsystemd-shared.la
3542
3543 dist_pkgpyexec_PYTHON = \
3544         src/python-systemd/journal.py \
3545         src/python-systemd/__init__.py
3546
3547 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
3548         $(AM_V_at)$(MKDIR_P) $(dir $@)
3549         $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
3550
3551 BUILT_SOURCES += \
3552         src/python-systemd/id128-constants.h
3553
3554 PAPER = $(shell cat /etc/papersize 2>/dev/null || echo a4)
3555 SPHINXOPTS = -D latex_paper_size=$(PAPER) -D version=$(VERSION) -D release=$(VERSION)
3556 sphinx-%:
3557         $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
3558         $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
3559         $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
3560
3561 destdir-sphinx: all
3562         dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
3563                 $(MAKE) DESTDIR="$$dir" install && \
3564                 $(MAKE) DESTDIR="$$dir" sphinx-html && \
3565                 rm -rf "$$dir"
3566
3567 endif
3568
3569 CLEAN_LOCAL_HOOKS += clean-sphinx
3570
3571 clean-sphinx:
3572         -rm -rf docs/html/python-systemd/
3573
3574 # ------------------------------------------------------------------------------
3575 SED_PROCESS = \
3576         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
3577         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
3578                 -e 's,@rootbindir\@,$(rootbindir),g' \
3579                 -e 's,@bindir\@,$(bindir),g' \
3580                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
3581                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
3582                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
3583                 -e 's,@SYSTEM_CONFIG_UNIT_PATH\@,$(pkgsysconfdir)/system,g' \
3584                 -e 's,@USER_CONFIG_UNIT_PATH\@,$(pkgsysconfdir)/user,g' \
3585                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
3586                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
3587                 -e 's,@userunitdir\@,$(userunitdir),g' \
3588                 -e 's,@systempresetdir\@,$(systempresetdir),g' \
3589                 -e 's,@userpresetdir\@,$(userpresetdir),g' \
3590                 -e 's,@udevhwdbdir\@,$(udevhwdbdir),g' \
3591                 -e 's,@udevrulesdir\@,$(udevrulesdir),g' \
3592                 -e 's,@catalogdir\@,$(catalogdir),g' \
3593                 -e 's,@tmpfilesdir\@,$(tmpfilesdir),g' \
3594                 -e 's,@sysctldir\@,$(sysctldir),g' \
3595                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
3596                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
3597                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
3598                 -e 's,@RANDOM_SEED\@,$(localstatedir)/lib/random-seed,g' \
3599                 -e 's,@prefix\@,$(prefix),g' \
3600                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
3601                 -e 's,@libdir\@,$(libdir),g' \
3602                 -e 's,@includedir\@,$(includedir),g' \
3603                 -e 's,@VERSION\@,$(VERSION),g' \
3604                 -e 's,@rootprefix\@,$(rootprefix),g' \
3605                 -e 's,@udevlibexecdir\@,$(udevlibexecdir),g' \
3606                 -e 's,@sushell\@,$(sushell),g' \
3607                 -e 's,@KILL\@,$(KILL),g' \
3608                 -e 's,@QUOTAON\@,$(QUOTAON),g' \
3609                 -e 's,@QUOTACHECK\@,$(QUOTACHECK),g' \
3610                 -e 's,@SYSTEM_SYSVINIT_PATH\@,$(sysvinitdir),g' \
3611                 -e 's,@VARLOGDIR\@,$(varlogdir),g' \
3612                 -e 's,@RC_LOCAL_SCRIPT_PATH_START\@,$(RC_LOCAL_SCRIPT_PATH_START),g' \
3613                 -e 's,@RC_LOCAL_SCRIPT_PATH_STOP\@,$(RC_LOCAL_SCRIPT_PATH_STOP),g' \
3614                 -e 's,@PYTHON\@,$(PYTHON),g' \
3615                 -e 's,@PYTHON_BINARY\@,$(PYTHON_BINARY),g' \
3616                 < $< > $@
3617
3618 units/%: units/%.in Makefile
3619         $(SED_PROCESS)
3620
3621 man/%: man/%.in Makefile
3622         $(SED_PROCESS)
3623
3624 sysctl.d/%: sysctl.d/%.in Makefile
3625         $(SED_PROCESS)
3626
3627 %.pc: %.pc.in Makefile
3628         $(SED_PROCESS)
3629
3630 src/core/macros.%: src/core/macros.%.in Makefile
3631         $(SED_PROCESS)
3632
3633 src/%.policy.in: src/%.policy.in.in Makefile
3634         $(SED_PROCESS)
3635
3636 %.rules: %.rules.in Makefile
3637         $(SED_PROCESS)
3638
3639 %.sh: %.sh.in Makefile
3640         $(SED_PROCESS)
3641         $(AM_V_GEN)chmod +x $@
3642
3643 src/%.c: src/%.gperf
3644         $(AM_V_at)$(MKDIR_P) $(dir $@)
3645         $(AM_V_GPERF)$(GPERF) < $< > $@
3646
3647 src/%: src/%.m4
3648         $(AM_V_at)$(MKDIR_P) $(dir $@)
3649         $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
3650
3651 units/%: units/%.m4 Makefile
3652         $(AM_V_M4)$(MKDIR_P) $(dir $@)
3653         $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
3654
3655 units/user/%: units/%.m4 Makefile
3656         $(AM_V_M4)$(MKDIR_P) $(dir $@)
3657         $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
3658
3659 if ENABLE_POLKIT
3660 nodist_polkitpolicy_DATA = \
3661         $(polkitpolicy_files) \
3662         $(polkitpolicy_in_in_files:.policy.in.in=.policy)
3663 endif
3664
3665 EXTRA_DIST += \
3666         $(polkitpolicy_in_files) \
3667         $(polkitpolicy_in_in_files)
3668
3669 CLEANFILES += \
3670         $(nodist_systemunit_DATA) \
3671         $(nodist_userunit_DATA) \
3672         $(pkgconfigdata_DATA) \
3673         $(pkgconfiglib_DATA) \
3674         $(nodist_polkitpolicy_DATA)
3675
3676 # ------------------------------------------------------------------------------
3677 if ENABLE_MANPAGES
3678 XSLTPROC_FLAGS = \
3679         --nonet \
3680         --stringparam man.output.quietly 1 \
3681         --stringparam funcsynopsis.style ansi \
3682         --stringparam man.th.extra1.suppress 1 \
3683         --stringparam man.authors.section.enabled 0 \
3684         --stringparam man.copyright.section.enabled 0
3685
3686 XSLTPROC_PROCESS_MAN = \
3687         $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \
3688         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
3689
3690 XSLTPROC_PROCESS_HTML = \
3691         $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \
3692         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
3693
3694 man/%.1: man/%.xml
3695         $(XSLTPROC_PROCESS_MAN)
3696
3697 man/%.3: man/%.xml
3698         $(XSLTPROC_PROCESS_MAN)
3699
3700 man/%.5: man/%.xml
3701         $(XSLTPROC_PROCESS_MAN)
3702
3703 man/%.7: man/%.xml
3704         $(XSLTPROC_PROCESS_MAN)
3705
3706 man/%.8: man/%.xml
3707         $(XSLTPROC_PROCESS_MAN)
3708
3709 man/%.html: man/%.xml man/custom-html.xsl
3710         $(XSLTPROC_PROCESS_HTML)
3711
3712 define html-alias
3713         $(AM_V_LN)$(LN_S) $(notdir $<) $@
3714 endef
3715
3716 endif
3717
3718 # ------------------------------------------------------------------------------
3719 DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
3720
3721 CLEANFILES += \
3722         $(dbusinterface_DATA)
3723
3724 if HAVE_SYSV_COMPAT
3725 sysvinit_DATA = \
3726         docs/sysvinit/README
3727
3728 varlog_DATA = \
3729         docs/var-log/README
3730
3731 docs/sysvinit/README: docs/sysvinit/README.in
3732         $(SED_PROCESS)
3733
3734 docs/var-log/README: docs/var-log/README.in
3735         $(SED_PROCESS)
3736
3737 CLEANFILES += \
3738         docs/sysvinit/README \
3739         docs/var-log/README
3740 endif
3741
3742 EXTRA_DIST += \
3743         docs/sysvinit/README.in \
3744         docs/var-log/README.in
3745
3746 EXTRA_DIST += \
3747         shell-completion/systemd-zsh-completion.zsh
3748
3749 SOCKETS_TARGET_WANTS += \
3750         systemd-initctl.socket \
3751         systemd-shutdownd.socket
3752
3753 if HAVE_SYSV_COMPAT
3754 RUNLEVEL1_TARGET_WANTS += \
3755         systemd-update-utmp-runlevel.service
3756 RUNLEVEL2_TARGET_WANTS += \
3757         systemd-update-utmp-runlevel.service
3758 RUNLEVEL3_TARGET_WANTS += \
3759         systemd-update-utmp-runlevel.service
3760 RUNLEVEL4_TARGET_WANTS += \
3761         systemd-update-utmp-runlevel.service
3762 RUNLEVEL5_TARGET_WANTS += \
3763         systemd-update-utmp-runlevel.service
3764 endif
3765 SHUTDOWN_TARGET_WANTS += \
3766         systemd-update-utmp-shutdown.service
3767 LOCAL_FS_TARGET_WANTS += \
3768         systemd-remount-fs.service \
3769         systemd-fsck-root.service \
3770         tmp.mount
3771 MULTI_USER_TARGET_WANTS += \
3772         getty.target \
3773         systemd-ask-password-wall.path
3774 SYSINIT_TARGET_WANTS += \
3775         dev-hugepages.mount \
3776         dev-mqueue.mount \
3777         sys-kernel-config.mount \
3778         sys-kernel-debug.mount \
3779         sys-fs-fuse-connections.mount \
3780         systemd-tmpfiles-setup.service \
3781         systemd-sysctl.service \
3782         systemd-ask-password-console.path
3783 BASIC_TARGET_WANTS += \
3784         systemd-tmpfiles-clean.timer
3785
3786 if HAVE_SYSV_COMPAT
3787 SYSTEM_UNIT_ALIASES += \
3788         poweroff.target runlevel0.target \
3789         rescue.target runlevel1.target \
3790         multi-user.target runlevel2.target \
3791         multi-user.target runlevel3.target \
3792         multi-user.target runlevel4.target \
3793         graphical.target runlevel5.target \
3794         reboot.target runlevel6.target
3795 endif
3796
3797 SYSTEM_UNIT_ALIASES += \
3798         graphical.target default.target \
3799         reboot.target ctrl-alt-del.target \
3800         getty@.service autovt@.service
3801
3802 USER_UNIT_ALIASES += \
3803         $(systemunitdir)/shutdown.target shutdown.target \
3804         $(systemunitdir)/sockets.target sockets.target \
3805         $(systemunitdir)/bluetooth.target bluetooth.target \
3806         $(systemunitdir)/printer.target printer.target \
3807         $(systemunitdir)/sound.target sound.target
3808
3809 GENERAL_ALIASES += \
3810         $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
3811         $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
3812         $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
3813         ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
3814
3815 if HAVE_SYSV_COMPAT
3816 INSTALL_DIRS += \
3817         $(systemunitdir)/runlevel1.target.wants \
3818         $(systemunitdir)/runlevel2.target.wants \
3819         $(systemunitdir)/runlevel3.target.wants \
3820         $(systemunitdir)/runlevel4.target.wants \
3821         $(systemunitdir)/runlevel5.target.wants
3822 endif
3823
3824 INSTALL_DIRS += \
3825         $(tmpfilesdir) \
3826         $(sysconfdir)/tmpfiles.d \
3827         $(prefix)/lib/modules-load.d \
3828         $(sysconfdir)/modules-load.d \
3829         $(prefix)/lib/sysctl.d \
3830         $(sysconfdir)/sysctl.d \
3831         $(systemshutdowndir) \
3832         $(systemsleepdir) \
3833         $(systemgeneratordir) \
3834         $(usergeneratordir) \
3835         \
3836         $(userunitdir) \
3837         $(pkgsysconfdir)/system \
3838         $(pkgsysconfdir)/system/multi-user.target.wants \
3839         $(pkgsysconfdir)/system/getty.target.wants \
3840         $(pkgsysconfdir)/user \
3841         $(dbussessionservicedir) \
3842         $(sysconfdir)/xdg/systemd
3843
3844 install-exec-hook: $(INSTALL_EXEC_HOOKS)
3845
3846 uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
3847
3848 install-data-hook: $(INSTALL_DATA_HOOKS)
3849
3850 distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
3851
3852 clean-local: $(CLEAN_LOCAL_HOOKS)
3853         rm -rf $(abs_srcdir)/install-tree
3854         rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
3855               $(abs_srcdir)/hwdb/iab.txt
3856
3857 DISTCHECK_CONFIGURE_FLAGS = \
3858         --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
3859         --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
3860         --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
3861         --with-dbusinterfacedir=$$dc_in