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