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