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