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