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