chiark / gitweb /
networkd-dhcp6: Move ICMPv6 and DHCPv6 configuration to new file
[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-machine-id-commit \
389         systemd-ac-power \
390         systemd-sysctl \
391         systemd-sleep \
392         systemd-bus-proxyd \
393         systemd-socket-proxyd \
394         systemd-update-done
395
396 if HAVE_UTMP
397 rootlibexec_PROGRAMS += \
398         systemd-update-utmp
399 endif
400
401 systemgenerator_PROGRAMS = \
402         systemd-getty-generator \
403         systemd-fstab-generator \
404         systemd-system-update-generator \
405         systemd-debug-generator
406
407 dist_bashcompletion_DATA = \
408         shell-completion/bash/busctl \
409         shell-completion/bash/journalctl \
410         shell-completion/bash/systemd-analyze \
411         shell-completion/bash/systemd-cat \
412         shell-completion/bash/systemd-cgls \
413         shell-completion/bash/systemd-cgtop \
414         shell-completion/bash/systemd-delta \
415         shell-completion/bash/systemd-detect-virt \
416         shell-completion/bash/systemd-nspawn \
417         shell-completion/bash/systemd-run \
418         shell-completion/bash/udevadm \
419         shell-completion/bash/kernel-install
420
421 nodist_bashcompletion_DATA = \
422         shell-completion/bash/systemctl
423
424 dist_zshcompletion_DATA = \
425         shell-completion/zsh/_journalctl \
426         shell-completion/zsh/_udevadm \
427         shell-completion/zsh/_kernel-install \
428         shell-completion/zsh/_systemd-nspawn \
429         shell-completion/zsh/_systemd-analyze \
430         shell-completion/zsh/_systemd-run \
431         shell-completion/zsh/_sd_hosts_or_user_at_host \
432         shell-completion/zsh/_sd_outputmodes \
433         shell-completion/zsh/_sd_unit_files \
434         shell-completion/zsh/_systemd-delta \
435         shell-completion/zsh/_systemd
436
437 nodist_zshcompletion_DATA = \
438         shell-completion/zsh/_systemctl
439
440 EXTRA_DIST += \
441         shell-completion/bash/systemctl.in \
442         shell-completion/zsh/_systemctl.in
443
444 CLEANFILES += \
445         $(nodist_bashcompletion_DATA) \
446         $(nodist_zshcompletion_DATA)
447
448 dist_sysctl_DATA = \
449         sysctl.d/50-default.conf
450
451 dist_systemunit_DATA = \
452         units/graphical.target \
453         units/multi-user.target \
454         units/emergency.target \
455         units/sysinit.target \
456         units/basic.target \
457         units/getty.target \
458         units/halt.target \
459         units/kexec.target \
460         units/local-fs.target \
461         units/local-fs-pre.target \
462         units/initrd.target \
463         units/initrd-fs.target \
464         units/initrd-root-fs.target \
465         units/remote-fs.target \
466         units/remote-fs-pre.target \
467         units/network.target \
468         units/network-pre.target \
469         units/network-online.target \
470         units/nss-lookup.target \
471         units/nss-user-lookup.target \
472         units/poweroff.target \
473         units/reboot.target \
474         units/rescue.target \
475         units/rpcbind.target \
476         units/time-sync.target \
477         units/shutdown.target \
478         units/final.target \
479         units/umount.target \
480         units/sigpwr.target \
481         units/sleep.target \
482         units/sockets.target \
483         units/timers.target \
484         units/paths.target \
485         units/suspend.target \
486         units/swap.target \
487         units/slices.target \
488         units/system.slice \
489         units/x-.slice \
490         units/systemd-initctl.socket \
491         units/systemd-shutdownd.socket \
492         units/syslog.socket \
493         units/dev-hugepages.mount \
494         units/dev-mqueue.mount \
495         units/sys-kernel-config.mount \
496         units/sys-kernel-debug.mount \
497         units/sys-fs-fuse-connections.mount \
498         units/tmp.mount \
499         units/printer.target \
500         units/sound.target \
501         units/bluetooth.target \
502         units/smartcard.target \
503         units/systemd-ask-password-wall.path \
504         units/systemd-ask-password-console.path \
505         units/systemd-udevd-control.socket \
506         units/systemd-udevd-kernel.socket \
507         units/system-update.target \
508         units/initrd-switch-root.target
509
510 if ENABLE_KDBUS
511 dist_systemunit_DATA += \
512         $(dist_systemunit_DATA_busnames)
513 endif
514
515 dist_systemunit_DATA_busnames += \
516         units/busnames.target
517
518 nodist_systemunit_DATA = \
519         units/getty@.service \
520         units/serial-getty@.service \
521         units/console-shell.service \
522         units/console-getty.service \
523         units/container-getty@.service \
524         units/systemd-initctl.service \
525         units/systemd-shutdownd.service \
526         units/systemd-remount-fs.service \
527         units/systemd-ask-password-wall.service \
528         units/systemd-ask-password-console.service \
529         units/systemd-sysctl.service \
530         units/emergency.service \
531         units/rescue.service \
532         units/user@.service \
533         units/systemd-suspend.service \
534         units/systemd-halt.service \
535         units/systemd-poweroff.service \
536         units/systemd-reboot.service \
537         units/systemd-kexec.service \
538         units/systemd-fsck@.service \
539         units/systemd-fsck-root.service \
540         units/systemd-machine-id-commit.service \
541         units/systemd-udevd.service \
542         units/systemd-udev-trigger.service \
543         units/systemd-udev-settle.service \
544         units/systemd-udev-hwdb-update.service \
545         units/debug-shell.service \
546         units/initrd-parse-etc.service \
547         units/initrd-cleanup.service \
548         units/initrd-udevadm-cleanup-db.service \
549         units/initrd-switch-root.service \
550         units/systemd-nspawn@.service \
551         units/systemd-update-done.service
552
553 if HAVE_UTMP
554 nodist_systemunit_DATA += \
555         units/systemd-update-utmp.service \
556         units/systemd-update-utmp-runlevel.service
557 endif
558
559 dist_userunit_DATA = \
560         units/user/basic.target \
561         units/user/default.target \
562         units/user/exit.target
563
564 nodist_userunit_DATA = \
565         units/user/systemd-exit.service
566
567 dist_systempreset_DATA = \
568         system-preset/90-systemd.preset
569
570 EXTRA_DIST += \
571         units/getty@.service.m4 \
572         units/serial-getty@.service.m4 \
573         units/console-shell.service.m4.in \
574         units/console-getty.service.m4.in \
575         units/container-getty@.service.m4.in \
576         units/rescue.service.in \
577         units/systemd-initctl.service.in \
578         units/systemd-shutdownd.service.in \
579         units/systemd-remount-fs.service.in \
580         units/systemd-update-utmp.service.in \
581         units/systemd-update-utmp-runlevel.service.in \
582         units/systemd-ask-password-wall.service.in \
583         units/systemd-ask-password-console.service.in \
584         units/systemd-sysctl.service.in \
585         units/emergency.service.in \
586         units/systemd-halt.service.in \
587         units/systemd-poweroff.service.in \
588         units/systemd-reboot.service.in \
589         units/systemd-kexec.service.in \
590         units/user/systemd-exit.service.in \
591         units/systemd-fsck@.service.in \
592         units/systemd-fsck-root.service.in \
593         units/systemd-machine-id-commit.service.in \
594         units/user@.service.m4.in \
595         units/debug-shell.service.in \
596         units/systemd-suspend.service.in \
597         units/quotaon.service.in \
598         units/initrd-parse-etc.service.in \
599         units/initrd-cleanup.service.in \
600         units/initrd-udevadm-cleanup-db.service.in \
601         units/initrd-switch-root.service.in \
602         units/systemd-nspawn@.service.in \
603         units/systemd-update-done.service.in
604
605 CLEANFILES += \
606         units/console-shell.service.m4 \
607         units/console-getty.service.m4 \
608         units/container-getty@.service.m4 \
609         units/user@.service.m4
610
611 if HAVE_SYSV_COMPAT
612 nodist_systemunit_DATA += \
613         units/rc-local.service \
614         units/halt-local.service
615
616 systemgenerator_PROGRAMS += \
617         systemd-sysv-generator \
618         systemd-rc-local-generator
619 endif
620
621 EXTRA_DIST += \
622         units/rc-local.service.in \
623         units/halt-local.service.in
624
625 # automake is broken and can't handle files with a dash in front
626 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
627 units-install-hook:
628         mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
629
630 units-uninstall-hook:
631         rm -f $(DESTDIR)/$(systemunitdir)/-.slice
632
633 INSTALL_DATA_HOOKS += units-install-hook
634 UNINSTALL_DATA_HOOKS += units-uninstall-hook
635
636 dist_doc_DATA = \
637         README \
638         NEWS \
639         LICENSE.LGPL2.1 \
640         LICENSE.GPL2 \
641         LICENSE.MIT \
642         DISTRO_PORTING \
643         src/libsystemd/sd-bus/PORTING-DBUS1 \
644         src/libsystemd/sd-bus/DIFFERENCES \
645         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
646
647 @INTLTOOL_POLICY_RULE@
648
649 # ------------------------------------------------------------------------------
650
651 MANPAGES =
652 MANPAGES_ALIAS =
653
654 include Makefile-man.am
655
656 .PHONY: man update-man-list
657 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
658
659 XML_FILES = \
660         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
661 HTML_FILES = \
662         ${XML_FILES:.xml=.html}
663 HTML_ALIAS = \
664         ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
665
666 if ENABLE_MANPAGES
667 man_MANS = \
668         $(MANPAGES) \
669         $(MANPAGES_ALIAS)
670
671 noinst_DATA += \
672         $(HTML_FILES) \
673         $(HTML_ALIAS)
674
675 CLEANFILES += \
676         $(man_MANS) \
677         $(HTML_FILES) \
678         $(HTML_ALIAS)
679
680 docs/html/man:
681         $(AM_V_at)$(MKDIR_P) $(dir $@)
682         $(AM_V_LN)$(LN_S) -f ../../man $@
683
684 noinst_DATA += \
685         docs/html/man
686
687 CLEANFILES += \
688         docs/html/man
689
690 if HAVE_PYTHON
691 man/index.html: man/systemd.index.html
692         $(AM_V_LN)$(LN_S) -f systemd.index.html $@
693
694 noinst_DATA += \
695         man/index.html
696
697 CLEANFILES += \
698         man/index.html
699
700 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
701 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
702 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
703
704 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
705         $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
706         $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
707         @echo "Makefile-man.am has been regenerated"
708
709 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
710         $(AM_V_at)$(MKDIR_P) $(dir $@)
711         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
712
713 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
714         $(AM_V_at)$(MKDIR_P) $(dir $@)
715         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
716
717 EXTRA_DIST += \
718         man/systemd.index.xml \
719         man/index.html \
720         man/systemd.directives.xml \
721         man/glib-event-glue.c
722
723 CLEANFILES += \
724         man/systemd.index.xml \
725         man/systemd.directives.xml
726
727 endif
728
729 endif
730
731 EXTRA_DIST += \
732         $(XML_FILES) \
733         $(HTML_FILES) \
734         $(HTML_ALIAS) \
735         $(man_MANS) \
736         tools/make-man-index.py \
737         tools/make-directive-index.py \
738         tools/xml_helper.py
739
740 # ------------------------------------------------------------------------------
741 noinst_LTLIBRARIES += \
742         libsystemd-shared.la
743
744 libsystemd_shared_la_SOURCES = \
745         src/shared/capability.c \
746         src/shared/capability.h \
747         src/shared/linux/auto_dev-ioctl.h \
748         src/shared/ioprio.h \
749         src/shared/missing.h \
750         src/shared/initreq.h \
751         src/shared/securebits.h \
752         src/shared/special.h \
753         src/shared/list.h \
754         src/shared/unaligned.h \
755         src/shared/macro.h \
756         src/shared/def.h \
757         src/shared/sparse-endian.h \
758         src/shared/refcnt.h \
759         src/shared/udev-util.h \
760         src/shared/bus-errors.h \
761         src/shared/bus-errors.c \
762         src/shared/device-nodes.c \
763         src/shared/device-nodes.h \
764         src/shared/util.c \
765         src/shared/util.h \
766         src/shared/virt.c \
767         src/shared/virt.h \
768         src/shared/architecture.c \
769         src/shared/architecture.h \
770         src/shared/efivars.c \
771         src/shared/efivars.h \
772         src/shared/path-util.c \
773         src/shared/path-util.h \
774         src/shared/time-util.c \
775         src/shared/time-util.h \
776         src/shared/locale-util.c \
777         src/shared/locale-util.h \
778         src/shared/mempool.c \
779         src/shared/mempool.h \
780         src/shared/hashmap.c \
781         src/shared/hashmap.h \
782         src/shared/siphash24.c \
783         src/shared/siphash24.h \
784         src/shared/set.h \
785         src/shared/fdset.c \
786         src/shared/fdset.h \
787         src/shared/prioq.c \
788         src/shared/prioq.h \
789         src/shared/sleep-config.c \
790         src/shared/sleep-config.h \
791         src/shared/strv.c \
792         src/shared/strv.h \
793         src/shared/env-util.c \
794         src/shared/env-util.h \
795         src/shared/strbuf.c \
796         src/shared/strbuf.h \
797         src/shared/strxcpyx.c \
798         src/shared/strxcpyx.h \
799         src/shared/conf-parser.c \
800         src/shared/conf-parser.h \
801         src/shared/log.c \
802         src/shared/log.h \
803         src/shared/ratelimit.h \
804         src/shared/ratelimit.c \
805         src/shared/exit-status.c \
806         src/shared/exit-status.h \
807         src/shared/utf8.c \
808         src/shared/utf8.h \
809         src/shared/gunicode.c \
810         src/shared/gunicode.h \
811         src/shared/pager.c \
812         src/shared/pager.h \
813         src/shared/socket-util.c \
814         src/shared/socket-util.h \
815         src/shared/in-addr-util.c \
816         src/shared/in-addr-util.h \
817         src/shared/ether-addr-util.h \
818         src/shared/conf-files.c \
819         src/shared/conf-files.h \
820         src/shared/cgroup-util.c \
821         src/shared/cgroup-util.h \
822         src/shared/cgroup-show.c \
823         src/shared/cgroup-show.h \
824         src/shared/unit-name.c \
825         src/shared/unit-name.h \
826         src/shared/utmp-wtmp.h \
827         src/shared/watchdog.c \
828         src/shared/watchdog.h \
829         src/shared/spawn-ask-password-agent.c \
830         src/shared/spawn-ask-password-agent.h \
831         src/shared/replace-var.c \
832         src/shared/replace-var.h \
833         src/shared/spawn-polkit-agent.c \
834         src/shared/spawn-polkit-agent.h \
835         src/shared/clock-util.c \
836         src/shared/clock-util.h \
837         src/shared/time-dst.c \
838         src/shared/time-dst.h \
839         src/shared/calendarspec.c \
840         src/shared/calendarspec.h \
841         src/shared/fileio.c \
842         src/shared/fileio.h \
843         src/shared/output-mode.h \
844         src/shared/MurmurHash2.c \
845         src/shared/MurmurHash2.h \
846         src/shared/acpi-fpdt.h \
847         src/shared/acpi-fpdt.c \
848         src/shared/boot-timestamps.h \
849         src/shared/boot-timestamps.c \
850         src/shared/mkdir.c \
851         src/shared/mkdir.h \
852         src/shared/smack-util.c \
853         src/shared/smack-util.h \
854         src/shared/apparmor-util.c \
855         src/shared/apparmor-util.h \
856         src/shared/ima-util.c \
857         src/shared/ima-util.h \
858         src/shared/ptyfwd.c \
859         src/shared/ptyfwd.h \
860         src/shared/errno-list.c \
861         src/shared/errno-list.h \
862         src/shared/af-list.c \
863         src/shared/af-list.h \
864         src/shared/arphrd-list.c \
865         src/shared/arphrd-list.h \
866         src/shared/cap-list.c \
867         src/shared/cap-list.h \
868         src/shared/audit.c \
869         src/shared/audit.h \
870         src/shared/xml.c \
871         src/shared/xml.h \
872         src/shared/bus-label.c \
873         src/shared/bus-label.h \
874         src/shared/gpt.h \
875         src/shared/clean-ipc.h \
876         src/shared/clean-ipc.c \
877         src/shared/login-shared.c \
878         src/shared/login-shared.h \
879         src/shared/ring.c \
880         src/shared/ring.h \
881         src/shared/barrier.c \
882         src/shared/barrier.h \
883         src/shared/pty.c \
884         src/shared/pty.h \
885         src/shared/async.c \
886         src/shared/async.h \
887         src/shared/copy.c \
888         src/shared/copy.h \
889         src/shared/base-filesystem.c \
890         src/shared/base-filesystem.h \
891         src/shared/memfd-util.c \
892         src/shared/memfd-util.h \
893         src/shared/uid-range.c \
894         src/shared/uid-range.h \
895         src/shared/nss-util.h
896
897 if HAVE_UTMP
898 libsystemd_shared_la_SOURCES += \
899         src/shared/utmp-wtmp.c
900 endif
901
902 nodist_libsystemd_shared_la_SOURCES = \
903         src/shared/errno-from-name.h \
904         src/shared/errno-to-name.h \
905         src/shared/af-from-name.h \
906         src/shared/af-to-name.h \
907         src/shared/arphrd-from-name.h \
908         src/shared/arphrd-to-name.h \
909         src/shared/cap-from-name.h \
910         src/shared/cap-to-name.h
911
912 libsystemd_shared_la_CFLAGS = \
913         $(AM_CFLAGS) \
914         $(CAP_CFLAGS) \
915         $(SECCOMP_CFLAGS) \
916         -pthread
917
918 libsystemd_shared_la_LIBADD = \
919         $(CAP_LIBS)
920
921 # ------------------------------------------------------------------------------
922 noinst_LTLIBRARIES += \
923         libsystemd-units.la
924
925 libsystemd_units_la_SOURCES = \
926         src/shared/install.c \
927         src/shared/install.h \
928         src/shared/install-printf.c \
929         src/shared/install-printf.h \
930         src/shared/path-lookup.c \
931         src/shared/path-lookup.h \
932         src/shared/specifier.c \
933         src/shared/specifier.h
934
935 # ------------------------------------------------------------------------------
936 noinst_LTLIBRARIES += \
937         libsystemd-label.la
938
939 libsystemd_label_la_SOURCES = \
940         src/shared/socket-label.c \
941         src/shared/label.c \
942         src/shared/label.h \
943         src/shared/selinux-util.c \
944         src/shared/selinux-util.h \
945         src/shared/mkdir-label.c \
946         src/shared/ask-password-api.c \
947         src/shared/ask-password-api.h \
948         src/shared/switch-root.h \
949         src/shared/switch-root.c \
950         src/shared/fileio-label.c \
951         src/shared/fileio-label.h \
952         src/shared/dev-setup.c \
953         src/shared/dev-setup.h \
954         src/shared/dropin.c \
955         src/shared/dropin.h \
956         src/shared/condition.c \
957         src/shared/condition.h \
958         src/shared/generator.h \
959         src/shared/generator.c
960
961 libsystemd_label_la_CFLAGS = \
962         $(AM_CFLAGS) \
963         $(SELINUX_CFLAGS)
964
965 libsystemd_label_la_LIBADD = \
966         $(SELINUX_LIBS)
967
968 # -----------------------------------------------------------------------------
969
970 if ENABLE_LDCONFIG
971 dist_systemunit_DATA += \
972         units/ldconfig.service
973
974 SYSINIT_TARGET_WANTS += \
975         ldconfig.service
976 endif
977
978 # ------------------------------------------------------------------------------
979
980 if HAVE_SECCOMP
981 noinst_LTLIBRARIES += \
982         libsystemd-seccomp.la
983
984 libsystemd_seccomp_la_SOURCES = \
985         src/shared/seccomp-util.h \
986         src/shared/seccomp-util.c
987
988 libsystemd_seccomp_la_CFLAGS = \
989         $(AM_CFLAGS) \
990         $(SECCOMP_CFLAGS)
991
992 libsystemd_seccomp_la_LIBADD = \
993         $(SECCOMP_LIBS)
994 endif
995
996 # ------------------------------------------------------------------------------
997 noinst_LTLIBRARIES += \
998         libsystemd-logs.la
999
1000 libsystemd_logs_la_SOURCES = \
1001         src/shared/logs-show.c \
1002         src/shared/logs-show.h
1003
1004 # ------------------------------------------------------------------------------
1005 if HAVE_ACL
1006 noinst_LTLIBRARIES += \
1007         libsystemd-acl.la
1008
1009 libsystemd_acl_la_SOURCES = \
1010         src/shared/acl-util.c \
1011         src/shared/acl-util.h
1012
1013 libsystemd_acl_la_CFLAGS = \
1014         $(AM_CFLAGS) \
1015         $(ACL_CFLAGS)
1016
1017 libsystemd_acl_la_LIBADD = \
1018         $(ACL_LIBS)
1019 endif
1020
1021 # ------------------------------------------------------------------------------
1022 noinst_LTLIBRARIES += \
1023         libsystemd-core.la
1024
1025 libsystemd_core_la_SOURCES = \
1026         src/core/unit.c \
1027         src/core/unit.h \
1028         src/core/unit-printf.c \
1029         src/core/unit-printf.h \
1030         src/core/job.c \
1031         src/core/job.h \
1032         src/core/manager.c \
1033         src/core/manager.h \
1034         src/core/transaction.c \
1035         src/core/transaction.h \
1036         src/core/load-fragment.c \
1037         src/core/load-fragment.h \
1038         src/core/service.c \
1039         src/core/service.h \
1040         src/core/socket.c \
1041         src/core/socket.h \
1042         src/core/busname.c \
1043         src/core/busname.h \
1044         src/core/bus-common.c \
1045         src/core/bus-common.h \
1046         src/core/bus-endpoint.c \
1047         src/core/bus-endpoint.h \
1048         src/core/target.c \
1049         src/core/target.h \
1050         src/core/snapshot.c \
1051         src/core/snapshot.h \
1052         src/core/device.c \
1053         src/core/device.h \
1054         src/core/mount.c \
1055         src/core/mount.h \
1056         src/core/automount.c \
1057         src/core/automount.h \
1058         src/core/swap.c \
1059         src/core/swap.h \
1060         src/core/timer.c \
1061         src/core/timer.h \
1062         src/core/path.c \
1063         src/core/path.h \
1064         src/core/slice.c \
1065         src/core/slice.h \
1066         src/core/scope.c \
1067         src/core/scope.h \
1068         src/core/load-dropin.c \
1069         src/core/load-dropin.h \
1070         src/core/execute.c \
1071         src/core/execute.h \
1072         src/core/kill.c \
1073         src/core/kill.h \
1074         src/core/dbus.c \
1075         src/core/dbus.h \
1076         src/core/dbus-manager.c \
1077         src/core/dbus-manager.h \
1078         src/core/dbus-unit.c \
1079         src/core/dbus-unit.h \
1080         src/core/dbus-job.c \
1081         src/core/dbus-job.h \
1082         src/core/dbus-service.c \
1083         src/core/dbus-service.h \
1084         src/core/dbus-socket.c \
1085         src/core/dbus-socket.h \
1086         src/core/dbus-busname.c \
1087         src/core/dbus-busname.h \
1088         src/core/dbus-target.c \
1089         src/core/dbus-target.h \
1090         src/core/dbus-snapshot.c \
1091         src/core/dbus-snapshot.h \
1092         src/core/dbus-device.c \
1093         src/core/dbus-device.h \
1094         src/core/dbus-mount.c \
1095         src/core/dbus-mount.h \
1096         src/core/dbus-automount.c \
1097         src/core/dbus-automount.h \
1098         src/core/dbus-swap.c \
1099         src/core/dbus-swap.h \
1100         src/core/dbus-timer.c \
1101         src/core/dbus-timer.h \
1102         src/core/dbus-path.c \
1103         src/core/dbus-path.h \
1104         src/core/dbus-slice.c \
1105         src/core/dbus-slice.h \
1106         src/core/dbus-scope.c \
1107         src/core/dbus-scope.h \
1108         src/core/dbus-execute.c \
1109         src/core/dbus-execute.h \
1110         src/core/dbus-kill.c \
1111         src/core/dbus-kill.h \
1112         src/core/dbus-cgroup.c \
1113         src/core/dbus-cgroup.h \
1114         src/core/cgroup.c \
1115         src/core/cgroup.h \
1116         src/core/selinux-access.c \
1117         src/core/selinux-access.h \
1118         src/core/selinux-setup.c \
1119         src/core/selinux-setup.h \
1120         src/core/smack-setup.c \
1121         src/core/smack-setup.h \
1122         src/core/ima-setup.c \
1123         src/core/ima-setup.h \
1124         src/core/locale-setup.h \
1125         src/core/locale-setup.c \
1126         src/core/hostname-setup.c \
1127         src/core/hostname-setup.h \
1128         src/core/machine-id-setup.c \
1129         src/core/machine-id-setup.h \
1130         src/core/mount-setup.c \
1131         src/core/mount-setup.h \
1132         src/core/kmod-setup.c \
1133         src/core/kmod-setup.h \
1134         src/core/loopback-setup.h \
1135         src/core/loopback-setup.c \
1136         src/core/namespace.c \
1137         src/core/namespace.h \
1138         src/core/build.h \
1139         src/core/sysfs-show.h \
1140         src/core/killall.h \
1141         src/core/killall.c \
1142         src/core/audit-fd.c \
1143         src/core/audit-fd.h \
1144         src/core/show-status.c \
1145         src/core/show-status.h \
1146         src/core/failure-action.c \
1147         src/core/failure-action.h
1148
1149 nodist_libsystemd_core_la_SOURCES = \
1150         src/core/load-fragment-gperf.c \
1151         src/core/load-fragment-gperf-nulstr.c
1152
1153 libsystemd_core_la_CFLAGS = \
1154         $(AM_CFLAGS) \
1155         $(PAM_CFLAGS) \
1156         $(AUDIT_CFLAGS) \
1157         $(KMOD_CFLAGS) \
1158         $(APPARMOR_CFLAGS) \
1159         $(SECCOMP_CFLAGS) \
1160         $(MOUNT_CFLAGS) \
1161         -pthread
1162
1163 libsystemd_core_la_LIBADD = \
1164         libsystemd-units.la \
1165         libsystemd-label.la \
1166         libudev-internal.la \
1167         libsystemd-shared.la \
1168         libsystemd-internal.la \
1169         $(PAM_LIBS) \
1170         $(AUDIT_LIBS) \
1171         $(KMOD_LIBS) \
1172         $(APPARMOR_LIBS) \
1173         $(SECCOMP_LIBS) \
1174         $(MOUNT_LIBS)
1175
1176 if HAVE_SECCOMP
1177 libsystemd_core_la_LIBADD += \
1178         libsystemd-seccomp.la
1179 endif
1180
1181 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1182         $(AM_V_at)$(MKDIR_P) $(dir $@)
1183         $(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 ";" }' < $< > $@
1184
1185 EXTRA_DIST += \
1186         src/core/load-fragment-gperf.gperf.m4
1187
1188 CLEANFILES += \
1189         src/core/load-fragment-gperf.gperf \
1190         src/core/load-fragment-gperf.c \
1191         src/core/load-fragment-gperf-nulstr.c \
1192         src/shared/errno-list.txt \
1193         src/shared/errno-from-name.gperf \
1194         src/shared/af-list.txt \
1195         src/shared/af-from-name.gperf \
1196         src/shared/arphrd-list.txt \
1197         src/shared/arphrd-from-name.gperf \
1198         src/shared/cap-list.txt \
1199         src/shared/cap-from-name.gperf \
1200         src/resolve/dns_type-list.txt \
1201         src/resolve/dns_type-from-name.gperf
1202
1203 BUILT_SOURCES += \
1204         src/shared/errno-from-name.h \
1205         src/shared/errno-to-name.h \
1206         src/shared/af-from-name.h \
1207         src/shared/af-to-name.h \
1208         src/shared/arphrd-from-name.h \
1209         src/shared/arphrd-to-name.h \
1210         src/shared/cap-from-name.h \
1211         src/shared/cap-to-name.h \
1212         src/resolve/dns_type-from-name.h \
1213         src/resolve/dns_type-to-name.h
1214
1215 %-from-name.gperf: %-list.txt
1216         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1217
1218 %-from-name.h: %-from-name.gperf
1219         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1220
1221
1222 src/shared/errno-list.txt:
1223         $(AM_V_at)$(MKDIR_P) $(dir $@)
1224         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1225
1226 src/shared/errno-to-name.h: src/shared/errno-list.txt
1227         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1228
1229
1230 src/shared/af-list.txt:
1231         $(AM_V_at)$(MKDIR_P) $(dir $@)
1232         $(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; }' >$@
1233
1234 src/shared/af-to-name.h: src/shared/af-list.txt
1235         $(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 "};"}' <$< >$@
1236
1237
1238 src/shared/arphrd-list.txt:
1239         $(AM_V_at)$(MKDIR_P) $(dir $@)
1240         $(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_//' >$@
1241
1242 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1243         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1244
1245 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1246         $(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 }' <$< >$@
1247
1248
1249 src/shared/cap-list.txt:
1250         $(AM_V_at)$(MKDIR_P) $(dir $@)
1251         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1252
1253 src/shared/cap-to-name.h: src/shared/cap-list.txt
1254         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1255
1256 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1257         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1258
1259 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1260         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1261
1262
1263 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1264         $(AM_V_at)$(MKDIR_P) $(dir $@)
1265         $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1266
1267 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1268         $(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" }' <$< >$@
1269
1270 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1271         $(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 }' <$< >$@
1272
1273 # ------------------------------------------------------------------------------
1274 systemd_SOURCES = \
1275         src/core/main.c
1276
1277 systemd_CFLAGS = \
1278         $(AM_CFLAGS) \
1279         $(SECCOMP_CFLAGS)
1280
1281 systemd_LDADD = \
1282         libsystemd-core.la \
1283         $(RT_LIBS)
1284
1285 dist_pkgsysconf_DATA += \
1286         src/core/system.conf \
1287         src/core/user.conf
1288
1289 dist_dbuspolicy_DATA += \
1290         src/core/org.freedesktop.systemd1.conf
1291
1292 dist_dbussystemservice_DATA += \
1293         src/core/org.freedesktop.systemd1.service
1294
1295 polkitpolicy_in_in_files += \
1296         src/core/org.freedesktop.systemd1.policy.in.in
1297
1298 pkgconfigdata_DATA = \
1299         src/core/systemd.pc
1300
1301 nodist_rpmmacros_DATA = \
1302         src/core/macros.systemd
1303
1304 EXTRA_DIST += \
1305         src/core/systemd.pc.in \
1306         src/core/macros.systemd.in
1307
1308 CLEANFILES += \
1309         src/core/macros.systemd \
1310         src/core/org.freedesktop.systemd1.policy.in
1311
1312 # ------------------------------------------------------------------------------
1313
1314 manual_tests += \
1315         test-ns \
1316         test-loopback \
1317         test-hostname \
1318         test-daemon \
1319         test-cgroup \
1320         test-install \
1321         test-watchdog \
1322         test-log \
1323         test-ipcrm
1324
1325 if HAVE_KMOD
1326 manual_tests += \
1327         test-rtnl-manual
1328 endif
1329
1330 tests += \
1331         test-engine \
1332         test-cgroup-mask \
1333         test-job-type \
1334         test-env-replace \
1335         test-strbuf \
1336         test-strv \
1337         test-path \
1338         test-path-util \
1339         test-strxcpyx \
1340         test-unit-name \
1341         test-unit-file \
1342         test-utf8 \
1343         test-ellipsize \
1344         test-util \
1345         test-ring \
1346         test-barrier \
1347         test-pty \
1348         test-tmpfiles \
1349         test-namespace \
1350         test-date \
1351         test-sleep \
1352         test-replace-var \
1353         test-sched-prio \
1354         test-calendarspec \
1355         test-strip-tab-ansi \
1356         test-cgroup-util \
1357         test-prioq \
1358         test-fileio \
1359         test-time \
1360         test-hashmap \
1361         test-set \
1362         test-list \
1363         test-unaligned \
1364         test-tables \
1365         test-device-nodes \
1366         test-xml \
1367         test-architecture \
1368         test-socket-util \
1369         test-fdset \
1370         test-conf-files \
1371         test-capability \
1372         test-async \
1373         test-ratelimit \
1374         test-condition \
1375         test-uid-range \
1376         test-bus-policy \
1377         test-locale-util \
1378         test-execute \
1379         test-copy \
1380         test-cap-list
1381
1382 EXTRA_DIST += \
1383         test/a.service \
1384         test/basic.target \
1385         test/b.service \
1386         test/c.service \
1387         test/daughter.service \
1388         test/d.service \
1389         test/end.service \
1390         test/e.service \
1391         test/f.service \
1392         test/grandchild.service \
1393         test/g.service \
1394         test/hello-after-sleep.target \
1395         test/hello.service \
1396         test/h.service \
1397         test/parent-deep.slice \
1398         test/parent.slice \
1399         test/paths.target \
1400         test/sched_idle_bad.service \
1401         test/sched_idle_ok.service \
1402         test/sched_rr_bad.service \
1403         test/sched_rr_change.service \
1404         test/sched_rr_ok.service \
1405         test/shutdown.target \
1406         test/sleep.service \
1407         test/sockets.target \
1408         test/son.service \
1409         test/sysinit.target \
1410         test/testsuite.target \
1411         test/timers.target \
1412         test/unstoppable.service \
1413         test/path-changed.service \
1414         test/path-directorynotempty.service \
1415         test/path-existsglob.service \
1416         test/path-exists.service \
1417         test/path-makedirectory.service \
1418         test/path-modified.service \
1419         test/path-mycustomunit.service \
1420         test/path-service.service \
1421         test/path-changed.path \
1422         test/path-directorynotempty.path \
1423         test/path-existsglob.path \
1424         test/path-exists.path \
1425         test/path-makedirectory.path \
1426         test/path-modified.path \
1427         test/path-unit.path \
1428         test/exec-environment-empty.service \
1429         test/exec-environment-multiple.service \
1430         test/exec-environment.service \
1431         test/exec-group.service \
1432         test/exec-ignoresigpipe-no.service \
1433         test/exec-ignoresigpipe-yes.service \
1434         test/exec-personality-x86-64.service \
1435         test/exec-personality-x86.service \
1436         test/exec-privatedevices-no.service \
1437         test/exec-privatedevices-yes.service \
1438         test/exec-privatetmp-no.service \
1439         test/exec-privatetmp-yes.service \
1440         test/exec-systemcallerrornumber.service \
1441         test/exec-systemcallfilter-failing2.service \
1442         test/exec-systemcallfilter-failing.service \
1443         test/exec-systemcallfilter-not-failing2.service \
1444         test/exec-systemcallfilter-not-failing.service \
1445         test/exec-user.service \
1446         test/exec-workingdirectory.service \
1447         test/bus-policy/hello.conf \
1448         test/bus-policy/methods.conf \
1449         test/bus-policy/ownerships.conf \
1450         test/bus-policy/signals.conf \
1451         test/bus-policy/check-own-rules.conf \
1452         test/bus-policy/many-rules.conf \
1453         test/bus-policy/test.conf
1454
1455
1456 EXTRA_DIST += \
1457         src/test/test-helper.h
1458
1459 test_device_nodes_SOURCES = \
1460         src/test/test-device-nodes.c
1461
1462 test_device_nodes_LDADD = \
1463         libsystemd-shared.la
1464
1465 test_engine_SOURCES = \
1466         src/test/test-engine.c
1467
1468 test_engine_CFLAGS = \
1469         $(AM_CFLAGS) \
1470         $(SECCOMP_CFLAGS)
1471
1472 test_engine_LDADD = \
1473         libsystemd-core.la \
1474         $(RT_LIBS)
1475
1476 test_job_type_SOURCES = \
1477         src/test/test-job-type.c
1478
1479 test_job_type_CFLAGS = \
1480         $(AM_CFLAGS) \
1481         $(SECCOMP_CFLAGS)
1482
1483 test_job_type_LDADD = \
1484         libsystemd-core.la \
1485         $(RT_LIBS)
1486
1487 test_ns_SOURCES = \
1488         src/test/test-ns.c
1489
1490 test_ns_CFLAGS = \
1491         $(AM_CFLAGS) \
1492         $(SECCOMP_CFLAGS)
1493
1494 test_ns_LDADD = \
1495         libsystemd-core.la
1496
1497 test_loopback_SOURCES = \
1498         src/test/test-loopback.c
1499
1500 test_loopback_LDADD = \
1501         libsystemd-core.la
1502
1503 test_hostname_SOURCES = \
1504         src/test/test-hostname.c
1505
1506 test_hostname_LDADD = \
1507         libsystemd-core.la
1508
1509 if ENABLE_EFI
1510 manual_tests += \
1511         test-boot-timestamp
1512
1513 test_boot_timestamp_SOURCES = \
1514         src/test/test-boot-timestamps.c
1515
1516 test_boot_timestamp_LDADD = \
1517         libsystemd-shared.la
1518 endif
1519
1520 test_unit_name_SOURCES = \
1521         src/test/test-unit-name.c
1522
1523 test_unit_name_CFLAGS = \
1524         $(AM_CFLAGS) \
1525         $(SECCOMP_CFLAGS)
1526
1527 test_unit_name_LDADD = \
1528         libsystemd-core.la \
1529         $(RT_LIBS)
1530
1531 test_unit_file_SOURCES = \
1532         src/test/test-unit-file.c
1533
1534 test_unit_file_CFLAGS = \
1535         $(AM_CFLAGS) \
1536         $(SECCOMP_CFLAGS)
1537
1538 test_unit_file_LDADD = \
1539         libsystemd-core.la \
1540         $(RT_LIBS)
1541
1542 test_utf8_SOURCES = \
1543         src/test/test-utf8.c
1544
1545 test_utf8_LDADD = \
1546         libsystemd-shared.la
1547
1548 test_capability_SOURCES = \
1549         src/test/test-capability.c
1550
1551 test_capability_LDADD = \
1552         libsystemd-shared.la
1553
1554 test_async_SOURCES = \
1555         src/test/test-async.c
1556
1557 test_async_LDADD = \
1558         libsystemd-shared.la
1559
1560 test_locale_util_SOURCES = \
1561         src/test/test-locale-util.c
1562
1563 test_locale_util_LDADD = \
1564         libsystemd-shared.la
1565
1566 test_copy_SOURCES = \
1567         src/test/test-copy.c
1568
1569 test_copy_LDADD = \
1570         libsystemd-shared.la
1571
1572 test_condition_SOURCES = \
1573         src/test/test-condition.c
1574
1575 test_condition_LDADD = \
1576         libsystemd-label.la \
1577         libsystemd-internal.la \
1578         libsystemd-shared.la
1579
1580 test_fdset_SOURCES = \
1581         src/test/test-fdset.c
1582
1583 test_fdset_LDADD = \
1584         libsystemd-shared.la \
1585         libsystemd-internal.la
1586
1587 test_ratelimit_SOURCES = \
1588         src/test/test-ratelimit.c
1589
1590 test_ratelimit_LDADD = \
1591         libsystemd-shared.la
1592
1593 test_util_SOURCES = \
1594         src/test/test-util.c
1595
1596 test_util_LDADD = \
1597         -lm \
1598         libsystemd-shared.la
1599
1600 test_uid_range_SOURCES = \
1601         src/test/test-uid-range.c
1602
1603 test_uid_range_LDADD = \
1604         libsystemd-shared.la
1605
1606 test_cap_list_SOURCES = \
1607         src/test/test-cap-list.c
1608
1609 test_cap_list_LDADD = \
1610         libsystemd-shared.la
1611
1612 test_socket_util_SOURCES = \
1613         src/test/test-socket-util.c
1614
1615 test_socket_util_LDADD = \
1616         libsystemd-shared.la
1617
1618 test_ring_SOURCES = \
1619         src/test/test-ring.c
1620
1621 test_ring_LDADD = \
1622         libsystemd-shared.la
1623
1624 test_barrier_SOURCES = \
1625         src/test/test-barrier.c
1626
1627 test_barrier_LDADD = \
1628         libsystemd-shared.la
1629
1630 test_pty_SOURCES = \
1631         src/test/test-pty.c
1632
1633 test_pty_LDADD = \
1634         libsystemd-core.la
1635
1636 test_tmpfiles_SOURCES = \
1637         src/test/test-tmpfiles.c
1638
1639 test_tmpfiles_LDADD = \
1640         libsystemd-shared.la
1641
1642 test_namespace_SOURCES = \
1643         src/test/test-namespace.c
1644
1645 test_namespace_LDADD = \
1646         libsystemd-core.la
1647
1648 CLEANFILES += \
1649         src/test/test-hashmap-ordered.c
1650
1651 BUILT_SOURCES += \
1652         src/test/test-hashmap-ordered.c
1653
1654 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1655         $(AM_V_at)$(MKDIR_P) $(dir $@)
1656         $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1657                            { if (!match($$0, "^#include"))          \
1658                                  gsub(/hashmap/, "ordered_hashmap"); \
1659                              gsub(/HASHMAP/, "ORDERED_HASHMAP");     \
1660                              gsub(/Hashmap/, "OrderedHashmap");      \
1661                              print }' <$< >$@
1662
1663 nodist_test_hashmap_SOURCES = \
1664         src/test/test-hashmap-ordered.c
1665
1666 test_hashmap_SOURCES = \
1667         src/test/test-hashmap.c \
1668         src/test/test-hashmap-plain.c
1669
1670 test_hashmap_LDADD = \
1671         libsystemd-shared.la
1672
1673 test_set_SOURCES = \
1674         src/test/test-set.c
1675
1676 test_set_LDADD = \
1677         libsystemd-shared.la
1678
1679 test_xml_SOURCES = \
1680         src/test/test-xml.c
1681
1682 test_xml_LDADD = \
1683         libsystemd-shared.la
1684
1685 test_list_SOURCES = \
1686         src/test/test-list.c
1687
1688 test_list_LDADD = \
1689         libsystemd-shared.la
1690
1691 test_unaligned_LDADD = \
1692         libsystemd-shared.la
1693
1694 test_unaligned_SOURCES = \
1695         src/test/test-unaligned.c
1696
1697 test_tables_SOURCES = \
1698         src/test/test-tables.c \
1699         src/shared/test-tables.h \
1700         src/bus-proxyd/bus-policy.c \
1701         src/bus-proxyd/bus-policy.h \
1702         src/journal/journald-server.c \
1703         src/journal/journald-server.h
1704
1705 test_tables_CPPFLAGS = \
1706         $(AM_CPPFLAGS) \
1707         -I$(top_srcdir)/src/bus-proxyd
1708
1709 test_tables_CFLAGS = \
1710         $(AM_CFLAGS) \
1711         $(SECCOMP_CFLAGS)
1712
1713 test_tables_LDADD = \
1714         libsystemd-logs.la \
1715         libsystemd-journal-internal.la \
1716         libsystemd-journal-core.la \
1717         libsystemd-core.la \
1718         libudev-core.la \
1719         $(RT_LIBS)
1720
1721 test_prioq_SOURCES = \
1722         src/test/test-prioq.c
1723
1724 test_prioq_LDADD = \
1725         libsystemd-shared.la
1726
1727 test_fileio_SOURCES = \
1728         src/test/test-fileio.c
1729
1730 test_fileio_LDADD = \
1731         libsystemd-shared.la
1732
1733 test_time_SOURCES = \
1734         src/test/test-time.c
1735
1736 test_time_LDADD = \
1737         libsystemd-shared.la
1738
1739 test_architecture_SOURCES = \
1740         src/test/test-architecture.c
1741
1742 test_architecture_LDADD = \
1743         libsystemd-shared.la
1744
1745 test_log_SOURCES = \
1746         src/test/test-log.c
1747
1748 test_log_LDADD = \
1749         libsystemd-shared.la
1750
1751 test_ipcrm_SOURCES = \
1752         src/test/test-ipcrm.c
1753
1754 test_ipcrm_LDADD = \
1755         libsystemd-shared.la \
1756         -lrt
1757
1758 test_rtnl_manual_SOURCES = \
1759         src/test/test-rtnl-manual.c
1760
1761 test_rtnl_manual_CFLAGS = \
1762         $(AM_CFLAGS) \
1763         $(KMOD_CFLAGS)
1764
1765 test_rtnl_manual_LDADD = \
1766         libsystemd-internal.la \
1767         libsystemd-shared.la \
1768         $(KMOD_LIBS)
1769
1770 test_ellipsize_SOURCES = \
1771         src/test/test-ellipsize.c
1772
1773 test_ellipsize_LDADD = \
1774         libsystemd-shared.la
1775
1776 test_date_SOURCES = \
1777         src/test/test-date.c
1778
1779 test_date_LDADD = \
1780         libsystemd-shared.la
1781
1782 test_sleep_SOURCES = \
1783         src/test/test-sleep.c
1784
1785 test_sleep_LDADD = \
1786         libsystemd-core.la
1787
1788 test_replace_var_SOURCES = \
1789         src/test/test-replace-var.c
1790
1791 test_replace_var_LDADD = \
1792         libsystemd-shared.la
1793
1794 test_calendarspec_SOURCES = \
1795         src/test/test-calendarspec.c
1796
1797 test_calendarspec_LDADD = \
1798         libsystemd-shared.la
1799
1800 test_strip_tab_ansi_SOURCES = \
1801         src/test/test-strip-tab-ansi.c
1802
1803 test_strip_tab_ansi_LDADD = \
1804         libsystemd-shared.la
1805
1806 test_daemon_SOURCES = \
1807         src/test/test-daemon.c
1808
1809 test_daemon_LDADD = \
1810         libsystemd-internal.la \
1811         libsystemd-shared.la
1812
1813 test_cgroup_SOURCES = \
1814         src/test/test-cgroup.c
1815
1816 test_cgroup_LDADD = \
1817         libsystemd-label.la \
1818         libsystemd-shared.la \
1819         libsystemd-internal.la
1820
1821 test_cgroup_mask_SOURCES = \
1822         src/test/test-cgroup-mask.c
1823
1824 test_cgroup_mask_CPPFLAGS = \
1825         $(AM_CPPFLAGS)
1826
1827 test_cgroup_mask_CFLAGS = \
1828         $(AM_CFLAGS) \
1829         $(SECCOMP_CFLAGS)
1830
1831 test_cgroup_mask_LDADD = \
1832         libsystemd-core.la \
1833         $(RT_LIBS)
1834
1835 test_cgroup_util_SOURCES = \
1836         src/test/test-cgroup-util.c
1837
1838 test_cgroup_util_LDADD = \
1839         libsystemd-label.la \
1840         libsystemd-internal.la \
1841         libsystemd-shared.la
1842
1843 test_env_replace_SOURCES = \
1844         src/test/test-env-replace.c
1845
1846 test_env_replace_LDADD = \
1847         libsystemd-shared.la
1848
1849 test_strbuf_SOURCES = \
1850         src/test/test-strbuf.c
1851
1852 test_strbuf_LDADD = \
1853         libsystemd-shared.la
1854
1855 test_strv_SOURCES = \
1856         src/test/test-strv.c
1857
1858 test_strv_LDADD = \
1859         libsystemd-units.la \
1860         libsystemd-internal.la \
1861         libsystemd-shared.la
1862
1863 test_path_util_SOURCES = \
1864         src/test/test-path-util.c
1865
1866 test_path_util_LDADD = \
1867         libsystemd-shared.la
1868
1869 test_path_SOURCES = \
1870         src/test/test-path.c
1871
1872 test_path_CFLAGS = \
1873         $(AM_CFLAGS)
1874
1875 test_path_LDADD = \
1876         libsystemd-core.la
1877
1878 test_execute_SOURCES = \
1879         src/test/test-execute.c
1880
1881 test_execute_CFLAGS = \
1882         $(AM_CFLAGS)
1883
1884 test_execute_LDADD = \
1885         libsystemd-core.la
1886
1887 test_strxcpyx_SOURCES = \
1888         src/test/test-strxcpyx.c
1889
1890 test_strxcpyx_LDADD = \
1891         libsystemd-shared.la
1892
1893 test_install_SOURCES = \
1894         src/test/test-install.c
1895
1896 test_install_LDADD = \
1897         libsystemd-units.la \
1898         libsystemd-label.la \
1899         libsystemd-shared.la \
1900         libsystemd-internal.la
1901
1902 test_watchdog_SOURCES = \
1903         src/test/test-watchdog.c
1904
1905 test_watchdog_LDADD = \
1906         libsystemd-shared.la
1907
1908 test_sched_prio_SOURCES = \
1909         src/test/test-sched-prio.c
1910
1911 test_sched_prio_CPPFLAGS = \
1912         $(AM_CPPFLAGS)
1913
1914 test_sched_prio_CFLAGS = \
1915         $(AM_CFLAGS) \
1916         $(SECCOMP_CFLAGS)
1917
1918 test_sched_prio_LDADD = \
1919         libsystemd-core.la \
1920         $(RT_LIBS)
1921
1922 test_conf_files_SOURCES = \
1923         src/test/test-conf-files.c
1924
1925 test_conf_files_LDADD = \
1926         libsystemd-shared.la
1927
1928 test_bus_policy_SOURCES = \
1929         src/bus-proxyd/test-bus-policy.c \
1930         src/bus-proxyd/bus-policy.c \
1931         src/bus-proxyd/bus-policy.h
1932
1933 test_bus_policy_LDADD = \
1934         libsystemd-internal.la \
1935         libsystemd-shared.la
1936
1937 # ------------------------------------------------------------------------------
1938 ## .PHONY so it always rebuilds it
1939 .PHONY: coverage lcov-run lcov-report coverage-sync
1940
1941 # run lcov from scratch, always
1942 coverage: all
1943         $(MAKE) lcov-run
1944         $(MAKE) lcov-report
1945
1946 coverage_dir = coverage
1947 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1948
1949 if ENABLE_COVERAGE
1950 # reset run coverage tests
1951 lcov-run:
1952         @rm -rf $(coverage_dir)
1953         lcov $(coverage_opts) --zerocounters
1954         -$(MAKE) check
1955
1956 # generate report based on current coverage data
1957 lcov-report:
1958         $(MKDIR_P) $(coverage_dir)
1959         lcov $(coverage_opts) --compat-libtool --capture --no-external \
1960                 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1961         lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
1962         genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
1963         @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1964
1965 # lcov doesn't work properly with vpath builds, make sure that bad
1966 # output is not uploaded by mistake.
1967 coverage-sync: coverage
1968         test "$(builddir)" = "$(srcdir)"
1969         rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1970
1971 else
1972 lcov-run lcov-report:
1973         echo "Need to reconfigure with --enable-coverage"
1974 endif
1975
1976 # ------------------------------------------------------------------------------
1977 systemd_analyze_SOURCES = \
1978         src/analyze/analyze.c \
1979         src/analyze/analyze-verify.c \
1980         src/analyze/analyze-verify.h
1981
1982 systemd_verify_CFLAGS = \
1983         $(AM_CFLAGS) \
1984         $(SECCOMP_CFLAGS)
1985
1986 systemd_analyze_LDADD = \
1987         libsystemd-core.la \
1988         libsystemd-internal.la \
1989         libsystemd-shared.la \
1990         $(RT_LIBS)
1991
1992 # ------------------------------------------------------------------------------
1993 systemd_initctl_SOURCES = \
1994         src/initctl/initctl.c
1995
1996 systemd_initctl_LDADD = \
1997         libsystemd-internal.la \
1998         libsystemd-shared.la
1999
2000 # ------------------------------------------------------------------------------
2001 systemd_update_utmp_SOURCES = \
2002         src/update-utmp/update-utmp.c
2003
2004 systemd_update_utmp_CFLAGS = \
2005         $(AM_CFLAGS) \
2006         $(AUDIT_CFLAGS)
2007
2008 systemd_update_utmp_LDADD = \
2009         libsystemd-internal.la \
2010         libsystemd-shared.la \
2011         $(AUDIT_LIBS)
2012
2013 # ------------------------------------------------------------------------------
2014 systemd_update_done_SOURCES = \
2015         src/update-done/update-done.c
2016
2017 systemd_update_done_LDADD = \
2018         libsystemd-internal.la \
2019         libsystemd-label.la \
2020         libsystemd-shared.la
2021
2022 # ------------------------------------------------------------------------------
2023 systemd_shutdownd_SOURCES = \
2024         src/shutdownd/shutdownd.c
2025
2026 systemd_shutdownd_LDADD = \
2027         libsystemd-label.la \
2028         libsystemd-internal.la \
2029         libsystemd-shared.la
2030
2031 dist_doc_DATA += \
2032         src/systemd/sd-shutdown.h
2033
2034 # ------------------------------------------------------------------------------
2035 systemd_shutdown_SOURCES = \
2036         src/core/umount.c \
2037         src/core/umount.h \
2038         src/core/shutdown.c \
2039         src/core/mount-setup.c \
2040         src/core/mount-setup.h \
2041         src/core/killall.h \
2042         src/core/killall.c
2043
2044 systemd_shutdown_LDADD = \
2045         libsystemd-label.la \
2046         libudev-internal.la \
2047         libsystemd-shared.la
2048
2049 # ------------------------------------------------------------------------------
2050 if HAVE_KMOD
2051 systemd_modules_load_SOURCES = \
2052         src/modules-load/modules-load.c
2053
2054 systemd_modules_load_CFLAGS = \
2055         $(AM_CFLAGS) \
2056         $(KMOD_CFLAGS)
2057
2058 systemd_modules_load_LDADD = \
2059         libsystemd-shared.la \
2060         $(KMOD_LIBS)
2061
2062 rootlibexec_PROGRAMS += \
2063         systemd-modules-load
2064
2065 nodist_systemunit_DATA += \
2066         units/systemd-modules-load.service
2067
2068 SYSINIT_TARGET_WANTS += \
2069         systemd-modules-load.service
2070
2071 if ENABLE_TMPFILES
2072 nodist_systemunit_DATA += \
2073         units/kmod-static-nodes.service
2074
2075 SYSINIT_TARGET_WANTS += \
2076         kmod-static-nodes.service
2077 endif
2078 endif
2079
2080 EXTRA_DIST += \
2081         units/systemd-modules-load.service.in \
2082         units/kmod-static-nodes.service.in
2083
2084 # ------------------------------------------------------------------------------
2085 if ENABLE_TMPFILES
2086 systemd_tmpfiles_SOURCES = \
2087         src/tmpfiles/tmpfiles.c
2088
2089 systemd_tmpfiles_LDADD = \
2090         libsystemd-units.la \
2091         libsystemd-label.la \
2092         libsystemd-internal.la \
2093         libsystemd-shared.la
2094
2095 rootbin_PROGRAMS += \
2096         systemd-tmpfiles
2097
2098 dist_systemunit_DATA += \
2099         units/systemd-tmpfiles-clean.timer
2100
2101 nodist_systemunit_DATA += \
2102         units/systemd-tmpfiles-setup-dev.service \
2103         units/systemd-tmpfiles-setup.service \
2104         units/systemd-tmpfiles-clean.service
2105
2106 nodist_tmpfiles_DATA = \
2107         tmpfiles.d/etc.conf
2108
2109 dist_tmpfiles_DATA = \
2110         tmpfiles.d/systemd.conf \
2111         tmpfiles.d/systemd-nologin.conf \
2112         tmpfiles.d/tmp.conf \
2113         tmpfiles.d/x11.conf \
2114         tmpfiles.d/var.conf
2115
2116 if HAVE_SYSV_COMPAT
2117 dist_tmpfiles_DATA += \
2118         tmpfiles.d/legacy.conf
2119 endif
2120
2121 SYSINIT_TARGET_WANTS += \
2122         systemd-tmpfiles-setup-dev.service \
2123         systemd-tmpfiles-setup.service
2124
2125 dist_zshcompletion_DATA += \
2126         shell-completion/zsh/_systemd-tmpfiles
2127
2128 TIMERS_TARGET_WANTS += \
2129         systemd-tmpfiles-clean.timer
2130
2131 INSTALL_DIRS += \
2132         $(tmpfilesdir) \
2133         $(sysconfdir)/tmpfiles.d
2134 endif
2135
2136 EXTRA_DIST += \
2137         tmpfiles.d/etc.conf.m4 \
2138         units/systemd-tmpfiles-setup-dev.service.in \
2139         units/systemd-tmpfiles-setup.service.in \
2140         units/systemd-tmpfiles-clean.service.in
2141
2142 CLEANFILES += \
2143         tmpfiles.d/etc.conf
2144
2145 # ------------------------------------------------------------------------------
2146 if ENABLE_SYSUSERS
2147 systemd_sysusers_SOURCES = \
2148         src/sysusers/sysusers.c
2149
2150 systemd_sysusers_LDADD = \
2151         libsystemd-units.la \
2152         libsystemd-label.la \
2153         libsystemd-internal.la \
2154         libsystemd-shared.la
2155
2156 rootbin_PROGRAMS += \
2157         systemd-sysusers
2158
2159 nodist_systemunit_DATA += \
2160         units/systemd-sysusers.service
2161
2162 SYSINIT_TARGET_WANTS += \
2163         systemd-sysusers.service
2164
2165 dist_sysusers_DATA = \
2166         sysusers.d/systemd.conf
2167
2168 nodist_sysusers_DATA = \
2169         sysusers.d/basic.conf
2170
2171 EXTRA_DIST += \
2172         units/systemd-sysusers.service.in \
2173         sysusers.d/basic.conf.in
2174
2175 CLEANFILES += \
2176         sysusers.d/basic.conf
2177
2178 INSTALL_DIRS += \
2179         $(sysusersdir)
2180 endif
2181
2182 # ------------------------------------------------------------------------------
2183 dist_factory_etc_DATA = \
2184         factory/etc/nsswitch.conf
2185
2186 if HAVE_PAM
2187 dist_factory_pam_DATA = \
2188         factory/etc/pam.d/system-auth \
2189         factory/etc/pam.d/other
2190 endif
2191
2192 # ------------------------------------------------------------------------------
2193 if ENABLE_FIRSTBOOT
2194 systemd_firstboot_SOURCES = \
2195         src/firstboot/firstboot.c
2196
2197 systemd_firstboot_LDADD = \
2198         libsystemd-units.la \
2199         libsystemd-label.la \
2200         libsystemd-internal.la \
2201         libsystemd-shared.la \
2202         -lcrypt
2203
2204 rootbin_PROGRAMS += \
2205         systemd-firstboot
2206
2207 nodist_systemunit_DATA += \
2208         units/systemd-firstboot.service
2209
2210 EXTRA_DIST += \
2211         units/systemd-firstboot.service.in
2212
2213 SYSINIT_TARGET_WANTS += \
2214         systemd-firstboot.service
2215 endif
2216
2217 # ------------------------------------------------------------------------------
2218 systemd_machine_id_setup_SOURCES = \
2219         src/machine-id-setup/machine-id-setup-main.c \
2220         src/core/machine-id-setup.c \
2221         src/core/machine-id-setup.h
2222
2223 systemd_machine_id_setup_LDADD = \
2224         libsystemd-label.la \
2225         libsystemd-internal.la \
2226         libsystemd-shared.la
2227
2228 # ------------------------------------------------------------------------------
2229 systemd_sysctl_SOURCES = \
2230         src/sysctl/sysctl.c
2231
2232 systemd_sysctl_LDADD = \
2233         libsystemd-shared.la
2234
2235 # ------------------------------------------------------------------------------
2236 systemd_sleep_SOURCES = \
2237         src/sleep/sleep.c
2238
2239 systemd_sleep_LDADD = \
2240         libsystemd-shared.la
2241
2242 # ------------------------------------------------------------------------------
2243 systemd_fsck_SOURCES = \
2244         src/fsck/fsck.c
2245
2246 systemd_fsck_LDADD = \
2247         libsystemd-internal.la \
2248         libudev-internal.la \
2249         libsystemd-shared.la
2250
2251 # ------------------------------------------------------------------------------
2252 systemd_machine_id_commit_SOURCES = \
2253         src/machine-id-commit/machine-id-commit.c \
2254         src/core/machine-id-setup.c \
2255         src/core/machine-id-setup.h
2256
2257 systemd_machine_id_commit_LDADD = \
2258         libsystemd-label.la \
2259         libsystemd-internal.la \
2260         libsystemd-shared.la
2261
2262 SYSINIT_TARGET_WANTS += \
2263         systemd-machine-id-commit.service
2264
2265 # ------------------------------------------------------------------------------
2266 systemd_ac_power_SOURCES = \
2267         src/ac-power/ac-power.c
2268
2269 systemd_ac_power_LDADD = \
2270         libudev-internal.la \
2271         libsystemd-shared.la
2272
2273 # ------------------------------------------------------------------------------
2274 systemd_detect_virt_SOURCES = \
2275         src/detect-virt/detect-virt.c
2276
2277 systemd_detect_virt_LDADD = \
2278         libsystemd-shared.la
2279
2280 INSTALL_EXEC_HOOKS += \
2281         systemd-detect-virt-install-hook
2282
2283 # ------------------------------------------------------------------------------
2284 systemd_delta_SOURCES = \
2285         src/delta/delta.c
2286
2287 systemd_delta_LDADD = \
2288         libsystemd-shared.la
2289
2290 # ------------------------------------------------------------------------------
2291 systemd_getty_generator_SOURCES = \
2292         src/getty-generator/getty-generator.c
2293
2294 systemd_getty_generator_LDADD = \
2295         libsystemd-label.la \
2296         libsystemd-shared.la
2297
2298 # ------------------------------------------------------------------------------
2299 systemd_debug_generator_SOURCES = \
2300         src/debug-generator/debug-generator.c
2301
2302 systemd_debug_generator_LDADD = \
2303         libsystemd-label.la \
2304         libsystemd-shared.la
2305
2306 # ------------------------------------------------------------------------------
2307 systemd_fstab_generator_SOURCES = \
2308         src/fstab-generator/fstab-generator.c \
2309         src/core/mount-setup.c
2310
2311 systemd_fstab_generator_LDADD = \
2312         libsystemd-label.la \
2313         libsystemd-shared.la
2314
2315 # ------------------------------------------------------------------------------
2316 systemd_system_update_generator_SOURCES = \
2317         src/system-update-generator/system-update-generator.c
2318
2319 systemd_system_update_generator_LDADD = \
2320         libsystemd-label.la \
2321         libsystemd-shared.la
2322
2323 # ------------------------------------------------------------------------------
2324 if ENABLE_HIBERNATE
2325 systemgenerator_PROGRAMS += \
2326         systemd-hibernate-resume-generator
2327
2328 rootlibexec_PROGRAMS += \
2329         systemd-hibernate-resume
2330
2331 systemd_hibernate_resume_SOURCES = \
2332         src/hibernate-resume/hibernate-resume.c
2333
2334 systemd_hibernate_resume_LDADD = \
2335         libsystemd-internal.la \
2336         libsystemd-shared.la
2337
2338 systemd_hibernate_resume_generator_SOURCES = \
2339         src/hibernate-resume/hibernate-resume-generator.c
2340
2341 systemd_hibernate_resume_generator_LDADD = \
2342         libsystemd-label.la \
2343         libsystemd-shared.la
2344
2345 EXTRA_DIST += \
2346         units/systemd-hibernate.service.in \
2347         units/systemd-hibernate-resume@.service.in \
2348         units/systemd-hybrid-sleep.service.in
2349
2350 dist_systemunit_DATA += \
2351         units/hibernate.target \
2352         units/hybrid-sleep.target
2353
2354 nodist_systemunit_DATA += \
2355         units/systemd-hibernate.service \
2356         units/systemd-hibernate-resume@.service \
2357         units/systemd-hybrid-sleep.service
2358 endif
2359
2360 # ------------------------------------------------------------------------------
2361 if ENABLE_EFI
2362 systemgenerator_PROGRAMS +=  \
2363         systemd-efi-boot-generator
2364
2365 systemd_efi_boot_generator_SOURCES = \
2366         src/efi-boot-generator/efi-boot-generator.c
2367
2368 systemd_efi_boot_generator_LDADD = \
2369         libsystemd-label.la \
2370         libsystemd-shared.la
2371
2372 # ------------------------------------------------------------------------------
2373 bootctl_SOURCES = \
2374         src/boot/boot.h \
2375         src/boot/boot-loader.h \
2376         src/boot/bootctl.c \
2377         src/boot/boot-loader.c \
2378         src/boot/boot-efi.c
2379
2380 bootctl_LDADD = \
2381         libsystemd-shared.la \
2382         libsystemd-internal.la
2383
2384 bin_PROGRAMS += \
2385         bootctl
2386
2387 dist_bashcompletion_DATA += \
2388         shell-completion/bash/bootctl
2389
2390 dist_zshcompletion_DATA += \
2391         shell-completion/zsh/_bootctl
2392
2393 endif
2394
2395 # ------------------------------------------------------------------------------
2396 if HAVE_BLKID
2397 systemgenerator_PROGRAMS +=  \
2398         systemd-gpt-auto-generator
2399
2400 systemd_gpt_auto_generator_SOURCES = \
2401         src/gpt-auto-generator/gpt-auto-generator.c \
2402         src/shared/blkid-util.h
2403
2404 systemd_gpt_auto_generator_LDADD = \
2405         libsystemd-label.la \
2406         libsystemd-internal.la \
2407         libudev-internal.la \
2408         libsystemd-shared.la \
2409         $(BLKID_LIBS)
2410
2411 systemd_gpt_auto_generator_CFLAGS = \
2412         $(AM_CFLAGS) \
2413         $(BLKID_CFLAGS)
2414 endif
2415
2416 # ------------------------------------------------------------------------------
2417 if ENABLE_KDBUS
2418 systemgenerator_PROGRAMS +=  \
2419         systemd-dbus1-generator
2420
2421 systemd_dbus1_generator_SOURCES = \
2422         src/dbus1-generator/dbus1-generator.c
2423
2424 systemd_dbus1_generator_LDADD = \
2425         libsystemd-label.la \
2426         libsystemd-shared.la \
2427         libsystemd-internal.la
2428
2429 dbus1-generator-install-hook:
2430         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2431         $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2432         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2433
2434 dbus1-generator-uninstall-hook:
2435         rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2436
2437 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2438 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2439 endif
2440
2441 # ------------------------------------------------------------------------------
2442 systemd_sysv_generator_SOURCES = \
2443         src/sysv-generator/sysv-generator.c
2444
2445 systemd_sysv_generator_LDADD = \
2446         libsystemd-core.la \
2447         libsystemd-label.la \
2448         libsystemd-shared.la
2449
2450 # ------------------------------------------------------------------------------
2451 systemd_rc_local_generator_SOURCES = \
2452         src/rc-local-generator/rc-local-generator.c
2453
2454 systemd_rc_local_generator_LDADD = \
2455         libsystemd-label.la \
2456         libsystemd-shared.la
2457
2458 # ------------------------------------------------------------------------------
2459 systemd_remount_fs_SOURCES = \
2460         src/remount-fs/remount-fs.c \
2461         src/core/mount-setup.c \
2462         src/core/mount-setup.h
2463
2464 systemd_remount_fs_LDADD = \
2465         libsystemd-label.la \
2466         libsystemd-shared.la
2467
2468 # ------------------------------------------------------------------------------
2469 systemd_cgroups_agent_SOURCES = \
2470         src/cgroups-agent/cgroups-agent.c
2471
2472 systemd_cgroups_agent_LDADD = \
2473         libsystemd-internal.la \
2474         libsystemd-shared.la
2475
2476 # ------------------------------------------------------------------------------
2477 systemd_escape_SOURCES = \
2478         src/escape/escape.c
2479
2480 systemd_escape_LDADD = \
2481         libsystemd-shared.la
2482
2483 # -----------------------------------------------------------------------------
2484 systemctl_SOURCES = \
2485         src/systemctl/systemctl.c
2486
2487 systemctl_LDADD = \
2488         libsystemd-units.la \
2489         libsystemd-label.la \
2490         libsystemd-internal.la \
2491         libsystemd-logs.la \
2492         libsystemd-journal-internal.la \
2493         libsystemd-shared.la
2494
2495 # ------------------------------------------------------------------------------
2496 systemd_notify_SOURCES = \
2497         src/notify/notify.c
2498
2499 systemd_notify_LDADD = \
2500         libsystemd-internal.la \
2501         libsystemd-shared.la
2502
2503 # ------------------------------------------------------------------------------
2504 systemd_path_SOURCES = \
2505         src/path/path.c
2506
2507 systemd_path_LDADD = \
2508         libsystemd-internal.la \
2509         libsystemd-shared.la
2510
2511 # ------------------------------------------------------------------------------
2512 systemd_ask_password_SOURCES = \
2513         src/ask-password/ask-password.c
2514
2515 systemd_ask_password_LDADD = \
2516         libsystemd-label.la \
2517         libsystemd-shared.la
2518
2519 # ------------------------------------------------------------------------------
2520 systemd_reply_password_SOURCES = \
2521         src/reply-password/reply-password.c
2522
2523 systemd_reply_password_LDADD = \
2524         libsystemd-shared.la
2525
2526 # ------------------------------------------------------------------------------
2527 systemd_cgls_SOURCES = \
2528         src/cgls/cgls.c
2529
2530 systemd_cgls_LDADD = \
2531         libsystemd-internal.la \
2532         libsystemd-shared.la
2533
2534 # ------------------------------------------------------------------------------
2535 systemd_cgtop_SOURCES = \
2536         src/cgtop/cgtop.c
2537
2538 systemd_cgtop_LDADD = \
2539         libsystemd-shared.la
2540
2541 # ------------------------------------------------------------------------------
2542 systemd_nspawn_SOURCES = \
2543         src/nspawn/nspawn.c \
2544         src/core/mount-setup.c \
2545         src/core/mount-setup.h \
2546         src/core/loopback-setup.c \
2547         src/core/loopback-setup.h
2548
2549 systemd_nspawn_CFLAGS = \
2550         $(AM_CFLAGS) \
2551         $(SECCOMP_CFLAGS) \
2552         $(BLKID_CFLAGS)
2553
2554 systemd_nspawn_LDADD = \
2555         libsystemd-label.la \
2556         libsystemd-internal.la \
2557         libudev-internal.la \
2558         libsystemd-shared.la \
2559         $(BLKID_LIBS)
2560
2561 if HAVE_SECCOMP
2562 systemd_nspawn_LDADD += \
2563         libsystemd-seccomp.la \
2564         $(SECCOMP_LIBS)
2565 endif
2566
2567 # ------------------------------------------------------------------------------
2568 systemd_run_SOURCES = \
2569         src/run/run.c
2570
2571 systemd_run_LDADD = \
2572         libsystemd-label.la \
2573         libsystemd-internal.la \
2574         libsystemd-shared.la
2575
2576 # ------------------------------------------------------------------------------
2577 systemd_bus_proxyd_SOURCES = \
2578         src/bus-proxyd/bus-proxyd.c \
2579         src/bus-proxyd/bus-policy.c \
2580         src/bus-proxyd/bus-policy.h
2581
2582 systemd_bus_proxyd_LDADD = \
2583         libsystemd-internal.la \
2584         libsystemd-shared.la
2585
2586 bus-proxyd-install-hook:
2587         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2588         $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2589         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2590
2591 bus-proxyd-uninstall-hook:
2592         rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2593
2594 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2595 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2596
2597 if ENABLE_KDBUS
2598 nodist_systemunit_DATA += \
2599         units/systemd-bus-proxyd@.service
2600
2601 dist_systemunit_DATA += \
2602         units/systemd-bus-proxyd.socket
2603
2604 nodist_userunit_DATA += \
2605         units/user/systemd-bus-proxyd@.service
2606
2607 dist_userunit_DATA += \
2608         units/user/systemd-bus-proxyd.socket
2609 endif
2610
2611 EXTRA_DIST += \
2612         units/systemd-bus-proxyd@.service.m4.in \
2613         units/user/systemd-bus-proxyd@.service.in
2614
2615 if HAVE_SMACK
2616 bus-proxyd-set-cap-hook:
2617         -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2618
2619 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2620 endif
2621
2622 # ------------------------------------------------------------------------------
2623 systemd_tty_ask_password_agent_SOURCES = \
2624         src/tty-ask-password-agent/tty-ask-password-agent.c
2625
2626 systemd_tty_ask_password_agent_LDADD = \
2627         libsystemd-label.la \
2628         libsystemd-shared.la
2629
2630 # ------------------------------------------------------------------------------
2631 libsystemd_internal_la_SOURCES = \
2632         src/systemd/sd-bus.h \
2633         src/systemd/sd-bus-protocol.h \
2634         src/systemd/sd-bus-vtable.h \
2635         src/systemd/sd-utf8.h \
2636         src/systemd/sd-event.h \
2637         src/systemd/sd-rtnl.h \
2638         src/systemd/sd-resolve.h \
2639         src/systemd/sd-login.h \
2640         src/systemd/sd-id128.h \
2641         src/systemd/sd-daemon.h \
2642         src/systemd/sd-path.h \
2643         src/systemd/sd-network.h \
2644         src/libsystemd/sd-bus/sd-bus.c \
2645         src/libsystemd/sd-bus/bus-control.c \
2646         src/libsystemd/sd-bus/bus-control.h \
2647         src/libsystemd/sd-bus/bus-error.c \
2648         src/libsystemd/sd-bus/bus-error.h \
2649         src/libsystemd/sd-bus/bus-internal.c \
2650         src/libsystemd/sd-bus/bus-internal.h \
2651         src/libsystemd/sd-bus/bus-socket.c \
2652         src/libsystemd/sd-bus/bus-socket.h \
2653         src/libsystemd/sd-bus/bus-kernel.c \
2654         src/libsystemd/sd-bus/bus-kernel.h \
2655         src/libsystemd/sd-bus/bus-container.c \
2656         src/libsystemd/sd-bus/bus-container.h \
2657         src/libsystemd/sd-bus/bus-message.c \
2658         src/libsystemd/sd-bus/bus-message.h \
2659         src/libsystemd/sd-bus/bus-creds.c \
2660         src/libsystemd/sd-bus/bus-creds.h \
2661         src/libsystemd/sd-bus/bus-signature.c \
2662         src/libsystemd/sd-bus/bus-signature.h \
2663         src/libsystemd/sd-bus/bus-type.c \
2664         src/libsystemd/sd-bus/bus-type.h \
2665         src/libsystemd/sd-bus/bus-match.c \
2666         src/libsystemd/sd-bus/bus-match.h \
2667         src/libsystemd/sd-bus/bus-bloom.c \
2668         src/libsystemd/sd-bus/bus-bloom.h \
2669         src/libsystemd/sd-bus/bus-introspect.c \
2670         src/libsystemd/sd-bus/bus-introspect.h \
2671         src/libsystemd/sd-bus/bus-objects.c \
2672         src/libsystemd/sd-bus/bus-objects.h \
2673         src/libsystemd/sd-bus/bus-gvariant.c \
2674         src/libsystemd/sd-bus/bus-gvariant.h \
2675         src/libsystemd/sd-bus/bus-convenience.c \
2676         src/libsystemd/sd-bus/bus-track.c \
2677         src/libsystemd/sd-bus/bus-track.h \
2678         src/libsystemd/sd-bus/bus-util.c \
2679         src/libsystemd/sd-bus/bus-util.h \
2680         src/libsystemd/sd-bus/bus-slot.c \
2681         src/libsystemd/sd-bus/bus-slot.h \
2682         src/libsystemd/sd-bus/bus-protocol.h \
2683         src/libsystemd/sd-bus/kdbus.h \
2684         src/libsystemd/sd-utf8/sd-utf8.c \
2685         src/libsystemd/sd-event/sd-event.c \
2686         src/libsystemd/sd-event/event-util.h \
2687         src/libsystemd/sd-rtnl/sd-rtnl.c \
2688         src/libsystemd/sd-rtnl/rtnl-internal.h \
2689         src/libsystemd/sd-rtnl/rtnl-message.c \
2690         src/libsystemd/sd-rtnl/rtnl-types.h \
2691         src/libsystemd/sd-rtnl/rtnl-types.c \
2692         src/libsystemd/sd-rtnl/rtnl-util.h \
2693         src/libsystemd/sd-rtnl/rtnl-util.c \
2694         src/libsystemd/sd-rtnl/local-addresses.h \
2695         src/libsystemd/sd-rtnl/local-addresses.c \
2696         src/libsystemd/sd-id128/sd-id128.c \
2697         src/libsystemd/sd-daemon/sd-daemon.c \
2698         src/libsystemd/sd-login/sd-login.c \
2699         src/libsystemd/sd-path/sd-path.c \
2700         src/libsystemd/sd-network/sd-network.c \
2701         src/libsystemd/sd-network/network-util.h \
2702         src/libsystemd/sd-network/network-util.c
2703
2704 nodist_libsystemd_internal_la_SOURCES = \
2705         src/libsystemd/libsystemd.sym
2706
2707 libsystemd_internal_la_CFLAGS = \
2708         $(AM_CFLAGS) \
2709         -pthread
2710
2711 libsystemd_internal_la_LIBADD = \
2712         $(RT_LIBS)
2713
2714 libsystemd_resolve_la_SOURCES = \
2715         src/libsystemd/sd-resolve/sd-resolve.c \
2716         src/libsystemd/sd-resolve/resolve-util.h
2717
2718 libsystemd_resolve_la_CFLAGS = \
2719         $(AM_CFLAGS) \
2720         -pthread
2721
2722 libsystemd_resolve_la_LIBADD = \
2723         -lresolv
2724
2725 noinst_LTLIBRARIES += \
2726         libsystemd-internal.la \
2727         libsystemd-resolve.la
2728
2729 libsystemd_dump_la_SOURCES = \
2730         src/libsystemd/sd-bus/bus-dump.c \
2731         src/libsystemd/sd-bus/bus-dump.h
2732
2733 noinst_LTLIBRARIES += \
2734         libsystemd-dump.la
2735
2736 EXTRA_DIST += \
2737         src/libsystemd/libsystemd.sym.m4 \
2738         src/libsystemd/libsystemd.pc.in \
2739         src/libsystemd/sd-bus/DIFFERENCES \
2740         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2741
2742 CLEANFILES += \
2743         src/libsystemd/libsystemd.sym
2744
2745 BUILT_SOURCES += \
2746         src/libsystemd/libsystemd.sym
2747
2748 libsystemd_la_SOURCES = \
2749         $(libsystemd_internal_la_SOURCES) \
2750         $(libsystemd_resolve_la_SOURCES) \
2751         $(libsystemd_journal_internal_la_SOURCES)
2752
2753 nodist_libsystemd_la_SOURCES = \
2754         $(nodist_libsystemd_internal_la_SOURCES)
2755
2756 libsystemd_la_CFLAGS = \
2757         $(libsystemd_internal_la_CFLAGS) \
2758         $(libsystemd_resolve_la_CFLAGS) \
2759         $(libsystemd_journal_internal_la_CFLAGS)
2760
2761 libsystemd_la_LDFLAGS = \
2762         $(AM_LDFLAGS) \
2763         -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2764         -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2765
2766 libsystemd_la_LIBADD = \
2767         libsystemd-shared.la \
2768         $(libsystemd_internal_la_LIBADD) \
2769         $(libsystemd_journal_internal_la_LIBADD) \
2770         $(libsystemd_resolve_la_LIBADD)
2771
2772 libsystemd-install-hook:
2773         libname=libsystemd.so && $(move-to-rootlibdir)
2774
2775 libsystemd-uninstall-hook:
2776         rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2777
2778 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2779 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2780
2781 pkgconfiglib_DATA += \
2782         src/libsystemd/libsystemd.pc
2783
2784 pkginclude_HEADERS += \
2785         src/systemd/sd-login.h \
2786         src/systemd/sd-id128.h \
2787         src/systemd/sd-daemon.h
2788
2789 if ENABLE_KDBUS
2790 pkginclude_HEADERS += \
2791         src/systemd/sd-bus.h \
2792         src/systemd/sd-bus-protocol.h \
2793         src/systemd/sd-bus-vtable.h \
2794         src/systemd/sd-utf8.h \
2795         src/systemd/sd-event.h \
2796         src/systemd/sd-rtnl.h \
2797         src/systemd/sd-resolve.h \
2798         src/systemd/sd-path.h
2799 endif
2800
2801 lib_LTLIBRARIES += \
2802         libsystemd.la
2803
2804 tests += \
2805         test-bus-marshal \
2806         test-bus-signature \
2807         test-bus-chat \
2808         test-bus-cleanup \
2809         test-bus-server \
2810         test-bus-match \
2811         test-bus-kernel \
2812         test-bus-kernel-bloom \
2813         test-bus-kernel-benchmark \
2814         test-bus-zero-copy \
2815         test-bus-introspect \
2816         test-bus-objects \
2817         test-bus-error \
2818         test-bus-creds \
2819         test-bus-gvariant \
2820         test-event \
2821         test-rtnl \
2822         test-local-addresses \
2823         test-resolve
2824
2825 bin_PROGRAMS += \
2826         busctl
2827
2828 test_bus_marshal_SOURCES = \
2829         src/libsystemd/sd-bus/test-bus-marshal.c
2830
2831 test_bus_marshal_LDADD = \
2832         libsystemd-dump.la \
2833         libsystemd-internal.la \
2834         libsystemd-shared.la \
2835         $(GLIB_LIBS) \
2836         $(DBUS_LIBS)
2837
2838 test_bus_marshal_CFLAGS = \
2839         $(AM_CFLAGS) \
2840         $(GLIB_CFLAGS) \
2841         $(DBUS_CFLAGS)
2842
2843 test_bus_signature_SOURCES = \
2844         src/libsystemd/sd-bus/test-bus-signature.c
2845
2846 test_bus_signature_LDADD = \
2847         libsystemd-shared.la \
2848         libsystemd-internal.la
2849
2850 test_bus_chat_SOURCES = \
2851         src/libsystemd/sd-bus/test-bus-chat.c
2852
2853 test_bus_chat_CFLAGS = \
2854         $(AM_CFLAGS) \
2855         -pthread
2856
2857 test_bus_chat_LDADD = \
2858         libsystemd-internal.la \
2859         libsystemd-shared.la
2860
2861 test_bus_cleanup_SOURCES = \
2862         src/libsystemd/sd-bus/test-bus-cleanup.c
2863
2864 test_bus_cleanup_CFLAGS = \
2865         $(AM_CFLAGS) \
2866         $(SECCOMP_CFLAGS)
2867
2868 test_bus_cleanup_LDADD = \
2869         libsystemd-internal.la \
2870         libsystemd-shared.la
2871
2872 test_bus_server_SOURCES = \
2873         src/libsystemd/sd-bus/test-bus-server.c
2874
2875 test_bus_server_CFLAGS = \
2876         $(AM_CFLAGS) \
2877         -pthread
2878
2879 test_bus_server_LDADD = \
2880         libsystemd-internal.la \
2881         libsystemd-shared.la
2882
2883 test_bus_objects_SOURCES = \
2884         src/libsystemd/sd-bus/test-bus-objects.c
2885
2886 test_bus_objects_CFLAGS = \
2887         $(AM_CFLAGS) \
2888         -pthread
2889
2890 test_bus_objects_LDADD = \
2891         libsystemd-dump.la \
2892         libsystemd-internal.la \
2893         libsystemd-shared.la
2894
2895 test_bus_error_SOURCES = \
2896         src/libsystemd/sd-bus/test-bus-error.c
2897
2898 test_bus_error_LDADD = \
2899         libsystemd-internal.la \
2900         libsystemd-shared.la
2901
2902 test_bus_gvariant_SOURCES = \
2903         src/libsystemd/sd-bus/test-bus-gvariant.c
2904
2905 test_bus_gvariant_LDADD = \
2906         libsystemd-dump.la \
2907         libsystemd-internal.la \
2908         libsystemd-shared.la \
2909         $(GLIB_LIBS)
2910
2911 test_bus_gvariant_CFLAGS = \
2912         $(AM_CFLAGS) \
2913         $(GLIB_CFLAGS)
2914
2915 test_bus_creds_SOURCES = \
2916         src/libsystemd/sd-bus/test-bus-creds.c
2917
2918 test_bus_creds_LDADD = \
2919         libsystemd-dump.la \
2920         libsystemd-internal.la \
2921         libsystemd-shared.la
2922
2923 test_bus_match_SOURCES = \
2924         src/libsystemd/sd-bus/test-bus-match.c
2925
2926 test_bus_match_LDADD = \
2927         libsystemd-internal.la \
2928         libsystemd-shared.la
2929
2930 test_bus_kernel_SOURCES = \
2931         src/libsystemd/sd-bus/test-bus-kernel.c
2932
2933 test_bus_kernel_LDADD = \
2934         libsystemd-dump.la \
2935         libsystemd-internal.la \
2936         libsystemd-shared.la
2937
2938 test_bus_kernel_bloom_SOURCES = \
2939         src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2940
2941 test_bus_kernel_bloom_LDADD = \
2942         libsystemd-internal.la \
2943         libsystemd-shared.la
2944
2945 test_bus_kernel_benchmark_SOURCES = \
2946         src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2947
2948 test_bus_kernel_benchmark_LDADD = \
2949         libsystemd-internal.la \
2950         libsystemd-shared.la
2951
2952 test_bus_zero_copy_SOURCES = \
2953         src/libsystemd/sd-bus/test-bus-zero-copy.c
2954
2955 test_bus_zero_copy_LDADD = \
2956         libsystemd-dump.la \
2957         libsystemd-internal.la \
2958         libsystemd-shared.la
2959
2960 test_bus_introspect_SOURCES = \
2961         src/libsystemd/sd-bus/test-bus-introspect.c
2962
2963 test_bus_introspect_LDADD = \
2964         libsystemd-internal.la \
2965         libsystemd-shared.la
2966
2967 test_event_SOURCES = \
2968         src/libsystemd/sd-event/test-event.c
2969
2970 test_event_LDADD = \
2971         libsystemd-internal.la \
2972         libsystemd-shared.la
2973
2974 test_rtnl_SOURCES = \
2975         src/libsystemd/sd-rtnl/test-rtnl.c
2976
2977 test_rtnl_LDADD = \
2978         libsystemd-internal.la \
2979         libsystemd-shared.la
2980
2981 test_local_addresses_SOURCES = \
2982         src/libsystemd/sd-rtnl/test-local-addresses.c
2983
2984 test_local_addresses_LDADD = \
2985         libsystemd-internal.la \
2986         libsystemd-shared.la
2987
2988 test_resolve_SOURCES = \
2989         src/libsystemd/sd-resolve/test-resolve.c
2990
2991 test_resolve_LDADD = \
2992         libsystemd-resolve.la \
2993         libsystemd-internal.la \
2994         libsystemd-shared.la
2995
2996 test_resolve_CFLAGS = \
2997         $(AM_CFLAGS) \
2998         -pthread
2999
3000 busctl_SOURCES = \
3001         src/libsystemd/sd-bus/busctl.c \
3002         src/libsystemd/sd-bus/busctl-introspect.c \
3003         src/libsystemd/sd-bus/busctl-introspect.h
3004
3005 busctl_LDADD = \
3006         libsystemd-dump.la \
3007         libsystemd-internal.la \
3008         libsystemd-shared.la
3009
3010 # ------------------------------------------------------------------------------
3011 noinst_LTLIBRARIES += \
3012         libsystemd-network.la
3013
3014 libsystemd_network_la_CFLAGS = \
3015         $(AM_CFLAGS) \
3016         $(KMOD_CFLAGS)
3017
3018 libsystemd_network_la_SOURCES = \
3019         src/systemd/sd-dhcp-client.h \
3020         src/systemd/sd-dhcp-server.h \
3021         src/systemd/sd-dhcp-lease.h \
3022         src/systemd/sd-ipv4ll.h \
3023         src/systemd/sd-icmp6-nd.h \
3024         src/systemd/sd-dhcp6-client.h \
3025         src/systemd/sd-dhcp6-lease.h \
3026         src/systemd/sd-pppoe.h \
3027         src/libsystemd-network/sd-dhcp-client.c \
3028         src/libsystemd-network/sd-dhcp-server.c \
3029         src/libsystemd-network/dhcp-network.c \
3030         src/libsystemd-network/dhcp-option.c \
3031         src/libsystemd-network/dhcp-packet.c \
3032         src/libsystemd-network/dhcp-internal.h \
3033         src/libsystemd-network/dhcp-server-internal.h \
3034         src/libsystemd-network/dhcp-protocol.h \
3035         src/libsystemd-network/dhcp-lease-internal.h \
3036         src/libsystemd-network/sd-dhcp-lease.c \
3037         src/libsystemd-network/sd-ipv4ll.c \
3038         src/libsystemd-network/ipv4ll-network.c \
3039         src/libsystemd-network/ipv4ll-packet.c \
3040         src/libsystemd-network/ipv4ll-internal.h \
3041         src/libsystemd-network/sd-pppoe.c \
3042         src/libsystemd-network/network-internal.c \
3043         src/libsystemd-network/network-internal.h \
3044         src/libsystemd-network/sd-icmp6-nd.c \
3045         src/libsystemd-network/sd-dhcp6-client.c \
3046         src/libsystemd-network/dhcp6-internal.h \
3047         src/libsystemd-network/dhcp6-protocol.h \
3048         src/libsystemd-network/dhcp6-network.c \
3049         src/libsystemd-network/dhcp6-option.c \
3050         src/libsystemd-network/dhcp6-lease-internal.h \
3051         src/libsystemd-network/sd-dhcp6-lease.c
3052
3053 libsystemd_network_la_LIBADD = \
3054         libudev-internal.la \
3055         libsystemd-label.la \
3056         libsystemd-internal.la \
3057         libsystemd-shared.la \
3058         $(KMOD_LIBS)
3059
3060 test_dhcp_option_SOURCES = \
3061         src/libsystemd-network/dhcp-protocol.h \
3062         src/libsystemd-network/dhcp-internal.h \
3063         src/libsystemd-network/test-dhcp-option.c
3064
3065 test_dhcp_option_LDADD = \
3066         libsystemd-network.la \
3067         libsystemd-internal.la \
3068         libsystemd-shared.la
3069
3070 test_dhcp_client_SOURCES = \
3071         src/systemd/sd-dhcp-client.h \
3072         src/libsystemd-network/dhcp-protocol.h \
3073         src/libsystemd-network/dhcp-internal.h \
3074         src/libsystemd-network/test-dhcp-client.c
3075
3076 test_dhcp_client_LDADD = \
3077         libsystemd-network.la \
3078         libsystemd-label.la \
3079         libsystemd-internal.la \
3080         libsystemd-shared.la
3081
3082 test_dhcp_server_SOURCES = \
3083         src/libsystemd-network/test-dhcp-server.c
3084
3085 test_dhcp_server_LDADD = \
3086         libsystemd-network.la \
3087         libsystemd-internal.la \
3088         libsystemd-shared.la
3089
3090 test_ipv4ll_SOURCES = \
3091         src/systemd/sd-ipv4ll.h \
3092         src/libsystemd-network/ipv4ll-internal.h \
3093         src/libsystemd-network/test-ipv4ll.c
3094
3095 test_ipv4ll_LDADD = \
3096         libsystemd-network.la \
3097         libsystemd-label.la \
3098         libsystemd-internal.la \
3099         libsystemd-shared.la
3100
3101 test_pppoe_SOURCES = \
3102         src/systemd/sd-pppoe.h \
3103         src/libsystemd-network/test-pppoe.c
3104
3105 test_pppoe_LDADD = \
3106         libsystemd-network.la \
3107         libsystemd-shared.la
3108
3109 test_icmp6_rs_SOURCES = \
3110         src/systemd/sd-dhcp6-client.h \
3111         src/systemd/sd-icmp6-nd.h \
3112         src/libsystemd-network/dhcp6-internal.h \
3113         src/libsystemd-network/test-icmp6-rs.c
3114
3115 test_icmp6_rs_LDADD = \
3116         libsystemd-network.la \
3117         libsystemd-internal.la \
3118         libsystemd-shared.la
3119
3120 test_dhcp6_client_SOURCES = \
3121         src/systemd/sd-dhcp6-client.h \
3122         src/libsystemd-network/dhcp6-internal.h \
3123         src/libsystemd-network/test-dhcp6-client.c
3124
3125 test_dhcp6_client_LDADD = \
3126         libsystemd-network.la \
3127         libsystemd-internal.la \
3128         libsystemd-shared.la
3129
3130 tests += \
3131         test-dhcp-option \
3132         test-dhcp-client \
3133         test-dhcp-server \
3134         test-ipv4ll \
3135         test-icmp6-rs \
3136         test-dhcp6-client
3137
3138 manual_tests += \
3139         test-pppoe
3140
3141 # ------------------------------------------------------------------------------
3142 if ENABLE_TERMINAL
3143 noinst_LTLIBRARIES += \
3144         libsystemd-terminal.la
3145
3146 rootlibexec_PROGRAMS += \
3147         systemd-consoled
3148
3149 noinst_PROGRAMS += \
3150         systemd-evcat \
3151         systemd-modeset \
3152         systemd-subterm
3153
3154 dist_pkgdata_DATA += \
3155         src/libsystemd-terminal/unifont-glyph-array.bin
3156
3157 nodist_userunit_DATA += \
3158         units/user/systemd-consoled.service
3159
3160 USER_DEFAULT_TARGET_WANTS += \
3161         systemd-consoled.service
3162
3163 EXTRA_DIST += \
3164         units/user/systemd-consoled.service.in
3165
3166 tests += \
3167         test-term-page \
3168         test-term-parser \
3169         test-unifont
3170 endif
3171
3172 libsystemd_terminal_la_CFLAGS = \
3173         $(AM_CFLAGS) \
3174         $(TERMINAL_CFLAGS)
3175
3176 libsystemd_terminal_la_SOURCES = \
3177         src/libsystemd-terminal/grdev.h \
3178         src/libsystemd-terminal/grdev-internal.h \
3179         src/libsystemd-terminal/grdev.c \
3180         src/libsystemd-terminal/grdev-drm.c \
3181         src/libsystemd-terminal/idev.h \
3182         src/libsystemd-terminal/idev-internal.h \
3183         src/libsystemd-terminal/idev.c \
3184         src/libsystemd-terminal/idev-evdev.c \
3185         src/libsystemd-terminal/idev-keyboard.c \
3186         src/libsystemd-terminal/sysview.h \
3187         src/libsystemd-terminal/sysview-internal.h \
3188         src/libsystemd-terminal/sysview.c \
3189         src/libsystemd-terminal/term.h \
3190         src/libsystemd-terminal/term-internal.h \
3191         src/libsystemd-terminal/term-charset.c \
3192         src/libsystemd-terminal/term-page.c \
3193         src/libsystemd-terminal/term-parser.c \
3194         src/libsystemd-terminal/term-screen.c \
3195         src/libsystemd-terminal/term-wcwidth.c \
3196         src/libsystemd-terminal/unifont.h \
3197         src/libsystemd-terminal/unifont-def.h \
3198         src/libsystemd-terminal/unifont.c
3199
3200 libsystemd_terminal_la_LIBADD = \
3201         libudev-internal.la \
3202         libsystemd-internal.la \
3203         libsystemd-shared.la \
3204         $(TERMINAL_LIBS)
3205
3206 systemd_consoled_CFLAGS = \
3207         $(AM_CFLAGS) \
3208         $(TERMINAL_CFLAGS)
3209
3210 systemd_consoled_SOURCES = \
3211         src/console/consoled.h \
3212         src/console/consoled.c \
3213         src/console/consoled-display.c \
3214         src/console/consoled-manager.c \
3215         src/console/consoled-session.c \
3216         src/console/consoled-terminal.c \
3217         src/console/consoled-workspace.c
3218
3219 systemd_consoled_LDADD = \
3220         libsystemd-terminal.la \
3221         libsystemd-internal.la \
3222         libsystemd-shared.la \
3223         $(TERMINAL_LIBS)
3224
3225 systemd_evcat_CFLAGS = \
3226         $(AM_CFLAGS) \
3227         $(TERMINAL_CFLAGS)
3228
3229 systemd_evcat_SOURCES = \
3230         src/libsystemd-terminal/evcat.c
3231
3232 systemd_evcat_LDADD = \
3233         libsystemd-terminal.la \
3234         libsystemd-internal.la \
3235         libsystemd-shared.la \
3236         $(TERMINAL_LIBS)
3237
3238 systemd_modeset_CFLAGS = \
3239         $(AM_CFLAGS) \
3240         $(TERMINAL_CFLAGS)
3241
3242 systemd_modeset_SOURCES = \
3243         src/libsystemd-terminal/modeset.c
3244
3245 systemd_modeset_LDADD = \
3246         libsystemd-terminal.la \
3247         libsystemd-internal.la \
3248         libsystemd-shared.la \
3249         $(TERMINAL_LIBS)
3250
3251 systemd_subterm_SOURCES = \
3252         src/libsystemd-terminal/subterm.c
3253
3254 systemd_subterm_LDADD = \
3255         libsystemd-terminal.la \
3256         libsystemd-internal.la \
3257         libsystemd-shared.la
3258
3259 test_term_page_SOURCES = \
3260         src/libsystemd-terminal/test-term-page.c
3261
3262 test_term_page_LDADD = \
3263         libsystemd-terminal.la \
3264         libsystemd-internal.la \
3265         libsystemd-shared.la
3266
3267 test_term_parser_SOURCES = \
3268         src/libsystemd-terminal/test-term-parser.c
3269
3270 test_term_parser_LDADD = \
3271         libsystemd-terminal.la \
3272         libsystemd-internal.la \
3273         libsystemd-shared.la
3274
3275 test_unifont_SOURCES = \
3276         src/libsystemd-terminal/test-unifont.c
3277
3278 test_unifont_LDADD = \
3279         libsystemd-terminal.la \
3280         libsystemd-internal.la \
3281         libsystemd-shared.la
3282
3283 .PHONY: update-unifont
3284 update-unifont: tools/compile-unifont.py
3285         $(AM_V_GEN)$(PYTHON) $< \
3286                 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3287                 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3288         @echo "unifont-glyph-array.bin has been regenerated"
3289
3290 # ------------------------------------------------------------------------------
3291 if ENABLE_GTK_DOC
3292 SUBDIRS += \
3293         docs/libudev
3294
3295 noinst_DATA += \
3296         docs/html/libudev \
3297         docs/html/gudev
3298 endif
3299
3300 include_HEADERS += \
3301         src/libudev/libudev.h
3302
3303 lib_LTLIBRARIES += \
3304         libudev.la
3305
3306 libudev_la_SOURCES =\
3307         src/libudev/libudev.sym \
3308         src/libudev/libudev-private.h \
3309         src/libudev/libudev.c \
3310         src/libudev/libudev-list.c \
3311         src/libudev/libudev-util.c \
3312         src/libudev/libudev-device.c \
3313         src/libudev/libudev-enumerate.c \
3314         src/libudev/libudev-monitor.c \
3315         src/libudev/libudev-queue.c \
3316         src/libudev/libudev-hwdb-def.h \
3317         src/libudev/libudev-hwdb.c
3318
3319 libudev_la_CFLAGS = \
3320         $(AM_CFLAGS) \
3321         -fvisibility=hidden
3322
3323 libudev_la_LDFLAGS = \
3324         $(AM_LDFLAGS) \
3325         -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3326         -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3327
3328 libudev_la_LIBADD = \
3329         libsystemd-internal.la \
3330         libsystemd-shared.la
3331
3332 pkgconfiglib_DATA += \
3333         src/libudev/libudev.pc
3334
3335 EXTRA_DIST += \
3336         src/libudev/libudev.pc.in
3337
3338 CLEANFILES += \
3339         src/libudev/libudev.pc \
3340         docs/html/libudev \
3341         docs/html/gudev
3342
3343 docs/html/libudev:
3344         $(AM_V_at)$(MKDIR_P) $(dir $@)
3345         $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3346
3347 docs/html/gudev:
3348         $(AM_V_at)$(MKDIR_P) $(dir $@)
3349         $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3350
3351 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3352 libudev-install-hook:
3353         libname=libudev.so && $(move-to-rootlibdir)
3354
3355 libudev-uninstall-hook:
3356         rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3357
3358 INSTALL_EXEC_HOOKS += libudev-install-hook
3359 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3360
3361 # ------------------------------------------------------------------------------
3362 noinst_LTLIBRARIES += \
3363         libudev-internal.la
3364
3365 libudev_internal_la_SOURCES =\
3366         $(libudev_la_SOURCES) \
3367         src/libudev/libudev-device-private.c
3368
3369 libudev_internal_la_CFLAGS = \
3370         $(AM_CFLAGS) \
3371         -fvisibility=default
3372
3373 # ------------------------------------------------------------------------------
3374 INSTALL_DIRS += \
3375         $(sysconfdir)/udev/rules.d \
3376         $(sysconfdir)/udev/hwdb.d
3377
3378 dist_network_DATA = \
3379         network/99-default.link \
3380         network/80-container-host0.network \
3381         network/80-container-ve.network
3382
3383 dist_udevrules_DATA += \
3384         rules/42-usb-hid-pm.rules \
3385         rules/50-udev-default.rules \
3386         rules/60-drm.rules \
3387         rules/60-keyboard.rules \
3388         rules/70-mouse.rules \
3389         rules/60-persistent-storage-tape.rules \
3390         rules/60-persistent-serial.rules \
3391         rules/60-persistent-input.rules \
3392         rules/60-persistent-alsa.rules \
3393         rules/60-persistent-storage.rules \
3394         rules/64-btrfs.rules \
3395         rules/75-net-description.rules \
3396         rules/75-tty-description.rules \
3397         rules/78-sound-card.rules \
3398         rules/80-net-setup-link.rules \
3399         rules/95-udev-late.rules
3400
3401 nodist_udevrules_DATA += \
3402         rules/99-systemd.rules
3403
3404 dist_udevhwdb_DATA = \
3405         hwdb/20-pci-vendor-model.hwdb \
3406         hwdb/20-pci-classes.hwdb \
3407         hwdb/20-usb-vendor-model.hwdb \
3408         hwdb/20-usb-classes.hwdb \
3409         hwdb/20-sdio-vendor-model.hwdb \
3410         hwdb/20-sdio-classes.hwdb \
3411         hwdb/20-bluetooth-vendor-product.hwdb \
3412         hwdb/20-acpi-vendor.hwdb \
3413         hwdb/20-OUI.hwdb \
3414         hwdb/20-net-ifname.hwdb \
3415         hwdb/60-keyboard.hwdb \
3416         hwdb/70-mouse.hwdb
3417
3418 udevconfdir = $(sysconfdir)/udev
3419 dist_udevconf_DATA = \
3420         src/udev/udev.conf
3421
3422 sharepkgconfigdir = $(datadir)/pkgconfig
3423 sharepkgconfig_DATA = \
3424         src/udev/udev.pc
3425
3426 EXTRA_DIST += \
3427         rules/99-systemd.rules.in \
3428         src/udev/udev.pc.in
3429
3430 CLEANFILES += \
3431         rules/99-systemd.rules \
3432         src/udev/udev.pc
3433
3434 EXTRA_DIST += \
3435         units/systemd-udevd.service.in \
3436         units/systemd-udev-trigger.service.in \
3437         units/systemd-udev-settle.service.in \
3438         units/systemd-udev-hwdb-update.service.in
3439
3440 CLEANFILES += \
3441         units/systemd-udevd.service \
3442         units/systemd-udev-trigger.service \
3443         units/systemd-udev-settle.service \
3444         units/systemd-udev-hwdb-update.service
3445
3446 SOCKETS_TARGET_WANTS += \
3447         systemd-udevd-control.socket \
3448         systemd-udevd-kernel.socket
3449
3450 SYSINIT_TARGET_WANTS += \
3451         systemd-udevd.service \
3452         systemd-udev-trigger.service \
3453         systemd-udev-hwdb-update.service
3454
3455 rootbin_PROGRAMS += \
3456         udevadm
3457
3458 rootlibexec_PROGRAMS += \
3459         systemd-udevd
3460
3461 noinst_LTLIBRARIES += \
3462         libudev-core.la
3463
3464 src/udev/keyboard-keys.txt:
3465         $(AM_V_at)$(MKDIR_P) $(dir $@)
3466         $(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/' > $@
3467
3468 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3469         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3470
3471 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3472         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3473
3474 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3475         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3476
3477 libudev_core_la_SOURCES = \
3478         src/udev/udev.h \
3479         src/udev/udev-event.c \
3480         src/udev/udev-watch.c \
3481         src/udev/udev-node.c \
3482         src/udev/udev-rules.c \
3483         src/udev/udev-ctrl.c \
3484         src/udev/udev-builtin.c \
3485         src/udev/udev-builtin-btrfs.c \
3486         src/udev/udev-builtin-hwdb.c \
3487         src/udev/udev-builtin-input_id.c \
3488         src/udev/udev-builtin-keyboard.c \
3489         src/udev/udev-builtin-net_id.c \
3490         src/udev/udev-builtin-net_setup_link.c \
3491         src/udev/udev-builtin-path_id.c \
3492         src/udev/udev-builtin-usb_id.c \
3493         src/udev/net/link-config.h \
3494         src/udev/net/link-config.c \
3495         src/udev/net/ethtool-util.h \
3496         src/udev/net/ethtool-util.c
3497
3498 nodist_libudev_core_la_SOURCES = \
3499         src/udev/keyboard-keys-from-name.h \
3500         src/udev/keyboard-keys-to-name.h \
3501         src/udev/net/link-config-gperf.c
3502
3503 BUILT_SOURCES += \
3504         $(nodist_libudev_core_la_SOURCES)
3505
3506 CLEANFILES += \
3507         src/udev/keyboard-keys-from-name.gperf \
3508         src/udev/keyboard-keys.txt \
3509         src/udev/net/link-config-gperf.c
3510
3511 EXTRA_DIST += \
3512         src/udev/net/link-config-gperf.gperf
3513
3514 libudev_core_la_CFLAGS = \
3515         $(AM_CFLAGS) \
3516         $(BLKID_CFLAGS) \
3517         $(KMOD_CFLAGS)
3518
3519 libudev_core_la_LIBADD = \
3520         libudev-internal.la \
3521         libsystemd-label.la \
3522         libsystemd-internal.la \
3523         libsystemd-network.la \
3524         libsystemd-shared.la \
3525         $(BLKID_LIBS) \
3526         $(KMOD_LIBS)
3527
3528 if HAVE_KMOD
3529 libudev_core_la_SOURCES += \
3530         src/udev/udev-builtin-kmod.c
3531
3532 dist_udevrules_DATA += \
3533         rules/80-drivers.rules
3534 endif
3535
3536 if HAVE_BLKID
3537 libudev_core_la_SOURCES += \
3538         src/udev/udev-builtin-blkid.c
3539 endif
3540
3541 if HAVE_ACL
3542 libudev_core_la_SOURCES += \
3543         src/udev/udev-builtin-uaccess.c \
3544         src/login/logind-acl.c \
3545         src/libsystemd/sd-login/sd-login.c \
3546         src/systemd/sd-login.h
3547
3548 libudev_core_la_LIBADD += \
3549         libsystemd-acl.la
3550 endif
3551
3552 systemd_udevd_SOURCES = \
3553         src/udev/udevd.c
3554
3555 systemd_udevd_LDADD = \
3556         libudev-core.la
3557
3558 udevadm_SOURCES = \
3559         src/udev/udevadm.c \
3560         src/udev/udevadm-info.c \
3561         src/udev/udevadm-control.c \
3562         src/udev/udevadm-monitor.c \
3563         src/udev/udevadm-hwdb.c \
3564         src/udev/udevadm-settle.c \
3565         src/udev/udevadm-trigger.c \
3566         src/udev/udevadm-test.c \
3567         src/udev/udevadm-test-builtin.c \
3568         src/udev/udevadm-util.c \
3569         src/udev/udevadm-util.h
3570
3571 udevadm_LDADD = \
3572         libudev-core.la
3573
3574 # Update hwdb on installation. Do not bother if installing
3575 # in DESTDIR, since this is likely for packaging purposes.
3576 hwdb-update-hook:
3577         -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3578
3579 INSTALL_DATA_HOOKS += \
3580         hwdb-update-hook
3581
3582 hwdb-remove-hook:
3583         -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3584
3585 # ------------------------------------------------------------------------------
3586 TESTS += \
3587         test/udev-test.pl \
3588         test/rules-test.sh
3589
3590 manual_tests += \
3591         test-libudev \
3592         test-udev
3593
3594 test_libudev_SOURCES = \
3595         src/test/test-libudev.c
3596
3597 test_libudev_LDADD = \
3598         libsystemd-label.la \
3599         libudev-internal.la \
3600         libsystemd-shared.la
3601
3602 test_udev_SOURCES = \
3603         src/test/test-udev.c
3604
3605 test_udev_LDADD = \
3606         libudev-core.la  \
3607         $(BLKID_LIBS) \
3608         $(KMOD_LIBS) \
3609         $(SELINUX_LIBS)
3610
3611 if HAVE_ACL
3612 test_udev_LDADD += \
3613         libsystemd-acl.la
3614 endif
3615
3616 check_DATA += \
3617         test/sys
3618
3619 # packed sysfs test tree
3620 test/sys:
3621         $(AM_V_at)$(MKDIR_P) $(dir $@)
3622         $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3623
3624 test-sys-distclean:
3625         -rm -rf test/sys
3626 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3627
3628 EXTRA_DIST += \
3629         test/sys.tar.xz \
3630         test/udev-test.pl \
3631         test/rules-test.sh \
3632         test/rule-syntax-check.py
3633
3634 # ------------------------------------------------------------------------------
3635 ata_id_SOURCES = \
3636         src/udev/ata_id/ata_id.c
3637
3638 ata_id_LDADD = \
3639         libudev-internal.la \
3640         libsystemd-shared.la
3641
3642 udevlibexec_PROGRAMS += \
3643         ata_id
3644
3645 # ------------------------------------------------------------------------------
3646 cdrom_id_SOURCES = \
3647         src/udev/cdrom_id/cdrom_id.c
3648
3649 cdrom_id_LDADD = \
3650         libudev-internal.la \
3651         libsystemd-shared.la
3652
3653 udevlibexec_PROGRAMS += \
3654         cdrom_id
3655
3656 dist_udevrules_DATA += \
3657         rules/60-cdrom_id.rules
3658
3659 # ------------------------------------------------------------------------------
3660 collect_SOURCES = \
3661         src/udev/collect/collect.c
3662
3663 collect_LDADD = \
3664         libudev-internal.la \
3665         libsystemd-shared.la
3666
3667 udevlibexec_PROGRAMS += \
3668         collect
3669
3670 # ------------------------------------------------------------------------------
3671 scsi_id_SOURCES =\
3672         src/udev/scsi_id/scsi_id.c \
3673         src/udev/scsi_id/scsi_serial.c \
3674         src/udev/scsi_id/scsi.h \
3675         src/udev/scsi_id/scsi_id.h
3676
3677 scsi_id_LDADD = \
3678         libudev-internal.la \
3679         libsystemd-shared.la
3680
3681 udevlibexec_PROGRAMS += \
3682         scsi_id
3683
3684 EXTRA_DIST += \
3685         src/udev/scsi_id/README
3686
3687 # ------------------------------------------------------------------------------
3688 v4l_id_SOURCES = \
3689         src/udev/v4l_id/v4l_id.c
3690
3691 v4l_id_LDADD = \
3692         libudev-internal.la
3693
3694 udevlibexec_PROGRAMS += \
3695         v4l_id
3696
3697 dist_udevrules_DATA += \
3698         rules/60-persistent-v4l.rules
3699
3700 # ------------------------------------------------------------------------------
3701 accelerometer_SOURCES = \
3702         src/udev/accelerometer/accelerometer.c
3703
3704 accelerometer_LDADD = \
3705         libudev-internal.la -lm \
3706         libsystemd-shared.la
3707
3708 udevlibexec_PROGRAMS += \
3709         accelerometer
3710
3711 dist_udevrules_DATA += \
3712         rules/61-accelerometer.rules
3713
3714 # ------------------------------------------------------------------------------
3715 if ENABLE_GUDEV
3716 if ENABLE_GTK_DOC
3717 SUBDIRS += \
3718         docs/gudev
3719 endif
3720
3721 libgudev_includedir = \
3722         $(includedir)/gudev-1.0/gudev
3723
3724 libgudev_include_HEADERS = \
3725         src/gudev/gudev.h \
3726         src/gudev/gudevenums.h \
3727         src/gudev/gudevenumtypes.h \
3728         src/gudev/gudevtypes.h \
3729         src/gudev/gudevclient.h \
3730         src/gudev/gudevdevice.h \
3731         src/gudev/gudevenumerator.h
3732
3733 lib_LTLIBRARIES += libgudev-1.0.la
3734
3735 pkgconfiglib_DATA += \
3736         src/gudev/gudev-1.0.pc
3737
3738 CLEANFILES += \
3739         src/gudev/gudev-1.0.pc
3740
3741 libgudev_1_0_la_SOURCES = \
3742         src/gudev/libgudev-1.0.sym \
3743         src/gudev/gudevenums.h \
3744         src/gudev/gudevenumtypes.h \
3745         src/gudev/gudevenumtypes.h\
3746         src/gudev/gudevtypes.h \
3747         src/gudev/gudevclient.h \
3748         src/gudev/gudevclient.c \
3749         src/gudev/gudevdevice.h \
3750         src/gudev/gudevdevice.c \
3751         src/gudev/gudevenumerator.h \
3752         src/gudev/gudevenumerator.c \
3753         src/gudev/gudevprivate.h
3754
3755 nodist_libgudev_1_0_la_SOURCES = \
3756         src/gudev/gudevmarshal.h \
3757         src/gudev/gudevmarshal.c \
3758         src/gudev/gudevenumtypes.h \
3759         src/gudev/gudevenumtypes.c
3760
3761 BUILT_SOURCES += \
3762         $(nodist_libgudev_1_0_la_SOURCES)
3763
3764 libgudev_1_0_la_CPPFLAGS = \
3765         $(AM_CPPFLAGS) \
3766         -I$(top_builddir)/src\
3767         -I$(top_srcdir)/src\
3768         -I$(top_builddir)/src/gudev \
3769         -I$(top_srcdir)/src/gudev \
3770         -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3771         -D_GUDEV_COMPILATION \
3772         -DG_LOG_DOMAIN=\"GUdev\"
3773
3774 libgudev_1_0_la_CFLAGS = \
3775         $(AM_CFLAGS) \
3776         -fvisibility=default \
3777         $(GLIB_CFLAGS)
3778
3779 libgudev_1_0_la_LIBADD = \
3780         libudev.la \
3781         $(GLIB_LIBS)
3782
3783 libgudev_1_0_la_LDFLAGS = \
3784         $(AM_LDFLAGS) \
3785         -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3786         -export-dynamic \
3787         -no-undefined \
3788         -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3789
3790 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3791         $(AM_V_at)$(MKDIR_P) $(dir $@)
3792         $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3793
3794 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3795         $(AM_V_at)$(MKDIR_P) $(dir $@)
3796         $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3797         glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3798
3799 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3800         $(AM_V_at)$(MKDIR_P) $(dir $@)
3801         $(AM_V_GEN)glib-mkenums --template $^ > $@
3802
3803 if HAVE_INTROSPECTION
3804 -include $(INTROSPECTION_MAKEFILE)
3805
3806 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3807
3808 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3809
3810 src_gudev_GUdev_1_0_gir_CFLAGS = \
3811         $(AM_CFLAGS) \
3812         $(INCLUDES) \
3813         -D_GUDEV_COMPILATION \
3814         -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3815         -I$(top_srcdir)/src \
3816         -I$(top_builddir)/src \
3817         -I$(top_srcdir)/src/gudev \
3818         -I$(top_builddir)/src/gudev
3819
3820 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3821
3822 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3823         --pkg-export=gudev-1.0 \
3824         --warn-all
3825
3826 src_gudev_GUdev_1_0_gir_FILES = \
3827         src/gudev/gudev.h \
3828         src/gudev/gudevtypes.h \
3829         src/gudev/gudevenums.h \
3830         src/gudev/gudevenumtypes.h \
3831         src/gudev/gudevclient.h \
3832         src/gudev/gudevdevice.h \
3833         src/gudev/gudevenumerator.h \
3834         src/gudev/gudevclient.c \
3835         src/gudev/gudevdevice.c \
3836         src/gudev/gudevenumerator.c
3837
3838 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3839 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3840
3841 girdir = $(datadir)/gir-1.0
3842 gir_DATA = \
3843         src/gudev/GUdev-1.0.gir
3844
3845 typelibsdir = $(libdir)/girepository-1.0
3846 typelibs_DATA = \
3847         src/gudev/GUdev-1.0.typelib
3848
3849 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3850 endif # HAVE_INTROSPECTION
3851 endif
3852
3853 EXTRA_DIST += \
3854         src/gudev/gudev-1.0.pc.in \
3855         src/gudev/gudevmarshal.list \
3856         src/gudev/gudevenumtypes.h.template \
3857         src/gudev/gudevenumtypes.c.template \
3858         src/gudev/gjs-example.js \
3859         src/gudev/seed-example-enum.js \
3860         src/gudev/seed-example.js
3861
3862 # ------------------------------------------------------------------------------
3863 mtd_probe_SOURCES =  \
3864         src/udev/mtd_probe/mtd_probe.c \
3865         src/udev/mtd_probe/mtd_probe.h \
3866         src/udev/mtd_probe/probe_smartmedia.c
3867
3868 dist_udevrules_DATA += \
3869         rules/75-probe_mtd.rules
3870
3871 udevlibexec_PROGRAMS += \
3872         mtd_probe
3873
3874 # ------------------------------------------------------------------------------
3875 test_id128_SOURCES = \
3876         src/test/test-id128.c
3877
3878 test_id128_LDADD = \
3879         libsystemd-internal.la \
3880         libsystemd-shared.la
3881
3882 tests += \
3883         test-id128
3884
3885 # ------------------------------------------------------------------------------
3886
3887 rootlibexec_PROGRAMS += \
3888         systemd-activate
3889
3890 systemd_activate_SOURCES = \
3891         src/activate/activate.c
3892
3893 systemd_activate_LDADD = \
3894         libsystemd-label.la \
3895         libsystemd-internal.la \
3896         libsystemd-shared.la
3897
3898 # ------------------------------------------------------------------------------
3899 systemd_journald_SOURCES = \
3900         src/journal/journald.c \
3901         src/journal/journald-server.h
3902
3903 systemd_journald_LDADD = \
3904         libsystemd-journal-core.la \
3905         libsystemd-internal.la \
3906         libsystemd-shared.la
3907
3908 systemd_cat_SOURCES = \
3909         src/journal/cat.c
3910
3911 systemd_cat_LDADD = \
3912         libsystemd-journal-core.la
3913
3914 if HAVE_MICROHTTPD
3915 rootlibexec_PROGRAMS += \
3916         systemd-journal-remote
3917
3918 systemd_journal_remote_SOURCES = \
3919         src/journal-remote/journal-remote-parse.h \
3920         src/journal-remote/journal-remote-parse.c \
3921         src/journal-remote/journal-remote-write.h \
3922         src/journal-remote/journal-remote-write.c \
3923         src/journal-remote/journal-remote.h \
3924         src/journal-remote/journal-remote.c
3925
3926 systemd_journal_remote_LDADD = \
3927         libsystemd-internal.la \
3928         libsystemd-journal-core.la
3929
3930 systemd_journal_remote_SOURCES += \
3931         src/journal-remote/microhttpd-util.h \
3932         src/journal-remote/microhttpd-util.c
3933
3934 systemd_journal_remote_CFLAGS = \
3935         $(AM_CFLAGS) \
3936         $(MICROHTTPD_CFLAGS)
3937
3938 systemd_journal_remote_LDADD += \
3939         $(MICROHTTPD_LIBS)
3940
3941 if ENABLE_SYSUSERS
3942 dist_sysusers_DATA += \
3943         sysusers.d/systemd-remote.conf
3944 endif
3945
3946 if ENABLE_TMPFILES
3947 dist_tmpfiles_DATA += \
3948         tmpfiles.d/systemd-remote.conf
3949 endif
3950
3951 if HAVE_GNUTLS
3952 systemd_journal_remote_LDADD += \
3953         $(GNUTLS_LIBS)
3954
3955 # systemd-journal-remote make sense mostly with full crypto stack
3956 dist_systemunit_DATA += \
3957         units/systemd-journal-remote.socket
3958
3959 nodist_systemunit_DATA += \
3960         units/systemd-journal-remote.service
3961
3962 EXTRA_DIST += \
3963         units/systemd-journal-remote.service.in
3964
3965 journal-remote-install-hook: journal-install-hook
3966         -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3967         -chown 0:0 $(DESTDIR)/var/log/journal/remote
3968         -chmod 755 $(DESTDIR)/var/log/journal/remote
3969
3970 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3971
3972 endif
3973
3974 nodist_pkgsysconf_DATA += \
3975         src/journal-remote/journal-remote.conf
3976
3977 EXTRA_DIST += \
3978         src/journal-remote/journal-remote.conf.in
3979
3980 CLEANFILES += \
3981         src/journal-remote/journal-remote.conf
3982 endif
3983
3984 if HAVE_LIBCURL
3985 rootlibexec_PROGRAMS += \
3986         systemd-journal-upload
3987
3988 systemd_journal_upload_SOURCES = \
3989         src/journal-remote/journal-upload.h \
3990         src/journal-remote/journal-upload.c \
3991         src/journal-remote/journal-upload-journal.c
3992
3993 systemd_journal_upload_CFLAGS = \
3994         $(AM_CFLAGS) \
3995         $(LIBCURL_CFLAGS)
3996
3997 systemd_journal_upload_LDADD = \
3998         libsystemd-internal.la \
3999         libsystemd-journal-internal.la \
4000         libsystemd-shared.la \
4001         $(LIBCURL_LIBS)
4002
4003 nodist_systemunit_DATA += \
4004         units/systemd-journal-upload.service
4005
4006 EXTRA_DIST += \
4007         units/systemd-journal-upload.service.in
4008
4009 nodist_pkgsysconf_DATA += \
4010         src/journal-remote/journal-upload.conf
4011
4012 EXTRA_DIST += \
4013         src/journal-remote/journal-upload.conf.in
4014
4015 CLEANFILES += \
4016         src/journal-remote/journal-upload.conf
4017 endif
4018
4019 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4020 journalctl_CFLAGS = \
4021         $(AM_CFLAGS)
4022
4023 journalctl_SOURCES = \
4024         src/journal/journalctl.c
4025
4026 journalctl_LDADD = \
4027         libsystemd-journal-internal.la \
4028         libsystemd-internal.la \
4029         libsystemd-logs.la \
4030         libsystemd-shared.la
4031
4032 if HAVE_ACL
4033 journalctl_LDADD += \
4034         libsystemd-acl.la
4035 endif
4036
4037 if HAVE_QRENCODE
4038 journalctl_SOURCES += \
4039         src/journal/journal-qrcode.c \
4040         src/journal/journal-qrcode.h
4041
4042 journalctl_CFLAGS += \
4043         $(QRENCODE_CFLAGS)
4044
4045 journalctl_LDADD += \
4046         $(QRENCODE_LIBS)
4047 endif
4048
4049 test_journal_SOURCES = \
4050         src/journal/test-journal.c
4051
4052 test_journal_LDADD = \
4053         libsystemd-journal-core.la
4054
4055 test_journal_send_SOURCES = \
4056         src/journal/test-journal-send.c
4057
4058 test_journal_send_LDADD = \
4059         libsystemd-journal-core.la
4060
4061 test_journal_syslog_SOURCES = \
4062         src/journal/test-journal-syslog.c
4063
4064 test_journal_syslog_LDADD = \
4065         libsystemd-journal-core.la
4066
4067 test_journal_match_SOURCES = \
4068         src/journal/test-journal-match.c
4069
4070 test_journal_match_LDADD = \
4071         libsystemd-journal-core.la
4072
4073 test_journal_enum_SOURCES = \
4074         src/journal/test-journal-enum.c
4075
4076 test_journal_enum_LDADD = \
4077         libsystemd-journal-core.la
4078
4079 test_journal_stream_SOURCES = \
4080         src/journal/test-journal-stream.c
4081
4082 test_journal_stream_LDADD = \
4083         libsystemd-journal-core.la
4084
4085 test_journal_flush_SOURCES = \
4086         src/journal/test-journal-flush.c
4087
4088 test_journal_flush_LDADD = \
4089         libsystemd-journal-core.la
4090
4091 test_journal_init_SOURCES = \
4092         src/journal/test-journal-init.c
4093
4094 test_journal_init_LDADD = \
4095         libsystemd-journal-core.la
4096
4097 test_journal_verify_SOURCES = \
4098         src/journal/test-journal-verify.c
4099
4100 test_journal_verify_LDADD = \
4101         libsystemd-journal-core.la
4102
4103 test_journal_interleaving_SOURCES = \
4104         src/journal/test-journal-interleaving.c
4105
4106 test_journal_interleaving_LDADD = \
4107         libsystemd-journal-core.la
4108
4109 test_mmap_cache_SOURCES = \
4110         src/journal/test-mmap-cache.c
4111
4112 test_mmap_cache_LDADD = \
4113         libsystemd-journal-core.la
4114
4115 test_catalog_SOURCES = \
4116         src/journal/test-catalog.c
4117
4118 test_catalog_CPPFLAGS = \
4119         $(AM_CPPFLAGS) \
4120         -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4121
4122 test_catalog_LDADD = \
4123         libsystemd-journal-core.la
4124
4125 test_compress_SOURCES = \
4126         src/journal/test-compress.c
4127
4128 test_compress_LDADD = \
4129         libsystemd-journal-internal.la \
4130         libsystemd-shared.la
4131
4132 test_compress_benchmark_SOURCES = \
4133         src/journal/test-compress-benchmark.c
4134
4135 test_compress_benchmark_LDADD = \
4136         libsystemd-journal-internal.la \
4137         libsystemd-shared.la
4138
4139 libsystemd_journal_core_la_SOURCES = \
4140         src/journal/journald-kmsg.c \
4141         src/journal/journald-kmsg.h \
4142         src/journal/journald-syslog.c \
4143         src/journal/journald-syslog.h \
4144         src/journal/journald-stream.c \
4145         src/journal/journald-stream.h \
4146         src/journal/journald-server.c \
4147         src/journal/journald-server.h \
4148         src/journal/journald-console.c \
4149         src/journal/journald-console.h \
4150         src/journal/journald-wall.c \
4151         src/journal/journald-wall.h \
4152         src/journal/journald-native.c \
4153         src/journal/journald-native.h \
4154         src/journal/journald-audit.c \
4155         src/journal/journald-audit.h \
4156         src/journal/journald-rate-limit.c \
4157         src/journal/journald-rate-limit.h \
4158         src/journal/journal-internal.h
4159
4160 nodist_libsystemd_journal_core_la_SOURCES = \
4161         src/journal/journald-gperf.c
4162
4163 libsystemd_journal_core_la_LIBADD = \
4164         libsystemd-journal-internal.la \
4165         libudev-internal.la \
4166         libsystemd-label.la \
4167         libsystemd-internal.la \
4168         libsystemd-shared.la
4169
4170 if HAVE_ACL
4171 libsystemd_journal_core_la_LIBADD += \
4172         libsystemd-acl.la
4173 endif
4174
4175 noinst_LTLIBRARIES += \
4176         libsystemd-journal-core.la
4177
4178 journal-install-hook:
4179         -$(MKDIR_P) $(DESTDIR)/var/log/journal
4180         -chown 0:0 $(DESTDIR)/var/log/journal
4181         -chmod 755 $(DESTDIR)/var/log/journal
4182         -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4183         -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
4184
4185 journal-uninstall-hook:
4186         -rmdir $(DESTDIR)/var/log/journal/remote
4187         -rmdir $(DESTDIR)/var/log/journal/
4188
4189 INSTALL_EXEC_HOOKS += journal-install-hook
4190 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4191
4192 # ------------------------------------------------------------------------------
4193 # Update catalog on installation. Do not bother if installing
4194 # in DESTDIR, since this is likely for packaging purposes.
4195 catalog-update-hook:
4196         -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
4197
4198 INSTALL_DATA_HOOKS += \
4199         catalog-update-hook
4200
4201 catalog-remove-hook:
4202         -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4203
4204 UNINSTALL_DATA_HOOKS += \
4205         catalog-remove-hook
4206
4207 manual_tests += \
4208         test-journal-enum
4209
4210 tests += \
4211         test-journal \
4212         test-journal-send \
4213         test-journal-syslog \
4214         test-journal-match \
4215         test-journal-stream \
4216         test-journal-init \
4217         test-journal-verify \
4218         test-journal-interleaving \
4219         test-journal-flush \
4220         test-mmap-cache \
4221         test-catalog
4222
4223 if HAVE_COMPRESSION
4224 tests += \
4225         test-compress \
4226         test-compress-benchmark
4227 endif
4228
4229 pkginclude_HEADERS += \
4230         src/systemd/sd-journal.h \
4231         src/systemd/sd-messages.h \
4232         src/systemd/_sd-common.h
4233
4234 libsystemd_journal_internal_la_SOURCES = \
4235         src/journal/sd-journal.c \
4236         src/systemd/sd-journal.h \
4237         src/systemd/_sd-common.h \
4238         src/journal/journal-file.c \
4239         src/journal/journal-file.h \
4240         src/journal/journal-vacuum.c \
4241         src/journal/journal-vacuum.h \
4242         src/journal/journal-verify.c \
4243         src/journal/journal-verify.h \
4244         src/journal/lookup3.c \
4245         src/journal/lookup3.h \
4246         src/journal/journal-send.c \
4247         src/journal/journal-def.h \
4248         src/journal/compress.h \
4249         src/journal/catalog.c \
4250         src/journal/catalog.h \
4251         src/journal/mmap-cache.c \
4252         src/journal/mmap-cache.h
4253
4254 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
4255 libsystemd_journal_internal_la_CFLAGS = \
4256         $(AM_CFLAGS)
4257
4258 libsystemd_journal_internal_la_LIBADD =
4259
4260 libsystemd_journal_internal_la_SOURCES += \
4261         src/journal/compress.c
4262
4263 if HAVE_XZ
4264 libsystemd_journal_internal_la_CFLAGS += \
4265         $(XZ_CFLAGS)
4266
4267 libsystemd_journal_internal_la_LIBADD += \
4268         $(XZ_LIBS)
4269 endif
4270
4271 if HAVE_LZ4
4272 libsystemd_journal_internal_la_LIBADD += \
4273         -llz4
4274 endif
4275
4276 if HAVE_GCRYPT
4277 libsystemd_journal_internal_la_SOURCES += \
4278         src/journal/journal-authenticate.c \
4279         src/journal/journal-authenticate.h \
4280         src/journal/fsprg.c \
4281         src/journal/fsprg.h
4282
4283 libsystemd_journal_internal_la_LIBADD += \
4284         $(GCRYPT_LIBS)
4285
4286 # fsprg.c is a drop-in file using void pointer arithmetic
4287 libsystemd_journal_internal_la_CFLAGS += \
4288         $(GCRYPT_CFLAGS) \
4289         -Wno-pointer-arith
4290 endif
4291
4292 noinst_LTLIBRARIES += \
4293         libsystemd-journal-internal.la
4294
4295 rootlibexec_PROGRAMS += \
4296         systemd-journald
4297
4298 rootbin_PROGRAMS += \
4299         journalctl
4300
4301 bin_PROGRAMS += \
4302         systemd-cat
4303
4304 dist_systemunit_DATA += \
4305         units/systemd-journald.socket \
4306         units/systemd-journald-dev-log.socket \
4307         units/systemd-journald-audit.socket
4308
4309 nodist_systemunit_DATA += \
4310         units/systemd-journald.service \
4311         units/systemd-journal-flush.service \
4312         units/systemd-journal-catalog-update.service
4313
4314 dist_pkgsysconf_DATA += \
4315         src/journal/journald.conf
4316
4317 dist_catalog_DATA = \
4318         catalog/systemd.fr.catalog \
4319         catalog/systemd.it.catalog \
4320         catalog/systemd.pl.catalog \
4321         catalog/systemd.ru.catalog \
4322         catalog/systemd.catalog
4323
4324 SOCKETS_TARGET_WANTS += \
4325         systemd-journald.socket \
4326         systemd-journald-dev-log.socket \
4327         systemd-journald-audit.socket
4328
4329 SYSINIT_TARGET_WANTS += \
4330         systemd-journald.service \
4331         systemd-journal-flush.service \
4332         systemd-journal-catalog-update.service
4333
4334 EXTRA_DIST += \
4335         units/systemd-journald.service.in \
4336         units/systemd-journal-flush.service.in \
4337         units/systemd-journal-catalog-update.service.in \
4338         src/journal/journald-gperf.gperf
4339
4340 CLEANFILES += \
4341         src/journal/journald-gperf.c
4342
4343 # ------------------------------------------------------------------------------
4344 if HAVE_MICROHTTPD
4345 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4346
4347 rootlibexec_PROGRAMS += \
4348         systemd-journal-gatewayd
4349
4350 systemd_journal_gatewayd_SOURCES = \
4351         src/journal-remote/journal-gatewayd.c \
4352         src/journal-remote/microhttpd-util.h \
4353         src/journal-remote/microhttpd-util.c
4354
4355 systemd_journal_gatewayd_LDADD = \
4356         libsystemd-logs.la \
4357         libsystemd-journal-internal.la \
4358         libsystemd-internal.la \
4359         libsystemd-shared.la \
4360         $(MICROHTTPD_LIBS)
4361
4362 if HAVE_GNUTLS
4363 systemd_journal_gatewayd_LDADD += \
4364         $(GNUTLS_LIBS)
4365 endif
4366
4367 systemd_journal_gatewayd_CFLAGS = \
4368         $(AM_CFLAGS) \
4369         $(MICROHTTPD_CFLAGS)
4370
4371 systemd_journal_gatewayd_CPPFLAGS = \
4372         $(AM_CPPFLAGS) \
4373         -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4374
4375 dist_systemunit_DATA += \
4376         units/systemd-journal-gatewayd.socket
4377
4378 nodist_systemunit_DATA += \
4379         units/systemd-journal-gatewayd.service
4380
4381 dist_gatewayddocumentroot_DATA = \
4382         src/journal-remote/browse.html
4383
4384 endif
4385
4386 EXTRA_DIST += \
4387         units/systemd-journal-gatewayd.service.in
4388
4389 # ------------------------------------------------------------------------------
4390
4391 systemd_socket_proxyd_SOURCES = \
4392         src/socket-proxy/socket-proxyd.c
4393
4394 systemd_socket_proxyd_LDADD = \
4395         libsystemd-logs.la \
4396         libsystemd-internal.la \
4397         libsystemd-journal-internal.la \
4398         libsystemd-shared.la \
4399         libsystemd-resolve.la
4400
4401 # ------------------------------------------------------------------------------
4402 if ENABLE_COREDUMP
4403 systemd_coredump_SOURCES = \
4404         src/journal/coredump.c \
4405         src/journal/coredump-vacuum.c \
4406         src/journal/coredump-vacuum.h
4407
4408 systemd_coredump_LDADD = \
4409         libsystemd-journal-internal.la \
4410         libsystemd-label.la \
4411         libsystemd-internal.la \
4412         libsystemd-shared.la
4413
4414 if HAVE_ELFUTILS
4415 systemd_coredump_SOURCES += \
4416         src/journal/stacktrace.c \
4417         src/journal/stacktrace.h
4418
4419 systemd_coredump_LDADD += \
4420         $(ELFUTILS_LIBS)
4421 endif
4422
4423 rootlibexec_PROGRAMS += \
4424         systemd-coredump
4425
4426 dist_pkgsysconf_DATA += \
4427         src/journal/coredump.conf
4428
4429 if HAVE_ACL
4430 systemd_coredump_LDADD += \
4431         libsystemd-acl.la
4432 endif
4433
4434 coredumpctl_SOURCES = \
4435         src/journal/coredumpctl.c
4436
4437 coredumpctl_LDADD = \
4438         libsystemd-journal-internal.la \
4439         libsystemd-internal.la \
4440         libsystemd-shared.la
4441
4442 bin_PROGRAMS += \
4443         coredumpctl
4444
4445 manual_tests += \
4446         test-coredump-vacuum
4447
4448 test_coredump_vacuum_SOURCES = \
4449         src/journal/test-coredump-vacuum.c  \
4450         src/journal/coredump-vacuum.c \
4451         src/journal/coredump-vacuum.h
4452
4453 test_coredump_vacuum_LDADD = \
4454         libsystemd-internal.la \
4455         libsystemd-shared.la
4456
4457 dist_bashcompletion_DATA += \
4458         shell-completion/bash/coredumpctl
4459
4460 dist_zshcompletion_DATA += \
4461         shell-completion/zsh/_coredumpctl
4462
4463 sysctl_DATA = \
4464         sysctl.d/50-coredump.conf
4465
4466 CLEANFILES += \
4467         sysctl.d/50-coredump.conf
4468 endif
4469
4470 EXTRA_DIST += \
4471         sysctl.d/50-coredump.conf.in
4472
4473 # ------------------------------------------------------------------------------
4474 if ENABLE_BINFMT
4475 systemd_binfmt_SOURCES = \
4476         src/binfmt/binfmt.c
4477
4478 systemd_binfmt_LDADD = \
4479         libsystemd-shared.la
4480
4481 rootlibexec_PROGRAMS += \
4482         systemd-binfmt
4483
4484 dist_systemunit_DATA += \
4485         units/proc-sys-fs-binfmt_misc.automount \
4486         units/proc-sys-fs-binfmt_misc.mount
4487
4488 nodist_systemunit_DATA += \
4489         units/systemd-binfmt.service
4490
4491 INSTALL_DIRS += \
4492         $(prefix)/lib/binfmt.d \
4493         $(sysconfdir)/binfmt.d
4494
4495 SYSINIT_TARGET_WANTS += \
4496         systemd-binfmt.service \
4497         proc-sys-fs-binfmt_misc.automount
4498
4499 endif
4500
4501 EXTRA_DIST += \
4502         units/systemd-binfmt.service.in
4503
4504 # ------------------------------------------------------------------------------
4505 if ENABLE_VCONSOLE
4506 systemd_vconsole_setup_SOURCES = \
4507         src/vconsole/vconsole-setup.c
4508
4509 systemd_vconsole_setup_LDADD = \
4510         libsystemd-shared.la
4511
4512 rootlibexec_PROGRAMS += \
4513         systemd-vconsole-setup
4514
4515 nodist_systemunit_DATA += \
4516         units/systemd-vconsole-setup.service
4517
4518 nodist_udevrules_DATA += \
4519         src/vconsole/90-vconsole.rules
4520
4521 SYSINIT_TARGET_WANTS += \
4522         systemd-vconsole-setup.service
4523
4524 CLEANFILES += \
4525         src/vconsole/90-vconsole.rules
4526 endif
4527
4528 EXTRA_DIST += \
4529         src/vconsole/90-vconsole.rules.in \
4530         units/systemd-vconsole-setup.service.in
4531
4532 # ------------------------------------------------------------------------------
4533 if ENABLE_BOOTCHART
4534 systemd_bootchart_SOURCES = \
4535         src/bootchart/bootchart.c \
4536         src/bootchart/bootchart.h \
4537         src/bootchart/store.c \
4538         src/bootchart/store.h \
4539         src/bootchart/svg.c \
4540         src/bootchart/svg.h
4541
4542 systemd_bootchart_LDADD = \
4543         libsystemd-journal-internal.la \
4544         libsystemd-shared.la
4545
4546 rootlibexec_PROGRAMS += \
4547         systemd-bootchart
4548
4549 dist_pkgsysconf_DATA += \
4550         src/bootchart/bootchart.conf
4551
4552 nodist_systemunit_DATA += \
4553         units/systemd-bootchart.service
4554
4555 EXTRA_DIST += \
4556         units/systemd-bootchart.service.in
4557
4558 CLEANFILES += \
4559         units/systemd-bootchart.service
4560 endif
4561
4562 # ------------------------------------------------------------------------------
4563 if ENABLE_QUOTACHECK
4564 rootlibexec_PROGRAMS += \
4565         systemd-quotacheck
4566
4567 nodist_systemunit_DATA += \
4568         units/systemd-quotacheck.service
4569
4570 systemd_quotacheck_SOURCES = \
4571         src/quotacheck/quotacheck.c
4572
4573 systemd_quotacheck_LDADD = \
4574         libsystemd-shared.la
4575 endif
4576
4577 EXTRA_DIST += \
4578         units/systemd-quotacheck.service.in
4579
4580 nodist_systemunit_DATA += \