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