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