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