chiark / gitweb /
791508bb0ffa827eb3134d8ea11c924f6bb97467
[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/capability.c \
743         src/shared/capability.h \
744         src/shared/linux/auto_dev-ioctl.h \
745         src/shared/ioprio.h \
746         src/shared/missing.h \
747         src/shared/initreq.h \
748         src/shared/securebits.h \
749         src/shared/special.h \
750         src/shared/list.h \
751         src/shared/unaligned.h \
752         src/shared/macro.h \
753         src/shared/def.h \
754         src/shared/sparse-endian.h \
755         src/shared/refcnt.h \
756         src/shared/udev-util.h \
757         src/shared/bus-errors.h \
758         src/shared/bus-errors.c \
759         src/shared/device-nodes.c \
760         src/shared/device-nodes.h \
761         src/shared/util.c \
762         src/shared/util.h \
763         src/shared/virt.c \
764         src/shared/virt.h \
765         src/shared/architecture.c \
766         src/shared/architecture.h \
767         src/shared/efivars.c \
768         src/shared/efivars.h \
769         src/shared/path-util.c \
770         src/shared/path-util.h \
771         src/shared/time-util.c \
772         src/shared/time-util.h \
773         src/shared/locale-util.c \
774         src/shared/locale-util.h \
775         src/shared/mempool.c \
776         src/shared/mempool.h \
777         src/shared/hashmap.c \
778         src/shared/hashmap.h \
779         src/shared/siphash24.c \
780         src/shared/siphash24.h \
781         src/shared/set.h \
782         src/shared/fdset.c \
783         src/shared/fdset.h \
784         src/shared/prioq.c \
785         src/shared/prioq.h \
786         src/shared/sleep-config.c \
787         src/shared/sleep-config.h \
788         src/shared/strv.c \
789         src/shared/strv.h \
790         src/shared/env-util.c \
791         src/shared/env-util.h \
792         src/shared/strbuf.c \
793         src/shared/strbuf.h \
794         src/shared/strxcpyx.c \
795         src/shared/strxcpyx.h \
796         src/shared/conf-parser.c \
797         src/shared/conf-parser.h \
798         src/shared/log.c \
799         src/shared/log.h \
800         src/shared/ratelimit.h \
801         src/shared/ratelimit.c \
802         src/shared/exit-status.c \
803         src/shared/exit-status.h \
804         src/shared/utf8.c \
805         src/shared/utf8.h \
806         src/shared/gunicode.c \
807         src/shared/gunicode.h \
808         src/shared/pager.c \
809         src/shared/pager.h \
810         src/shared/socket-util.c \
811         src/shared/socket-util.h \
812         src/shared/in-addr-util.c \
813         src/shared/in-addr-util.h \
814         src/shared/conf-files.c \
815         src/shared/conf-files.h \
816         src/shared/cgroup-util.c \
817         src/shared/cgroup-util.h \
818         src/shared/cgroup-show.c \
819         src/shared/cgroup-show.h \
820         src/shared/unit-name.c \
821         src/shared/unit-name.h \
822         src/shared/utmp-wtmp.h \
823         src/shared/watchdog.c \
824         src/shared/watchdog.h \
825         src/shared/spawn-ask-password-agent.c \
826         src/shared/spawn-ask-password-agent.h \
827         src/shared/replace-var.c \
828         src/shared/replace-var.h \
829         src/shared/spawn-polkit-agent.c \
830         src/shared/spawn-polkit-agent.h \
831         src/shared/clock-util.c \
832         src/shared/clock-util.h \
833         src/shared/time-dst.c \
834         src/shared/time-dst.h \
835         src/shared/calendarspec.c \
836         src/shared/calendarspec.h \
837         src/shared/fileio.c \
838         src/shared/fileio.h \
839         src/shared/output-mode.h \
840         src/shared/MurmurHash2.c \
841         src/shared/MurmurHash2.h \
842         src/shared/acpi-fpdt.h \
843         src/shared/acpi-fpdt.c \
844         src/shared/boot-timestamps.h \
845         src/shared/boot-timestamps.c \
846         src/shared/mkdir.c \
847         src/shared/mkdir.h \
848         src/shared/smack-util.c \
849         src/shared/smack-util.h \
850         src/shared/apparmor-util.c \
851         src/shared/apparmor-util.h \
852         src/shared/ima-util.c \
853         src/shared/ima-util.h \
854         src/shared/ptyfwd.c \
855         src/shared/ptyfwd.h \
856         src/shared/errno-list.c \
857         src/shared/errno-list.h \
858         src/shared/af-list.c \
859         src/shared/af-list.h \
860         src/shared/arphrd-list.c \
861         src/shared/arphrd-list.h \
862         src/shared/audit.c \
863         src/shared/audit.h \
864         src/shared/xml.c \
865         src/shared/xml.h \
866         src/shared/bus-label.c \
867         src/shared/bus-label.h \
868         src/shared/gpt.h \
869         src/shared/clean-ipc.h \
870         src/shared/clean-ipc.c \
871         src/shared/login-shared.c \
872         src/shared/login-shared.h \
873         src/shared/ring.c \
874         src/shared/ring.h \
875         src/shared/barrier.c \
876         src/shared/barrier.h \
877         src/shared/pty.c \
878         src/shared/pty.h \
879         src/shared/async.c \
880         src/shared/async.h \
881         src/shared/copy.c \
882         src/shared/copy.h \
883         src/shared/base-filesystem.c \
884         src/shared/base-filesystem.h \
885         src/shared/memfd-util.c \
886         src/shared/memfd-util.h \
887         src/shared/uid-range.c \
888         src/shared/uid-range.h \
889         src/shared/nss-util.h
890
891 if HAVE_UTMP
892 libsystemd_shared_la_SOURCES += \
893         src/shared/utmp-wtmp.c
894 endif
895
896 nodist_libsystemd_shared_la_SOURCES = \
897         src/shared/errno-from-name.h \
898         src/shared/errno-to-name.h \
899         src/shared/af-from-name.h \
900         src/shared/af-to-name.h \
901         src/shared/arphrd-from-name.h \
902         src/shared/arphrd-to-name.h
903
904 libsystemd_shared_la_CFLAGS = \
905         $(AM_CFLAGS) \
906         $(CAP_CFLAGS) \
907         $(SECCOMP_CFLAGS) \
908         -pthread
909
910 libsystemd_shared_la_LIBADD = \
911         $(CAP_LIBS)
912
913 # ------------------------------------------------------------------------------
914 noinst_LTLIBRARIES += \
915         libsystemd-units.la
916
917 libsystemd_units_la_SOURCES = \
918         src/shared/install.c \
919         src/shared/install.h \
920         src/shared/install-printf.c \
921         src/shared/install-printf.h \
922         src/shared/path-lookup.c \
923         src/shared/path-lookup.h \
924         src/shared/specifier.c \
925         src/shared/specifier.h
926
927 # ------------------------------------------------------------------------------
928 noinst_LTLIBRARIES += \
929         libsystemd-label.la
930
931 libsystemd_label_la_SOURCES = \
932         src/shared/socket-label.c \
933         src/shared/label.c \
934         src/shared/label.h \
935         src/shared/selinux-util.c \
936         src/shared/selinux-util.h \
937         src/shared/mkdir-label.c \
938         src/shared/ask-password-api.c \
939         src/shared/ask-password-api.h \
940         src/shared/switch-root.h \
941         src/shared/switch-root.c \
942         src/shared/fileio-label.c \
943         src/shared/fileio-label.h \
944         src/shared/dev-setup.c \
945         src/shared/dev-setup.h \
946         src/shared/dropin.c \
947         src/shared/dropin.h \
948         src/shared/condition.c \
949         src/shared/condition.h \
950         src/shared/generator.h \
951         src/shared/generator.c
952
953 libsystemd_label_la_CFLAGS = \
954         $(AM_CFLAGS) \
955         $(SELINUX_CFLAGS)
956
957 libsystemd_label_la_LIBADD = \
958         $(SELINUX_LIBS)
959
960 # -----------------------------------------------------------------------------
961
962 if ENABLE_LDCONFIG
963 dist_systemunit_DATA += \
964         units/ldconfig.service
965
966 SYSINIT_TARGET_WANTS += \
967         ldconfig.service
968 endif
969
970 # ------------------------------------------------------------------------------
971
972 if HAVE_SECCOMP
973 noinst_LTLIBRARIES += \
974         libsystemd-seccomp.la
975
976 libsystemd_seccomp_la_SOURCES = \
977         src/shared/seccomp-util.h \
978         src/shared/seccomp-util.c
979
980 libsystemd_seccomp_la_CFLAGS = \
981         $(AM_CFLAGS) \
982         $(SECCOMP_CFLAGS)
983
984 libsystemd_seccomp_la_LIBADD = \
985         $(SECCOMP_LIBS)
986 endif
987
988 # ------------------------------------------------------------------------------
989 noinst_LTLIBRARIES += \
990         libsystemd-logs.la
991
992 libsystemd_logs_la_SOURCES = \
993         src/shared/logs-show.c \
994         src/shared/logs-show.h
995
996 # ------------------------------------------------------------------------------
997 if HAVE_ACL
998 noinst_LTLIBRARIES += \
999         libsystemd-acl.la
1000
1001 libsystemd_acl_la_SOURCES = \
1002         src/shared/acl-util.c \
1003         src/shared/acl-util.h
1004
1005 libsystemd_acl_la_CFLAGS = \
1006         $(AM_CFLAGS) \
1007         $(ACL_CFLAGS)
1008
1009 libsystemd_acl_la_LIBADD = \
1010         $(ACL_LIBS)
1011 endif
1012
1013 # ------------------------------------------------------------------------------
1014 noinst_LTLIBRARIES += \
1015         libsystemd-core.la
1016
1017 libsystemd_core_la_SOURCES = \
1018         src/core/unit.c \
1019         src/core/unit.h \
1020         src/core/unit-printf.c \
1021         src/core/unit-printf.h \
1022         src/core/job.c \
1023         src/core/job.h \
1024         src/core/manager.c \
1025         src/core/manager.h \
1026         src/core/transaction.c \
1027         src/core/transaction.h \
1028         src/core/load-fragment.c \
1029         src/core/load-fragment.h \
1030         src/core/service.c \
1031         src/core/service.h \
1032         src/core/socket.c \
1033         src/core/socket.h \
1034         src/core/busname.c \
1035         src/core/busname.h \
1036         src/core/bus-common.c \
1037         src/core/bus-common.h \
1038         src/core/bus-endpoint.c \
1039         src/core/bus-endpoint.h \
1040         src/core/target.c \
1041         src/core/target.h \
1042         src/core/snapshot.c \
1043         src/core/snapshot.h \
1044         src/core/device.c \
1045         src/core/device.h \
1046         src/core/mount.c \
1047         src/core/mount.h \
1048         src/core/automount.c \
1049         src/core/automount.h \
1050         src/core/swap.c \
1051         src/core/swap.h \
1052         src/core/timer.c \
1053         src/core/timer.h \
1054         src/core/path.c \
1055         src/core/path.h \
1056         src/core/slice.c \
1057         src/core/slice.h \
1058         src/core/scope.c \
1059         src/core/scope.h \
1060         src/core/load-dropin.c \
1061         src/core/load-dropin.h \
1062         src/core/execute.c \
1063         src/core/execute.h \
1064         src/core/kill.c \
1065         src/core/kill.h \
1066         src/core/dbus.c \
1067         src/core/dbus.h \
1068         src/core/dbus-manager.c \
1069         src/core/dbus-manager.h \
1070         src/core/dbus-unit.c \
1071         src/core/dbus-unit.h \
1072         src/core/dbus-job.c \
1073         src/core/dbus-job.h \
1074         src/core/dbus-service.c \
1075         src/core/dbus-service.h \
1076         src/core/dbus-socket.c \
1077         src/core/dbus-socket.h \
1078         src/core/dbus-busname.c \
1079         src/core/dbus-busname.h \
1080         src/core/dbus-target.c \
1081         src/core/dbus-target.h \
1082         src/core/dbus-snapshot.c \
1083         src/core/dbus-snapshot.h \
1084         src/core/dbus-device.c \
1085         src/core/dbus-device.h \
1086         src/core/dbus-mount.c \
1087         src/core/dbus-mount.h \
1088         src/core/dbus-automount.c \
1089         src/core/dbus-automount.h \
1090         src/core/dbus-swap.c \
1091         src/core/dbus-swap.h \
1092         src/core/dbus-timer.c \
1093         src/core/dbus-timer.h \
1094         src/core/dbus-path.c \
1095         src/core/dbus-path.h \
1096         src/core/dbus-slice.c \
1097         src/core/dbus-slice.h \
1098         src/core/dbus-scope.c \
1099         src/core/dbus-scope.h \
1100         src/core/dbus-execute.c \
1101         src/core/dbus-execute.h \
1102         src/core/dbus-kill.c \
1103         src/core/dbus-kill.h \
1104         src/core/dbus-cgroup.c \
1105         src/core/dbus-cgroup.h \
1106         src/core/cgroup.c \
1107         src/core/cgroup.h \
1108         src/core/selinux-access.c \
1109         src/core/selinux-access.h \
1110         src/core/selinux-setup.c \
1111         src/core/selinux-setup.h \
1112         src/core/smack-setup.c \
1113         src/core/smack-setup.h \
1114         src/core/ima-setup.c \
1115         src/core/ima-setup.h \
1116         src/core/locale-setup.h \
1117         src/core/locale-setup.c \
1118         src/core/hostname-setup.c \
1119         src/core/hostname-setup.h \
1120         src/core/machine-id-setup.c \
1121         src/core/machine-id-setup.h \
1122         src/core/mount-setup.c \
1123         src/core/mount-setup.h \
1124         src/core/kmod-setup.c \
1125         src/core/kmod-setup.h \
1126         src/core/loopback-setup.h \
1127         src/core/loopback-setup.c \
1128         src/core/namespace.c \
1129         src/core/namespace.h \
1130         src/core/build.h \
1131         src/core/sysfs-show.h \
1132         src/core/killall.h \
1133         src/core/killall.c \
1134         src/core/audit-fd.c \
1135         src/core/audit-fd.h \
1136         src/core/show-status.c \
1137         src/core/show-status.h \
1138         src/core/failure-action.c \
1139         src/core/failure-action.h
1140
1141 nodist_libsystemd_core_la_SOURCES = \
1142         src/core/load-fragment-gperf.c \
1143         src/core/load-fragment-gperf-nulstr.c
1144
1145 libsystemd_core_la_CFLAGS = \
1146         $(AM_CFLAGS) \
1147         $(PAM_CFLAGS) \
1148         $(AUDIT_CFLAGS) \
1149         $(KMOD_CFLAGS) \
1150         $(APPARMOR_CFLAGS) \
1151         $(SECCOMP_CFLAGS) \
1152         $(MOUNT_CFLAGS) \
1153         -pthread
1154
1155 libsystemd_core_la_LIBADD = \
1156         libsystemd-units.la \
1157         libsystemd-label.la \
1158         libudev-internal.la \
1159         libsystemd-shared.la \
1160         libsystemd-internal.la \
1161         $(PAM_LIBS) \
1162         $(AUDIT_LIBS) \
1163         $(KMOD_LIBS) \
1164         $(APPARMOR_LIBS) \
1165         $(SECCOMP_LIBS) \
1166         $(MOUNT_LIBS)
1167
1168 if HAVE_SECCOMP
1169 libsystemd_core_la_LIBADD += \
1170         libsystemd-seccomp.la
1171 endif
1172
1173 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1174         $(AM_V_at)$(MKDIR_P) $(dir $@)
1175         $(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 ";" }' < $< > $@
1176
1177 EXTRA_DIST += \
1178         src/core/load-fragment-gperf.gperf.m4
1179
1180 CLEANFILES += \
1181         src/core/load-fragment-gperf.gperf \
1182         src/core/load-fragment-gperf.c \
1183         src/core/load-fragment-gperf-nulstr.c \
1184         src/shared/errno-list.txt \
1185         src/shared/errno-from-name.gperf \
1186         src/shared/af-list.txt \
1187         src/shared/af-from-name.gperf \
1188         src/shared/arphrd-list.txt \
1189         src/shared/arphrd-from-name.gperf \
1190         src/shared/dns_type-list.txt \
1191         src/shared/dns_type-from-name.gperf
1192
1193 BUILT_SOURCES += \
1194         src/shared/errno-from-name.h \
1195         src/shared/errno-to-name.h \
1196         src/shared/af-from-name.h \
1197         src/shared/af-to-name.h \
1198         src/shared/arphrd-from-name.h \
1199         src/shared/arphrd-to-name.h \
1200         src/resolve/dns_type-from-name.h \
1201         src/resolve/dns_type-to-name.h
1202
1203 %-from-name.gperf: %-list.txt
1204         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1205
1206 %-from-name.h: %-from-name.gperf
1207         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1208
1209
1210 src/shared/errno-list.txt:
1211         $(AM_V_at)$(MKDIR_P) $(dir $@)
1212         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1213
1214 src/shared/errno-to-name.h: src/shared/errno-list.txt
1215         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1216
1217
1218 src/shared/af-list.txt:
1219         $(AM_V_at)$(MKDIR_P) $(dir $@)
1220         $(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; }' >$@
1221
1222 src/shared/af-to-name.h: src/shared/af-list.txt
1223         $(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 "};"}' <$< >$@
1224
1225 src/shared/arphrd-list.txt:
1226         $(AM_V_at)$(MKDIR_P) $(dir $@)
1227         $(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_//' >$@
1228
1229 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1230         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1231
1232 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1233         $(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 }' <$< >$@
1234
1235
1236 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1237         $(AM_V_at)$(MKDIR_P) $(dir $@)
1238         $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1239
1240 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1241         $(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" }' <$< >$@
1242
1243 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1244         $(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 }' <$< >$@
1245
1246 # ------------------------------------------------------------------------------
1247 systemd_SOURCES = \
1248         src/core/main.c
1249
1250 systemd_CFLAGS = \
1251         $(AM_CFLAGS) \
1252         $(SECCOMP_CFLAGS)
1253
1254 systemd_LDADD = \
1255         libsystemd-core.la \
1256         $(RT_LIBS)
1257
1258 dist_pkgsysconf_DATA += \
1259         src/core/system.conf \
1260         src/core/user.conf
1261
1262 dist_dbuspolicy_DATA += \
1263         src/core/org.freedesktop.systemd1.conf
1264
1265 dist_dbussystemservice_DATA += \
1266         src/core/org.freedesktop.systemd1.service
1267
1268 polkitpolicy_in_in_files += \
1269         src/core/org.freedesktop.systemd1.policy.in.in
1270
1271 pkgconfigdata_DATA = \
1272         src/core/systemd.pc
1273
1274 nodist_rpmmacros_DATA = \
1275         src/core/macros.systemd
1276
1277 EXTRA_DIST += \
1278         src/core/systemd.pc.in \
1279         src/core/macros.systemd.in
1280
1281 CLEANFILES += \
1282         src/core/macros.systemd \
1283         src/core/org.freedesktop.systemd1.policy.in
1284
1285 # ------------------------------------------------------------------------------
1286
1287 manual_tests += \
1288         test-ns \
1289         test-loopback \
1290         test-hostname \
1291         test-daemon \
1292         test-cgroup \
1293         test-install \
1294         test-watchdog \
1295         test-log \
1296         test-ipcrm
1297
1298 if HAVE_KMOD
1299 manual_tests += \
1300         test-rtnl-manual
1301 endif
1302
1303 tests += \
1304         test-engine \
1305         test-cgroup-mask \
1306         test-job-type \
1307         test-env-replace \
1308         test-strbuf \
1309         test-strv \
1310         test-path \
1311         test-path-util \
1312         test-strxcpyx \
1313         test-unit-name \
1314         test-unit-file \
1315         test-utf8 \
1316         test-ellipsize \
1317         test-util \
1318         test-ring \
1319         test-barrier \
1320         test-pty \
1321         test-tmpfiles \
1322         test-namespace \
1323         test-date \
1324         test-sleep \
1325         test-replace-var \
1326         test-sched-prio \
1327         test-calendarspec \
1328         test-strip-tab-ansi \
1329         test-cgroup-util \
1330         test-prioq \
1331         test-fileio \
1332         test-time \
1333         test-hashmap \
1334         test-set \
1335         test-list \
1336         test-unaligned \
1337         test-tables \
1338         test-device-nodes \
1339         test-xml \
1340         test-architecture \
1341         test-socket-util \
1342         test-fdset \
1343         test-conf-files \
1344         test-capability \
1345         test-async \
1346         test-ratelimit \
1347         test-condition \
1348         test-uid-range \
1349         test-bus-policy \
1350         test-locale-util \
1351         test-execute \
1352         test-copy
1353
1354 EXTRA_DIST += \
1355         test/a.service \
1356         test/basic.target \
1357         test/b.service \
1358         test/c.service \
1359         test/daughter.service \
1360         test/d.service \
1361         test/end.service \
1362         test/e.service \
1363         test/f.service \
1364         test/grandchild.service \
1365         test/g.service \
1366         test/hello-after-sleep.target \
1367         test/hello.service \
1368         test/h.service \
1369         test/parent-deep.slice \
1370         test/parent.slice \
1371         test/paths.target \
1372         test/sched_idle_bad.service \
1373         test/sched_idle_ok.service \
1374         test/sched_rr_bad.service \
1375         test/sched_rr_change.service \
1376         test/sched_rr_ok.service \
1377         test/shutdown.target \
1378         test/sleep.service \
1379         test/sockets.target \
1380         test/son.service \
1381         test/sysinit.target \
1382         test/testsuite.target \
1383         test/timers.target \
1384         test/unstoppable.service \
1385         test/bus-policy/hello.conf \
1386         test/bus-policy/methods.conf \
1387         test/bus-policy/ownerships.conf \
1388         test/bus-policy/signals.conf \
1389         test/bus-policy/check-own-rules.conf \
1390         test/bus-policy/many-rules.conf \
1391         test/bus-policy/test.conf
1392
1393
1394 EXTRA_DIST += \
1395         src/test/test-helper.h
1396
1397 test_device_nodes_SOURCES = \
1398         src/test/test-device-nodes.c
1399
1400 test_device_nodes_LDADD = \
1401         libsystemd-shared.la
1402
1403 test_engine_SOURCES = \
1404         src/test/test-engine.c
1405
1406 test_engine_CFLAGS = \
1407         $(AM_CFLAGS) \
1408         $(SECCOMP_CFLAGS)
1409
1410 test_engine_LDADD = \
1411         libsystemd-core.la \
1412         $(RT_LIBS)
1413
1414 test_job_type_SOURCES = \
1415         src/test/test-job-type.c
1416
1417 test_job_type_CFLAGS = \
1418         $(AM_CFLAGS) \
1419         $(SECCOMP_CFLAGS)
1420
1421 test_job_type_LDADD = \
1422         libsystemd-core.la \
1423         $(RT_LIBS)
1424
1425 test_ns_SOURCES = \
1426         src/test/test-ns.c
1427
1428 test_ns_CFLAGS = \
1429         $(AM_CFLAGS) \
1430         $(SECCOMP_CFLAGS)
1431
1432 test_ns_LDADD = \
1433         libsystemd-core.la
1434
1435 test_loopback_SOURCES = \
1436         src/test/test-loopback.c
1437
1438 test_loopback_LDADD = \
1439         libsystemd-core.la
1440
1441 test_hostname_SOURCES = \
1442         src/test/test-hostname.c
1443
1444 test_hostname_LDADD = \
1445         libsystemd-core.la
1446
1447 if ENABLE_EFI
1448 manual_tests += \
1449         test-boot-timestamp
1450
1451 test_boot_timestamp_SOURCES = \
1452         src/test/test-boot-timestamps.c
1453
1454 test_boot_timestamp_LDADD = \
1455         libsystemd-shared.la
1456 endif
1457
1458 test_unit_name_SOURCES = \
1459         src/test/test-unit-name.c
1460
1461 test_unit_name_CFLAGS = \
1462         $(AM_CFLAGS) \
1463         $(SECCOMP_CFLAGS)
1464
1465 test_unit_name_LDADD = \
1466         libsystemd-core.la \
1467         $(RT_LIBS)
1468
1469 test_unit_file_SOURCES = \
1470         src/test/test-unit-file.c
1471
1472 test_unit_file_CFLAGS = \
1473         $(AM_CFLAGS) \
1474         $(SECCOMP_CFLAGS)
1475
1476 test_unit_file_LDADD = \
1477         libsystemd-core.la \
1478         $(RT_LIBS)
1479
1480 test_utf8_SOURCES = \
1481         src/test/test-utf8.c
1482
1483 test_utf8_LDADD = \
1484         libsystemd-shared.la
1485
1486 test_capability_SOURCES = \
1487         src/test/test-capability.c
1488
1489 test_capability_LDADD = \
1490         libsystemd-shared.la
1491
1492 test_async_SOURCES = \
1493         src/test/test-async.c
1494
1495 test_async_LDADD = \
1496         libsystemd-shared.la
1497
1498 test_locale_util_SOURCES = \
1499         src/test/test-locale-util.c
1500
1501 test_locale_util_LDADD = \
1502         libsystemd-shared.la
1503
1504 test_copy_SOURCES = \
1505         src/test/test-copy.c
1506
1507 test_copy_LDADD = \
1508         libsystemd-shared.la
1509
1510 test_condition_SOURCES = \
1511         src/test/test-condition.c
1512
1513 test_condition_LDADD = \
1514         libsystemd-label.la \
1515         libsystemd-internal.la \
1516         libsystemd-shared.la
1517
1518 test_fdset_SOURCES = \
1519         src/test/test-fdset.c
1520
1521 test_fdset_LDADD = \
1522         libsystemd-shared.la \
1523         libsystemd-internal.la
1524
1525 test_ratelimit_SOURCES = \
1526         src/test/test-ratelimit.c
1527
1528 test_ratelimit_LDADD = \
1529         libsystemd-shared.la
1530
1531 test_util_SOURCES = \
1532         src/test/test-util.c
1533
1534 test_util_LDADD = \
1535         -lm \
1536         libsystemd-shared.la
1537
1538 test_uid_range_SOURCES = \
1539         src/test/test-uid-range.c
1540
1541 test_uid_range_LDADD = \
1542         libsystemd-shared.la
1543
1544 test_socket_util_SOURCES = \
1545         src/test/test-socket-util.c
1546
1547 test_socket_util_LDADD = \
1548         libsystemd-shared.la
1549
1550 test_ring_SOURCES = \
1551         src/test/test-ring.c
1552
1553 test_ring_LDADD = \
1554         libsystemd-shared.la
1555
1556 test_barrier_SOURCES = \
1557         src/test/test-barrier.c
1558
1559 test_barrier_LDADD = \
1560         libsystemd-shared.la
1561
1562 test_pty_SOURCES = \
1563         src/test/test-pty.c
1564
1565 test_pty_LDADD = \
1566         libsystemd-core.la
1567
1568 test_tmpfiles_SOURCES = \
1569         src/test/test-tmpfiles.c
1570
1571 test_tmpfiles_LDADD = \
1572         libsystemd-shared.la
1573
1574 test_namespace_SOURCES = \
1575         src/test/test-namespace.c
1576
1577 test_namespace_LDADD = \
1578         libsystemd-core.la
1579
1580 CLEANFILES += \
1581         src/test/test-hashmap-ordered.c
1582
1583 BUILT_SOURCES += \
1584         src/test/test-hashmap-ordered.c
1585
1586 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1587         $(AM_V_at)$(MKDIR_P) $(dir $@)
1588         $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1589                            { if (!match($$0, "^#include"))          \
1590                                  gsub(/hashmap/, "ordered_hashmap"); \
1591                              gsub(/HASHMAP/, "ORDERED_HASHMAP");     \
1592                              gsub(/Hashmap/, "OrderedHashmap");      \
1593                              print }' <$< >$@
1594
1595 nodist_test_hashmap_SOURCES = \
1596         src/test/test-hashmap-ordered.c
1597
1598 test_hashmap_SOURCES = \
1599         src/test/test-hashmap.c \
1600         src/test/test-hashmap-plain.c
1601
1602 test_hashmap_LDADD = \
1603         libsystemd-shared.la
1604
1605 test_set_SOURCES = \
1606         src/test/test-set.c
1607
1608 test_set_LDADD = \
1609         libsystemd-shared.la
1610
1611 test_xml_SOURCES = \
1612         src/test/test-xml.c
1613
1614 test_xml_LDADD = \
1615         libsystemd-shared.la
1616
1617 test_list_SOURCES = \
1618         src/test/test-list.c
1619
1620 test_list_LDADD = \
1621         libsystemd-shared.la
1622
1623 test_unaligned_LDADD = \
1624         libsystemd-shared.la
1625
1626 test_unaligned_SOURCES = \
1627         src/test/test-unaligned.c
1628
1629 test_tables_SOURCES = \
1630         src/test/test-tables.c \
1631         src/shared/test-tables.h \
1632         src/bus-proxyd/bus-policy.c \
1633         src/bus-proxyd/bus-policy.h \
1634         src/journal/journald-server.c \
1635         src/journal/journald-server.h
1636
1637 test_tables_CPPFLAGS = \
1638         $(AM_CPPFLAGS) \
1639         -I$(top_srcdir)/src/bus-proxyd
1640
1641 test_tables_CFLAGS = \
1642         $(AM_CFLAGS) \
1643         $(SECCOMP_CFLAGS)
1644
1645 test_tables_LDADD = \
1646         libsystemd-logs.la \
1647         libsystemd-journal-internal.la \
1648         libsystemd-journal-core.la \
1649         libsystemd-core.la \
1650         libudev-core.la \
1651         $(RT_LIBS)
1652
1653 test_prioq_SOURCES = \
1654         src/test/test-prioq.c
1655
1656 test_prioq_LDADD = \
1657         libsystemd-shared.la
1658
1659 test_fileio_SOURCES = \
1660         src/test/test-fileio.c
1661
1662 test_fileio_LDADD = \
1663         libsystemd-shared.la
1664
1665 test_time_SOURCES = \
1666         src/test/test-time.c
1667
1668 test_time_LDADD = \
1669         libsystemd-shared.la
1670
1671 test_architecture_SOURCES = \
1672         src/test/test-architecture.c
1673
1674 test_architecture_LDADD = \
1675         libsystemd-shared.la
1676
1677 test_log_SOURCES = \
1678         src/test/test-log.c
1679
1680 test_log_LDADD = \
1681         libsystemd-shared.la
1682
1683 test_ipcrm_SOURCES = \
1684         src/test/test-ipcrm.c
1685
1686 test_ipcrm_LDADD = \
1687         libsystemd-shared.la \
1688         -lrt
1689
1690 test_rtnl_manual_SOURCES = \
1691         src/test/test-rtnl-manual.c
1692
1693 test_rtnl_manual_CFLAGS = \
1694         $(AM_CFLAGS) \
1695         $(KMOD_CFLAGS)
1696
1697 test_rtnl_manual_LDADD = \
1698         libsystemd-internal.la \
1699         libsystemd-shared.la \
1700         $(KMOD_LIBS)
1701
1702 test_ellipsize_SOURCES = \
1703         src/test/test-ellipsize.c
1704
1705 test_ellipsize_LDADD = \
1706         libsystemd-shared.la
1707
1708 test_date_SOURCES = \
1709         src/test/test-date.c
1710
1711 test_date_LDADD = \
1712         libsystemd-shared.la
1713
1714 test_sleep_SOURCES = \
1715         src/test/test-sleep.c
1716
1717 test_sleep_LDADD = \
1718         libsystemd-core.la
1719
1720 test_replace_var_SOURCES = \
1721         src/test/test-replace-var.c
1722
1723 test_replace_var_LDADD = \
1724         libsystemd-shared.la
1725
1726 test_calendarspec_SOURCES = \
1727         src/test/test-calendarspec.c
1728
1729 test_calendarspec_LDADD = \
1730         libsystemd-shared.la
1731
1732 test_strip_tab_ansi_SOURCES = \
1733         src/test/test-strip-tab-ansi.c
1734
1735 test_strip_tab_ansi_LDADD = \
1736         libsystemd-shared.la
1737
1738 test_daemon_SOURCES = \
1739         src/test/test-daemon.c
1740
1741 test_daemon_LDADD = \
1742         libsystemd-internal.la \
1743         libsystemd-shared.la
1744
1745 test_cgroup_SOURCES = \
1746         src/test/test-cgroup.c
1747
1748 test_cgroup_LDADD = \
1749         libsystemd-label.la \
1750         libsystemd-shared.la \
1751         libsystemd-internal.la
1752
1753 test_cgroup_mask_SOURCES = \
1754         src/test/test-cgroup-mask.c
1755
1756 test_cgroup_mask_CPPFLAGS = \
1757         $(AM_CPPFLAGS)
1758
1759 test_cgroup_mask_CFLAGS = \
1760         $(AM_CFLAGS) \
1761         $(SECCOMP_CFLAGS)
1762
1763 test_cgroup_mask_LDADD = \
1764         libsystemd-core.la \
1765         $(RT_LIBS)
1766
1767 test_cgroup_util_SOURCES = \
1768         src/test/test-cgroup-util.c
1769
1770 test_cgroup_util_LDADD = \
1771         libsystemd-label.la \
1772         libsystemd-internal.la \
1773         libsystemd-shared.la
1774
1775 test_env_replace_SOURCES = \
1776         src/test/test-env-replace.c
1777
1778 test_env_replace_LDADD = \
1779         libsystemd-shared.la
1780
1781 test_strbuf_SOURCES = \
1782         src/test/test-strbuf.c
1783
1784 test_strbuf_LDADD = \
1785         libsystemd-shared.la
1786
1787 test_strv_SOURCES = \
1788         src/test/test-strv.c
1789
1790 test_strv_LDADD = \
1791         libsystemd-units.la \
1792         libsystemd-internal.la \
1793         libsystemd-shared.la
1794
1795 test_path_util_SOURCES = \
1796         src/test/test-path-util.c
1797
1798 test_path_util_LDADD = \
1799         libsystemd-shared.la
1800
1801 test_path_SOURCES = \
1802         src/test/test-path.c
1803
1804 test_path_CFLAGS = \
1805         $(AM_CFLAGS)
1806
1807 test_path_LDADD = \
1808         libsystemd-core.la
1809
1810 test_execute_SOURCES = \
1811         src/test/test-execute.c
1812
1813 test_execute_CFLAGS = \
1814         $(AM_CFLAGS)
1815
1816 test_execute_LDADD = \
1817         libsystemd-core.la
1818
1819 test_strxcpyx_SOURCES = \
1820         src/test/test-strxcpyx.c
1821
1822 test_strxcpyx_LDADD = \
1823         libsystemd-shared.la
1824
1825 test_install_SOURCES = \
1826         src/test/test-install.c
1827
1828 test_install_LDADD = \
1829         libsystemd-units.la \
1830         libsystemd-label.la \
1831         libsystemd-shared.la \
1832         libsystemd-internal.la
1833
1834 test_watchdog_SOURCES = \
1835         src/test/test-watchdog.c
1836
1837 test_watchdog_LDADD = \
1838         libsystemd-shared.la
1839
1840 test_sched_prio_SOURCES = \
1841         src/test/test-sched-prio.c
1842
1843 test_sched_prio_CPPFLAGS = \
1844         $(AM_CPPFLAGS)
1845
1846 test_sched_prio_CFLAGS = \
1847         $(AM_CFLAGS) \
1848         $(SECCOMP_CFLAGS)
1849
1850 test_sched_prio_LDADD = \
1851         libsystemd-core.la \
1852         $(RT_LIBS)
1853
1854 test_conf_files_SOURCES = \
1855         src/test/test-conf-files.c
1856
1857 test_conf_files_LDADD = \
1858         libsystemd-shared.la
1859
1860 test_bus_policy_SOURCES = \
1861         src/bus-proxyd/test-bus-policy.c \
1862         src/bus-proxyd/bus-policy.c \
1863         src/bus-proxyd/bus-policy.h
1864
1865 test_bus_policy_LDADD = \
1866         libsystemd-internal.la \
1867         libsystemd-shared.la
1868
1869 # ------------------------------------------------------------------------------
1870 ## .PHONY so it always rebuilds it
1871 .PHONY: coverage lcov-run lcov-report coverage-sync
1872
1873 # run lcov from scratch, always
1874 coverage: all
1875         $(MAKE) lcov-run
1876         $(MAKE) lcov-report
1877
1878 coverage_dir = coverage
1879 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1880
1881 if ENABLE_COVERAGE
1882 # reset run coverage tests
1883 lcov-run:
1884         @rm -rf $(coverage_dir)
1885         lcov $(coverage_opts) --zerocounters
1886         -$(MAKE) check
1887
1888 # generate report based on current coverage data
1889 lcov-report:
1890         $(MKDIR_P) $(coverage_dir)
1891         lcov $(coverage_opts) --compat-libtool --capture --no-external \
1892                 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1893         lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1894         genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1895         @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1896
1897 # lcov doesn't work properly with vpath builds, make sure that bad
1898 # output is not uploaded by mistake.
1899 coverage-sync: coverage
1900         test "$(builddir)" = "$(srcdir)"
1901         rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1902
1903 else
1904 lcov-run lcov-report:
1905         echo "Need to reconfigure with --enable-coverage"
1906 endif
1907
1908 # ------------------------------------------------------------------------------
1909 systemd_analyze_SOURCES = \
1910         src/analyze/analyze.c \
1911         src/analyze/analyze-verify.c \
1912         src/analyze/analyze-verify.h
1913
1914 systemd_verify_CFLAGS = \
1915         $(AM_CFLAGS) \
1916         $(SECCOMP_CFLAGS)
1917
1918 systemd_analyze_LDADD = \
1919         libsystemd-core.la \
1920         libsystemd-internal.la \
1921         libsystemd-shared.la \
1922         $(RT_LIBS)
1923
1924 # ------------------------------------------------------------------------------
1925 systemd_initctl_SOURCES = \
1926         src/initctl/initctl.c
1927
1928 systemd_initctl_LDADD = \
1929         libsystemd-internal.la \
1930         libsystemd-shared.la
1931
1932 # ------------------------------------------------------------------------------
1933 systemd_update_utmp_SOURCES = \
1934         src/update-utmp/update-utmp.c
1935
1936 systemd_update_utmp_CFLAGS = \
1937         $(AM_CFLAGS) \
1938         $(AUDIT_CFLAGS)
1939
1940 systemd_update_utmp_LDADD = \
1941         libsystemd-internal.la \
1942         libsystemd-shared.la \
1943         $(AUDIT_LIBS)
1944
1945 # ------------------------------------------------------------------------------
1946 systemd_update_done_SOURCES = \
1947         src/update-done/update-done.c
1948
1949 systemd_update_done_LDADD = \
1950         libsystemd-internal.la \
1951         libsystemd-label.la \
1952         libsystemd-shared.la
1953
1954 # ------------------------------------------------------------------------------
1955 systemd_shutdownd_SOURCES = \
1956         src/shutdownd/shutdownd.c
1957
1958 systemd_shutdownd_LDADD = \
1959         libsystemd-label.la \
1960         libsystemd-internal.la \
1961         libsystemd-shared.la
1962
1963 dist_doc_DATA += \
1964         src/systemd/sd-shutdown.h
1965
1966 # ------------------------------------------------------------------------------
1967 systemd_shutdown_SOURCES = \
1968         src/core/umount.c \
1969         src/core/umount.h \
1970         src/core/shutdown.c \
1971         src/core/mount-setup.c \
1972         src/core/mount-setup.h \
1973         src/core/killall.h \
1974         src/core/killall.c
1975
1976 systemd_shutdown_LDADD = \
1977         libsystemd-label.la \
1978         libudev-internal.la \
1979         libsystemd-shared.la
1980
1981 # ------------------------------------------------------------------------------
1982 if HAVE_KMOD
1983 systemd_modules_load_SOURCES = \
1984         src/modules-load/modules-load.c
1985
1986 systemd_modules_load_CFLAGS = \
1987         $(AM_CFLAGS) \
1988         $(KMOD_CFLAGS)
1989
1990 systemd_modules_load_LDADD = \
1991         libsystemd-shared.la \
1992         $(KMOD_LIBS)
1993
1994 rootlibexec_PROGRAMS += \
1995         systemd-modules-load
1996
1997 nodist_systemunit_DATA += \
1998         units/systemd-modules-load.service
1999
2000 SYSINIT_TARGET_WANTS += \
2001         systemd-modules-load.service
2002
2003 if ENABLE_TMPFILES
2004 nodist_systemunit_DATA += \
2005         units/kmod-static-nodes.service
2006
2007 SYSINIT_TARGET_WANTS += \
2008         kmod-static-nodes.service
2009 endif
2010 endif
2011
2012 EXTRA_DIST += \
2013         units/systemd-modules-load.service.in \
2014         units/kmod-static-nodes.service.in
2015
2016 # ------------------------------------------------------------------------------
2017 if ENABLE_TMPFILES
2018 systemd_tmpfiles_SOURCES = \
2019         src/tmpfiles/tmpfiles.c
2020
2021 systemd_tmpfiles_LDADD = \
2022         libsystemd-units.la \
2023         libsystemd-label.la \
2024         libsystemd-internal.la \
2025         libsystemd-shared.la
2026
2027 rootbin_PROGRAMS += \
2028         systemd-tmpfiles
2029
2030 dist_systemunit_DATA += \
2031         units/systemd-tmpfiles-clean.timer
2032
2033 nodist_systemunit_DATA += \
2034         units/systemd-tmpfiles-setup-dev.service \
2035         units/systemd-tmpfiles-setup.service \
2036         units/systemd-tmpfiles-clean.service
2037
2038 nodist_tmpfiles_DATA = \
2039         tmpfiles.d/etc.conf
2040
2041 dist_tmpfiles_DATA = \
2042         tmpfiles.d/systemd.conf \
2043         tmpfiles.d/systemd-nologin.conf \
2044         tmpfiles.d/tmp.conf \
2045         tmpfiles.d/x11.conf \
2046         tmpfiles.d/var.conf
2047
2048 if HAVE_SYSV_COMPAT
2049 dist_tmpfiles_DATA += \
2050         tmpfiles.d/legacy.conf
2051 endif
2052
2053 SYSINIT_TARGET_WANTS += \
2054         systemd-tmpfiles-setup-dev.service \
2055         systemd-tmpfiles-setup.service
2056
2057 dist_zshcompletion_DATA += \
2058         shell-completion/zsh/_systemd-tmpfiles
2059
2060 TIMERS_TARGET_WANTS += \
2061         systemd-tmpfiles-clean.timer
2062
2063 INSTALL_DIRS += \
2064         $(tmpfilesdir) \
2065         $(sysconfdir)/tmpfiles.d
2066 endif
2067
2068 EXTRA_DIST += \
2069         tmpfiles.d/etc.conf.m4 \
2070         units/systemd-tmpfiles-setup-dev.service.in \
2071         units/systemd-tmpfiles-setup.service.in \
2072         units/systemd-tmpfiles-clean.service.in
2073
2074 CLEANFILES += \
2075         tmpfiles.d/etc.conf
2076
2077 # ------------------------------------------------------------------------------
2078 if ENABLE_SYSUSERS
2079 systemd_sysusers_SOURCES = \
2080         src/sysusers/sysusers.c
2081
2082 systemd_sysusers_LDADD = \
2083         libsystemd-units.la \
2084         libsystemd-label.la \
2085         libsystemd-internal.la \
2086         libsystemd-shared.la
2087
2088 rootbin_PROGRAMS += \
2089         systemd-sysusers
2090
2091 nodist_systemunit_DATA += \
2092         units/systemd-sysusers.service
2093
2094 SYSINIT_TARGET_WANTS += \
2095         systemd-sysusers.service
2096
2097 dist_sysusers_DATA = \
2098         sysusers.d/systemd.conf
2099
2100 nodist_sysusers_DATA = \
2101         sysusers.d/basic.conf
2102
2103 EXTRA_DIST += \
2104         units/systemd-sysusers.service.in \
2105         sysusers.d/basic.conf.in
2106
2107 CLEANFILES += \
2108         sysusers.d/basic.conf
2109
2110 INSTALL_DIRS += \
2111         $(sysusersdir)
2112 endif
2113
2114 # ------------------------------------------------------------------------------
2115 dist_factory_etc_DATA = \
2116         factory/etc/nsswitch.conf
2117
2118 if HAVE_PAM
2119 dist_factory_pam_DATA = \
2120         factory/etc/pam.d/system-auth \
2121         factory/etc/pam.d/other
2122 endif
2123
2124 # ------------------------------------------------------------------------------
2125 if ENABLE_FIRSTBOOT
2126 systemd_firstboot_SOURCES = \
2127         src/firstboot/firstboot.c
2128
2129 systemd_firstboot_LDADD = \
2130         libsystemd-units.la \
2131         libsystemd-label.la \
2132         libsystemd-internal.la \
2133         libsystemd-shared.la \
2134         -lcrypt
2135
2136 rootbin_PROGRAMS += \
2137         systemd-firstboot
2138
2139 nodist_systemunit_DATA += \
2140         units/systemd-firstboot.service
2141
2142 EXTRA_DIST += \
2143         units/systemd-firstboot.service.in
2144
2145 SYSINIT_TARGET_WANTS += \
2146         systemd-firstboot.service
2147 endif
2148
2149 # ------------------------------------------------------------------------------
2150 systemd_machine_id_setup_SOURCES = \
2151         src/machine-id-setup/machine-id-setup-main.c \
2152         src/core/machine-id-setup.c \
2153         src/core/machine-id-setup.h
2154
2155 systemd_machine_id_setup_LDADD = \
2156         libsystemd-label.la \
2157         libsystemd-internal.la \
2158         libsystemd-shared.la
2159
2160 # ------------------------------------------------------------------------------
2161 systemd_sysctl_SOURCES = \
2162         src/sysctl/sysctl.c
2163
2164 systemd_sysctl_LDADD = \
2165         libsystemd-shared.la
2166
2167 # ------------------------------------------------------------------------------
2168 systemd_sleep_SOURCES = \
2169         src/sleep/sleep.c
2170
2171 systemd_sleep_LDADD = \
2172         libsystemd-shared.la
2173
2174 # ------------------------------------------------------------------------------
2175 systemd_fsck_SOURCES = \
2176         src/fsck/fsck.c
2177
2178 systemd_fsck_LDADD = \
2179         libsystemd-internal.la \
2180         libudev-internal.la \
2181         libsystemd-shared.la
2182
2183 # ------------------------------------------------------------------------------
2184 systemd_ac_power_SOURCES = \
2185         src/ac-power/ac-power.c
2186
2187 systemd_ac_power_LDADD = \
2188         libudev-internal.la \
2189         libsystemd-shared.la
2190
2191 # ------------------------------------------------------------------------------
2192 systemd_detect_virt_SOURCES = \
2193         src/detect-virt/detect-virt.c
2194
2195 systemd_detect_virt_LDADD = \
2196         libsystemd-shared.la
2197
2198 INSTALL_EXEC_HOOKS += \
2199         systemd-detect-virt-install-hook
2200
2201 # ------------------------------------------------------------------------------
2202 systemd_delta_SOURCES = \
2203         src/delta/delta.c
2204
2205 systemd_delta_LDADD = \
2206         libsystemd-shared.la
2207
2208 # ------------------------------------------------------------------------------
2209 systemd_getty_generator_SOURCES = \
2210         src/getty-generator/getty-generator.c
2211
2212 systemd_getty_generator_LDADD = \
2213         libsystemd-label.la \
2214         libsystemd-shared.la
2215
2216 # ------------------------------------------------------------------------------
2217 systemd_debug_generator_SOURCES = \
2218         src/debug-generator/debug-generator.c
2219
2220 systemd_debug_generator_LDADD = \
2221         libsystemd-label.la \
2222         libsystemd-shared.la
2223
2224 # ------------------------------------------------------------------------------
2225 systemd_fstab_generator_SOURCES = \
2226         src/fstab-generator/fstab-generator.c \
2227         src/core/mount-setup.c
2228
2229 systemd_fstab_generator_LDADD = \
2230         libsystemd-label.la \
2231         libsystemd-shared.la
2232
2233 # ------------------------------------------------------------------------------
2234 systemd_system_update_generator_SOURCES = \
2235         src/system-update-generator/system-update-generator.c
2236
2237 systemd_system_update_generator_LDADD = \
2238         libsystemd-label.la \
2239         libsystemd-shared.la
2240
2241 # ------------------------------------------------------------------------------
2242 if ENABLE_HIBERNATE
2243 systemgenerator_PROGRAMS += \
2244         systemd-hibernate-resume-generator
2245
2246 rootlibexec_PROGRAMS += \
2247         systemd-hibernate-resume
2248
2249 systemd_hibernate_resume_SOURCES = \
2250         src/hibernate-resume/hibernate-resume.c
2251
2252 systemd_hibernate_resume_LDADD = \
2253         libsystemd-internal.la \
2254         libsystemd-shared.la
2255
2256 systemd_hibernate_resume_generator_SOURCES = \
2257         src/hibernate-resume/hibernate-resume-generator.c
2258
2259 systemd_hibernate_resume_generator_LDADD = \
2260         libsystemd-label.la \
2261         libsystemd-shared.la
2262
2263 EXTRA_DIST += \
2264         units/systemd-hibernate.service.in \
2265         units/systemd-hibernate-resume@.service.in \
2266         units/systemd-hybrid-sleep.service.in
2267
2268 dist_systemunit_DATA += \
2269         units/hibernate.target \
2270         units/hybrid-sleep.target
2271
2272 nodist_systemunit_DATA += \
2273         units/systemd-hibernate.service \
2274         units/systemd-hibernate-resume@.service \
2275         units/systemd-hybrid-sleep.service
2276 endif
2277
2278 # ------------------------------------------------------------------------------
2279 if ENABLE_EFI
2280 systemgenerator_PROGRAMS +=  \
2281         systemd-efi-boot-generator
2282
2283 systemd_efi_boot_generator_SOURCES = \
2284         src/efi-boot-generator/efi-boot-generator.c
2285
2286 systemd_efi_boot_generator_LDADD = \
2287         libsystemd-label.la \
2288         libsystemd-shared.la
2289
2290 # ------------------------------------------------------------------------------
2291 bootctl_SOURCES = \
2292         src/boot/boot.h \
2293         src/boot/boot-loader.h \
2294         src/boot/bootctl.c \
2295         src/boot/boot-loader.c \
2296         src/boot/boot-efi.c
2297
2298 bootctl_LDADD = \
2299         libsystemd-shared.la \
2300         libsystemd-internal.la
2301
2302 bin_PROGRAMS += \
2303         bootctl
2304
2305 dist_bashcompletion_DATA += \
2306         shell-completion/bash/bootctl
2307
2308 dist_zshcompletion_DATA += \
2309         shell-completion/zsh/_bootctl
2310
2311 endif
2312
2313 # ------------------------------------------------------------------------------
2314 if HAVE_BLKID
2315 systemgenerator_PROGRAMS +=  \
2316         systemd-gpt-auto-generator
2317
2318 systemd_gpt_auto_generator_SOURCES = \
2319         src/gpt-auto-generator/gpt-auto-generator.c \
2320         src/shared/blkid-util.h
2321
2322 systemd_gpt_auto_generator_LDADD = \
2323         libsystemd-label.la \
2324         libsystemd-internal.la \
2325         libudev-internal.la \
2326         libsystemd-shared.la \
2327         $(BLKID_LIBS)
2328
2329 systemd_gpt_auto_generator_CFLAGS = \
2330         $(AM_CFLAGS) \
2331         $(BLKID_CFLAGS)
2332 endif
2333
2334 # ------------------------------------------------------------------------------
2335 if ENABLE_KDBUS
2336 systemgenerator_PROGRAMS +=  \
2337         systemd-dbus1-generator
2338
2339 systemd_dbus1_generator_SOURCES = \
2340         src/dbus1-generator/dbus1-generator.c
2341
2342 systemd_dbus1_generator_LDADD = \
2343         libsystemd-label.la \
2344         libsystemd-shared.la \
2345         libsystemd-internal.la
2346
2347 dbus1-generator-install-hook:
2348         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2349         $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2350         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2351
2352 dbus1-generator-uninstall-hook:
2353         rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2354
2355 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2356 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2357 endif
2358
2359 # ------------------------------------------------------------------------------
2360 systemd_sysv_generator_SOURCES = \
2361         src/sysv-generator/sysv-generator.c
2362
2363 systemd_sysv_generator_LDADD = \
2364         libsystemd-core.la \
2365         libsystemd-label.la \
2366         libsystemd-shared.la
2367
2368 # ------------------------------------------------------------------------------
2369 systemd_rc_local_generator_SOURCES = \
2370         src/rc-local-generator/rc-local-generator.c
2371
2372 systemd_rc_local_generator_LDADD = \
2373         libsystemd-label.la \
2374         libsystemd-shared.la
2375
2376 # ------------------------------------------------------------------------------
2377 systemd_remount_fs_SOURCES = \
2378         src/remount-fs/remount-fs.c \
2379         src/core/mount-setup.c \
2380         src/core/mount-setup.h
2381
2382 systemd_remount_fs_LDADD = \
2383         libsystemd-label.la \
2384         libsystemd-shared.la
2385
2386 # ------------------------------------------------------------------------------
2387 systemd_cgroups_agent_SOURCES = \
2388         src/cgroups-agent/cgroups-agent.c
2389
2390 systemd_cgroups_agent_LDADD = \
2391         libsystemd-internal.la \
2392         libsystemd-shared.la
2393
2394 # ------------------------------------------------------------------------------
2395 systemd_escape_SOURCES = \
2396         src/escape/escape.c
2397
2398 systemd_escape_LDADD = \
2399         libsystemd-shared.la
2400
2401 # -----------------------------------------------------------------------------
2402 systemctl_SOURCES = \
2403         src/systemctl/systemctl.c
2404
2405 systemctl_LDADD = \
2406         libsystemd-units.la \
2407         libsystemd-label.la \
2408         libsystemd-internal.la \
2409         libsystemd-logs.la \
2410         libsystemd-journal-internal.la \
2411         libsystemd-shared.la
2412
2413 # ------------------------------------------------------------------------------
2414 systemd_notify_SOURCES = \
2415         src/notify/notify.c
2416
2417 systemd_notify_LDADD = \
2418         libsystemd-internal.la \
2419         libsystemd-shared.la
2420
2421 # ------------------------------------------------------------------------------
2422 systemd_path_SOURCES = \
2423         src/path/path.c
2424
2425 systemd_path_LDADD = \
2426         libsystemd-internal.la \
2427         libsystemd-shared.la
2428
2429 # ------------------------------------------------------------------------------
2430 systemd_ask_password_SOURCES = \
2431         src/ask-password/ask-password.c
2432
2433 systemd_ask_password_LDADD = \
2434         libsystemd-label.la \
2435         libsystemd-shared.la
2436
2437 # ------------------------------------------------------------------------------
2438 systemd_reply_password_SOURCES = \
2439         src/reply-password/reply-password.c
2440
2441 systemd_reply_password_LDADD = \
2442         libsystemd-shared.la
2443
2444 # ------------------------------------------------------------------------------
2445 systemd_cgls_SOURCES = \
2446         src/cgls/cgls.c
2447
2448 systemd_cgls_LDADD = \
2449         libsystemd-internal.la \
2450         libsystemd-shared.la
2451
2452 # ------------------------------------------------------------------------------
2453 systemd_cgtop_SOURCES = \
2454         src/cgtop/cgtop.c
2455
2456 systemd_cgtop_LDADD = \
2457         libsystemd-shared.la
2458
2459 # ------------------------------------------------------------------------------
2460 systemd_nspawn_SOURCES = \
2461         src/nspawn/nspawn.c \
2462         src/core/mount-setup.c \
2463         src/core/mount-setup.h \
2464         src/core/loopback-setup.c \
2465         src/core/loopback-setup.h
2466
2467 systemd_nspawn_CFLAGS = \
2468         $(AM_CFLAGS) \
2469         $(SECCOMP_CFLAGS) \
2470         $(BLKID_CFLAGS)
2471
2472 systemd_nspawn_LDADD = \
2473         libsystemd-label.la \
2474         libsystemd-internal.la \
2475         libudev-internal.la \
2476         libsystemd-shared.la \
2477         $(BLKID_LIBS)
2478
2479 if HAVE_SECCOMP
2480 systemd_nspawn_LDADD += \
2481         libsystemd-seccomp.la \
2482         $(SECCOMP_LIBS)
2483 endif
2484
2485 # ------------------------------------------------------------------------------
2486 systemd_run_SOURCES = \
2487         src/run/run.c
2488
2489 systemd_run_LDADD = \
2490         libsystemd-label.la \
2491         libsystemd-internal.la \
2492         libsystemd-shared.la
2493
2494 # ------------------------------------------------------------------------------
2495 systemd_bus_proxyd_SOURCES = \
2496         src/bus-proxyd/bus-proxyd.c \
2497         src/bus-proxyd/bus-policy.c \
2498         src/bus-proxyd/bus-policy.h
2499
2500 systemd_bus_proxyd_LDADD = \
2501         libsystemd-internal.la \
2502         libsystemd-shared.la
2503
2504 bus-proxyd-install-hook:
2505         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2506         $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2507         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2508
2509 bus-proxyd-uninstall-hook:
2510         rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2511
2512 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2513 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2514
2515 if ENABLE_KDBUS
2516 nodist_systemunit_DATA += \
2517         units/systemd-bus-proxyd@.service
2518
2519 dist_systemunit_DATA += \
2520         units/systemd-bus-proxyd.socket
2521
2522 nodist_userunit_DATA += \
2523         units/user/systemd-bus-proxyd@.service
2524
2525 dist_userunit_DATA += \
2526         units/user/systemd-bus-proxyd.socket
2527 endif
2528
2529 EXTRA_DIST += \
2530         units/systemd-bus-proxyd@.service.in \
2531         units/user/systemd-bus-proxyd@.service.in
2532
2533 # ------------------------------------------------------------------------------
2534 systemd_tty_ask_password_agent_SOURCES = \
2535         src/tty-ask-password-agent/tty-ask-password-agent.c
2536
2537 systemd_tty_ask_password_agent_LDADD = \
2538         libsystemd-label.la \
2539         libsystemd-shared.la
2540
2541 # ------------------------------------------------------------------------------
2542 libsystemd_internal_la_SOURCES = \
2543         src/systemd/sd-bus.h \
2544         src/systemd/sd-bus-protocol.h \
2545         src/systemd/sd-bus-vtable.h \
2546         src/systemd/sd-utf8.h \
2547         src/systemd/sd-event.h \
2548         src/systemd/sd-rtnl.h \
2549         src/systemd/sd-resolve.h \
2550         src/systemd/sd-login.h \
2551         src/systemd/sd-id128.h \
2552         src/systemd/sd-daemon.h \
2553         src/systemd/sd-path.h \
2554         src/systemd/sd-network.h \
2555         src/libsystemd/sd-bus/sd-bus.c \
2556         src/libsystemd/sd-bus/bus-control.c \
2557         src/libsystemd/sd-bus/bus-control.h \
2558         src/libsystemd/sd-bus/bus-error.c \
2559         src/libsystemd/sd-bus/bus-error.h \
2560         src/libsystemd/sd-bus/bus-internal.c \
2561         src/libsystemd/sd-bus/bus-internal.h \
2562         src/libsystemd/sd-bus/bus-socket.c \
2563         src/libsystemd/sd-bus/bus-socket.h \
2564         src/libsystemd/sd-bus/bus-kernel.c \
2565         src/libsystemd/sd-bus/bus-kernel.h \
2566         src/libsystemd/sd-bus/bus-container.c \
2567         src/libsystemd/sd-bus/bus-container.h \
2568         src/libsystemd/sd-bus/bus-message.c \
2569         src/libsystemd/sd-bus/bus-message.h \
2570         src/libsystemd/sd-bus/bus-creds.c \
2571         src/libsystemd/sd-bus/bus-creds.h \
2572         src/libsystemd/sd-bus/bus-signature.c \
2573         src/libsystemd/sd-bus/bus-signature.h \
2574         src/libsystemd/sd-bus/bus-type.c \
2575         src/libsystemd/sd-bus/bus-type.h \
2576         src/libsystemd/sd-bus/bus-match.c \
2577         src/libsystemd/sd-bus/bus-match.h \
2578         src/libsystemd/sd-bus/bus-bloom.c \
2579         src/libsystemd/sd-bus/bus-bloom.h \
2580         src/libsystemd/sd-bus/bus-introspect.c \
2581         src/libsystemd/sd-bus/bus-introspect.h \
2582         src/libsystemd/sd-bus/bus-objects.c \
2583         src/libsystemd/sd-bus/bus-objects.h \
2584         src/libsystemd/sd-bus/bus-gvariant.c \
2585         src/libsystemd/sd-bus/bus-gvariant.h \
2586         src/libsystemd/sd-bus/bus-convenience.c \
2587         src/libsystemd/sd-bus/bus-track.c \
2588         src/libsystemd/sd-bus/bus-track.h \
2589         src/libsystemd/sd-bus/bus-util.c \
2590         src/libsystemd/sd-bus/bus-util.h \
2591         src/libsystemd/sd-bus/bus-slot.c \
2592         src/libsystemd/sd-bus/bus-slot.h \
2593         src/libsystemd/sd-bus/bus-protocol.h \
2594         src/libsystemd/sd-bus/kdbus.h \
2595         src/libsystemd/sd-utf8/sd-utf8.c \
2596         src/libsystemd/sd-event/sd-event.c \
2597         src/libsystemd/sd-event/event-util.h \
2598         src/libsystemd/sd-rtnl/sd-rtnl.c \
2599         src/libsystemd/sd-rtnl/rtnl-internal.h \
2600         src/libsystemd/sd-rtnl/rtnl-message.c \
2601         src/libsystemd/sd-rtnl/rtnl-types.h \
2602         src/libsystemd/sd-rtnl/rtnl-types.c \
2603         src/libsystemd/sd-rtnl/rtnl-util.h \
2604         src/libsystemd/sd-rtnl/rtnl-util.c \
2605         src/libsystemd/sd-rtnl/local-addresses.h \
2606         src/libsystemd/sd-rtnl/local-addresses.c \
2607         src/libsystemd/sd-id128/sd-id128.c \
2608         src/libsystemd/sd-daemon/sd-daemon.c \
2609         src/libsystemd/sd-login/sd-login.c \
2610         src/libsystemd/sd-path/sd-path.c \
2611         src/libsystemd/sd-network/sd-network.c \
2612         src/libsystemd/sd-network/network-util.h \
2613         src/libsystemd/sd-network/network-util.c
2614
2615 nodist_libsystemd_internal_la_SOURCES = \
2616         src/libsystemd/libsystemd.sym
2617
2618 libsystemd_internal_la_CFLAGS = \
2619         $(AM_CFLAGS) \
2620         -pthread
2621
2622 libsystemd_internal_la_LIBADD = \
2623         $(RT_LIBS)
2624
2625 libsystemd_resolve_la_SOURCES = \
2626         src/libsystemd/sd-resolve/sd-resolve.c \
2627         src/libsystemd/sd-resolve/resolve-util.h
2628
2629 libsystemd_resolve_la_CFLAGS = \
2630         $(AM_CFLAGS) \
2631         -pthread
2632
2633 libsystemd_resolve_la_LIBADD = \
2634         -lresolv
2635
2636 noinst_LTLIBRARIES += \
2637         libsystemd-internal.la \
2638         libsystemd-resolve.la
2639
2640 libsystemd_dump_la_SOURCES = \
2641         src/libsystemd/sd-bus/bus-dump.c \
2642         src/libsystemd/sd-bus/bus-dump.h
2643
2644 noinst_LTLIBRARIES += \
2645         libsystemd-dump.la
2646
2647 EXTRA_DIST += \
2648         src/libsystemd/libsystemd.sym.m4 \
2649         src/libsystemd/libsystemd.pc.in \
2650         src/libsystemd/sd-bus/DIFFERENCES \
2651         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2652
2653 CLEANFILES += \
2654         src/libsystemd/libsystemd.sym
2655
2656 BUILT_SOURCES += \
2657         src/libsystemd/libsystemd.sym
2658
2659 libsystemd_la_SOURCES = \
2660         $(libsystemd_internal_la_SOURCES) \
2661         $(libsystemd_resolve_la_SOURCES) \
2662         $(libsystemd_journal_internal_la_SOURCES)
2663
2664 nodist_libsystemd_la_SOURCES = \
2665         $(nodist_libsystemd_internal_la_SOURCES)
2666
2667 libsystemd_la_CFLAGS = \
2668         $(libsystemd_internal_la_CFLAGS) \
2669         $(libsystemd_resolve_la_CFLAGS) \
2670         $(libsystemd_journal_internal_la_CFLAGS)
2671
2672 libsystemd_la_LDFLAGS = \
2673         $(AM_LDFLAGS) \
2674         -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2675         -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2676
2677 libsystemd_la_LIBADD = \
2678         libsystemd-shared.la \
2679         $(libsystemd_internal_la_LIBADD) \
2680         $(libsystemd_journal_internal_la_LIBADD) \
2681         $(libsystemd_resolve_la_LIBADD)
2682
2683 libsystemd-install-hook:
2684         libname=libsystemd.so && $(move-to-rootlibdir)
2685
2686 libsystemd-uninstall-hook:
2687         rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2688
2689 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2690 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2691
2692 pkgconfiglib_DATA += \
2693         src/libsystemd/libsystemd.pc
2694
2695 pkginclude_HEADERS += \
2696         src/systemd/sd-login.h \
2697         src/systemd/sd-id128.h \
2698         src/systemd/sd-daemon.h
2699
2700 if ENABLE_KDBUS
2701 pkginclude_HEADERS += \
2702         src/systemd/sd-bus.h \
2703         src/systemd/sd-bus-protocol.h \
2704         src/systemd/sd-bus-vtable.h \
2705         src/systemd/sd-utf8.h \
2706         src/systemd/sd-event.h \
2707         src/systemd/sd-rtnl.h \
2708         src/systemd/sd-resolve.h \
2709         src/systemd/sd-path.h
2710 endif
2711
2712 lib_LTLIBRARIES += \
2713         libsystemd.la
2714
2715 tests += \
2716         test-bus-marshal \
2717         test-bus-signature \
2718         test-bus-chat \
2719         test-bus-cleanup \
2720         test-bus-server \
2721         test-bus-match \
2722         test-bus-kernel \
2723         test-bus-kernel-bloom \
2724         test-bus-kernel-benchmark \
2725         test-bus-zero-copy \
2726         test-bus-introspect \
2727         test-bus-objects \
2728         test-bus-error \
2729         test-bus-creds \
2730         test-bus-gvariant \
2731         test-event \
2732         test-rtnl \
2733         test-resolve
2734
2735 bin_PROGRAMS += \
2736         busctl
2737
2738 test_bus_marshal_SOURCES = \
2739         src/libsystemd/sd-bus/test-bus-marshal.c
2740
2741 test_bus_marshal_LDADD = \
2742         libsystemd-dump.la \
2743         libsystemd-internal.la \
2744         libsystemd-shared.la \
2745         $(GLIB_LIBS) \
2746         $(DBUS_LIBS)
2747
2748 test_bus_marshal_CFLAGS = \
2749         $(AM_CFLAGS) \
2750         $(GLIB_CFLAGS) \
2751         $(DBUS_CFLAGS)
2752
2753 test_bus_signature_SOURCES = \
2754         src/libsystemd/sd-bus/test-bus-signature.c
2755
2756 test_bus_signature_LDADD = \
2757         libsystemd-shared.la \
2758         libsystemd-internal.la
2759
2760 test_bus_chat_SOURCES = \
2761         src/libsystemd/sd-bus/test-bus-chat.c
2762
2763 test_bus_chat_CFLAGS = \
2764         $(AM_CFLAGS) \
2765         -pthread
2766
2767 test_bus_chat_LDADD = \
2768         libsystemd-internal.la \
2769         libsystemd-shared.la
2770
2771 test_bus_cleanup_SOURCES = \
2772         src/libsystemd/sd-bus/test-bus-cleanup.c
2773
2774 test_bus_cleanup_CFLAGS = \
2775         $(AM_CFLAGS) \
2776         $(SECCOMP_CFLAGS)
2777
2778 test_bus_cleanup_LDADD = \
2779         libsystemd-internal.la \
2780         libsystemd-shared.la
2781
2782 test_bus_server_SOURCES = \
2783         src/libsystemd/sd-bus/test-bus-server.c
2784
2785 test_bus_server_CFLAGS = \
2786         $(AM_CFLAGS) \
2787         -pthread
2788
2789 test_bus_server_LDADD = \
2790         libsystemd-internal.la \
2791         libsystemd-shared.la
2792
2793 test_bus_objects_SOURCES = \
2794         src/libsystemd/sd-bus/test-bus-objects.c
2795
2796 test_bus_objects_CFLAGS = \
2797         $(AM_CFLAGS) \
2798         -pthread
2799
2800 test_bus_objects_LDADD = \
2801         libsystemd-dump.la \
2802         libsystemd-internal.la \
2803         libsystemd-shared.la
2804
2805 test_bus_error_SOURCES = \
2806         src/libsystemd/sd-bus/test-bus-error.c
2807
2808 test_bus_error_LDADD = \
2809         libsystemd-internal.la \
2810         libsystemd-shared.la
2811
2812 test_bus_gvariant_SOURCES = \
2813         src/libsystemd/sd-bus/test-bus-gvariant.c
2814
2815 test_bus_gvariant_LDADD = \
2816         libsystemd-dump.la \
2817         libsystemd-internal.la \
2818         libsystemd-shared.la \
2819         $(GLIB_LIBS)
2820
2821 test_bus_gvariant_CFLAGS = \
2822         $(AM_CFLAGS) \
2823         $(GLIB_CFLAGS)
2824
2825 test_bus_creds_SOURCES = \
2826         src/libsystemd/sd-bus/test-bus-creds.c
2827
2828 test_bus_creds_LDADD = \
2829         libsystemd-dump.la \
2830         libsystemd-internal.la \
2831         libsystemd-shared.la
2832
2833 test_bus_match_SOURCES = \
2834         src/libsystemd/sd-bus/test-bus-match.c
2835
2836 test_bus_match_LDADD = \
2837         libsystemd-internal.la \
2838         libsystemd-shared.la
2839
2840 test_bus_kernel_SOURCES = \
2841         src/libsystemd/sd-bus/test-bus-kernel.c
2842
2843 test_bus_kernel_LDADD = \
2844         libsystemd-dump.la \
2845         libsystemd-internal.la \
2846         libsystemd-shared.la
2847
2848 test_bus_kernel_bloom_SOURCES = \
2849         src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2850
2851 test_bus_kernel_bloom_LDADD = \
2852         libsystemd-internal.la \
2853         libsystemd-shared.la
2854
2855 test_bus_kernel_benchmark_SOURCES = \
2856         src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2857
2858 test_bus_kernel_benchmark_LDADD = \
2859         libsystemd-internal.la \
2860         libsystemd-shared.la
2861
2862 test_bus_zero_copy_SOURCES = \
2863         src/libsystemd/sd-bus/test-bus-zero-copy.c
2864
2865 test_bus_zero_copy_LDADD = \
2866         libsystemd-dump.la \
2867         libsystemd-internal.la \
2868         libsystemd-shared.la
2869
2870 test_bus_introspect_SOURCES = \
2871         src/libsystemd/sd-bus/test-bus-introspect.c
2872
2873 test_bus_introspect_LDADD = \
2874         libsystemd-internal.la \
2875         libsystemd-shared.la
2876
2877 test_event_SOURCES = \
2878         src/libsystemd/sd-event/test-event.c
2879
2880 test_event_LDADD = \
2881         libsystemd-internal.la \
2882         libsystemd-shared.la
2883
2884 test_rtnl_SOURCES = \
2885         src/libsystemd/sd-rtnl/test-rtnl.c
2886
2887 test_rtnl_LDADD = \
2888         libsystemd-internal.la \
2889         libsystemd-shared.la
2890
2891 test_resolve_SOURCES = \
2892         src/libsystemd/sd-resolve/test-resolve.c
2893
2894 test_resolve_LDADD = \
2895         libsystemd-resolve.la \
2896         libsystemd-internal.la \
2897         libsystemd-shared.la
2898
2899 test_resolve_CFLAGS = \
2900         $(AM_CFLAGS) \
2901         -pthread
2902
2903 busctl_SOURCES = \
2904         src/libsystemd/sd-bus/busctl.c \
2905         src/libsystemd/sd-bus/busctl-introspect.c \
2906         src/libsystemd/sd-bus/busctl-introspect.h
2907
2908 busctl_LDADD = \
2909         libsystemd-dump.la \
2910         libsystemd-internal.la \
2911         libsystemd-shared.la
2912
2913 # ------------------------------------------------------------------------------
2914 noinst_LTLIBRARIES += \
2915         libsystemd-network.la
2916
2917 libsystemd_network_la_CFLAGS = \
2918         $(AM_CFLAGS) \
2919         $(KMOD_CFLAGS)
2920
2921 libsystemd_network_la_SOURCES = \
2922         src/systemd/sd-dhcp-client.h \
2923         src/systemd/sd-dhcp-server.h \
2924         src/systemd/sd-dhcp-lease.h \
2925         src/systemd/sd-ipv4ll.h \
2926         src/systemd/sd-icmp6-nd.h \
2927         src/systemd/sd-dhcp6-client.h \
2928         src/systemd/sd-dhcp6-lease.h \
2929         src/systemd/sd-pppoe.h \
2930         src/libsystemd-network/sd-dhcp-client.c \
2931         src/libsystemd-network/sd-dhcp-server.c \
2932         src/libsystemd-network/dhcp-network.c \
2933         src/libsystemd-network/dhcp-option.c \
2934         src/libsystemd-network/dhcp-packet.c \
2935         src/libsystemd-network/dhcp-internal.h \
2936         src/libsystemd-network/dhcp-server-internal.h \
2937         src/libsystemd-network/dhcp-protocol.h \
2938         src/libsystemd-network/dhcp-lease-internal.h \
2939         src/libsystemd-network/sd-dhcp-lease.c \
2940         src/libsystemd-network/sd-ipv4ll.c \
2941         src/libsystemd-network/ipv4ll-network.c \
2942         src/libsystemd-network/ipv4ll-packet.c \
2943         src/libsystemd-network/ipv4ll-internal.h \
2944         src/libsystemd-network/sd-pppoe.c \
2945         src/libsystemd-network/network-internal.c \
2946         src/libsystemd-network/network-internal.h \
2947         src/libsystemd-network/sd-icmp6-nd.c \
2948         src/libsystemd-network/sd-dhcp6-client.c \
2949         src/libsystemd-network/dhcp6-internal.h \
2950         src/libsystemd-network/dhcp6-protocol.h \
2951         src/libsystemd-network/dhcp6-network.c \
2952         src/libsystemd-network/dhcp6-option.c \
2953         src/libsystemd-network/dhcp6-lease-internal.h \
2954         src/libsystemd-network/sd-dhcp6-lease.c
2955
2956 libsystemd_network_la_LIBADD = \
2957         libudev-internal.la \
2958         libsystemd-label.la \
2959         libsystemd-internal.la \
2960         libsystemd-shared.la \
2961         $(KMOD_LIBS)
2962
2963 test_dhcp_option_SOURCES = \
2964         src/libsystemd-network/dhcp-protocol.h \
2965         src/libsystemd-network/dhcp-internal.h \
2966         src/libsystemd-network/test-dhcp-option.c
2967
2968 test_dhcp_option_LDADD = \
2969         libsystemd-network.la \
2970         libsystemd-internal.la \
2971         libsystemd-shared.la
2972
2973 test_dhcp_client_SOURCES = \
2974         src/systemd/sd-dhcp-client.h \
2975         src/libsystemd-network/dhcp-protocol.h \
2976         src/libsystemd-network/dhcp-internal.h \
2977         src/libsystemd-network/test-dhcp-client.c
2978
2979 test_dhcp_client_LDADD = \
2980         libsystemd-network.la \
2981         libsystemd-label.la \
2982         libsystemd-internal.la \
2983         libsystemd-shared.la
2984
2985 test_dhcp_server_SOURCES = \
2986         src/libsystemd-network/test-dhcp-server.c
2987
2988 test_dhcp_server_LDADD = \
2989         libsystemd-network.la \
2990         libsystemd-internal.la \
2991         libsystemd-shared.la
2992
2993 test_ipv4ll_SOURCES = \
2994         src/systemd/sd-ipv4ll.h \
2995         src/libsystemd-network/ipv4ll-internal.h \
2996         src/libsystemd-network/test-ipv4ll.c
2997
2998 test_ipv4ll_LDADD = \
2999         libsystemd-network.la \
3000         libsystemd-label.la \
3001         libsystemd-internal.la \
3002         libsystemd-shared.la
3003
3004 test_pppoe_SOURCES = \
3005         src/systemd/sd-pppoe.h \
3006         src/libsystemd-network/test-pppoe.c
3007
3008 test_pppoe_LDADD = \
3009         libsystemd-network.la \
3010         libsystemd-shared.la
3011
3012 test_icmp6_rs_SOURCES = \
3013         src/systemd/sd-dhcp6-client.h \
3014         src/systemd/sd-icmp6-nd.h \
3015         src/libsystemd-network/dhcp6-internal.h \
3016         src/libsystemd-network/test-icmp6-rs.c
3017
3018 test_icmp6_rs_LDADD = \
3019         libsystemd-network.la \
3020         libsystemd-internal.la \
3021         libsystemd-shared.la
3022
3023 test_dhcp6_client_SOURCES = \
3024         src/systemd/sd-dhcp6-client.h \
3025         src/libsystemd-network/dhcp6-internal.h \
3026         src/libsystemd-network/test-dhcp6-client.c
3027
3028 test_dhcp6_client_LDADD = \
3029         libsystemd-network.la \
3030         libsystemd-internal.la \
3031         libsystemd-shared.la
3032
3033 tests += \
3034         test-dhcp-option \
3035         test-dhcp-client \
3036         test-dhcp-server \
3037         test-ipv4ll \
3038         test-icmp6-rs \
3039         test-dhcp6-client
3040
3041 manual_tests += \
3042         test-pppoe
3043
3044 # ------------------------------------------------------------------------------
3045 if ENABLE_TERMINAL
3046 noinst_LTLIBRARIES += \
3047         libsystemd-terminal.la
3048
3049 rootlibexec_PROGRAMS += \
3050         systemd-consoled
3051
3052 noinst_PROGRAMS += \
3053         systemd-evcat \
3054         systemd-modeset \
3055         systemd-subterm
3056
3057 dist_pkgdata_DATA += \
3058         src/libsystemd-terminal/unifont-glyph-array.bin
3059
3060 nodist_userunit_DATA += \
3061         units/user/systemd-consoled.service
3062
3063 USER_DEFAULT_TARGET_WANTS += \
3064         systemd-consoled.service
3065
3066 EXTRA_DIST += \
3067         units/user/systemd-consoled.service.in
3068
3069 tests += \
3070         test-term-page \
3071         test-term-parser \
3072         test-unifont
3073 endif
3074
3075 libsystemd_terminal_la_CFLAGS = \
3076         $(AM_CFLAGS) \
3077         $(TERMINAL_CFLAGS)
3078
3079 libsystemd_terminal_la_SOURCES = \
3080         src/libsystemd-terminal/grdev.h \
3081         src/libsystemd-terminal/grdev-internal.h \
3082         src/libsystemd-terminal/grdev.c \
3083         src/libsystemd-terminal/grdev-drm.c \
3084         src/libsystemd-terminal/idev.h \
3085         src/libsystemd-terminal/idev-internal.h \
3086         src/libsystemd-terminal/idev.c \
3087         src/libsystemd-terminal/idev-evdev.c \
3088         src/libsystemd-terminal/idev-keyboard.c \
3089         src/libsystemd-terminal/sysview.h \
3090         src/libsystemd-terminal/sysview-internal.h \
3091         src/libsystemd-terminal/sysview.c \
3092         src/libsystemd-terminal/term.h \
3093         src/libsystemd-terminal/term-internal.h \
3094         src/libsystemd-terminal/term-charset.c \
3095         src/libsystemd-terminal/term-page.c \
3096         src/libsystemd-terminal/term-parser.c \
3097         src/libsystemd-terminal/term-screen.c \
3098         src/libsystemd-terminal/term-wcwidth.c \
3099         src/libsystemd-terminal/unifont.h \
3100         src/libsystemd-terminal/unifont-def.h \
3101         src/libsystemd-terminal/unifont.c
3102
3103 libsystemd_terminal_la_LIBADD = \
3104         libudev-internal.la \
3105         libsystemd-internal.la \
3106         libsystemd-shared.la \
3107         $(TERMINAL_LIBS)
3108
3109 systemd_consoled_CFLAGS = \
3110         $(AM_CFLAGS) \
3111         $(TERMINAL_CFLAGS)
3112
3113 systemd_consoled_SOURCES = \
3114         src/console/consoled.h \
3115         src/console/consoled.c \
3116         src/console/consoled-display.c \
3117         src/console/consoled-manager.c \
3118         src/console/consoled-session.c \
3119         src/console/consoled-terminal.c \
3120         src/console/consoled-workspace.c
3121
3122 systemd_consoled_LDADD = \
3123         libsystemd-terminal.la \
3124         libsystemd-internal.la \
3125         libsystemd-shared.la \
3126         $(TERMINAL_LIBS)
3127
3128 systemd_evcat_CFLAGS = \
3129         $(AM_CFLAGS) \
3130         $(TERMINAL_CFLAGS)
3131
3132 systemd_evcat_SOURCES = \
3133         src/libsystemd-terminal/evcat.c
3134
3135 systemd_evcat_LDADD = \
3136         libsystemd-terminal.la \
3137         libsystemd-internal.la \
3138         libsystemd-shared.la \
3139         $(TERMINAL_LIBS)
3140
3141 systemd_modeset_CFLAGS = \
3142         $(AM_CFLAGS) \
3143         $(TERMINAL_CFLAGS)
3144
3145 systemd_modeset_SOURCES = \
3146         src/libsystemd-terminal/modeset.c
3147
3148 systemd_modeset_LDADD = \
3149         libsystemd-terminal.la \
3150         libsystemd-internal.la \
3151         libsystemd-shared.la \
3152         $(TERMINAL_LIBS)
3153
3154 systemd_subterm_SOURCES = \
3155         src/libsystemd-terminal/subterm.c
3156
3157 systemd_subterm_LDADD = \
3158         libsystemd-terminal.la \
3159         libsystemd-internal.la \
3160         libsystemd-shared.la
3161
3162 test_term_page_SOURCES = \
3163         src/libsystemd-terminal/test-term-page.c
3164
3165 test_term_page_LDADD = \
3166         libsystemd-terminal.la \
3167         libsystemd-internal.la \
3168         libsystemd-shared.la
3169
3170 test_term_parser_SOURCES = \
3171         src/libsystemd-terminal/test-term-parser.c
3172
3173 test_term_parser_LDADD = \
3174         libsystemd-terminal.la \
3175         libsystemd-internal.la \
3176         libsystemd-shared.la
3177
3178 test_unifont_SOURCES = \
3179         src/libsystemd-terminal/test-unifont.c
3180
3181 test_unifont_LDADD = \
3182         libsystemd-terminal.la \
3183         libsystemd-internal.la \
3184         libsystemd-shared.la
3185
3186 .PHONY: update-unifont
3187 update-unifont: tools/compile-unifont.py
3188         $(AM_V_GEN)$(PYTHON) $< \
3189                 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3190                 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3191         @echo "unifont-glyph-array.bin has been regenerated"
3192
3193 # ------------------------------------------------------------------------------
3194 if ENABLE_GTK_DOC
3195 SUBDIRS += \
3196         docs/libudev
3197
3198 noinst_DATA += \
3199         docs/html/libudev \
3200         docs/html/gudev
3201 endif
3202
3203 include_HEADERS += \
3204         src/libudev/libudev.h
3205
3206 lib_LTLIBRARIES += \
3207         libudev.la
3208
3209 libudev_la_SOURCES =\
3210         src/libudev/libudev.sym \
3211         src/libudev/libudev-private.h \
3212         src/libudev/libudev.c \
3213         src/libudev/libudev-list.c \
3214         src/libudev/libudev-util.c \
3215         src/libudev/libudev-device.c \
3216         src/libudev/libudev-enumerate.c \
3217         src/libudev/libudev-monitor.c \
3218         src/libudev/libudev-queue.c \
3219         src/libudev/libudev-hwdb-def.h \
3220         src/libudev/libudev-hwdb.c
3221
3222 libudev_la_CFLAGS = \
3223         $(AM_CFLAGS) \
3224         -fvisibility=hidden
3225
3226 libudev_la_LDFLAGS = \
3227         $(AM_LDFLAGS) \
3228         -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3229         -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3230
3231 libudev_la_LIBADD = \
3232         libsystemd-internal.la \
3233         libsystemd-shared.la
3234
3235 pkgconfiglib_DATA += \
3236         src/libudev/libudev.pc
3237
3238 EXTRA_DIST += \
3239         src/libudev/libudev.pc.in
3240
3241 CLEANFILES += \
3242         src/libudev/libudev.pc \
3243         docs/html/libudev \
3244         docs/html/gudev
3245
3246 docs/html/libudev:
3247         $(AM_V_at)$(MKDIR_P) $(dir $@)
3248         $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3249
3250 docs/html/gudev:
3251         $(AM_V_at)$(MKDIR_P) $(dir $@)
3252         $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3253
3254 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3255 libudev-install-hook:
3256         libname=libudev.so && $(move-to-rootlibdir)
3257
3258 libudev-uninstall-hook:
3259         rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3260
3261 INSTALL_EXEC_HOOKS += libudev-install-hook
3262 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3263
3264 # ------------------------------------------------------------------------------
3265 noinst_LTLIBRARIES += \
3266         libudev-internal.la
3267
3268 libudev_internal_la_SOURCES =\
3269         $(libudev_la_SOURCES) \
3270         src/libudev/libudev-device-private.c
3271
3272 libudev_internal_la_CFLAGS = \
3273         $(AM_CFLAGS) \
3274         -fvisibility=default
3275
3276 # ------------------------------------------------------------------------------
3277 INSTALL_DIRS += \
3278         $(sysconfdir)/udev/rules.d \
3279         $(sysconfdir)/udev/hwdb.d
3280
3281 dist_network_DATA = \
3282         network/99-default.link \
3283         network/80-container-host0.network \
3284         network/80-container-ve.network
3285
3286 dist_udevrules_DATA += \
3287         rules/42-usb-hid-pm.rules \
3288         rules/50-udev-default.rules \
3289         rules/60-drm.rules \
3290         rules/60-keyboard.rules \
3291         rules/70-mouse.rules \
3292         rules/60-persistent-storage-tape.rules \
3293         rules/60-persistent-serial.rules \
3294         rules/60-persistent-input.rules \
3295         rules/60-persistent-alsa.rules \
3296         rules/60-persistent-storage.rules \
3297         rules/64-btrfs.rules \
3298         rules/75-net-description.rules \
3299         rules/75-tty-description.rules \
3300         rules/78-sound-card.rules \
3301         rules/80-net-setup-link.rules \
3302         rules/95-udev-late.rules
3303
3304 nodist_udevrules_DATA += \
3305         rules/99-systemd.rules
3306
3307 dist_udevhwdb_DATA = \
3308         hwdb/20-pci-vendor-model.hwdb \
3309         hwdb/20-pci-classes.hwdb \
3310         hwdb/20-usb-vendor-model.hwdb \
3311         hwdb/20-usb-classes.hwdb \
3312         hwdb/20-sdio-vendor-model.hwdb \
3313         hwdb/20-sdio-classes.hwdb \
3314         hwdb/20-bluetooth-vendor-product.hwdb \
3315         hwdb/20-acpi-vendor.hwdb \
3316         hwdb/20-OUI.hwdb \
3317         hwdb/20-net-ifname.hwdb \
3318         hwdb/60-keyboard.hwdb \
3319         hwdb/70-mouse.hwdb
3320
3321 udevconfdir = $(sysconfdir)/udev
3322 dist_udevconf_DATA = \
3323         src/udev/udev.conf
3324
3325 sharepkgconfigdir = $(datadir)/pkgconfig
3326 sharepkgconfig_DATA = \
3327         src/udev/udev.pc
3328
3329 EXTRA_DIST += \
3330         rules/99-systemd.rules.in \
3331         src/udev/udev.pc.in
3332
3333 CLEANFILES += \
3334         rules/99-systemd.rules \
3335         src/udev/udev.pc
3336
3337 EXTRA_DIST += \
3338         units/systemd-udevd.service.in \
3339         units/systemd-udev-trigger.service.in \
3340         units/systemd-udev-settle.service.in \
3341         units/systemd-udev-hwdb-update.service.in
3342
3343 CLEANFILES += \
3344         units/systemd-udevd.service \
3345         units/systemd-udev-trigger.service \
3346         units/systemd-udev-settle.service \
3347         units/systemd-udev-hwdb-update.service
3348
3349 SOCKETS_TARGET_WANTS += \
3350         systemd-udevd-control.socket \
3351         systemd-udevd-kernel.socket
3352
3353 SYSINIT_TARGET_WANTS += \
3354         systemd-udevd.service \
3355         systemd-udev-trigger.service \
3356         systemd-udev-hwdb-update.service
3357
3358 rootbin_PROGRAMS += \
3359         udevadm
3360
3361 rootlibexec_PROGRAMS += \
3362         systemd-udevd
3363
3364 noinst_LTLIBRARIES += \
3365         libudev-core.la
3366
3367 src/udev/keyboard-keys.txt:
3368         $(AM_V_at)$(MKDIR_P) $(dir $@)
3369         $(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/' > $@
3370
3371 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3372         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3373
3374 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3375         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3376
3377 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3378         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3379
3380 libudev_core_la_SOURCES = \
3381         src/udev/udev.h \
3382         src/udev/udev-event.c \
3383         src/udev/udev-watch.c \
3384         src/udev/udev-node.c \
3385         src/udev/udev-rules.c \
3386         src/udev/udev-ctrl.c \
3387         src/udev/udev-builtin.c \
3388         src/udev/udev-builtin-btrfs.c \
3389         src/udev/udev-builtin-hwdb.c \
3390         src/udev/udev-builtin-input_id.c \
3391         src/udev/udev-builtin-keyboard.c \
3392         src/udev/udev-builtin-net_id.c \
3393         src/udev/udev-builtin-net_setup_link.c \
3394         src/udev/udev-builtin-path_id.c \
3395         src/udev/udev-builtin-usb_id.c \
3396         src/udev/net/link-config.h \
3397         src/udev/net/link-config.c \
3398         src/udev/net/ethtool-util.h \
3399         src/udev/net/ethtool-util.c
3400
3401 nodist_libudev_core_la_SOURCES = \
3402         src/udev/keyboard-keys-from-name.h \
3403         src/udev/keyboard-keys-to-name.h \
3404         src/udev/net/link-config-gperf.c
3405
3406 BUILT_SOURCES += \
3407         $(nodist_libudev_core_la_SOURCES)
3408
3409 CLEANFILES += \
3410         src/udev/keyboard-keys-from-name.gperf \
3411         src/udev/keyboard-keys.txt \
3412         src/udev/net/link-config-gperf.c
3413
3414 EXTRA_DIST += \
3415         src/udev/net/link-config-gperf.gperf
3416
3417 libudev_core_la_CFLAGS = \
3418         $(AM_CFLAGS) \
3419         $(BLKID_CFLAGS) \
3420         $(KMOD_CFLAGS)
3421
3422 libudev_core_la_LIBADD = \
3423         libudev-internal.la \
3424         libsystemd-label.la \
3425         libsystemd-internal.la \
3426         libsystemd-network.la \
3427         libsystemd-shared.la \
3428         $(BLKID_LIBS) \
3429         $(KMOD_LIBS)
3430
3431 if HAVE_KMOD
3432 libudev_core_la_SOURCES += \
3433         src/udev/udev-builtin-kmod.c
3434
3435 dist_udevrules_DATA += \
3436         rules/80-drivers.rules
3437 endif
3438
3439 if HAVE_BLKID
3440 libudev_core_la_SOURCES += \
3441         src/udev/udev-builtin-blkid.c
3442 endif
3443
3444 if HAVE_ACL
3445 libudev_core_la_SOURCES += \
3446         src/udev/udev-builtin-uaccess.c \
3447         src/login/logind-acl.c \
3448         src/libsystemd/sd-login/sd-login.c \
3449         src/systemd/sd-login.h
3450
3451 libudev_core_la_LIBADD += \
3452         libsystemd-acl.la
3453 endif
3454
3455 systemd_udevd_SOURCES = \
3456         src/udev/udevd.c
3457
3458 systemd_udevd_LDADD = \
3459         libudev-core.la
3460
3461 udevadm_SOURCES = \
3462         src/udev/udevadm.c \
3463         src/udev/udevadm-info.c \
3464         src/udev/udevadm-control.c \
3465         src/udev/udevadm-monitor.c \
3466         src/udev/udevadm-hwdb.c \
3467         src/udev/udevadm-settle.c \
3468         src/udev/udevadm-trigger.c \
3469         src/udev/udevadm-test.c \
3470         src/udev/udevadm-test-builtin.c \
3471         src/udev/udevadm-util.c \
3472         src/udev/udevadm-util.h
3473
3474 udevadm_LDADD = \
3475         libudev-core.la
3476
3477 # Update hwdb on installation. Do not bother if installing
3478 # in DESTDIR, since this is likely for packaging purposes.
3479 hwdb-update-hook:
3480         -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3481
3482 INSTALL_DATA_HOOKS += \
3483         hwdb-update-hook
3484
3485 hwdb-remove-hook:
3486         -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3487
3488 # ------------------------------------------------------------------------------
3489 TESTS += \
3490         test/udev-test.pl \
3491         test/rules-test.sh
3492
3493 manual_tests += \
3494         test-libudev \
3495         test-udev
3496
3497 test_libudev_SOURCES = \
3498         src/test/test-libudev.c
3499
3500 test_libudev_LDADD = \
3501         libsystemd-label.la \
3502         libudev-internal.la \
3503         libsystemd-shared.la
3504
3505 test_udev_SOURCES = \
3506         src/test/test-udev.c
3507
3508 test_udev_LDADD = \
3509         libudev-core.la  \
3510         $(BLKID_LIBS) \
3511         $(KMOD_LIBS) \
3512         $(SELINUX_LIBS)
3513
3514 if HAVE_ACL
3515 test_udev_LDADD += \
3516         libsystemd-acl.la
3517 endif
3518
3519 check_DATA += \
3520         test/sys
3521
3522 # packed sysfs test tree
3523 test/sys:
3524         $(AM_V_at)$(MKDIR_P) $(dir $@)
3525         $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3526
3527 test-sys-distclean:
3528         -rm -rf test/sys
3529 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3530
3531 EXTRA_DIST += \
3532         test/sys.tar.xz \
3533         test/udev-test.pl \
3534         test/rules-test.sh \
3535         test/rule-syntax-check.py
3536
3537 # ------------------------------------------------------------------------------
3538 ata_id_SOURCES = \
3539         src/udev/ata_id/ata_id.c
3540
3541 ata_id_LDADD = \
3542         libudev-internal.la \
3543         libsystemd-shared.la
3544
3545 udevlibexec_PROGRAMS += \
3546         ata_id
3547
3548 # ------------------------------------------------------------------------------
3549 cdrom_id_SOURCES = \
3550         src/udev/cdrom_id/cdrom_id.c
3551
3552 cdrom_id_LDADD = \
3553         libudev-internal.la \
3554         libsystemd-shared.la
3555
3556 udevlibexec_PROGRAMS += \
3557         cdrom_id
3558
3559 dist_udevrules_DATA += \
3560         rules/60-cdrom_id.rules
3561
3562 # ------------------------------------------------------------------------------
3563 collect_SOURCES = \
3564         src/udev/collect/collect.c
3565
3566 collect_LDADD = \
3567         libudev-internal.la \
3568         libsystemd-shared.la
3569
3570 udevlibexec_PROGRAMS += \
3571         collect
3572
3573 # ------------------------------------------------------------------------------
3574 scsi_id_SOURCES =\
3575         src/udev/scsi_id/scsi_id.c \
3576         src/udev/scsi_id/scsi_serial.c \
3577         src/udev/scsi_id/scsi.h \
3578         src/udev/scsi_id/scsi_id.h
3579
3580 scsi_id_LDADD = \
3581         libudev-internal.la \
3582         libsystemd-shared.la
3583
3584 udevlibexec_PROGRAMS += \
3585         scsi_id
3586
3587 EXTRA_DIST += \
3588         src/udev/scsi_id/README
3589
3590 # ------------------------------------------------------------------------------
3591 v4l_id_SOURCES = \
3592         src/udev/v4l_id/v4l_id.c
3593
3594 v4l_id_LDADD = \
3595         libudev-internal.la
3596
3597 udevlibexec_PROGRAMS += \
3598         v4l_id
3599
3600 dist_udevrules_DATA += \
3601         rules/60-persistent-v4l.rules
3602
3603 # ------------------------------------------------------------------------------
3604 accelerometer_SOURCES = \
3605         src/udev/accelerometer/accelerometer.c
3606
3607 accelerometer_LDADD = \
3608         libudev-internal.la -lm \
3609         libsystemd-shared.la
3610
3611 udevlibexec_PROGRAMS += \
3612         accelerometer
3613
3614 dist_udevrules_DATA += \
3615         rules/61-accelerometer.rules
3616
3617 # ------------------------------------------------------------------------------
3618 if ENABLE_GUDEV
3619 if ENABLE_GTK_DOC
3620 SUBDIRS += \
3621         docs/gudev
3622 endif
3623
3624 libgudev_includedir = \
3625         $(includedir)/gudev-1.0/gudev
3626
3627 libgudev_include_HEADERS = \
3628         src/gudev/gudev.h \
3629         src/gudev/gudevenums.h \
3630         src/gudev/gudevenumtypes.h \
3631         src/gudev/gudevtypes.h \
3632         src/gudev/gudevclient.h \
3633         src/gudev/gudevdevice.h \
3634         src/gudev/gudevenumerator.h
3635
3636 lib_LTLIBRARIES += libgudev-1.0.la
3637
3638 pkgconfiglib_DATA += \
3639         src/gudev/gudev-1.0.pc
3640
3641 CLEANFILES += \
3642         src/gudev/gudev-1.0.pc
3643
3644 libgudev_1_0_la_SOURCES = \
3645         src/gudev/libgudev-1.0.sym \
3646         src/gudev/gudevenums.h \
3647         src/gudev/gudevenumtypes.h \
3648         src/gudev/gudevenumtypes.h\
3649         src/gudev/gudevtypes.h \
3650         src/gudev/gudevclient.h \
3651         src/gudev/gudevclient.c \
3652         src/gudev/gudevdevice.h \
3653         src/gudev/gudevdevice.c \
3654         src/gudev/gudevenumerator.h \
3655         src/gudev/gudevenumerator.c \
3656         src/gudev/gudevprivate.h
3657
3658 nodist_libgudev_1_0_la_SOURCES = \
3659         src/gudev/gudevmarshal.h \
3660         src/gudev/gudevmarshal.c \
3661         src/gudev/gudevenumtypes.h \
3662         src/gudev/gudevenumtypes.c
3663
3664 BUILT_SOURCES += \
3665         $(nodist_libgudev_1_0_la_SOURCES)
3666
3667 libgudev_1_0_la_CPPFLAGS = \
3668         $(AM_CPPFLAGS) \
3669         -I$(top_builddir)/src\
3670         -I$(top_srcdir)/src\
3671         -I$(top_builddir)/src/gudev \
3672         -I$(top_srcdir)/src/gudev \
3673         -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3674         -D_GUDEV_COMPILATION \
3675         -DG_LOG_DOMAIN=\"GUdev\"
3676
3677 libgudev_1_0_la_CFLAGS = \
3678         $(AM_CFLAGS) \
3679         -fvisibility=default \
3680         $(GLIB_CFLAGS)
3681
3682 libgudev_1_0_la_LIBADD = \
3683         libudev.la \
3684         $(GLIB_LIBS)
3685
3686 libgudev_1_0_la_LDFLAGS = \
3687         $(AM_LDFLAGS) \
3688         -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3689         -export-dynamic \
3690         -no-undefined \
3691         -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3692
3693 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3694         $(AM_V_at)$(MKDIR_P) $(dir $@)
3695         $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3696
3697 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3698         $(AM_V_at)$(MKDIR_P) $(dir $@)
3699         $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3700         glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3701
3702 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3703         $(AM_V_at)$(MKDIR_P) $(dir $@)
3704         $(AM_V_GEN)glib-mkenums --template $^ > $@
3705
3706 if HAVE_INTROSPECTION
3707 -include $(INTROSPECTION_MAKEFILE)
3708
3709 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3710
3711 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3712
3713 src_gudev_GUdev_1_0_gir_CFLAGS = \
3714         $(AM_CFLAGS) \
3715         $(INCLUDES) \
3716         -D_GUDEV_COMPILATION \
3717         -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3718         -I$(top_srcdir)/src \
3719         -I$(top_builddir)/src \
3720         -I$(top_srcdir)/src/gudev \
3721         -I$(top_builddir)/src/gudev
3722
3723 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3724
3725 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3726         --pkg-export=gudev-1.0 \
3727         --warn-all
3728
3729 src_gudev_GUdev_1_0_gir_FILES = \
3730         src/gudev/gudev.h \
3731         src/gudev/gudevtypes.h \
3732         src/gudev/gudevenums.h \
3733         src/gudev/gudevenumtypes.h \
3734         src/gudev/gudevclient.h \
3735         src/gudev/gudevdevice.h \
3736         src/gudev/gudevenumerator.h \
3737         src/gudev/gudevclient.c \
3738         src/gudev/gudevdevice.c \
3739         src/gudev/gudevenumerator.c
3740
3741 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3742 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3743
3744 girdir = $(datadir)/gir-1.0
3745 gir_DATA = \
3746         src/gudev/GUdev-1.0.gir
3747
3748 typelibsdir = $(libdir)/girepository-1.0
3749 typelibs_DATA = \
3750         src/gudev/GUdev-1.0.typelib
3751
3752 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3753 endif # HAVE_INTROSPECTION
3754 endif
3755
3756 EXTRA_DIST += \
3757         src/gudev/gudev-1.0.pc.in \
3758         src/gudev/gudevmarshal.list \
3759         src/gudev/gudevenumtypes.h.template \
3760         src/gudev/gudevenumtypes.c.template \
3761         src/gudev/gjs-example.js \
3762         src/gudev/seed-example-enum.js \
3763         src/gudev/seed-example.js
3764
3765 # ------------------------------------------------------------------------------
3766 mtd_probe_SOURCES =  \
3767         src/udev/mtd_probe/mtd_probe.c \
3768         src/udev/mtd_probe/mtd_probe.h \
3769         src/udev/mtd_probe/probe_smartmedia.c
3770
3771 dist_udevrules_DATA += \
3772         rules/75-probe_mtd.rules
3773
3774 udevlibexec_PROGRAMS += \
3775         mtd_probe
3776
3777 # ------------------------------------------------------------------------------
3778 test_id128_SOURCES = \
3779         src/test/test-id128.c
3780
3781 test_id128_LDADD = \
3782         libsystemd-internal.la \
3783         libsystemd-shared.la
3784
3785 tests += \
3786         test-id128
3787
3788 # ------------------------------------------------------------------------------
3789
3790 rootlibexec_PROGRAMS += \
3791         systemd-activate
3792
3793 systemd_activate_SOURCES = \
3794         src/activate/activate.c
3795
3796 systemd_activate_LDADD = \
3797         libsystemd-label.la \
3798         libsystemd-internal.la \
3799         libsystemd-shared.la
3800
3801 # ------------------------------------------------------------------------------
3802 systemd_journald_SOURCES = \
3803         src/journal/journald.c \
3804         src/journal/journald-server.h
3805
3806 systemd_journald_LDADD = \
3807         libsystemd-journal-core.la \
3808         libsystemd-internal.la \
3809         libsystemd-shared.la
3810
3811 systemd_cat_SOURCES = \
3812         src/journal/cat.c
3813
3814 systemd_cat_LDADD = \
3815         libsystemd-journal-core.la
3816
3817 if HAVE_MICROHTTPD
3818 rootlibexec_PROGRAMS += \
3819         systemd-journal-remote
3820
3821 systemd_journal_remote_SOURCES = \
3822         src/journal-remote/journal-remote-parse.h \
3823         src/journal-remote/journal-remote-parse.c \
3824         src/journal-remote/journal-remote-write.h \
3825         src/journal-remote/journal-remote-write.c \
3826         src/journal-remote/journal-remote.h \
3827         src/journal-remote/journal-remote.c
3828
3829 systemd_journal_remote_LDADD = \
3830         libsystemd-internal.la \
3831         libsystemd-journal-core.la
3832
3833 systemd_journal_remote_SOURCES += \
3834         src/journal-remote/microhttpd-util.h \
3835         src/journal-remote/microhttpd-util.c
3836
3837 systemd_journal_remote_CFLAGS = \
3838         $(AM_CFLAGS) \
3839         $(MICROHTTPD_CFLAGS)
3840
3841 systemd_journal_remote_LDADD += \
3842         $(MICROHTTPD_LIBS)
3843
3844 if ENABLE_SYSUSERS