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