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