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