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