chiark / gitweb /
37eeb01d583e1f6141c1f7abbe691ac7ac8427f3
[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
1356 SYSINIT_TARGET_WANTS += \
1357         systemd-modules-load.service
1358
1359 endif
1360
1361 EXTRA_DIST += \
1362         units/systemd-modules-load.service.in
1363
1364 # ------------------------------------------------------------------------------
1365 systemd_tmpfiles_SOURCES = \
1366         src/tmpfiles/tmpfiles.c
1367
1368 systemd_tmpfiles_LDADD = \
1369         libsystemd-label.la \
1370         libsystemd-shared.la \
1371         libsystemd-capability.la
1372
1373 # ------------------------------------------------------------------------------
1374 systemd_machine_id_setup_SOURCES = \
1375         src/machine-id-setup/machine-id-setup-main.c \
1376         src/core/machine-id-setup.c \
1377         src/core/machine-id-setup.h
1378
1379 systemd_machine_id_setup_LDADD = \
1380         libsystemd-label.la \
1381         libsystemd-shared.la \
1382         libsystemd-id128-internal.la
1383
1384 # ------------------------------------------------------------------------------
1385 systemd_sysctl_SOURCES = \
1386         src/sysctl/sysctl.c
1387
1388 systemd_sysctl_LDADD = \
1389         libsystemd-shared.la
1390
1391 # ------------------------------------------------------------------------------
1392 systemd_sleep_SOURCES = \
1393         src/sleep/sleep.c
1394
1395 systemd_sleep_LDADD = \
1396         libsystemd-shared.la
1397
1398 # ------------------------------------------------------------------------------
1399 systemd_fsck_SOURCES = \
1400         src/fsck/fsck.c
1401
1402 systemd_fsck_CFLAGS = \
1403         $(AM_CFLAGS) \
1404         $(DBUS_CFLAGS)
1405
1406 systemd_fsck_LDADD = \
1407         libsystemd-shared.la \
1408         libsystemd-dbus.la \
1409         libudev.la
1410
1411 # ------------------------------------------------------------------------------
1412 systemd_timestamp_SOURCES = \
1413         src/timestamp/timestamp.c
1414
1415 systemd_timestamp_LDADD = \
1416         libsystemd-shared.la
1417
1418 # ------------------------------------------------------------------------------
1419 systemd_ac_power_SOURCES = \
1420         src/ac-power/ac-power.c
1421
1422 systemd_ac_power_LDADD = \
1423         libsystemd-shared.la \
1424         libudev.la
1425
1426 # ------------------------------------------------------------------------------
1427 systemd_detect_virt_SOURCES = \
1428         src/detect-virt/detect-virt.c
1429
1430 systemd_detect_virt_LDADD = \
1431         libsystemd-shared.la
1432
1433 systemd-detect-virt-install-hook:
1434         -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1435
1436 INSTALL_EXEC_HOOKS += \
1437         systemd-detect-virt-install-hook
1438
1439 # ------------------------------------------------------------------------------
1440 systemd_delta_SOURCES = \
1441         src/delta/delta.c
1442
1443 systemd_delta_LDADD = \
1444         libsystemd-shared.la
1445
1446 # ------------------------------------------------------------------------------
1447 systemd_getty_generator_SOURCES = \
1448         src/getty-generator/getty-generator.c
1449
1450 systemd_getty_generator_LDADD = \
1451         libsystemd-label.la \
1452         libsystemd-shared.la
1453
1454 # ------------------------------------------------------------------------------
1455 systemd_fstab_generator_SOURCES = \
1456         src/fstab-generator/fstab-generator.c \
1457         src/core/mount-setup.c
1458
1459 systemd_fstab_generator_LDADD = \
1460         libsystemd-label.la \
1461         libsystemd-shared.la
1462
1463 # ------------------------------------------------------------------------------
1464 systemd_system_update_generator_SOURCES = \
1465         src/system-update-generator/system-update-generator.c
1466
1467 systemd_system_update_generator_LDADD = \
1468         libsystemd-label.la \
1469         libsystemd-shared.la
1470
1471 # ------------------------------------------------------------------------------
1472 if ENABLE_EFI
1473 systemgenerator_PROGRAMS +=  \
1474         systemd-efi-boot-generator
1475
1476 systemd_efi_boot_generator_SOURCES = \
1477         src/efi-boot-generator/efi-boot-generator.c
1478
1479 systemd_efi_boot_generator_LDADD = \
1480         libsystemd-label.la \
1481         libsystemd-shared.la
1482 endif
1483
1484 # ------------------------------------------------------------------------------
1485 systemd_rc_local_generator_SOURCES = \
1486         src/rc-local-generator/rc-local-generator.c
1487
1488 systemd_rc_local_generator_LDADD = \
1489         libsystemd-label.la \
1490         libsystemd-shared.la
1491
1492 # ------------------------------------------------------------------------------
1493 systemd_remount_fs_SOURCES = \
1494         src/remount-fs/remount-fs.c \
1495         src/core/mount-setup.c \
1496         src/core/mount-setup.h
1497
1498 systemd_remount_fs_LDADD = \
1499         libsystemd-label.la \
1500         libsystemd-shared.la
1501
1502 # ------------------------------------------------------------------------------
1503 systemd_cgroups_agent_SOURCES = \
1504         src/cgroups-agent/cgroups-agent.c
1505
1506 systemd_cgroups_agent_CFLAGS = \
1507         $(AM_CFLAGS) \
1508         $(DBUS_CFLAGS)
1509
1510 systemd_cgroups_agent_LDADD = \
1511         libsystemd-shared.la \
1512         libsystemd-dbus.la
1513
1514 # ------------------------------------------------------------------------------
1515 systemctl_SOURCES = \
1516         src/systemctl/systemctl.c
1517
1518 systemctl_CFLAGS = \
1519         $(AM_CFLAGS) \
1520         $(DBUS_CFLAGS)
1521
1522 systemctl_LDADD = \
1523         libsystemd-units.la \
1524         libsystemd-label.la \
1525         libsystemd-shared.la \
1526         libsystemd-daemon.la \
1527         libsystemd-dbus.la \
1528         libsystemd-logs.la
1529
1530 # ------------------------------------------------------------------------------
1531 systemd_notify_SOURCES = \
1532         src/notify/notify.c \
1533         src/readahead/sd-readahead.c
1534
1535 systemd_notify_LDADD = \
1536         libsystemd-shared.la \
1537         libsystemd-daemon.la
1538
1539 # ------------------------------------------------------------------------------
1540 systemd_ask_password_SOURCES = \
1541         src/ask-password/ask-password.c
1542
1543 systemd_ask_password_LDADD = \
1544         libsystemd-label.la \
1545         libsystemd-shared.la
1546
1547 # ------------------------------------------------------------------------------
1548 systemd_reply_password_SOURCES = \
1549         src/reply-password/reply-password.c
1550
1551 systemd_reply_password_LDADD = \
1552         libsystemd-shared.la
1553
1554 # ------------------------------------------------------------------------------
1555 systemd_cgls_SOURCES = \
1556         src/cgls/cgls.c
1557
1558 systemd_cgls_LDADD = \
1559         libsystemd-shared.la
1560
1561 # ------------------------------------------------------------------------------
1562 systemd_cgtop_SOURCES = \
1563         src/cgtop/cgtop.c
1564
1565 systemd_cgtop_LDADD = \
1566         libsystemd-shared.la
1567
1568 # ------------------------------------------------------------------------------
1569 systemd_nspawn_SOURCES = \
1570         src/nspawn/nspawn.c \
1571         src/core/mount-setup.c \
1572         src/core/mount-setup.h \
1573         src/core/loopback-setup.c \
1574         src/core/loopback-setup.h
1575
1576 systemd_nspawn_LDADD = \
1577         libsystemd-label.la \
1578         libsystemd-capability.la \
1579         libsystemd-shared.la \
1580         libsystemd-daemon.la \
1581         libsystemd-id128-internal.la
1582
1583 # ------------------------------------------------------------------------------
1584 systemd_stdio_bridge_SOURCES = \
1585         src/stdio-bridge/stdio-bridge.c
1586
1587 systemd_stdio_bridge_LDADD = \
1588         libsystemd-shared.la
1589
1590 # ------------------------------------------------------------------------------
1591 systemd_tty_ask_password_agent_SOURCES = \
1592         src/tty-ask-password-agent/tty-ask-password-agent.c
1593
1594 systemd_tty_ask_password_agent_LDADD = \
1595         libsystemd-label.la \
1596         libsystemd-shared.la
1597
1598 # ------------------------------------------------------------------------------
1599 libsystemd_daemon_la_SOURCES = \
1600         src/libsystemd-daemon/sd-daemon.c
1601
1602 libsystemd_daemon_internal_la_SOURCES = \
1603         $(libsystemd_daemon_la_SOURCES)
1604
1605 libsystemd_daemon_la_CFLAGS = \
1606         $(AM_CFLAGS) \
1607         -fvisibility=hidden \
1608         -DSD_EXPORT_SYMBOLS
1609
1610 libsystemd_daemon_la_LDFLAGS = \
1611         $(AM_LDFLAGS) \
1612         -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
1613         -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
1614
1615 pkginclude_HEADERS += \
1616         src/systemd/sd-daemon.h
1617
1618 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1619 libsystemd-daemon-install-hook:
1620         libname=libsystemd-daemon.so && $(move-to-rootlibdir)
1621
1622 libsystemd-daemon-uninstall-hook:
1623         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
1624
1625 INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
1626 UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
1627
1628 lib_LTLIBRARIES += \
1629         libsystemd-daemon.la
1630
1631 noinst_LTLIBRARIES += \
1632         libsystemd-daemon-internal.la
1633
1634 pkgconfiglib_DATA += \
1635         src/libsystemd-daemon/libsystemd-daemon.pc
1636
1637 EXTRA_DIST += \
1638         src/libsystemd-daemon/libsystemd-daemon.pc.in \
1639         src/libsystemd-daemon/libsystemd-daemon.sym
1640
1641 # ------------------------------------------------------------------------------
1642 if ENABLE_GTK_DOC
1643 SUBDIRS += \
1644         docs/libudev
1645
1646 noinst_DATA += \
1647         docs/html/libudev \
1648         docs/html/gudev
1649 endif
1650
1651 include_HEADERS += \
1652         src/libudev/libudev.h
1653
1654 lib_LTLIBRARIES += \
1655         libudev.la
1656
1657 libudev_la_SOURCES =\
1658         src/libudev/libudev-private.h \
1659         src/libudev/libudev.c \
1660         src/libudev/libudev-list.c \
1661         src/libudev/libudev-util.c \
1662         src/libudev/libudev-device.c \
1663         src/libudev/libudev-enumerate.c \
1664         src/libudev/libudev-monitor.c \
1665         src/libudev/libudev-queue.c \
1666         src/libudev/libudev-hwdb-def.h \
1667         src/libudev/libudev-hwdb.c
1668
1669 libudev_la_CFLAGS = \
1670         $(AM_CFLAGS) \
1671         -fvisibility=hidden
1672
1673 libudev_la_LDFLAGS = \
1674         $(AM_LDFLAGS) \
1675         -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
1676         -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
1677
1678 libudev_la_LIBADD = \
1679         libsystemd-shared.la \
1680         libsystemd-daemon-internal.la \
1681         libsystemd-id128-internal.la
1682
1683 pkgconfiglib_DATA += \
1684         src/libudev/libudev.pc
1685
1686 EXTRA_DIST += \
1687         src/libudev/libudev.pc.in \
1688         src/libudev/libudev.sym
1689
1690 CLEANFILES += \
1691         src/libudev/libudev.pc \
1692         docs/html/libudev \
1693         docs/html/gudev
1694
1695 docs/html/libudev:
1696         $(AM_V_at)$(MKDIR_P) $(dir $@)
1697         $(AM_V_LN)$(LN_S) -f ../libudev/html $@
1698
1699 docs/html/gudev:
1700         $(AM_V_at)$(MKDIR_P) $(dir $@)
1701         $(AM_V_LN)$(LN_S) -f ../gudev/html $@
1702
1703 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
1704 libudev-install-hook:
1705         libname=libudev.so && $(move-to-rootlibdir)
1706
1707 libudev-uninstall-hook:
1708         rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
1709
1710 INSTALL_EXEC_HOOKS += libudev-install-hook
1711 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
1712
1713 # ------------------------------------------------------------------------------
1714 noinst_LTLIBRARIES += \
1715         libudev-private.la
1716
1717 libudev_private_la_SOURCES =\
1718         $(libudev_la_SOURCES) \
1719         src/libudev/libudev-device-private.c \
1720         src/libudev/libudev-queue-private.c
1721
1722 libudev_private_la_CFLAGS = \
1723         $(AM_CFLAGS) \
1724         -fvisibility=default
1725
1726 libudev_private_la_LIBADD = \
1727         libsystemd-shared.la
1728
1729 # ------------------------------------------------------------------------------
1730 INSTALL_DIRS += \
1731         $(sysconfdir)/udev/rules.d \
1732         $(sysconfdir)/udev/hwdb.d
1733
1734 dist_udevrules_DATA += \
1735         rules/99-systemd.rules \
1736         rules/42-usb-hid-pm.rules \
1737         rules/50-udev-default.rules \
1738         rules/60-persistent-storage-tape.rules \
1739         rules/60-persistent-serial.rules \
1740         rules/60-persistent-input.rules \
1741         rules/60-persistent-alsa.rules \
1742         rules/60-persistent-storage.rules \
1743         rules/64-btrfs.rules \
1744         rules/75-net-description.rules \
1745         rules/75-tty-description.rules \
1746         rules/78-sound-card.rules \
1747         rules/80-net-name-slot.rules \
1748         rules/95-udev-late.rules
1749
1750 dist_udevhwdb_DATA = \
1751         hwdb/20-pci-vendor-product.hwdb \
1752         hwdb/20-pci-classes.hwdb \
1753         hwdb/20-usb-vendor-product.hwdb \
1754         hwdb/20-usb-classes.hwdb \
1755         hwdb/20-bluetooth-vendor-product.hwdb \
1756         hwdb/20-acpi-vendor.hwdb \
1757         hwdb/20-OUI.hwdb
1758
1759 udevconfdir = $(sysconfdir)/udev
1760 dist_udevconf_DATA = \
1761         src/udev/udev.conf
1762
1763 sharepkgconfigdir = $(datadir)/pkgconfig
1764 sharepkgconfig_DATA = \
1765         src/udev/udev.pc
1766
1767 EXTRA_DIST += \
1768         rules/99-systemd.rules.in \
1769         src/udev/udev.pc.in
1770
1771 CLEANFILES += \
1772         rules/99-systemd.rules \
1773         src/udev/udev.pc
1774
1775 EXTRA_DIST += \
1776         units/systemd-udevd.service.in \
1777         units/systemd-udev-trigger.service.in \
1778         units/systemd-udev-settle.service.in
1779
1780 CLEANFILES += \
1781         units/systemd-udevd.service \
1782         units/systemd-udev-trigger.service \
1783         units/systemd-udev-settle.service
1784
1785 SOCKETS_TARGET_WANTS += \
1786         systemd-udevd-control.socket \
1787         systemd-udevd-kernel.socket
1788 SYSINIT_TARGET_WANTS += \
1789         systemd-udevd.service \
1790         systemd-udev-trigger.service
1791
1792 rootbin_PROGRAMS += \
1793         udevadm
1794
1795 rootlibexec_PROGRAMS += \
1796         systemd-udevd
1797
1798 noinst_LTLIBRARIES += \
1799         libudev-core.la
1800
1801 libudev_core_la_SOURCES = \
1802         src/udev/udev.h \
1803         src/udev/udev-event.c \
1804         src/udev/udev-watch.c \
1805         src/udev/udev-node.c \
1806         src/udev/udev-rules.c \
1807         src/udev/udev-ctrl.c \
1808         src/udev/udev-builtin.c \
1809         src/udev/udev-builtin-btrfs.c \
1810         src/udev/udev-builtin-hwdb.c \
1811         src/udev/udev-builtin-input_id.c \
1812         src/udev/udev-builtin-net_id.c \
1813         src/udev/udev-builtin-path_id.c \
1814         src/udev/udev-builtin-usb_id.c
1815
1816 libudev_core_la_CFLAGS = \
1817         $(AM_CFLAGS) \
1818         $(BLKID_CFLAGS) \
1819         $(KMOD_CFLAGS)
1820
1821 libudev_core_la_LIBADD = \
1822         libudev-private.la \
1823         libsystemd-label.la \
1824         libsystemd-daemon-internal.la \
1825         libsystemd-shared.la \
1826         $(BLKID_LIBS) \
1827         $(KMOD_LIBS)
1828
1829 libudev_core_la_CPPFLAGS = \
1830         $(AM_CPPFLAGS) \
1831         -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
1832
1833 if ENABLE_FIRMWARE
1834 libudev_core_la_SOURCES += \
1835         src/udev/udev-builtin-firmware.c
1836
1837 dist_udevrules_DATA += \
1838         rules/50-firmware.rules
1839 endif
1840
1841 if HAVE_KMOD
1842 libudev_core_la_SOURCES += \
1843         src/udev/udev-builtin-kmod.c
1844
1845 dist_udevrules_DATA += \
1846         rules/80-drivers.rules
1847 endif
1848
1849 if HAVE_BLKID
1850 libudev_core_la_SOURCES += \
1851         src/udev/udev-builtin-blkid.c
1852 endif
1853
1854 if HAVE_ACL
1855 libudev_core_la_SOURCES += \
1856         src/udev/udev-builtin-uaccess.c \
1857         src/login/logind-acl.c \
1858         src/login/sd-login.c
1859
1860 libudev_core_la_LIBADD += \
1861         libsystemd-acl.la
1862 endif
1863
1864 systemd_udevd_SOURCES = \
1865         src/udev/udevd.c
1866
1867 systemd_udevd_LDADD = \
1868         libudev-core.la
1869
1870 udevadm_SOURCES = \
1871         src/udev/udevadm.c \
1872         src/udev/udevadm-info.c \
1873         src/udev/udevadm-control.c \
1874         src/udev/udevadm-monitor.c \
1875         src/udev/udevadm-hwdb.c \
1876         src/udev/udevadm-settle.c \
1877         src/udev/udevadm-trigger.c \
1878         src/udev/udevadm-test.c \
1879         src/udev/udevadm-test-builtin.c
1880
1881 udevadm_LDADD = \
1882         libudev-core.la \
1883         libsystemd-shared.la
1884
1885 # Update hwdb on installation. Do not bother if installing
1886 # in DESTDIR, since this is likely for packaging purposes.
1887 hwdb-update-hook:
1888         -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
1889
1890 INSTALL_DATA_HOOKS += \
1891         hwdb-update-hook
1892
1893 hwdb-remove-hook:
1894         -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
1895
1896 # ------------------------------------------------------------------------------
1897 TESTS += \
1898         test/udev-test.pl \
1899         test/rules-test.sh
1900
1901 noinst_PROGRAMS += \
1902         test-libudev \
1903         test-udev
1904
1905 test_libudev_SOURCES = \
1906         src/test/test-libudev.c
1907
1908 test_libudev_LDADD = \
1909         libsystemd-label.la \
1910         libsystemd-shared.la \
1911         libudev.la
1912
1913 test_udev_SOURCES = \
1914         src/test/test-udev.c
1915
1916 test_udev_LDADD = \
1917         libudev-core.la \
1918         libsystemd-shared.la \
1919         $(BLKID_LIBS) \
1920         $(KMOD_LIBS) \
1921         $(SELINUX_LIBS)
1922
1923 if HAVE_ACL
1924 test_udev_LDADD += \
1925         libsystemd-acl.la
1926 endif
1927
1928 check_DATA += \
1929         test/sys
1930
1931 # packed sysfs test tree
1932 test/sys:
1933         $(AM_V_at)$(MKDIR_P) $(dir $@)
1934         $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
1935
1936 test-sys-distclean:
1937         -rm -rf test/sys
1938 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
1939
1940 EXTRA_DIST += \
1941         test/sys.tar.xz \
1942         test/udev-test.pl \
1943         test/rules-test.sh \
1944         test/rule-syntax-check.py
1945
1946 # ------------------------------------------------------------------------------
1947 ata_id_SOURCES = \
1948         src/udev/ata_id/ata_id.c
1949
1950 ata_id_LDADD = \
1951         libudev-private.la \
1952         libsystemd-shared.la
1953
1954 udevlibexec_PROGRAMS += \
1955         ata_id
1956
1957 # ------------------------------------------------------------------------------
1958 cdrom_id_SOURCES = \
1959         src/udev/cdrom_id/cdrom_id.c
1960
1961 cdrom_id_LDADD = \
1962         libudev.la \
1963         libsystemd-shared.la
1964
1965 udevlibexec_PROGRAMS += \
1966         cdrom_id
1967
1968 dist_udevrules_DATA += \
1969         rules/60-cdrom_id.rules
1970
1971 # ------------------------------------------------------------------------------
1972 collect_SOURCES = \
1973         src/udev/collect/collect.c
1974
1975 collect_LDADD = \
1976         libudev-private.la
1977
1978 udevlibexec_PROGRAMS += \
1979         collect
1980
1981 # ------------------------------------------------------------------------------
1982 scsi_id_SOURCES =\
1983         src/udev/scsi_id/scsi_id.c \
1984         src/udev/scsi_id/scsi_serial.c \
1985         src/udev/scsi_id/scsi.h \
1986         src/udev/scsi_id/scsi_id.h
1987
1988 scsi_id_LDADD = \
1989         libudev-private.la \
1990         libsystemd-shared.la
1991
1992 udevlibexec_PROGRAMS += \
1993         scsi_id
1994
1995 EXTRA_DIST += \
1996         src/udev/scsi_id/README
1997
1998 # ------------------------------------------------------------------------------
1999 v4l_id_SOURCES = \
2000         src/udev/v4l_id/v4l_id.c
2001
2002 v4l_id_LDADD = \
2003         libudev.la
2004
2005 udevlibexec_PROGRAMS += \
2006         v4l_id
2007
2008 dist_udevrules_DATA += \
2009         rules/60-persistent-v4l.rules
2010
2011 # ------------------------------------------------------------------------------
2012 accelerometer_SOURCES = \
2013         src/udev/accelerometer/accelerometer.c
2014
2015 accelerometer_LDADD = \
2016         libudev.la -lm \
2017         libsystemd-shared.la
2018
2019 udevlibexec_PROGRAMS += \
2020         accelerometer
2021
2022 dist_udevrules_DATA += \
2023         rules/61-accelerometer.rules
2024
2025 # ------------------------------------------------------------------------------
2026 if ENABLE_GUDEV
2027 if ENABLE_GTK_DOC
2028 SUBDIRS += \
2029         docs/gudev
2030 endif
2031
2032 libgudev_includedir = \
2033         $(includedir)/gudev-1.0/gudev
2034
2035 libgudev_include_HEADERS = \
2036         src/gudev/gudev.h \
2037         src/gudev/gudevenums.h \
2038         src/gudev/gudevenumtypes.h \
2039         src/gudev/gudevtypes.h \
2040         src/gudev/gudevclient.h \
2041         src/gudev/gudevdevice.h \
2042         src/gudev/gudevenumerator.h
2043
2044 lib_LTLIBRARIES += libgudev-1.0.la
2045
2046 pkgconfiglib_DATA += \
2047         src/gudev/gudev-1.0.pc
2048
2049 CLEANFILES += \
2050         src/gudev/gudev-1.0.pc
2051
2052 libgudev_1_0_la_SOURCES = \
2053         src/gudev/gudevenums.h \
2054         src/gudev/gudevenumtypes.h \
2055         src/gudev/gudevenumtypes.h\
2056         src/gudev/gudevtypes.h \
2057         src/gudev/gudevclient.h \
2058         src/gudev/gudevclient.c \
2059         src/gudev/gudevdevice.h \
2060         src/gudev/gudevdevice.c \
2061         src/gudev/gudevenumerator.h \
2062         src/gudev/gudevenumerator.c \
2063         src/gudev/gudevprivate.h
2064
2065 nodist_libgudev_1_0_la_SOURCES = \
2066         src/gudev/gudevmarshal.h \
2067         src/gudev/gudevmarshal.c \
2068         src/gudev/gudevenumtypes.h \
2069         src/gudev/gudevenumtypes.c
2070
2071 BUILT_SOURCES += \
2072         $(nodist_libgudev_1_0_la_SOURCES)
2073
2074 libgudev_1_0_la_CPPFLAGS = \
2075         $(AM_CPPFLAGS) \
2076         -I$(top_builddir)/src\
2077         -I$(top_srcdir)/src\
2078         -I$(top_builddir)/src/gudev \
2079         -I$(top_srcdir)/src/gudev \
2080         -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2081         -D_GUDEV_COMPILATION \
2082         -DG_LOG_DOMAIN=\"GUdev\"
2083
2084 libgudev_1_0_la_CFLAGS = \
2085         $(AM_CFLAGS) \
2086         -fvisibility=default \
2087         $(GLIB_CFLAGS)
2088
2089 libgudev_1_0_la_LIBADD = \
2090         libudev.la \
2091         $(GLIB_LIBS)
2092
2093 libgudev_1_0_la_LDFLAGS = \
2094         $(AM_LDFLAGS) \
2095         -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
2096         -export-dynamic -no-undefined \
2097         -export-symbols-regex '^g_udev_.*'
2098
2099 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
2100         $(AM_V_at)$(MKDIR_P) $(dir $@)
2101         $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
2102
2103 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
2104         $(AM_V_at)$(MKDIR_P) $(dir $@)
2105         $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
2106         glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
2107
2108 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
2109         $(AM_V_at)$(MKDIR_P) $(dir $@)
2110         $(AM_V_GEN)glib-mkenums --template $^ > $@
2111
2112 if HAVE_INTROSPECTION
2113 -include $(INTROSPECTION_MAKEFILE)
2114
2115 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
2116
2117 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
2118
2119 src_gudev_GUdev_1_0_gir_CFLAGS = \
2120         $(INCLUDES) \
2121         -D_GUDEV_COMPILATION \
2122         -D_GUDEV_WORK_AROUND_DEV_T_BUG \
2123         -I$(top_srcdir)/src \
2124         -I$(top_builddir)/src \
2125         -I$(top_srcdir)/src/gdev \
2126         -I$(top_builddir)/src/gdev
2127
2128 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
2129
2130 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
2131         --pkg-export=gudev-1.0 \
2132         --warn-all
2133
2134 src_gudev_GUdev_1_0_gir_FILES = \
2135         src/gudev/gudev.h \
2136         src/gudev/gudevtypes.h \
2137         src/gudev/gudevenums.h \
2138         src/gudev/gudevenumtypes.h \
2139         src/gudev/gudevclient.h \
2140         src/gudev/gudevdevice.h \
2141         src/gudev/gudevenumerator.h \
2142         src/gudev/gudevclient.c \
2143         src/gudev/gudevdevice.c \
2144         src/gudev/gudevenumerator.c
2145
2146 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
2147 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
2148
2149 girdir = $(datadir)/gir-1.0
2150 gir_DATA = \
2151         src/gudev/GUdev-1.0.gir
2152
2153 typelibsdir = $(libdir)/girepository-1.0
2154 typelibs_DATA = \
2155         src/gudev/GUdev-1.0.typelib
2156
2157 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
2158 endif # HAVE_INTROSPECTION
2159
2160 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2161 libgudev-install-hook:
2162         libname=libgudev-1.0.so && $(move-to-rootlibdir)
2163
2164 libgudev-uninstall-hook:
2165         rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
2166
2167 INSTALL_EXEC_HOOKS += libgudev-install-hook
2168 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
2169 endif
2170
2171 EXTRA_DIST += \
2172         src/gudev/gudev-1.0.pc.in \
2173         src/gudev/gudevmarshal.list \
2174         src/gudev/gudevenumtypes.h.template \
2175         src/gudev/gudevenumtypes.c.template \
2176         src/gudev/gjs-example.js \
2177         src/gudev/seed-example-enum.js \
2178         src/gudev/seed-example.js
2179
2180 # ------------------------------------------------------------------------------
2181 if ENABLE_KEYMAP
2182 keymap_SOURCES = \
2183         src/udev/keymap/keymap.c
2184
2185 keymap_CPPFLAGS = \
2186         $(AM_CPPFLAGS) -I src/udev/keymap
2187
2188 keymap_LDADD = \
2189         libsystemd-shared.la
2190
2191 nodist_keymap_SOURCES = \
2192         src/udev/keymap/keys-from-name.h \
2193         src/udev/keymap/keys-to-name.h
2194
2195 BUILT_SOURCES += \
2196         $(nodist_keymap_SOURCES)
2197
2198 udevlibexec_PROGRAMS += \
2199         keymap
2200
2201 dist_doc_DATA += \
2202         src/udev/keymap/README.keymap.txt
2203
2204 dist_udevrules_DATA += \
2205         src/udev/keymap/95-keymap.rules \
2206         src/udev/keymap/95-keyboard-force-release.rules
2207
2208 dist_udevhome_SCRIPTS = \
2209         src/udev/keymap/findkeyboards \
2210         src/udev/keymap/keyboard-force-release.sh
2211
2212 TESTS += \
2213         src/udev/keymap/check-keymaps.sh
2214
2215 CLEANFILES += \
2216         src/udev/keymap/keys.txt \
2217         src/udev/keymap/keys-from-name.gperf \
2218         src/udev/keymap/keyboard-force-release.sh
2219
2220 udevkeymapdir = $(udevlibexecdir)/keymaps
2221 dist_udevkeymap_DATA = \
2222         keymaps/acer \
2223         keymaps/acer-aspire_5720 \
2224         keymaps/acer-aspire_8930 \
2225         keymaps/acer-aspire_5920g \
2226         keymaps/acer-aspire_6920 \
2227         keymaps/acer-travelmate_c300 \
2228         keymaps/asus \
2229         keymaps/compaq-e_evo \
2230         keymaps/dell \
2231         keymaps/dell-latitude-xt2 \
2232         keymaps/everex-xt5000 \
2233         keymaps/fujitsu-amilo_li_2732 \
2234         keymaps/fujitsu-amilo_pa_2548 \
2235         keymaps/fujitsu-amilo_pro_edition_v3505 \
2236         keymaps/fujitsu-amilo_pro_v3205 \
2237         keymaps/fujitsu-amilo_si_1520 \
2238         keymaps/fujitsu-esprimo_mobile_v5 \
2239         keymaps/fujitsu-esprimo_mobile_v6 \
2240         keymaps/genius-slimstar-320 \
2241         keymaps/hewlett-packard \
2242         keymaps/hewlett-packard-2510p_2530p \
2243         keymaps/hewlett-packard-compaq_elitebook \
2244         keymaps/hewlett-packard-pavilion \
2245         keymaps/hewlett-packard-presario-2100 \
2246         keymaps/hewlett-packard-tablet \
2247         keymaps/hewlett-packard-tx2 \
2248         keymaps/hewlett-packard_elitebook-8440p \
2249         keymaps/hewlett-packard-hdx9494nr \
2250         keymaps/ibm-thinkpad-usb-keyboard-trackpoint \
2251         keymaps/inventec-symphony_6.0_7.0 \
2252         keymaps/lenovo-3000 \
2253         keymaps/lenovo-ideapad \
2254         keymaps/lenovo-thinkpad-usb-keyboard-trackpoint \
2255         keymaps/lenovo-thinkpad_x6_tablet \
2256         keymaps/lenovo-thinkpad_x200_tablet \
2257         keymaps/lg-x110 \
2258         keymaps/logitech-wave \
2259         keymaps/logitech-wave-cordless \
2260         keymaps/logitech-wave-pro-cordless \
2261         keymaps/maxdata-pro_7000 \
2262         keymaps/medion-fid2060 \
2263         keymaps/medionnb-a555 \
2264         keymaps/micro-star \
2265         keymaps/module-asus-w3j \
2266         keymaps/module-ibm \
2267         keymaps/module-lenovo \
2268         keymaps/module-sony \
2269         keymaps/module-sony-old \
2270         keymaps/module-sony-vgn \
2271         keymaps/module-sony-vpc \
2272         keymaps/olpc-xo \
2273         keymaps/onkyo \
2274         keymaps/oqo-model2 \
2275         keymaps/samsung-other \
2276         keymaps/samsung-series-9 \
2277         keymaps/samsung-sq1us \
2278         keymaps/samsung-sx20s \
2279         keymaps/toshiba-satellite_a100 \
2280         keymaps/toshiba-satellite_a110 \
2281         keymaps/toshiba-satellite_m30x \
2282         keymaps/zepto-znote
2283
2284 udevkeymapforcereldir = $(udevlibexecdir)/keymaps/force-release
2285 dist_udevkeymapforcerel_DATA = \
2286         keymaps-force-release/dell-touchpad \
2287         keymaps-force-release/dell-xps \
2288         keymaps-force-release/hp-other \
2289         keymaps-force-release/samsung-other \
2290         keymaps-force-release/samsung-series-9 \
2291         keymaps-force-release/common-volume-keys
2292
2293 src/udev/keymap/keys.txt: Makefile
2294         $(AM_V_at)$(MKDIR_P) $(dir $@)
2295         $(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/' > $@
2296
2297 src/udev/keymap/keys-from-name.gperf: src/udev/keymap/keys.txt Makefile
2298         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@
2299
2300 src/udev/keymap/keys-from-name.h: src/udev/keymap/keys-from-name.gperf Makefile
2301         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@
2302
2303 src/udev/keymap/keys-to-name.h: src/udev/keymap/keys.txt Makefile
2304         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2305 endif
2306
2307 EXTRA_DIST += \
2308         src/udev/keymap/check-keymaps.sh \
2309         src/udev/keymap/keyboard-force-release.sh.in
2310
2311 # ------------------------------------------------------------------------------
2312 mtd_probe_SOURCES =  \
2313         src/udev/mtd_probe/mtd_probe.c \
2314         src/udev/mtd_probe/mtd_probe.h \
2315         src/udev/mtd_probe/probe_smartmedia.c
2316
2317 mtd_probe_CPPFLAGS = \
2318         $(AM_CPPFLAGS)
2319
2320 dist_udevrules_DATA += \
2321         rules/75-probe_mtd.rules
2322
2323 udevlibexec_PROGRAMS += \
2324         mtd_probe
2325
2326 # ------------------------------------------------------------------------------
2327 libsystemd_id128_la_SOURCES = \
2328         src/libsystemd-id128/sd-id128.c
2329
2330 libsystemd_id128_la_CFLAGS = \
2331         $(AM_CFLAGS) \
2332         -fvisibility=hidden
2333
2334 libsystemd_id128_la_LDFLAGS = \
2335         $(AM_LDFLAGS) \
2336         -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \
2337         -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym
2338
2339 libsystemd_id128_la_LIBADD = \
2340         libsystemd-shared.la
2341
2342 libsystemd_id128_internal_la_SOURCES = \
2343         $(libsystemd_id128_la_SOURCES)
2344
2345 test_id128_SOURCES = \
2346         src/test/test-id128.c
2347
2348 test_id128_LDADD = \
2349         libsystemd-shared.la \
2350         libsystemd-id128-internal.la
2351
2352 noinst_tests += \
2353         test-id128
2354
2355 pkginclude_HEADERS += \
2356         src/systemd/sd-id128.h
2357
2358 lib_LTLIBRARIES += \
2359         libsystemd-id128.la
2360
2361 noinst_LTLIBRARIES += \
2362         libsystemd-id128-internal.la
2363
2364 pkgconfiglib_DATA += \
2365         src/libsystemd-id128/libsystemd-id128.pc
2366
2367 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2368 libsystemd-id128-install-hook:
2369         libname=libsystemd-id128.so && $(move-to-rootlibdir)
2370
2371 libsystemd-id128-uninstall-hook:
2372         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
2373
2374 INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook
2375 UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook
2376
2377 EXTRA_DIST += \
2378         src/libsystemd-id128/libsystemd-id128.pc.in \
2379         src/libsystemd-id128/libsystemd-id128.sym
2380
2381 # ------------------------------------------------------------------------------
2382
2383 rootlibexec_PROGRAMS += \
2384         systemd-activate
2385
2386 systemd_activate_SOURCES = \
2387         src/activate/activate.c
2388
2389 systemd_activate_LDADD = \
2390         libsystemd-shared.la \
2391         libsystemd-daemon.la
2392
2393 # ------------------------------------------------------------------------------
2394 systemd_journald_SOURCES = \
2395         src/journal/journald.c \
2396         src/journal/journald-server.h
2397
2398 systemd_journald_LDADD = \
2399         libsystemd-journal-internal.la \
2400         libsystemd-shared.la \
2401         libsystemd-id128-internal.la
2402
2403 systemd_cat_SOURCES = \
2404         src/journal/cat.c
2405
2406 systemd_cat_LDADD = \
2407         libsystemd-shared.la \
2408         libsystemd-journal-internal.la
2409
2410 journalctl_SOURCES = \
2411         src/journal/journalctl.c
2412
2413 journalctl_CFLAGS = \
2414         $(AM_CFLAGS)
2415
2416 journalctl_LDADD = \
2417         libsystemd-shared.la \
2418         libsystemd-journal-internal.la \
2419         libsystemd-id128-internal.la \
2420         libsystemd-logs.la
2421
2422 if HAVE_QRENCODE
2423 journalctl_SOURCES += \
2424         src/journal/journal-qrcode.c \
2425         src/journal/journal-qrcode.h
2426
2427 journalctl_CFLAGS += \
2428         $(QRENCODE_CFLAGS)
2429
2430 journalctl_LDADD += \
2431         $(QRENCODE_LIBS)
2432 endif
2433
2434 test_journal_SOURCES = \
2435         src/journal/test-journal.c
2436
2437 test_journal_LDADD = \
2438         libsystemd-shared.la \
2439         libsystemd-journal-internal.la \
2440         libsystemd-id128-internal.la
2441
2442 test_journal_send_SOURCES = \
2443         src/journal/test-journal-send.c
2444
2445 test_journal_send_LDADD = \
2446         libsystemd-shared.la \
2447         libsystemd-journal-internal.la \
2448         libsystemd-id128-internal.la
2449
2450 test_journal_syslog_SOURCES = \
2451         src/journal/test-journal-syslog.c
2452
2453 test_journal_syslog_LDADD = \
2454         libsystemd-journal-internal.la \
2455         libsystemd-shared.la \
2456         libsystemd-id128-internal.la
2457
2458 test_journal_match_SOURCES = \
2459         src/journal/test-journal-match.c
2460
2461 test_journal_match_LDADD = \
2462         libsystemd-shared.la \
2463         libsystemd-journal-internal.la \
2464         libsystemd-id128-internal.la
2465
2466 test_journal_enum_SOURCES = \
2467         src/journal/test-journal-enum.c
2468
2469 test_journal_enum_LDADD = \
2470         libsystemd-shared.la \
2471         libsystemd-journal-internal.la \
2472         libsystemd-id128-internal.la
2473
2474 test_journal_stream_SOURCES = \
2475         src/journal/test-journal-stream.c
2476
2477 test_journal_stream_LDADD = \
2478         libsystemd-shared.la \
2479         libsystemd-journal-internal.la \
2480         libsystemd-id128-internal.la
2481
2482 test_journal_verify_SOURCES = \
2483         src/journal/test-journal-verify.c
2484
2485 test_journal_verify_LDADD = \
2486         libsystemd-shared.la \
2487         libsystemd-journal-internal.la \
2488         libsystemd-id128-internal.la
2489
2490 test_mmap_cache_SOURCES = \
2491         src/journal/test-mmap-cache.c
2492
2493 test_mmap_cache_LDADD = \
2494         libsystemd-shared.la \
2495         libsystemd-journal-internal.la
2496
2497 test_catalog_SOURCES = \
2498         src/journal/test-catalog.c
2499
2500 test_catalog_LDADD = \
2501         libsystemd-shared.la \
2502         libsystemd-label.la \
2503         libsystemd-journal-internal.la \
2504         libsystemd-id128-internal.la
2505
2506 libsystemd_journal_la_SOURCES = \
2507         src/journal/sd-journal.c \
2508         src/systemd/sd-journal.h \
2509         src/journal/journal-file.c \
2510         src/journal/journal-file.h \
2511         src/journal/journal-vacuum.c \
2512         src/journal/journal-vacuum.h \
2513         src/journal/journal-verify.c \
2514         src/journal/journal-verify.h \
2515         src/journal/lookup3.c \
2516         src/journal/lookup3.h \
2517         src/journal/journal-send.c \
2518         src/journal/journal-def.h \
2519         src/journal/compress.h \
2520         src/journal/catalog.c \
2521         src/journal/catalog.h \
2522         src/journal/mmap-cache.c \
2523         src/journal/mmap-cache.h
2524
2525 libsystemd_journal_la_CFLAGS = \
2526         $(AM_CFLAGS) \
2527         -fvisibility=hidden
2528
2529 libsystemd_journal_la_LDFLAGS = \
2530         $(AM_LDFLAGS) \
2531         -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
2532         -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym
2533
2534 libsystemd_journal_la_LIBADD = \
2535         libsystemd-shared.la \
2536         libsystemd-label.la \
2537         libsystemd-daemon-internal.la \
2538         libsystemd-id128-internal.la
2539
2540 libsystemd_journal_internal_la_SOURCES = \
2541         $(libsystemd_journal_la_SOURCES) \
2542         src/journal/journald-kmsg.c \
2543         src/journal/journald-kmsg.h \
2544         src/journal/journald-syslog.c \
2545         src/journal/journald-syslog.h \
2546         src/journal/journald-stream.c \
2547         src/journal/journald-stream.h \
2548         src/journal/journald-server.c \
2549         src/journal/journald-server.h \
2550         src/journal/journald-console.c \
2551         src/journal/journald-console.h \
2552         src/journal/journald-native.c \
2553         src/journal/journald-native.h \
2554         src/journal/journald-rate-limit.c \
2555         src/journal/journald-rate-limit.h \
2556         src/journal/journal-internal.h
2557
2558 libsystemd_journal_internal_la_CFLAGS = \
2559         $(AM_CFLAGS)
2560
2561 libsystemd_journal_internal_la_LIBADD = \
2562         libsystemd-label.la \
2563         libsystemd-audit.la \
2564         libsystemd-daemon.la \
2565         libudev.la \
2566         libsystemd-shared.la \
2567         libsystemd-label.la
2568
2569 nodist_libsystemd_journal_internal_la_SOURCES = \
2570         src/journal/journald-gperf.c
2571
2572 if ENABLE_LOGIND
2573 libsystemd_journal_internal_la_LIBADD += \
2574         libsystemd-login-internal.la
2575 endif
2576
2577 if HAVE_ACL
2578 libsystemd_journal_internal_la_LIBADD += \
2579         libsystemd-acl.la
2580 endif
2581
2582 if HAVE_XZ
2583 libsystemd_journal_la_SOURCES += \
2584         src/journal/compress.c
2585
2586 libsystemd_journal_la_CFLAGS += \
2587         $(XZ_CFLAGS)
2588
2589 libsystemd_journal_la_LIBADD += \
2590         $(XZ_LIBS)
2591
2592 libsystemd_journal_internal_la_CFLAGS += \
2593         $(XZ_CFLAGS)
2594
2595 libsystemd_journal_internal_la_LIBADD += \
2596         $(XZ_LIBS)
2597
2598 endif
2599
2600 if HAVE_GCRYPT
2601 libsystemd_journal_la_SOURCES += \
2602         src/journal/journal-authenticate.c \
2603         src/journal/journal-authenticate.h \
2604         src/journal/fsprg.c \
2605         src/journal/fsprg.h
2606
2607 libsystemd_journal_la_CFLAGS += \
2608         $(GCRYPT_CFLAGS) \
2609         -Wno-pointer-arith
2610
2611 libsystemd_journal_la_LIBADD += \
2612         $(GCRYPT_LIBS)
2613
2614 libsystemd_journal_internal_la_CFLAGS += \
2615         $(GCRYPT_CFLAGS) \
2616         -Wno-pointer-arith
2617
2618 libsystemd_journal_internal_la_LIBADD += \
2619         $(GCRYPT_LIBS)
2620 endif
2621
2622 # move lib from $(libdir) to $(rootlibdir) and update devel link, if
2623 # needed. Also, grant read access to new journal files to members of
2624 # "adm" and "wheel".
2625 libsystemd-journal-install-hook:
2626         libname=libsystemd-journal.so && $(move-to-rootlibdir)
2627         -$(MKDIR_P) $(DESTDIR)/var/log/journal
2628         -chown 0:0 $(DESTDIR)/var/log/journal
2629         -chmod 755 $(DESTDIR)/var/log/journal
2630         -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
2631         -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
2632
2633 libsystemd-journal-uninstall-hook:
2634         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so*
2635
2636 INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook
2637 UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook
2638
2639 # ------------------------------------------------------------------------------
2640
2641 # Update catalog on installation. Do not bother if installing
2642 # in DESTDIR, since this is likely for packaging purposes.
2643 catalog-update-hook:
2644         -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
2645
2646 INSTALL_DATA_HOOKS += \
2647         catalog-update-hook
2648
2649 catalog-remove-hook:
2650         -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
2651
2652 UNINSTALL_DATA_HOOKS += \
2653         catalog-remove-hook
2654
2655 noinst_PROGRAMS += \
2656         test-journal-enum \
2657         test-catalog
2658
2659 noinst_tests += \
2660         test-journal \
2661         test-journal-send \
2662         test-journal-syslog \
2663         test-journal-match \
2664         test-journal-stream \
2665         test-journal-verify \
2666         test-mmap-cache
2667
2668 pkginclude_HEADERS += \
2669         src/systemd/sd-journal.h \
2670         src/systemd/sd-messages.h
2671
2672 lib_LTLIBRARIES += \
2673         libsystemd-journal.la
2674
2675 noinst_LTLIBRARIES += \
2676         libsystemd-journal-internal.la
2677
2678 rootlibexec_PROGRAMS += \
2679         systemd-journald
2680
2681 rootbin_PROGRAMS += \
2682         journalctl
2683
2684 bin_PROGRAMS += \
2685         systemd-cat
2686
2687 dist_systemunit_DATA += \
2688         units/systemd-journald.socket
2689
2690 nodist_systemunit_DATA += \
2691         units/systemd-journald.service \
2692         units/systemd-journal-flush.service
2693
2694 dist_pkgsysconf_DATA += \
2695         src/journal/journald.conf
2696
2697 pkgconfiglib_DATA += \
2698         src/journal/libsystemd-journal.pc
2699
2700 dist_catalog_DATA = \
2701         catalog/systemd.catalog
2702
2703 SOCKETS_TARGET_WANTS += \
2704         systemd-journald.socket
2705 SYSINIT_TARGET_WANTS += \
2706         systemd-journald.service \
2707         systemd-journal-flush.service
2708
2709 EXTRA_DIST += \
2710         src/journal/libsystemd-journal.pc.in \
2711         src/journal/libsystemd-journal.sym \
2712         units/systemd-journald.service.in \
2713         units/systemd-journal-flush.service.in \
2714         src/journal/journald-gperf.gperf
2715
2716 CLEANFILES += \
2717         src/journal/journald-gperf.c
2718
2719 # ------------------------------------------------------------------------------
2720 if HAVE_MICROHTTPD
2721 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
2722
2723 rootlibexec_PROGRAMS += \
2724         systemd-journal-gatewayd
2725
2726 systemd_journal_gatewayd_SOURCES = \
2727         src/journal/journal-gatewayd.c \
2728         src/journal/microhttpd-util.h \
2729         src/journal/microhttpd-util.c
2730
2731 systemd_journal_gatewayd_LDADD = \
2732         libsystemd-shared.la \
2733         libsystemd-logs.la \
2734         libsystemd-journal-internal.la \
2735         libsystemd-id128-internal.la \
2736         libsystemd-daemon.la \
2737         $(MICROHTTPD_LIBS)
2738
2739 systemd_journal_gatewayd_CFLAGS = \
2740         -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
2741         $(AM_CFLAGS) \
2742         $(MICROHTTPD_CFLAGS)
2743
2744 dist_systemunit_DATA += \
2745         units/systemd-journal-gatewayd.socket
2746
2747 nodist_systemunit_DATA += \
2748         units/systemd-journal-gatewayd.service
2749
2750 dist_gatewayddocumentroot_DATA = \
2751         src/journal/browse.html
2752
2753 endif
2754
2755 EXTRA_DIST += \
2756         units/systemd-journal-gatewayd.service.in
2757
2758 # ------------------------------------------------------------------------------
2759 if ENABLE_COREDUMP
2760 systemd_coredump_SOURCES = \
2761         src/journal/coredump.c
2762
2763 systemd_coredump_LDADD = \
2764         libsystemd-journal-internal.la \
2765         libsystemd-label.la \
2766         libsystemd-shared.la
2767
2768 if ENABLE_LOGIND
2769 systemd_coredump_LDADD += \
2770         libsystemd-login-internal.la
2771 endif
2772
2773 rootlibexec_PROGRAMS += \
2774         systemd-coredump
2775
2776 systemd_coredumpctl_SOURCES = \
2777         src/journal/coredumpctl.c
2778
2779 systemd_coredumpctl_LDADD = \
2780         libsystemd-shared.la \
2781         libsystemd-journal.la
2782
2783 bin_PROGRAMS += \
2784         systemd-coredumpctl
2785
2786 dist_bashcompletion_DATA += \
2787         shell-completion/bash/systemd-coredumpctl
2788
2789 sysctl_DATA = \
2790         sysctl.d/50-coredump.conf
2791
2792 CLEANFILES += \
2793         sysctl.d/50-coredump.conf
2794 endif
2795
2796 EXTRA_DIST += \
2797         sysctl.d/50-coredump.conf.in
2798
2799 # ------------------------------------------------------------------------------
2800 if ENABLE_BINFMT
2801 systemd_binfmt_SOURCES = \
2802         src/binfmt/binfmt.c
2803
2804 systemd_binfmt_LDADD = \
2805         libsystemd-shared.la
2806
2807 rootlibexec_PROGRAMS += \
2808         systemd-binfmt
2809
2810 dist_systemunit_DATA += \
2811         units/proc-sys-fs-binfmt_misc.automount \
2812         units/proc-sys-fs-binfmt_misc.mount
2813
2814 nodist_systemunit_DATA += \
2815         units/systemd-binfmt.service
2816
2817 INSTALL_DIRS += \
2818         $(prefix)/lib/binfmt.d \
2819         $(sysconfdir)/binfmt.d
2820
2821 SYSINIT_TARGET_WANTS += \
2822         systemd-binfmt.service \
2823         proc-sys-fs-binfmt_misc.automount
2824
2825 endif
2826
2827 EXTRA_DIST += \
2828         units/systemd-binfmt.service.in
2829
2830 # ------------------------------------------------------------------------------
2831 if ENABLE_VCONSOLE
2832 systemd_vconsole_setup_SOURCES = \
2833         src/vconsole/vconsole-setup.c
2834
2835 systemd_vconsole_setup_LDADD = \
2836         libsystemd-shared.la
2837
2838 rootlibexec_PROGRAMS += \
2839         systemd-vconsole-setup
2840
2841 nodist_systemunit_DATA += \
2842         units/systemd-vconsole-setup.service
2843
2844 SYSINIT_TARGET_WANTS += \
2845         systemd-vconsole-setup.service
2846 endif
2847
2848 EXTRA_DIST += \
2849         units/systemd-vconsole-setup.service.in
2850
2851 # ------------------------------------------------------------------------------
2852 if ENABLE_READAHEAD
2853 systemd_readahead_SOURCES = \
2854         src/readahead/readahead.c \
2855         src/readahead/readahead-collect.c \
2856         src/readahead/readahead-replay.c \
2857         src/readahead/readahead-analyze.c \
2858         src/readahead/readahead-common.c \
2859         src/readahead/readahead-common.h
2860
2861 systemd_readahead_LDADD = \
2862         libsystemd-shared.la \
2863         libsystemd-daemon.la \
2864         libudev.la
2865
2866 dist_doc_DATA += \
2867         src/readahead/sd-readahead.c \
2868         src/systemd/sd-readahead.h
2869
2870 rootlibexec_PROGRAMS += \
2871         systemd-readahead
2872
2873 dist_systemunit_DATA += \
2874         units/systemd-readahead-drop.service \
2875         units/systemd-readahead-done.timer
2876
2877 nodist_systemunit_DATA += \
2878         units/systemd-readahead-collect.service \
2879         units/systemd-readahead-replay.service \
2880         units/systemd-readahead-done.service
2881
2882 endif
2883
2884 EXTRA_DIST += \
2885         units/systemd-readahead-collect.service.in \
2886         units/systemd-readahead-replay.service.in \
2887         units/systemd-readahead-done.service.in
2888
2889 # ------------------------------------------------------------------------------
2890 if ENABLE_BOOTCHART
2891 systemd_bootchart_SOURCES = \
2892         src/bootchart/bootchart.c \
2893         src/bootchart/bootchart.h \
2894         src/bootchart/store.c \
2895         src/bootchart/store.h \
2896         src/bootchart/svg.c \
2897         src/bootchart/svg.h
2898
2899 systemd_bootchart_LDADD = \
2900         libsystemd-shared.la
2901
2902 rootlibexec_PROGRAMS += \
2903         systemd-bootchart
2904
2905 dist_pkgsysconf_DATA += \
2906         src/bootchart/bootchart.conf
2907 endif
2908
2909 # ------------------------------------------------------------------------------
2910 if ENABLE_QUOTACHECK
2911 rootlibexec_PROGRAMS += \
2912         systemd-quotacheck
2913
2914 nodist_systemunit_DATA += \
2915         units/systemd-quotacheck.service
2916
2917 systemd_quotacheck_SOURCES = \
2918         src/quotacheck/quotacheck.c
2919
2920 systemd_quotacheck_LDADD = \
2921         libsystemd-shared.la
2922 endif
2923
2924 EXTRA_DIST += \
2925         units/systemd-quotacheck.service.in
2926
2927 nodist_systemunit_DATA += \
2928         units/quotaon.service
2929
2930 # ------------------------------------------------------------------------------
2931 if ENABLE_RANDOMSEED
2932 rootlibexec_PROGRAMS += \
2933         systemd-random-seed
2934
2935 nodist_systemunit_DATA += \
2936         units/systemd-random-seed-save.service \
2937         units/systemd-random-seed-load.service
2938
2939 systemd_random_seed_SOURCES = \
2940         src/random-seed/random-seed.c
2941
2942 systemd_random_seed_LDADD = \
2943         libsystemd-label.la \
2944         libsystemd-shared.la
2945
2946 SHUTDOWN_TARGET_WANTS += \
2947         systemd-random-seed-save.service
2948 SYSINIT_TARGET_WANTS += \
2949         systemd-random-seed-load.service
2950
2951 endif
2952
2953 EXTRA_DIST += \
2954         units/systemd-random-seed-save.service.in \
2955         units/systemd-random-seed-load.service.in
2956
2957 # ------------------------------------------------------------------------------
2958 if HAVE_LIBCRYPTSETUP
2959 rootlibexec_PROGRAMS += \
2960         systemd-cryptsetup
2961
2962 systemgenerator_PROGRAMS += \
2963         systemd-cryptsetup-generator
2964
2965 dist_systemunit_DATA += \
2966         units/cryptsetup.target
2967
2968 systemd_cryptsetup_SOURCES = \
2969         src/cryptsetup/cryptsetup.c
2970
2971 systemd_cryptsetup_CFLAGS = \
2972         $(AM_CFLAGS) \
2973         $(LIBCRYPTSETUP_CFLAGS)
2974
2975 systemd_cryptsetup_LDADD = \
2976         libsystemd-label.la \
2977         libsystemd-shared.la \
2978         libudev.la \
2979         $(LIBCRYPTSETUP_LIBS)
2980
2981 systemd_cryptsetup_generator_SOURCES = \
2982         src/cryptsetup/cryptsetup-generator.c
2983
2984 systemd_cryptsetup_generator_LDADD = \
2985         libsystemd-label.la \
2986         libsystemd-shared.la
2987
2988 SYSINIT_TARGET_WANTS += \
2989         cryptsetup.target
2990
2991 endif
2992
2993 # ------------------------------------------------------------------------------
2994 if ENABLE_HOSTNAMED
2995 systemd_hostnamed_SOURCES = \
2996         src/hostname/hostnamed.c
2997
2998 systemd_hostnamed_CFLAGS = \
2999         $(AM_CFLAGS) \
3000         $(DBUS_CFLAGS)
3001
3002 systemd_hostnamed_LDADD = \
3003         libsystemd-label.la \
3004         libsystemd-shared.la \
3005         libsystemd-daemon.la \
3006         libsystemd-dbus.la
3007
3008 rootlibexec_PROGRAMS += \
3009         systemd-hostnamed
3010
3011 nodist_systemunit_DATA += \
3012         units/systemd-hostnamed.service
3013
3014 dist_dbuspolicy_DATA += \
3015         src/hostname/org.freedesktop.hostname1.conf
3016
3017 dist_dbussystemservice_DATA += \
3018         src/hostname/org.freedesktop.hostname1.service
3019
3020 polkitpolicy_files += \
3021         src/hostname/org.freedesktop.hostname1.policy
3022
3023 dbusinterface_DATA += \
3024         org.freedesktop.hostname1.xml
3025
3026 org.freedesktop.hostname1.xml: systemd-hostnamed
3027         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
3028                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3029                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3030
3031 SYSTEM_UNIT_ALIASES += \
3032         systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3033
3034 hostnamectl_SOURCES = \
3035         src/hostname/hostnamectl.c
3036
3037 hostnamectl_CFLAGS = \
3038         $(AM_CFLAGS) \
3039         $(DBUS_CFLAGS)
3040
3041 hostnamectl_LDADD = \
3042         libsystemd-shared.la \
3043         libsystemd-dbus.la \
3044         libsystemd-id128-internal.la
3045
3046 bin_PROGRAMS += \
3047         hostnamectl
3048
3049 dist_bashcompletion_DATA += \
3050         shell-completion/bash/hostnamectl
3051
3052 endif
3053
3054 polkitpolicy_in_files += \
3055         src/hostname/org.freedesktop.hostname1.policy.in
3056
3057 EXTRA_DIST += \
3058         units/systemd-hostnamed.service.in
3059
3060 # ------------------------------------------------------------------------------
3061 if ENABLE_LOCALED
3062 systemd_localed_SOURCES = \
3063         src/locale/localed.c
3064
3065 systemd_localed_CFLAGS = \
3066         $(AM_CFLAGS) \
3067         $(DBUS_CFLAGS)
3068
3069 systemd_localed_LDADD = \
3070         libsystemd-label.la \
3071         libsystemd-shared.la \
3072         libsystemd-daemon.la \
3073         libsystemd-dbus.la
3074
3075 nodist_systemunit_DATA += \
3076         units/systemd-localed.service
3077
3078 rootlibexec_PROGRAMS += \
3079         systemd-localed
3080
3081 dist_dbuspolicy_DATA += \
3082         src/locale/org.freedesktop.locale1.conf
3083
3084 dist_dbussystemservice_DATA += \
3085         src/locale/org.freedesktop.locale1.service
3086
3087 polkitpolicy_files += \
3088         src/locale/org.freedesktop.locale1.policy
3089
3090 dbusinterface_DATA += \
3091         org.freedesktop.locale1.xml
3092
3093 org.freedesktop.locale1.xml: systemd-localed
3094         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
3095                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3096                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3097
3098 SYSTEM_UNIT_ALIASES += \
3099         systemd-localed.service dbus-org.freedesktop.locale1.service
3100
3101 dist_pkgdata_DATA += \
3102         src/locale/kbd-model-map
3103
3104 dist_noinst_SCRIPT = \
3105         src/locale/generate-kbd-model-map
3106
3107 update-kbd-model-map: src/locale/generate-kbd-model-map
3108         $PYTHON $< > src/locale/kbd-model-map
3109
3110 localectl_SOURCES = \
3111         src/locale/localectl.c
3112
3113 localectl_CFLAGS = \
3114         $(AM_CFLAGS) \
3115         $(DBUS_CFLAGS)
3116
3117 localectl_LDADD = \
3118         libsystemd-shared.la \
3119         libsystemd-dbus.la \
3120         libsystemd-id128-internal.la
3121
3122 bin_PROGRAMS += \
3123         localectl
3124
3125 dist_bashcompletion_DATA += \
3126         shell-completion/bash/localectl
3127
3128 endif
3129
3130 polkitpolicy_in_files += \
3131         src/locale/org.freedesktop.locale1.policy.in
3132
3133 EXTRA_DIST += \
3134         units/systemd-localed.service.in
3135
3136 # ------------------------------------------------------------------------------
3137 if ENABLE_TIMEDATED
3138 systemd_timedated_SOURCES = \
3139         src/timedate/timedated.c
3140
3141 systemd_timedated_CFLAGS = \
3142         $(AM_CFLAGS) \
3143         $(DBUS_CFLAGS)
3144
3145 systemd_timedated_LDADD = \
3146         libsystemd-label.la \
3147         libsystemd-shared.la \
3148         libsystemd-daemon.la \
3149         libsystemd-dbus.la
3150
3151 rootlibexec_PROGRAMS += \
3152         systemd-timedated
3153
3154 dist_dbussystemservice_DATA += \
3155         src/timedate/org.freedesktop.timedate1.service
3156
3157 dist_dbuspolicy_DATA += \
3158         src/timedate/org.freedesktop.timedate1.conf
3159
3160 nodist_systemunit_DATA += \
3161         units/systemd-timedated.service
3162
3163 polkitpolicy_files += \
3164         src/timedate/org.freedesktop.timedate1.policy
3165
3166 org.freedesktop.timedate1.xml: systemd-timedated
3167         $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
3168                 $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
3169                 $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
3170
3171 dbusinterface_DATA += \
3172         org.freedesktop.timedate1.xml
3173
3174 INSTALL_DIRS += \
3175         $(prefix)/lib/systemd/ntp-units.d \
3176         $(sysconfdir)/systemd/ntp-units.d
3177
3178 SYSTEM_UNIT_ALIASES += \
3179         systemd-timedated.service dbus-org.freedesktop.timedate1.service
3180
3181 timedatectl_SOURCES = \
3182         src/timedate/timedatectl.c
3183
3184 timedatectl_CFLAGS = \
3185         $(AM_CFLAGS) \
3186         $(DBUS_CFLAGS)
3187
3188 timedatectl_LDADD = \
3189         libsystemd-shared.la \
3190         libsystemd-dbus.la
3191
3192 bin_PROGRAMS += \
3193         timedatectl
3194
3195 dist_bashcompletion_DATA += \
3196         shell-completion/bash/timedatectl
3197 endif
3198
3199 polkitpolicy_in_files += \
3200         src/timedate/org.freedesktop.timedate1.policy.in
3201
3202 EXTRA_DIST += \
3203         units/systemd-timedated.service.in
3204
3205 # ------------------------------------------------------------------------------
3206 if ENABLE_EFI
3207 bootctl_SOURCES = \
3208         src/boot/boot.h \
3209         src/boot/boot-loader.h \
3210         src/boot/bootctl.c \
3211         src/boot/boot-loader.c \
3212         src/boot/boot-efi.c
3213
3214 bootctl_LDADD = \
3215         libsystemd-shared.la \
3216         libsystemd-id128.la \
3217         libsystemd-daemon.la
3218
3219 bin_PROGRAMS += \
3220         bootctl
3221 endif
3222
3223 # ------------------------------------------------------------------------------
3224 if HAVE_MYHOSTNAME
3225 libnss_myhostname_la_SOURCES = \
3226         src/nss-myhostname/nss-myhostname.c \
3227         src/nss-myhostname/ifconf.h \
3228         src/nss-myhostname/netlink.c
3229
3230 libnss_myhostname_la_CFLAGS = \
3231         $(AM_CFLAGS)
3232
3233 libnss_myhostname_la_LDFLAGS = \
3234         $(AM_LDFLAGS) \
3235         -module \
3236         -export-dynamic \
3237         -avoid-version \
3238         -shared \
3239         -shrext .so.2
3240
3241 lib_LTLIBRARIES += \
3242         libnss_myhostname.la
3243 endif
3244
3245 # ------------------------------------------------------------------------------
3246 if ENABLE_LOGIND
3247 systemd_logind_SOURCES = \
3248         src/login/logind.c \
3249         src/login/logind.h \
3250         src/login/logind-dbus.c \
3251         src/login/logind-device.c \
3252         src/login/logind-device.h \
3253         src/login/logind-button.c \
3254         src/login/logind-button.h \
3255         src/login/logind-action.c \
3256         src/login/logind-action.h \
3257         src/login/logind-seat.c \
3258         src/login/logind-seat.h \
3259         src/login/logind-session.c \
3260         src/login/logind-session.h \
3261         src/login/logind-user.c \
3262         src/login/logind-user.h \
3263         src/login/logind-inhibit.c \
3264         src/login/logind-inhibit.h \
3265         src/login/logind-session-dbus.c \
3266         src/login/logind-seat-dbus.c \
3267         src/login/logind-user-dbus.c \
3268         src/login/logind-acl.h
3269
3270 nodist_systemd_logind_SOURCES = \
3271         src/login/logind-gperf.c
3272
3273 systemd_logind_CFLAGS = \
3274         $(AM_CFLAGS) \
3275         $(DBUS_CFLAGS)
3276
3277 systemd_logind_LDADD = \
3278         libsystemd-label.la \
3279         libsystemd-shared.la \
3280         libsystemd-audit.la \
3281         libsystemd-daemon.la \
3282         libsystemd-dbus.la \
3283         libudev.la
3284
3285 if HAVE_ACL
3286 systemd_logind_SOURCES += \
3287         src/login/logind-acl.c
3288
3289 systemd_logind_LDADD += \
3290         libsystemd-acl.la
3291 endif
3292
3293 systemd_user_sessions_SOURCES = \
3294         src/login/user-sessions.c
3295
3296 systemd_user_sessions_LDADD = \
3297         libsystemd-shared.la
3298
3299 rootlibexec_PROGRAMS += \
3300         systemd-logind \
3301         systemd-user-sessions
3302
3303 loginctl_SOURCES = \
3304         src/login/loginctl.c \
3305         src/login/sysfs-show.c
3306
3307 loginctl_CFLAGS = \
3308         $(AM_CFLAGS) \
3309         $(DBUS_CFLAGS)
3310
3311 loginctl_LDADD = \
3312         libsystemd-shared.la \
3313         libsystemd-dbus.la \
3314         libudev.la
3315
3316 rootbin_PROGRAMS += \
3317         loginctl
3318
3319 dist_bashcompletion_DATA += \
3320         shell-completion/bash/loginctl
3321
3322 systemd_inhibit_SOURCES = \
3323         src/login/inhibit.c
3324
3325 systemd_inhibit_CFLAGS = \
3326         $(AM_CFLAGS) \
3327         $(DBUS_CFLAGS)
3328
3329 systemd_inhibit_LDADD = \
3330         libsystemd-shared.la \
3331         libsystemd-dbus.la
3332
3333 rootbin_PROGRAMS += \
3334         systemd-inhibit
3335
3336 test_login_SOURCES = \
3337         src/login/test-login.c
3338
3339 test_login_LDADD = \
3340         libsystemd-login-internal.la \
3341         libsystemd-shared.la
3342
3343 test_inhibit_SOURCES = \
3344         src/login/test-inhibit.c
3345
3346 test_inhibit_LDADD = \
3347         libsystemd-shared.la \
3348         libsystemd-dbus.la
3349
3350 test_inhibit_CFLAGS = \
3351         $(AM_CFLAGS) \
3352         $(DBUS_CFLAGS)
3353
3354 noinst_PROGRAMS += \
3355         test-login \
3356         test-inhibit
3357
3358 libsystemd_login_la_SOURCES = \
3359         src/login/sd-login.c
3360
3361 libsystemd_login_la_CFLAGS = \
3362         $(AM_CFLAGS) \
3363         -fvisibility=hidden
3364
3365 libsystemd_login_la_LDFLAGS = \
3366         $(AM_LDFLAGS) \
3367         -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \
3368         -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym
3369
3370 libsystemd_login_la_LIBADD = \
3371         libsystemd-shared.la \
3372         libsystemd-daemon-internal.la
3373
3374 libsystemd_login_internal_la_SOURCES = \
3375         $(libsystemd_login_la_SOURCES)
3376
3377 if HAVE_PAM
3378 pam_systemd_la_SOURCES = \
3379         src/login/pam-module.c
3380
3381 pam_systemd_la_CFLAGS = \
3382         $(AM_CFLAGS) \
3383         $(PAM_CFLAGS) \
3384         $(DBUS_CFLAGS) \
3385         -fvisibility=hidden
3386
3387 pam_systemd_la_LDFLAGS = \
3388         $(AM_LDFLAGS) \
3389         -module \
3390         -export-dynamic \
3391         -avoid-version \
3392         -shared \
3393         -export-symbols-regex '^pam_sm_.*'
3394
3395 pam_systemd_la_LIBADD = \
3396         libsystemd-daemon.la \
3397         libsystemd-audit.la \
3398         libsystemd-dbus.la \
3399         libsystemd-shared.la \
3400         $(PAM_LIBS)
3401
3402 pamlib_LTLIBRARIES = \
3403         pam_systemd.la
3404 endif
3405
3406 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3407 libsystemd-login-install-hook:
3408         libname=libsystemd-login.so && $(move-to-rootlibdir)
3409
3410 libsystemd-login-uninstall-hook:
3411         rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
3412
3413 INSTALL_EXEC_HOOKS += libsystemd-login-install-hook
3414 UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook
3415
3416 nodist_systemunit_DATA += \
3417         units/systemd-logind.service \
3418         units/systemd-user-sessions.service
3419
3420 dist_dbussystemservice_DATA += \
3421         src/login/org.freedesktop.login1.service
3422
3423 dist_dbuspolicy_DATA += \
3424         src/login/org.freedesktop.login1.conf
3425
3426 dist_pkgsysconf_DATA += \
3427         src/login/logind.conf
3428
3429 pkginclude_HEADERS += \
3430         src/systemd/sd-login.h
3431
3432 lib_LTLIBRARIES += \
3433         libsystemd-login.la
3434
3435 noinst_LTLIBRARIES += \
3436         libsystemd-login-internal.la
3437
3438 pkgconfiglib_DATA += \
3439         src/login/libsystemd-login.pc
3440
3441 polkitpolicy_files += \
3442         src/login/org.freedesktop.login1.policy
3443
3444 INSTALL_DIRS += \
3445         $(systemdstatedir)
3446
3447 MULTI_USER_TARGET_WANTS += \
3448         systemd-logind.service \
3449         systemd-user-sessions.service
3450
3451 SYSTEM_UNIT_ALIASES += \
3452         systemd-logind.service dbus-org.freedesktop.login1.service
3453
3454 systemd_multi_seat_x_SOURCES = \
3455         src/login/multi-seat-x.c
3456
3457 systemd_multi_seat_x_LDADD = \
3458         libsystemd-label.la \
3459         libsystemd-shared.la
3460
3461 rootlibexec_PROGRAMS += \
3462         systemd-multi-seat-x
3463
3464 dist_udevrules_DATA += \
3465         src/login/70-uaccess.rules \
3466         src/login/70-power-switch.rules
3467
3468 nodist_udevrules_DATA += \
3469         src/login/71-seat.rules \
3470         src/login/73-seat-late.rules
3471
3472 CLEANFILES += \
3473         src/login/logind-gperf.c \
3474         src/login/71-seat.rules \
3475         src/login/73-seat-late.rules
3476 endif
3477
3478 polkitpolicy_in_files += \
3479         src/login/org.freedesktop.login1.policy.in
3480
3481 EXTRA_DIST += \
3482         src/login/logind-gperf.gperf \
3483         src/login/libsystemd-login.pc.in \
3484         src/login/libsystemd-login.sym \
3485         src/login/71-seat.rules.in \
3486         src/login/73-seat-late.rules.in \
3487         units/systemd-logind.service.in \
3488         units/systemd-user-sessions.service.in
3489
3490 # ------------------------------------------------------------------------------
3491 if HAVE_PYTHON_DEVEL
3492 pkgpyexec_LTLIBRARIES = \
3493         _journal.la \
3494         id128.la \
3495         _daemon.la \
3496         _reader.la
3497
3498 _journal_la_SOURCES = \
3499         src/python-systemd/_journal.c
3500
3501 _journal_la_CFLAGS = \
3502         $(AM_CFLAGS) \
3503         -fvisibility=default \
3504         $(PYTHON_CFLAGS)
3505
3506 _journal_la_LDFLAGS = \
3507         $(AM_LDFLAGS) \
3508         -shared \
3509         -module \
3510         -avoid-version
3511
3512 _journal_la_LIBADD = \
3513         $(PYTHON_LIBS) \
3514         libsystemd-journal.la
3515
3516 id128_la_SOURCES = \
3517         src/python-systemd/id128.c \
3518         src/python-systemd/id128-constants.h \
3519         src/python-systemd/pyutil.c \
3520         src/python-systemd/pyutil.h
3521
3522 id128_la_CFLAGS = \
3523         $(AM_CFLAGS) \
3524         -fvisibility=default \
3525         $(PYTHON_CFLAGS) \
3526         -I$(top_builddir)/src/python-systemd
3527
3528 id128_la_LDFLAGS = \
3529         $(AM_LDFLAGS) \
3530         -shared \
3531         -module \
3532         -avoid-version
3533
3534 id128_la_LIBADD = \
3535         $(PYTHON_LIBS) \
3536         libsystemd-id128.la
3537
3538 _daemon_la_SOURCES = \
3539         src/python-systemd/_daemon.c \
3540         src/python-systemd/pyutil.c \
3541         src/python-systemd/pyutil.h
3542
3543 _daemon_la_CFLAGS = \
3544         $(AM_CFLAGS) \
3545         -fvisibility=default \
3546         $(PYTHON_CFLAGS) \
3547         -I$(top_builddir)/src/python-systemd
3548
3549 _daemon_la_LDFLAGS = \
3550         $(AM_LDFLAGS) \
3551         -shared \
3552         -module \
3553         -avoid-version
3554
3555 _daemon_la_LIBADD = \
3556         $(PYTHON_LIBS) \
3557         libsystemd-daemon.la
3558
3559 _reader_la_SOURCES = \
3560         src/python-systemd/_reader.c \
3561         src/python-systemd/pyutil.c \
3562         src/python-systemd/pyutil.h
3563
3564 _reader_la_CFLAGS = \
3565         $(AM_CFLAGS) \
3566         -fvisibility=default \
3567         $(PYTHON_CFLAGS)
3568
3569 _reader_la_LDFLAGS = \
3570         $(AM_LDFLAGS) \
3571         -shared \
3572         -module \
3573         -avoid-version
3574
3575 _reader_la_LIBADD = \
3576         $(PYTHON_LIBS) \
3577         libsystemd-journal.la \
3578         libsystemd-id128.la \
3579         libsystemd-shared.la
3580
3581 dist_pkgpyexec_PYTHON = \
3582         src/python-systemd/journal.py \
3583         src/python-systemd/daemon.py \
3584         src/python-systemd/__init__.py
3585
3586 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile
3587         $(AM_V_at)$(MKDIR_P) $(dir $@)
3588         $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
3589
3590 BUILT_SOURCES += \
3591         src/python-systemd/id128-constants.h
3592
3593 PAPER = $(shell cat /etc/papersize 2>/dev/null || echo a4)
3594 SPHINXOPTS = -D latex_paper_size=$(PAPER) -D version=$(VERSION) -D release=$(VERSION)
3595 sphinx-%:
3596         $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
3597         $(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/
3598         $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
3599
3600 destdir-sphinx: all
3601         dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
3602                 $(MAKE) DESTDIR="$$dir" install && \
3603                 $(MAKE) DESTDIR="$$dir" sphinx-html && \
3604                 rm -rf "$$dir"
3605
3606 endif
3607
3608 CLEAN_LOCAL_HOOKS += clean-sphinx
3609
3610 clean-sphinx:
3611         -rm -rf docs/html/python-systemd/
3612
3613 # ------------------------------------------------------------------------------
3614 SED_PROCESS = \
3615         $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
3616         $(SED)  -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \
3617                 -e 's,@rootbindir\@,$(rootbindir),g' \
3618                 -e 's,@bindir\@,$(bindir),g' \
3619                 -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \
3620                 -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \
3621                 -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
3622                 -e 's,@SYSTEM_CONFIG_UNIT_PATH\@,$(pkgsysconfdir)/system,g' \
3623                 -e 's,@USER_CONFIG_UNIT_PATH\@,$(pkgsysconfdir)/user,g' \
3624                 -e 's,@pkgdatadir\@,$(pkgdatadir),g' \
3625                 -e 's,@systemunitdir\@,$(systemunitdir),g' \
3626                 -e 's,@userunitdir\@,$(userunitdir),g' \
3627                 -e 's,@systempresetdir\@,$(systempresetdir),g' \
3628                 -e 's,@userpresetdir\@,$(userpresetdir),g' \
3629                 -e 's,@udevhwdbdir\@,$(udevhwdbdir),g' \
3630                 -e 's,@udevrulesdir\@,$(udevrulesdir),g' \
3631                 -e 's,@catalogdir\@,$(catalogdir),g' \
3632                 -e 's,@tmpfilesdir\@,$(tmpfilesdir),g' \
3633                 -e 's,@sysctldir\@,$(sysctldir),g' \
3634                 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
3635                 -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
3636                 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \
3637                 -e 's,@RANDOM_SEED\@,$(localstatedir)/lib/random-seed,g' \
3638                 -e 's,@prefix\@,$(prefix),g' \
3639                 -e 's,@exec_prefix\@,$(exec_prefix),g' \
3640                 -e 's,@libdir\@,$(libdir),g' \
3641                 -e 's,@includedir\@,$(includedir),g' \
3642                 -e 's,@VERSION\@,$(VERSION),g' \
3643                 -e 's,@rootprefix\@,$(rootprefix),g' \
3644                 -e 's,@udevlibexecdir\@,$(udevlibexecdir),g' \
3645                 -e 's,@sushell\@,$(sushell),g' \
3646                 -e 's,@KILL\@,$(KILL),g' \
3647                 -e 's,@QUOTAON\@,$(QUOTAON),g' \
3648                 -e 's,@QUOTACHECK\@,$(QUOTACHECK),g' \
3649                 -e 's,@SYSTEM_SYSVINIT_PATH\@,$(sysvinitdir),g' \
3650                 -e 's,@VARLOGDIR\@,$(varlogdir),g' \
3651                 -e 's,@RC_LOCAL_SCRIPT_PATH_START\@,$(RC_LOCAL_SCRIPT_PATH_START),g' \
3652                 -e 's,@RC_LOCAL_SCRIPT_PATH_STOP\@,$(RC_LOCAL_SCRIPT_PATH_STOP),g' \
3653                 -e 's,@PYTHON\@,$(PYTHON),g' \
3654                 -e 's,@PYTHON_BINARY\@,$(PYTHON_BINARY),g' \
3655                 < $< > $@
3656
3657 units/%: units/%.in Makefile
3658         $(SED_PROCESS)
3659
3660 man/%: man/%.in Makefile
3661         $(SED_PROCESS)
3662
3663 sysctl.d/%: sysctl.d/%.in Makefile
3664         $(SED_PROCESS)
3665
3666 %.pc: %.pc.in Makefile
3667         $(SED_PROCESS)
3668
3669 src/core/macros.%: src/core/macros.%.in Makefile
3670         $(SED_PROCESS)
3671
3672 src/%.policy.in: src/%.policy.in.in Makefile
3673         $(SED_PROCESS)
3674
3675 %.rules: %.rules.in Makefile
3676         $(SED_PROCESS)
3677
3678 %.sh: %.sh.in Makefile
3679         $(SED_PROCESS)
3680         $(AM_V_GEN)chmod +x $@
3681
3682 src/%.c: src/%.gperf
3683         $(AM_V_at)$(MKDIR_P) $(dir $@)
3684         $(AM_V_GPERF)$(GPERF) < $< > $@
3685
3686 src/%: src/%.m4
3687         $(AM_V_at)$(MKDIR_P) $(dir $@)
3688         $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
3689
3690 units/%: units/%.m4 Makefile
3691         $(AM_V_M4)$(MKDIR_P) $(dir $@)
3692         $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
3693
3694 units/user/%: units/%.m4 Makefile
3695         $(AM_V_M4)$(MKDIR_P) $(dir $@)
3696         $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
3697
3698 if ENABLE_POLKIT
3699 nodist_polkitpolicy_DATA = \
3700         $(polkitpolicy_files) \
3701         $(polkitpolicy_in_in_files:.policy.in.in=.policy)
3702 endif
3703
3704 EXTRA_DIST += \
3705         $(polkitpolicy_in_files) \
3706         $(polkitpolicy_in_in_files)
3707
3708 CLEANFILES += \
3709         $(nodist_systemunit_DATA) \
3710         $(nodist_userunit_DATA) \
3711         $(pkgconfigdata_DATA) \
3712         $(pkgconfiglib_DATA) \
3713         $(nodist_polkitpolicy_DATA)
3714
3715 # ------------------------------------------------------------------------------
3716 if ENABLE_MANPAGES
3717 XSLTPROC_FLAGS = \
3718         --nonet \
3719         --stringparam man.output.quietly 1 \
3720         --stringparam funcsynopsis.style ansi \
3721         --stringparam man.authors.section.enabled 0 \
3722         --stringparam man.copyright.section.enabled 0 \
3723         --stringparam systemd.version $(VERSION)
3724
3725 XSLTPROC_PROCESS_MAN = \
3726         $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \
3727         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
3728
3729 XSLTPROC_PROCESS_HTML = \
3730         $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \
3731         $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
3732
3733 man/%.1: man/%.xml man/custom-man.xsl
3734         $(XSLTPROC_PROCESS_MAN)
3735
3736 man/%.3: man/%.xml man/custom-man.xsl
3737         $(XSLTPROC_PROCESS_MAN)
3738
3739 man/%.5: man/%.xml man/custom-man.xsl
3740         $(XSLTPROC_PROCESS_MAN)
3741
3742 man/%.7: man/%.xml man/custom-man.xsl
3743         $(XSLTPROC_PROCESS_MAN)
3744
3745 man/%.8: man/%.xml man/custom-man.xsl
3746         $(XSLTPROC_PROCESS_MAN)
3747
3748 man/%.html: man/%.xml man/custom-html.xsl
3749         $(XSLTPROC_PROCESS_HTML)
3750
3751 define html-alias
3752         $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
3753 endef
3754
3755 endif
3756
3757 EXTRA_DIST += \
3758         man/custom-html.xsl \
3759         man/custom-man.xsl
3760
3761 # ------------------------------------------------------------------------------
3762 DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
3763
3764 CLEANFILES += \
3765         $(dbusinterface_DATA)
3766
3767 if HAVE_SYSV_COMPAT
3768 sysvinit_DATA = \
3769         docs/sysvinit/README
3770
3771 varlog_DATA = \
3772         docs/var-log/README
3773
3774 docs/sysvinit/README: docs/sysvinit/README.in
3775         $(SED_PROCESS)
3776
3777 docs/var-log/README: docs/var-log/README.in
3778         $(SED_PROCESS)
3779
3780 CLEANFILES += \
3781         docs/sysvinit/README \
3782         docs/var-log/README
3783 endif
3784
3785 EXTRA_DIST += \
3786         docs/sysvinit/README.in \
3787         docs/var-log/README.in
3788
3789 EXTRA_DIST += \
3790         shell-completion/systemd-zsh-completion.zsh
3791
3792 SOCKETS_TARGET_WANTS += \
3793         systemd-initctl.socket \
3794         systemd-shutdownd.socket
3795
3796 if HAVE_SYSV_COMPAT
3797 RUNLEVEL1_TARGET_WANTS += \
3798         systemd-update-utmp-runlevel.service
3799 RUNLEVEL2_TARGET_WANTS += \
3800         systemd-update-utmp-runlevel.service
3801 RUNLEVEL3_TARGET_WANTS += \
3802         systemd-update-utmp-runlevel.service
3803 RUNLEVEL4_TARGET_WANTS += \
3804         systemd-update-utmp-runlevel.service
3805 RUNLEVEL5_TARGET_WANTS += \
3806         systemd-update-utmp-runlevel.service
3807 endif
3808 SHUTDOWN_TARGET_WANTS += \
3809         systemd-update-utmp-shutdown.service
3810 LOCAL_FS_TARGET_WANTS += \
3811         systemd-remount-fs.service \
3812         systemd-fsck-root.service \
3813         tmp.mount
3814 MULTI_USER_TARGET_WANTS += \
3815         getty.target \
3816         systemd-ask-password-wall.path
3817 SYSINIT_TARGET_WANTS += \
3818         dev-hugepages.mount \
3819         dev-mqueue.mount \
3820         sys-kernel-config.mount \
3821         sys-kernel-debug.mount \
3822         sys-fs-fuse-connections.mount \
3823         systemd-tmpfiles-setup.service \
3824         systemd-sysctl.service \
3825         systemd-ask-password-console.path
3826 BASIC_TARGET_WANTS += \
3827         systemd-tmpfiles-clean.timer
3828
3829 if HAVE_SYSV_COMPAT
3830 SYSTEM_UNIT_ALIASES += \
3831         poweroff.target runlevel0.target \
3832         rescue.target runlevel1.target \
3833         multi-user.target runlevel2.target \
3834         multi-user.target runlevel3.target \
3835         multi-user.target runlevel4.target \
3836         graphical.target runlevel5.target \
3837         reboot.target runlevel6.target
3838 endif
3839
3840 SYSTEM_UNIT_ALIASES += \
3841         graphical.target default.target \
3842         reboot.target ctrl-alt-del.target \
3843         getty@.service autovt@.service
3844
3845 USER_UNIT_ALIASES += \
3846         $(systemunitdir)/shutdown.target shutdown.target \
3847         $(systemunitdir)/sockets.target sockets.target \
3848         $(systemunitdir)/bluetooth.target bluetooth.target \
3849         $(systemunitdir)/printer.target printer.target \
3850         $(systemunitdir)/sound.target sound.target
3851
3852 GENERAL_ALIASES += \
3853         $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
3854         $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
3855         $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
3856         ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
3857
3858 if HAVE_SYSV_COMPAT
3859 INSTALL_DIRS += \
3860         $(systemunitdir)/runlevel1.target.wants \
3861         $(systemunitdir)/runlevel2.target.wants \
3862         $(systemunitdir)/runlevel3.target.wants \
3863         $(systemunitdir)/runlevel4.target.wants \
3864         $(systemunitdir)/runlevel5.target.wants
3865 endif
3866
3867 INSTALL_DIRS += \