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