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