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