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