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