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