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