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