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