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