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