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