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