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