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