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