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