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