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