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