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