]> git.ipfire.org Git - thirdparty/systemd.git/blame - Makefile.am
journal: add void cast to journal_file_close() calls
[thirdparty/systemd.git] / Makefile.am
CommitLineData
6ee667ae 1# -*- Mode: makefile; indent-tabs-mode: t -*-
643a14a5 2#
47be870b
LP
3# This file is part of systemd.
4#
3e214785
KS
5# Copyright 2010-2012 Lennart Poettering
6# Copyright 2010-2012 Kay Sievers
91e8651b 7# Copyright 2013 Zbigniew Jędrzejewski-Szmek
912b54ad 8# Copyright 2013 David Strauss
47be870b
LP
9#
10# systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
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
47be870b
LP
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
5430f7f2 18# Lesser General Public License for more details.
47be870b 19#
5430f7f2 20# You should have received a copy of the GNU Lesser General Public License
47be870b
LP
21# along with systemd; If not, see <http://www.gnu.org/licenses/>.
22
3e214785
KS
23ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24AM_MAKEFLAGS = --no-print-directory
b5a223bf 25AUTOMAKE_OPTIONS = color-tests parallel-tests
47be870b 26
f44541bc
MS
27GCC_COLORS ?= 'ooh, shiny!'
28export GCC_COLORS
29
3e214785
KS
30SUBDIRS = . po
31
96bd03d5
ZJS
32# remove targets if the command fails
33.DELETE_ON_ERROR:
34
652e7375
ZJS
35# keep intermediate files
36.SECONDARY:
37
c2654883 38# Keep the test-suite.log
e7c431d3 39.PRECIOUS: $(TEST_SUITE_LOG) Makefile
c2654883 40
d5a169aa 41LIBUDEV_CURRENT=7
56147131 42LIBUDEV_REVISION=4
d5a169aa 43LIBUDEV_AGE=6
3e214785 44
cf92d860 45LIBSYSTEMD_CURRENT=14
23d08d1b 46LIBSYSTEMD_REVISION=0
cf92d860 47LIBSYSTEMD_AGE=14
42a04ee6 48
8c4a3079 49# Dirs of external packages
d122948d
LP
50dbuspolicydir=@dbuspolicydir@
51dbussessionservicedir=@dbussessionservicedir@
52dbussystemservicedir=@dbussystemservicedir@
8c6db833 53pamlibdir=@pamlibdir@
5c390a4a 54pamconfdir=@pamconfdir@
3bd31503 55pkgconfigdatadir=$(datadir)/pkgconfig
02f130cb 56pkgconfiglibdir=$(libdir)/pkgconfig
490aed58 57polkitpolicydir=$(datadir)/polkit-1/actions
db059f1b 58bashcompletiondir=@bashcompletiondir@
4f87c47b 59zshcompletiondir=@zshcompletiondir@
460c589a 60rpmmacrosdir=$(prefix)/lib/rpm/macros.d
0ce8860a 61sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
dee4c244 62sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
0ce8860a 63varlogdir=$(localstatedir)/log
4ec24515
ZJS
64systemdstatedir=$(localstatedir)/lib/systemd
65catalogstatedir=$(systemdstatedir)/catalog
1401ec2d 66xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
036643a2 67
8c4a3079 68# Our own, non-special dirs
d1ab0ca0 69pkgsysconfdir=$(sysconfdir)/systemd
32d0463d 70userunitdir=$(prefix)/lib/systemd/user
a1d41e17 71userpresetdir=$(prefix)/lib/systemd/user-preset
772f8371 72tmpfilesdir=$(prefix)/lib/tmpfiles.d
1b992147 73sysusersdir=$(prefix)/lib/sysusers.d
f5e04665 74sysctldir=$(prefix)/lib/sysctl.d
d4e85aac
LP
75binfmtdir=$(prefix)/lib/binfmt.d
76modulesloaddir=$(prefix)/lib/modules-load.d
74fae424 77networkdir=$(rootprefix)/lib/systemd/network
74b91131 78pkgincludedir=$(includedir)/systemd
8ece4cab 79systemgeneratordir=$(rootlibexecdir)/system-generators
d267e69d 80usergeneratordir=$(prefix)/lib/systemd/user-generators
8ece4cab 81systemshutdowndir=$(rootlibexecdir)/system-shutdown
6edd7d0a 82systemsleepdir=$(rootlibexecdir)/system-sleep
8ece4cab 83systemunitdir=$(rootprefix)/lib/systemd/system
a1d41e17 84systempresetdir=$(rootprefix)/lib/systemd/system-preset
3e214785 85udevlibexecdir=$(rootprefix)/lib/udev
d4205751
LP
86udevhomedir=$(udevlibexecdir)
87udevrulesdir=$(udevlibexecdir)/rules.d
88udevhwdbdir=$(udevlibexecdir)/hwdb.d
89catalogdir=$(prefix)/lib/systemd/catalog
8f51399e 90kernelinstalldir = $(prefix)/lib/kernel/install.d
0a5d1ed9
MAP
91factory_etcdir = $(datadir)/factory/etc
92factory_pamdir = $(datadir)/factory/etc/pam.d
e7dd673d 93bootlibdir = $(prefix)/lib/systemd/boot/efi
8c4a3079
LP
94
95# And these are the special ones for /
b8079ae1
KS
96rootprefix=@rootprefix@
97rootbindir=$(rootprefix)/bin
98rootlibexecdir=$(rootprefix)/lib/systemd
70fcff31 99
2a018e83 100EXTRA_DIST =
3e214785 101BUILT_SOURCES =
2a018e83
KS
102INSTALL_EXEC_HOOKS =
103UNINSTALL_EXEC_HOOKS =
104INSTALL_DATA_HOOKS =
4ec24515 105UNINSTALL_DATA_HOOKS =
3e214785 106DISTCLEAN_LOCAL_HOOKS =
9b281072 107CLEAN_LOCAL_HOOKS =
48d437bb 108pkginclude_HEADERS =
04a9d3a0 109noinst_LTLIBRARIES =
0237edf7 110lib_LTLIBRARIES =
3e214785 111include_HEADERS =
87cfe600 112noinst_DATA =
3bd31503 113pkgconfigdata_DATA =
0237edf7 114pkgconfiglib_DATA =
46ba8aae 115polkitpolicy_in_in_files =
2a018e83 116polkitpolicy_in_files =
299031ca 117polkitpolicy_files =
131a4dcf 118dist_udevrules_DATA =
3e214785 119nodist_udevrules_DATA =
90ccc3fc 120dist_pkgsysconf_DATA =
ad95fd1d 121nodist_pkgsysconf_DATA =
90ccc3fc 122dist_dbuspolicy_DATA =
90ccc3fc 123dist_dbussystemservice_DATA =
36e46fe9 124dist_systemunit_DATA_busnames =
ae5b2a86 125dist_sysusers_DATA =
6cbf079f 126check_PROGRAMS =
9b80f05f 127check_DATA =
cee22bd3
HGB
128tests=
129manual_tests =
72521ab9
MP
130TEST_EXTENSIONS = .py
131PY_LOG_COMPILER = $(PYTHON)
5414b34c 132DISABLE_HARD_ERRORS = yes
cee22bd3
HGB
133if ENABLE_TESTS
134noinst_PROGRAMS = $(manual_tests) $(tests)
135TESTS = $(tests)
136else
137noinst_PROGRAMS =
138TESTS =
139endif
17163897
ZJS
140if ENABLE_BASH_COMPLETION
141dist_bashcompletion_DATA = $(dist_bashcompletion_data)
142nodist_bashcompletion_DATA = $(nodist_bashcompletion_data)
143endif
144if ENABLE_ZSH_COMPLETION
145dist_zshcompletion_DATA = $(dist_zshcompletion_data)
146nodist_zshcompletion_DATA = $(nodist_zshcompletion_data)
147endif
f13b388f 148udevlibexec_PROGRAMS =
f757855e 149gperf_gperf_sources =
2a018e83 150
9e4ded30
ZJS
151in_files = $(filter %.in,$(EXTRA_DIST))
152in_in_files = $(filter %.in.in, $(in_files))
153m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4))
154
155CLEANFILES = $(BUILT_SOURCES) \
3bd31503 156 $(pkgconfigdata_DATA) \
9e4ded30 157 $(pkgconfiglib_DATA) \
17163897
ZJS
158 $(nodist_bashcompletion_data) \
159 $(nodist_zshcompletion_data) \
9e4ded30
ZJS
160 $(in_files:.in=) $(in_in_files:.in.in=) \
161 $(m4_files:.m4=)
162
9f700755
ZJS
163.PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
164 $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
165 $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
166
47be870b 167AM_CPPFLAGS = \
d3f09cf3 168 -include $(top_builddir)/config.h \
19adb8a3 169 -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
036643a2 170 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
70fcff31 171 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
0571e011 172 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
061978fa 173 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
af2d49f7
LP
174 -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
175 -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
ad95fd1d 176 -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
844ec79b 177 -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
91901329 178 -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
05d02d8d 179 -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
77eb82f9 180 -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \
b1b2a107 181 -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
6edd7d0a 182 -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
2cb1a60d 183 -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
501fc174 184 -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
5b754353 185 -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
b8079ae1 186 -DROOTPREFIX=\"$(rootprefix)\" \
952d97ed 187 -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
ef5bfcf6 188 -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
e23a0ce8 189 -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
5a1e9937 190 -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
af2d49f7 191 -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
83cc030f 192 -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
ddcbc873 193 -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
baa5ad26 194 -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
4e829d21 195 -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \
8e8eb8fb 196 -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
f33d3ec1 197 -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
83374163 198 -DQUOTACHECK=\"$(QUOTACHECK)\" \
78013564 199 -DKEXEC=\"$(KEXEC)\" \
f00929ad
DJL
200 -DMOUNT_PATH=\"$(MOUNT_PATH)\" \
201 -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \
9a00f57a
LP
202 -DLIBDIR=\"$(libdir)\" \
203 -DROOTLIBDIR=\"$(rootlibdir)\" \
a804d849 204 -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \
0d8c31ff 205 -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
e5e83e83 206 -I $(top_srcdir)/src \
a095315b
KS
207 -I $(top_builddir)/src/basic \
208 -I $(top_srcdir)/src/basic \
d7832d2c 209 -I $(top_srcdir)/src/shared \
a095315b 210 -I $(top_builddir)/src/shared \
f579559b 211 -I $(top_srcdir)/src/network \
86aa7ba4 212 -I $(top_srcdir)/src/login \
3bdf9c1d 213 -I $(top_srcdir)/src/journal \
4733607e 214 -I $(top_builddir)/src/journal \
bcdbbd7e 215 -I $(top_srcdir)/src/timedate \
687ed123 216 -I $(top_srcdir)/src/timesync \
f757855e 217 -I $(top_srcdir)/src/nspawn \
ffcf82d2 218 -I $(top_srcdir)/src/resolve \
7263f724 219 -I $(top_builddir)/src/resolve \
3e214785 220 -I $(top_srcdir)/src/systemd \
95769b32 221 -I $(top_builddir)/src/core \
b30e2f4c 222 -I $(top_srcdir)/src/core \
0b87a077 223 -I $(top_srcdir)/src/libudev \
5a45a936 224 -I $(top_srcdir)/src/udev \
af6f0d42 225 -I $(top_srcdir)/src/udev/net \
9d7d42bc 226 -I $(top_builddir)/src/udev \
607553f9
TG
227 -I $(top_srcdir)/src/libsystemd/sd-bus \
228 -I $(top_srcdir)/src/libsystemd/sd-event \
a095315b 229 -I $(top_srcdir)/src/libsystemd/sd-login \
1c4baffc 230 -I $(top_srcdir)/src/libsystemd/sd-netlink \
91d3efed 231 -I $(top_srcdir)/src/libsystemd/sd-network \
23fbe14f 232 -I $(top_srcdir)/src/libsystemd/sd-hwdb \
57fa1d09 233 -I $(top_srcdir)/src/libsystemd/sd-device \
fe8db0c5 234 -I $(top_srcdir)/src/libsystemd-network \
5a45a936 235 $(OUR_CPPFLAGS)
47be870b 236
3984d657 237AM_CFLAGS = $(OUR_CFLAGS)
5a45a936 238AM_LDFLAGS = $(OUR_LDFLAGS)
eb2e280f 239
24fdc230 240# ------------------------------------------------------------------------------
d7ae18ee 241define move-to-rootlibdir
24fdc230
ZJS
242 if test "$(libdir)" != "$(rootlibdir)"; then \
243 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
244 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
5e11d962 245 rm -f $(DESTDIR)$(libdir)/$$libname && \
0ce91e4e 246 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
24fdc230
ZJS
247 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
248 fi
249endef
250
6ff39241
ZJS
251INSTALL_DIRS =
252
6ff39241
ZJS
253SHUTDOWN_TARGET_WANTS =
254LOCAL_FS_TARGET_WANTS =
255MULTI_USER_TARGET_WANTS =
d5d8429a
LP
256GRAPHICAL_TARGET_WANTS =
257RESCUE_TARGET_WANTS =
6ff39241 258SYSINIT_TARGET_WANTS =
6ff39241 259SOCKETS_TARGET_WANTS =
cde360cd 260BUSNAMES_TARGET_WANTS =
e3d84721 261TIMERS_TARGET_WANTS =
54142c6a 262USER_SOCKETS_TARGET_WANTS =
2355af60 263USER_DEFAULT_TARGET_WANTS =
54142c6a 264USER_BUSNAMES_TARGET_WANTS =
6ff39241 265
91e8651b
ZJS
266SYSTEM_UNIT_ALIASES =
267USER_UNIT_ALIASES =
91e8651b
ZJS
268GENERAL_ALIASES =
269
6ff39241 270install-target-wants-hook:
54142c6a
KS
271 what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
272 what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
273 what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
d5d8429a
LP
274 what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants)
275 what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants)
54142c6a
KS
276 what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
277 what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
54142c6a
KS
278 what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
279 what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
280 what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
2355af60 281 what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
36e46fe9
MB
282
283install-busnames-target-wants-hook:
284 what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
54142c6a 285 what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
6ff39241
ZJS
286
287define add-wants
245d345f 288 [ -z "$$what" ] || ( \
54142c6a 289 dir=$(DESTDIR)$$dir/$$wants.wants && \
245d345f
ZJS
290 $(MKDIR_P) -m 0755 $$dir && \
291 cd $$dir && \
6ff39241 292 rm -f $$what && \
ac2b34e1 293 for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
6ff39241
ZJS
294endef
295
296install-directories-hook:
297 $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
298
91e8651b
ZJS
299install-aliases-hook:
300 set -- $(SYSTEM_UNIT_ALIASES) && \
301 dir=$(systemunitdir) && $(install-aliases)
302 set -- $(USER_UNIT_ALIASES) && \
e2438b7a 303 dir=$(userunitdir) && $(install-relative-aliases)
91e8651b 304 set -- $(GENERAL_ALIASES) && \
e2438b7a 305 dir= && $(install-relative-aliases)
91e8651b
ZJS
306
307define install-aliases
91e8651b 308 while [ -n "$$1" ]; do \
0b95a21b 309 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
91e8651b 310 rm -f $(DESTDIR)$$dir/$$2 && \
ac2b34e1 311 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
91e8651b
ZJS
312 shift 2 || exit $$?; \
313 done
314endef
315
e2438b7a
LP
316define install-relative-aliases
317 while [ -n "$$1" ]; do \
318 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
319 rm -f $(DESTDIR)$$dir/$$2 && \
320 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
321 shift 2 || exit $$?; \
322 done
323endef
324
a1259e0a
LP
325install-touch-usr-hook:
326 touch -c $(DESTDIR)/$(prefix)
327
6ff39241
ZJS
328INSTALL_EXEC_HOOKS += \
329 install-target-wants-hook \
91e8651b 330 install-directories-hook \
a1259e0a
LP
331 install-aliases-hook \
332 install-touch-usr-hook
6ff39241 333
36e46fe9
MB
334INSTALL_EXEC_HOOKS += \
335 install-busnames-target-wants-hook
36e46fe9 336
ebea41b8 337# ------------------------------------------------------------------------------
ebea41b8
ZJS
338AM_V_M4 = $(AM_V_M4_$(V))
339AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
340AM_V_M4_0 = @echo " M4 " $@;
341
5b40782c
ZJS
342AM_V_XSLT = $(AM_V_XSLT_$(V))
343AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
344AM_V_XSLT_0 = @echo " XSLT " $@;
345
c8503a3e
ZJS
346AM_V_GPERF = $(AM_V_GPERF_$(V))
347AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
348AM_V_GPERF_0 = @echo " GPERF " $@;
349
87cfe600
ZJS
350AM_V_LN = $(AM_V_LN_$(V))
351AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
352AM_V_LN_0 = @echo " LN " $@;
353
5e11d962
LP
354AM_V_RM = $(AM_V_RM_$(V))
355AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
356AM_V_RM_0 = @echo " RM " $@;
357
d7832d2c 358# ------------------------------------------------------------------------------
8c4a3079 359rootbin_PROGRAMS = \
4a2a8b5a 360 systemctl \
490aed58 361 systemd-notify \
ec863ba6 362 systemd-ask-password \
74ce487d 363 systemd-tty-ask-password-agent \
2945a452
MB
364 systemd-machine-id-setup \
365 systemd-escape
a9b5b032 366
8c4a3079 367bin_PROGRAMS = \
a8f11321 368 systemd-cgls \
8f2d43a0 369 systemd-cgtop \
2c4ff634 370 systemd-nspawn \
27b5482c 371 systemd-detect-virt \
f948423b 372 systemd-delta \
c2756a68 373 systemd-analyze \
9a00f57a 374 systemd-run \
b58d8571 375 systemd-stdio-bridge \
1d3bc017 376 systemd-path
88213476 377
8f51399e 378dist_bin_SCRIPTS = \
81516adc
HH
379 src/kernel-install/kernel-install
380
8f51399e
HH
381dist_kernelinstall_SCRIPTS = \
382 src/kernel-install/50-depmod.install \
383 src/kernel-install/90-loaderentry.install
fcc43d01 384
8c4a3079 385rootlibexec_PROGRAMS = \
e0d25329 386 systemd \
0b7964b8 387 systemd-cgroups-agent \
4927fcae 388 systemd-initctl \
b1b2a107 389 systemd-shutdown \
2b93b027 390 systemd-remount-fs \
22be093f 391 systemd-reply-password \
3d20ed6d 392 systemd-fsck \
8e1bd70d 393 systemd-ac-power \
6edd7d0a 394 systemd-sysctl \
96c374d0 395 systemd-sleep \
8ea48dfc 396 systemd-socket-proxyd \
83e7d885 397 systemd-update-done
47be870b 398
37161c51
ERB
399if HAVE_UTMP
400rootlibexec_PROGRAMS += \
401 systemd-update-utmp
402endif
403
2a796654 404systemgenerator_PROGRAMS = \
6b1dc2bd 405 systemd-getty-generator \
d360705f 406 systemd-fstab-generator \
326bb68c 407 systemd-system-update-generator \
4df5c00b 408 systemd-debug-generator
2a796654 409
17163897 410dist_bashcompletion_data = \
51f6888b 411 shell-completion/bash/busctl \
d611dadc 412 shell-completion/bash/journalctl \
83cb95b5 413 shell-completion/bash/systemd-analyze \
20701701 414 shell-completion/bash/systemd-cat \
abdab4f6 415 shell-completion/bash/systemd-cgls \
d9256bac 416 shell-completion/bash/systemd-cgtop \
0bc8e31b 417 shell-completion/bash/systemd-delta \
3bfe58cb 418 shell-completion/bash/systemd-detect-virt \
0d6883b6 419 shell-completion/bash/systemd-nspawn \
ceb28409 420 shell-completion/bash/systemd-path \
64eed40c 421 shell-completion/bash/systemd-run \
819da595
KS
422 shell-completion/bash/udevadm \
423 shell-completion/bash/kernel-install
42bb3074 424
17163897 425nodist_bashcompletion_data = \
c0a67aef
ZJS
426 shell-completion/bash/systemctl
427
17163897 428dist_zshcompletion_data = \
2c8849ad 429 shell-completion/zsh/_busctl \
7e83c0e0 430 shell-completion/zsh/_journalctl \
a06225fc 431 shell-completion/zsh/_udevadm \
7eb942c4 432 shell-completion/zsh/_kernel-install \
30fd4d1e 433 shell-completion/zsh/_systemd-nspawn \
7abfbe79 434 shell-completion/zsh/_systemd-analyze \
d74ab852 435 shell-completion/zsh/_systemd-run \
3e7f60ab 436 shell-completion/zsh/_sd_hosts_or_user_at_host \
2c12a402
ZJS
437 shell-completion/zsh/_sd_outputmodes \
438 shell-completion/zsh/_sd_unit_files \
298b9e23 439 shell-completion/zsh/_systemd-delta \
4f87c47b
WG
440 shell-completion/zsh/_systemd
441
17163897 442nodist_zshcompletion_data = \
c0a67aef
ZJS
443 shell-completion/zsh/_systemctl
444
445EXTRA_DIST += \
446 shell-completion/bash/systemctl.in \
447 shell-completion/zsh/_systemctl.in
448
6351163b
UTL
449dist_sysctl_DATA = \
450 sysctl.d/50-default.conf
cca4aeee 451
d1ab0ca0 452dist_systemunit_DATA = \
db25d1d7
LP
453 units/graphical.target \
454 units/multi-user.target \
f057408c 455 units/emergency.target \
de47ca9b 456 units/sysinit.target \
f92a18f5 457 units/basic.target \
5e6afdd3
LP
458 units/getty.target \
459 units/halt.target \
85ed27f6 460 units/kexec.target \
287419c1 461 units/exit.target \
70449379 462 units/local-fs.target \
baa5ad26 463 units/local-fs-pre.target \
9e5f0f92 464 units/initrd.target \
700e07ff 465 units/initrd-fs.target \
9e5f0f92 466 units/initrd-root-fs.target \
5552b1c1 467 units/remote-fs.target \
baa5ad26 468 units/remote-fs-pre.target \
70449379 469 units/network.target \
a4a878d0 470 units/network-pre.target \
0c17fbce 471 units/network-online.target \
70449379 472 units/nss-lookup.target \
082694b7 473 units/nss-user-lookup.target \
5e6afdd3
LP
474 units/poweroff.target \
475 units/reboot.target \
5e6afdd3 476 units/rescue.target \
f0b02ca2 477 units/rpcbind.target \
4466194c 478 units/time-sync.target \
70449379 479 units/shutdown.target \
9aac953a 480 units/final.target \
4e67ddd6 481 units/umount.target \
70449379 482 units/sigpwr.target \
6edd7d0a 483 units/sleep.target \
70449379 484 units/sockets.target \
e3d84721
LP
485 units/timers.target \
486 units/paths.target \
6edd7d0a 487 units/suspend.target \
70449379 488 units/swap.target \
f2561e85
LP
489 units/slices.target \
490 units/system.slice \
a0f9c810 491 units/x-.slice \
70fcff31 492 units/systemd-initctl.socket \
52f319b2 493 units/syslog.socket \
670802d4 494 units/dev-hugepages.mount \
670802d4 495 units/dev-mqueue.mount \
d6bca18e 496 units/sys-kernel-config.mount \
670802d4 497 units/sys-kernel-debug.mount \
7ef5875d 498 units/sys-fs-fuse-connections.mount \
623ac9d2 499 units/tmp.mount \
113b3fc1 500 units/var-lib-machines.mount \
da78e1b4 501 units/printer.target \
88dfa293 502 units/sound.target \
ceda54d9 503 units/bluetooth.target \
b15124f1 504 units/smartcard.target \
e0e1580a 505 units/systemd-ask-password-wall.path \
6699c857 506 units/systemd-ask-password-console.path \
51dfddc2
CG
507 units/systemd-udevd-control.socket \
508 units/systemd-udevd-kernel.socket \
cf843477 509 units/system-update.target \
699b7227
PDS
510 units/initrd-switch-root.target \
511 units/machines.target
70fcff31 512
36e46fe9
MB
513dist_systemunit_DATA += \
514 $(dist_systemunit_DATA_busnames)
36e46fe9
MB
515
516dist_systemunit_DATA_busnames += \
517 units/busnames.target
518
6f6083dc 519nodist_systemunit_DATA = \
5e6afdd3 520 units/getty@.service \
93a45c56 521 units/serial-getty@.service \
5b754353 522 units/console-shell.service \
337eebb9 523 units/console-getty.service \
04d39279 524 units/container-getty@.service \
dfac97b2 525 units/systemd-initctl.service \
2b93b027 526 units/systemd-remount-fs.service \
306a7fd8 527 units/systemd-ask-password-wall.service \
8cf3a8a9 528 units/systemd-ask-password-console.service \
8e1bd70d 529 units/systemd-sysctl.service \
9cf25786 530 units/emergency.service \
d42d27ea 531 units/rescue.service \
3e214785 532 units/user@.service \
0e0320e0
LP
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 \
287419c1 538 units/systemd-exit.service \
0e0320e0
LP
539 units/systemd-fsck@.service \
540 units/systemd-fsck-root.service \
a1405db6 541 units/systemd-machine-id-commit.service \
51dfddc2 542 units/systemd-udevd.service \
f13b388f 543 units/systemd-udev-trigger.service \
ed061a8d 544 units/systemd-udev-settle.service \
65eb4378 545 units/systemd-hwdb-update.service \
7b40ce55
MB
546 units/debug-shell.service \
547 units/initrd-parse-etc.service \
548 units/initrd-cleanup.service \
549 units/initrd-udevadm-cleanup-db.service \
05947bef 550 units/initrd-switch-root.service \
8ea48dfc 551 units/systemd-nspawn@.service \
83e7d885 552 units/systemd-update-done.service
d1ab0ca0 553
37161c51
ERB
554if HAVE_UTMP
555nodist_systemunit_DATA += \
556 units/systemd-update-utmp.service \
557 units/systemd-update-utmp-runlevel.service
558endif
559
af2d49f7 560dist_userunit_DATA = \
fccd44ec 561 units/user/basic.target \
af2d49f7
LP
562 units/user/default.target \
563 units/user/exit.target
0d26c910 564
af2d49f7 565nodist_userunit_DATA = \
0e0320e0 566 units/user/systemd-exit.service
fb1bd35a 567
1713703c
LP
568dist_systempreset_DATA = \
569 system-preset/90-systemd.preset
570
2a018e83 571EXTRA_DIST += \
5e6afdd3 572 units/getty@.service.m4 \
93a45c56 573 units/serial-getty@.service.m4 \
9cf25786 574 units/console-shell.service.m4.in \
337eebb9 575 units/console-getty.service.m4.in \
04d39279 576 units/container-getty@.service.m4.in \
9c080427 577 units/rescue.service.in \
70fcff31 578 units/systemd-initctl.service.in \
2b93b027 579 units/systemd-remount-fs.service.in \
3f92e4b4 580 units/systemd-update-utmp.service.in \
cd6d0a45 581 units/systemd-update-utmp-runlevel.service.in \
306a7fd8 582 units/systemd-ask-password-wall.service.in \
8cf3a8a9 583 units/systemd-ask-password-console.service.in \
8e1bd70d 584 units/systemd-sysctl.service.in \
9cf25786 585 units/emergency.service.in \
0e0320e0
LP
586 units/systemd-halt.service.in \
587 units/systemd-poweroff.service.in \
588 units/systemd-reboot.service.in \
589 units/systemd-kexec.service.in \
287419c1 590 units/systemd-exit.service.in \
0e0320e0 591 units/user/systemd-exit.service.in \
93a1d735
LP
592 units/systemd-fsck@.service.in \
593 units/systemd-fsck-root.service.in \
a1405db6 594 units/systemd-machine-id-commit.service.in \
dd5ae4c3 595 units/user@.service.m4.in \
d1f9edaf 596 units/debug-shell.service.in \
0e0320e0 597 units/systemd-suspend.service.in \
b51fc639 598 units/quotaon.service.in \
7b40ce55
MB
599 units/initrd-parse-etc.service.in \
600 units/initrd-cleanup.service.in \
601 units/initrd-udevadm-cleanup-db.service.in \
602 units/initrd-switch-root.service.in \
8ea48dfc 603 units/systemd-nspawn@.service.in \
5dfcb8d2
SW
604 units/systemd-update-done.service.in \
605 units/tmp.mount.m4
e24067c3 606
b1c4ca25
LP
607if HAVE_SYSV_COMPAT
608nodist_systemunit_DATA += \
609 units/rc-local.service \
610 units/halt-local.service
1de4d79b 611
15673083 612systemgenerator_PROGRAMS += \
95ed3294 613 systemd-sysv-generator \
15673083 614 systemd-rc-local-generator
6fdae8a6
DM
615endif
616
52edb228 617EXTRA_DIST += \
0f0467e6 618 src/systemctl/systemd-sysv-install.SKELETON \
52edb228
ZJS
619 units/rc-local.service.in \
620 units/halt-local.service.in
621
a0f9c810
KS
622# automake is broken and can't handle files with a dash in front
623# http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
624units-install-hook:
625 mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
626
627units-uninstall-hook:
628 rm -f $(DESTDIR)/$(systemunitdir)/-.slice
629
630INSTALL_DATA_HOOKS += units-install-hook
631UNINSTALL_DATA_HOOKS += units-uninstall-hook
632
240a3a85
LP
633dist_doc_DATA = \
634 README \
3e214785 635 NEWS \
2c8849ad 636 CODING_STYLE \
5430f7f2 637 LICENSE.LGPL2.1 \
f33d3ec1 638 LICENSE.GPL2 \
88ce2902
ZJS
639 DISTRO_PORTING \
640 src/libsystemd/sd-bus/PORTING-DBUS1 \
641 src/libsystemd/sd-bus/DIFFERENCES \
318b0fd7
DJL
642 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
643
644EXTRA_DIST += \
6f068aef 645 README.md \
2c8849ad
KS
646 autogen.sh \
647 .dir-locals.el \
db787e79 648 .editorconfig \
2c8849ad
KS
649 .vimrc \
650 .ycm_extra_conf.py \
651 .travis.yml \
652 .mailmap
240a3a85 653
1c7dde3e 654@INTLTOOL_POLICY_RULE@
7640a5de 655
235450b0 656# ------------------------------------------------------------------------------
823eb4e6
ZJS
657
658MANPAGES =
659MANPAGES_ALIAS =
660
661include Makefile-man.am
235450b0 662
9f700755 663.PHONY: man update-man-list
330fe879
ZJS
664man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
665
235450b0
KS
666XML_FILES = \
667 ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
86b45477
ZJS
668HTML_FILES = \
669 ${XML_FILES:.xml=.html}
87cfe600
ZJS
670HTML_ALIAS = \
671 ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
235450b0
KS
672
673if ENABLE_MANPAGES
674man_MANS = \
675 $(MANPAGES) \
676 $(MANPAGES_ALIAS)
677
87cfe600
ZJS
678noinst_DATA += \
679 $(HTML_FILES) \
ab6f56de
ZJS
680 $(HTML_ALIAS) \
681 docs/html/man
682endif
24fb2ddc
LP
683
684CLEANFILES += \
86b45477 685 $(man_MANS) \
87cfe600 686 $(HTML_FILES) \
ab6f56de
ZJS
687 $(HTML_ALIAS) \
688 docs/html/man
87cfe600
ZJS
689
690docs/html/man:
691 $(AM_V_at)$(MKDIR_P) $(dir $@)
692 $(AM_V_LN)$(LN_S) -f ../../man $@
9c4fa6ed 693
87cfe600
ZJS
694man/index.html: man/systemd.index.html
695 $(AM_V_LN)$(LN_S) -f systemd.index.html $@
696
ab6f56de 697if HAVE_PYTHON
42007a09
ZJS
698noinst_DATA += \
699 man/index.html
ab6f56de 700endif
42007a09
ZJS
701
702CLEANFILES += \
9b281072 703 man/index.html
42007a09 704
e4f42f9d 705XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml)
ccc9a4f9 706NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
4584eaea 707SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))}
56ba3c78 708
e4f42f9d
ZJS
709# This target should only be run manually. It recreates Makefile-man.am
710# file in the source directory based on all man/*.xml files. Run it after
711# adding, removing, or changing the conditional in a man page.
100582b8
MS
712update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) man/custom-entities.ent
713 $(AM_V_GEN)$(PYTHON) $< $(XML_GLOB) > $(top_srcdir)/Makefile-man.tmp
56ba3c78
ZJS
714 $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
715 @echo "Makefile-man.am has been regenerated"
716
3c3e5f42 717man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
f6b6728d 718 $(AM_V_at)$(MKDIR_P) $(dir $@)
1a13e31d 719 $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
f6b6728d 720
747ca69b 721man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES)
d9cfd694 722 $(AM_V_at)$(MKDIR_P) $(dir $@)
747ca69b 723 $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES)
d9cfd694 724
86b45477
ZJS
725CLEANFILES += \
726 man/systemd.index.xml \
727 man/systemd.directives.xml
728
235450b0 729EXTRA_DIST += \
2c8849ad 730 $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \
3c3e5f42 731 tools/make-man-index.py \
7118d2f7 732 tools/make-man-rules.py \
3c3e5f42 733 tools/make-directive-index.py \
e37f6d61 734 tools/xml_helper.py \
5aaf8768 735 man/glib-event-glue.c
235450b0
KS
736
737# ------------------------------------------------------------------------------
04a9d3a0 738noinst_LTLIBRARIES += \
a095315b
KS
739 libbasic.la
740
741libbasic_la_SOURCES = \
742 src/basic/missing.h \
430f0182
LP
743 src/basic/capability-util.c \
744 src/basic/capability-util.h \
a0e4cae8
DH
745 src/basic/c-rbtree.c \
746 src/basic/c-rbtree.h \
a095315b
KS
747 src/basic/conf-files.c \
748 src/basic/conf-files.h \
15a5e950 749 src/basic/stdio-util.h \
a095315b
KS
750 src/basic/hostname-util.h \
751 src/basic/hostname-util.c \
752 src/basic/unit-name.c \
753 src/basic/unit-name.h \
754 src/basic/ioprio.h \
755 src/basic/securebits.h \
756 src/basic/special.h \
757 src/basic/list.h \
758 src/basic/unaligned.h \
759 src/basic/macro.h \
760 src/basic/def.h \
761 src/basic/sparse-endian.h \
762 src/basic/refcnt.h \
763 src/basic/util.c \
764 src/basic/util.h \
c004493c
LP
765 src/basic/io-util.c \
766 src/basic/io-util.h \
07630cea
LP
767 src/basic/string-util.c \
768 src/basic/string-util.h \
3ffd4af2
LP
769 src/basic/fd-util.c \
770 src/basic/fd-util.h \
6bedfcbb
LP
771 src/basic/parse-util.c \
772 src/basic/parse-util.h \
b1d4f8e1
LP
773 src/basic/user-util.c \
774 src/basic/user-util.h \
78f22b97
LP
775 src/basic/rlimit-util.c \
776 src/basic/rlimit-util.h \
a0956174
LP
777 src/basic/dirent-util.c \
778 src/basic/dirent-util.h \
89a5a90c
LP
779 src/basic/xattr-util.c \
780 src/basic/xattr-util.h \
c8b3094d
LP
781 src/basic/chattr-util.c \
782 src/basic/chattr-util.h \
4e731273
LP
783 src/basic/proc-cmdline.c \
784 src/basic/proc-cmdline.h \
f4f15635
LP
785 src/basic/fs-util.c \
786 src/basic/fs-util.h \
7ccbd1ae
LP
787 src/basic/syslog-util.c \
788 src/basic/syslog-util.h \
8fcde012
LP
789 src/basic/stat-util.c \
790 src/basic/stat-util.h \
4349cd7c
LP
791 src/basic/mount-util.c \
792 src/basic/mount-util.h \
e4e73a63
LP
793 src/basic/hexdecoct.c \
794 src/basic/hexdecoct.h \
7d50b32a
LP
795 src/basic/glob-util.h \
796 src/basic/glob-util.c \
84ac7bea
LP
797 src/basic/extract-word.c \
798 src/basic/extract-word.h \
4f5dd394
LP
799 src/basic/escape.c \
800 src/basic/escape.h \
618234a5
LP
801 src/basic/cpu-set-util.c \
802 src/basic/cpu-set-util.h \
a095315b
KS
803 src/basic/lockfile-util.c \
804 src/basic/lockfile-util.h \
805 src/basic/path-util.c \
806 src/basic/path-util.h \
807 src/basic/time-util.c \
808 src/basic/time-util.h \
809 src/basic/locale-util.c \
810 src/basic/locale-util.h \
affb60b1 811 src/basic/umask-util.h \
a095315b
KS
812 src/basic/signal-util.c \
813 src/basic/signal-util.h \
8b43440b
LP
814 src/basic/string-table.c \
815 src/basic/string-table.h \
a095315b
KS
816 src/basic/mempool.c \
817 src/basic/mempool.h \
818 src/basic/hashmap.c \
819 src/basic/hashmap.h \
758dd67e
LP
820 src/basic/hash-funcs.c \
821 src/basic/hash-funcs.h \
a095315b
KS
822 src/basic/siphash24.c \
823 src/basic/siphash24.h \
824 src/basic/set.h \
825 src/basic/ordered-set.h \
00616955 826 src/basic/ordered-set.c \
5ffa42cb
TG
827 src/basic/bitmap.c \
828 src/basic/bitmap.h \
a095315b
KS
829 src/basic/fdset.c \
830 src/basic/fdset.h \
831 src/basic/prioq.c \
832 src/basic/prioq.h \
49cf4170
LP
833 src/basic/web-util.c \
834 src/basic/web-util.h \
a095315b
KS
835 src/basic/strv.c \
836 src/basic/strv.h \
837 src/basic/env-util.c \
838 src/basic/env-util.h \
839 src/basic/strbuf.c \
840 src/basic/strbuf.h \
841 src/basic/strxcpyx.c \
842 src/basic/strxcpyx.h \
843 src/basic/log.c \
844 src/basic/log.h \
845 src/basic/bus-label.c \
846 src/basic/bus-label.h \
847 src/basic/ratelimit.h \
848 src/basic/ratelimit.c \
849 src/basic/exit-status.c \
850 src/basic/exit-status.h \
851 src/basic/virt.c \
852 src/basic/virt.h \
853 src/basic/smack-util.c \
854 src/basic/smack-util.h \
855 src/basic/device-nodes.c \
856 src/basic/device-nodes.h \
857 src/basic/utf8.c \
858 src/basic/utf8.h \
859 src/basic/gunicode.c \
860 src/basic/gunicode.h \
861 src/basic/socket-util.c \
862 src/basic/socket-util.h \
863 src/basic/in-addr-util.c \
864 src/basic/in-addr-util.h \
865 src/basic/ether-addr-util.h \
81a56d6f 866 src/basic/ether-addr-util.c \
a095315b
KS
867 src/basic/replace-var.c \
868 src/basic/replace-var.h \
869 src/basic/clock-util.c \
870 src/basic/clock-util.h \
871 src/basic/calendarspec.c \
872 src/basic/calendarspec.h \
873 src/basic/fileio.c \
874 src/basic/fileio.h \
875 src/basic/MurmurHash2.c \
876 src/basic/MurmurHash2.h \
877 src/basic/mkdir.c \
878 src/basic/mkdir.h \
879 src/basic/cgroup-util.c \
880 src/basic/cgroup-util.h \
881 src/basic/errno-list.c \
882 src/basic/errno-list.h \
883 src/basic/af-list.c \
884 src/basic/af-list.h \
885 src/basic/arphrd-list.c \
886 src/basic/arphrd-list.h \
887 src/basic/terminal-util.c \
888 src/basic/terminal-util.h \
889 src/basic/login-util.h \
890 src/basic/login-util.c \
891 src/basic/cap-list.c \
892 src/basic/cap-list.h \
430f0182
LP
893 src/basic/audit-util.c \
894 src/basic/audit-util.h \
a095315b
KS
895 src/basic/xml.c \
896 src/basic/xml.h \
a095315b
KS
897 src/basic/barrier.c \
898 src/basic/barrier.h \
899 src/basic/async.c \
900 src/basic/async.h \
901 src/basic/memfd-util.c \
902 src/basic/memfd-util.h \
903 src/basic/process-util.c \
904 src/basic/process-util.h \
905 src/basic/random-util.c \
906 src/basic/random-util.h \
907 src/basic/verbs.c \
908 src/basic/verbs.h \
909 src/basic/sigbus.c \
910 src/basic/sigbus.h \
911 src/basic/build.h \
912 src/basic/socket-label.c \
913 src/basic/label.c \
914 src/basic/label.h \
915 src/basic/btrfs-util.c \
916 src/basic/btrfs-util.h \
917 src/basic/btrfs-ctree.h \
918 src/basic/selinux-util.c \
919 src/basic/selinux-util.h \
920 src/basic/mkdir-label.c \
921 src/basic/fileio-label.c \
922 src/basic/fileio-label.h \
923 src/basic/rm-rf.c \
924 src/basic/rm-rf.h \
925 src/basic/copy.c \
f00022dd 926 src/basic/copy.h \
b5efdb8a
LP
927 src/basic/alloc-util.h \
928 src/basic/alloc-util.c \
6b25959d
LP
929 src/basic/formats-util.h \
930 src/basic/nss-util.h
a095315b
KS
931
932nodist_libbasic_la_SOURCES = \
933 src/basic/errno-from-name.h \
934 src/basic/errno-to-name.h \
935 src/basic/af-from-name.h \
936 src/basic/af-to-name.h \
937 src/basic/arphrd-from-name.h \
938 src/basic/arphrd-to-name.h \
939 src/basic/cap-from-name.h \
940 src/basic/cap-to-name.h
941
942libbasic_la_CFLAGS = \
943 $(AM_CFLAGS) \
944 $(SELINUX_CFLAGS) \
945 $(CAP_CFLAGS) \
946 -pthread
947
948libbasic_la_LIBADD = \
949 $(SELINUX_LIBS) \
950 $(CAP_LIBS) \
8c8302a6 951 -lrt \
a095315b
KS
952 -lm
953
954# -----------------------------------------------------------------------------
955noinst_LTLIBRARIES += \
956 libshared.la
139be57d 957
a095315b
KS
958libshared_la_SOURCES = \
959 src/shared/output-mode.h \
960 src/shared/gpt.h \
961 src/shared/udev-util.h \
c0a0872d 962 src/shared/linux/auto_dev-ioctl.h \
baabc577 963 src/shared/initreq.h \
4ad7f276
NO
964 src/shared/dns-domain.c \
965 src/shared/dns-domain.h \
099524d7
LP
966 src/shared/architecture.c \
967 src/shared/architecture.h \
2e3d0692
LP
968 src/shared/efivars.c \
969 src/shared/efivars.h \
d15d0333
ZJS
970 src/shared/fstab-util.c \
971 src/shared/fstab-util.h \
19adb8a3
ZJS
972 src/shared/sleep-config.c \
973 src/shared/sleep-config.h \
d7832d2c
KS
974 src/shared/conf-parser.c \
975 src/shared/conf-parser.h \
9f36aa68 976 src/shared/pager.c \
771f19c0 977 src/shared/pager.h \
f33d3ec1 978 src/shared/spawn-polkit-agent.c \
bbc98d32 979 src/shared/spawn-polkit-agent.h \
d682b3a7
LP
980 src/shared/apparmor-util.c \
981 src/shared/apparmor-util.h \
982 src/shared/ima-util.c \
4ba93280
LP
983 src/shared/ima-util.h \
984 src/shared/ptyfwd.c \
be32eb9b 985 src/shared/ptyfwd.h \
3577de7a 986 src/shared/base-filesystem.c \
c9fdc26e 987 src/shared/base-filesystem.h \
8530dc44
LP
988 src/shared/uid-range.c \
989 src/shared/uid-range.h \
a095315b
KS
990 src/shared/install.c \
991 src/shared/install.h \
992 src/shared/install-printf.c \
993 src/shared/install-printf.h \
994 src/shared/path-lookup.c \
995 src/shared/path-lookup.h \
996 src/shared/specifier.c \
997 src/shared/specifier.h \
88f642c0 998 src/shared/dev-setup.c \
29686440
ZJS
999 src/shared/dev-setup.h \
1000 src/shared/dropin.c \
1001 src/shared/dropin.h \
657bf5a1
KS
1002 src/shared/condition.c \
1003 src/shared/condition.h \
a095315b
KS
1004 src/shared/clean-ipc.c \
1005 src/shared/clean-ipc.h \
29686440 1006 src/shared/generator.h \
1325ec42 1007 src/shared/generator.c \
a095315b
KS
1008 src/shared/acpi-fpdt.h \
1009 src/shared/acpi-fpdt.c \
1010 src/shared/boot-timestamps.h \
1011 src/shared/boot-timestamps.c \
1012 src/shared/cgroup-show.c \
1013 src/shared/cgroup-show.h \
1014 src/shared/utmp-wtmp.h \
1015 src/shared/watchdog.c \
1016 src/shared/watchdog.h \
1017 src/shared/spawn-ask-password-agent.c \
1018 src/shared/spawn-ask-password-agent.h \
1019 src/shared/ask-password-api.c \
1020 src/shared/ask-password-api.h \
1021 src/shared/switch-root.h \
1022 src/shared/switch-root.c \
1023 src/shared/import-util.c \
1024 src/shared/import-util.h \
1025 src/shared/sysctl-util.c \
1026 src/shared/sysctl-util.h \
1027 src/shared/bus-util.c \
1028 src/shared/bus-util.h \
1029 src/shared/logs-show.c \
1030 src/shared/logs-show.h \
1031 src/shared/machine-image.c \
1032 src/shared/machine-image.h \
1033 src/shared/machine-pool.c \
af49ca27
LP
1034 src/shared/machine-pool.h \
1035 src/shared/resolve-util.c \
1036 src/shared/resolve-util.h
42fcc4d2
KS
1037
1038if HAVE_UTMP
a095315b 1039libshared_la_SOURCES += \
42fcc4d2
KS
1040 src/shared/utmp-wtmp.c
1041endif
49e942b2 1042
a095315b
KS
1043if HAVE_SECCOMP
1044libshared_la_SOURCES += \
1045 src/shared/seccomp-util.h \
1046 src/shared/seccomp-util.c
1047endif
1048
1049if HAVE_ACL
1050libshared_la_SOURCES += \
1051 src/shared/acl-util.c \
1052 src/shared/acl-util.h
1053endif
1054
1055libshared_la_CFLAGS = \
4927fcae 1056 $(AM_CFLAGS) \
a095315b 1057 $(ACL_CFLAGS) \
8c8302a6
KS
1058 $(LIBIDN_CFLAGS) \
1059 $(SECCOMP_CFLAGS)
4927fcae 1060
a095315b
KS
1061libshared_la_LIBADD = \
1062 libsystemd-internal.la \
1063 libsystemd-journal-internal.la \
9afc1aac 1064 libudev-internal.la \
a095315b 1065 $(ACL_LIBS) \
4ad7f276 1066 $(LIBIDN_LIBS) \
8c8302a6 1067 $(SECCOMP_LIBS)
d7832d2c 1068
12e34d9d 1069# -----------------------------------------------------------------------------
76917807
LP
1070if HAVE_LIBIPTC
1071noinst_LTLIBRARIES += \
a095315b 1072 libfirewall.la
76917807 1073
a095315b 1074libfirewall_la_SOURCES = \
12c2884c
DM
1075 src/shared/firewall-util.h \
1076 src/shared/firewall-util.c
76917807 1077
a095315b 1078libfirewall_la_CFLAGS = \
76917807
LP
1079 $(AM_CFLAGS) \
1080 $(LIBIPTC_CFLAGS)
1081
a095315b 1082libfirewall_la_LIBADD = \
76917807
LP
1083 $(LIBIPTC_LIBS)
1084endif
1085
1086# -----------------------------------------------------------------------------
12e34d9d
UTL
1087if ENABLE_LDCONFIG
1088dist_systemunit_DATA += \
1089 units/ldconfig.service
1090
1091SYSINIT_TARGET_WANTS += \
1092 ldconfig.service
1093endif
1094
d7832d2c 1095# ------------------------------------------------------------------------------
04a9d3a0 1096noinst_LTLIBRARIES += \
a095315b 1097 libcore.la
04a9d3a0 1098
a095315b 1099libcore_la_SOURCES = \
b30e2f4c
KS
1100 src/core/unit.c \
1101 src/core/unit.h \
41f9172f
LP
1102 src/core/unit-printf.c \
1103 src/core/unit-printf.h \
b30e2f4c
KS
1104 src/core/job.c \
1105 src/core/job.h \
1106 src/core/manager.c \
1107 src/core/manager.h \
75778e21
MS
1108 src/core/transaction.c \
1109 src/core/transaction.h \
b30e2f4c
KS
1110 src/core/load-fragment.c \
1111 src/core/load-fragment.h \
1112 src/core/service.c \
1113 src/core/service.h \
e821075a
LP
1114 src/core/socket.c \
1115 src/core/socket.h \
1116 src/core/busname.c \
1117 src/core/busname.h \
3c70e3bb
LP
1118 src/core/bus-policy.c \
1119 src/core/bus-policy.h \
b30e2f4c
KS
1120 src/core/target.c \
1121 src/core/target.h \
e821075a
LP
1122 src/core/device.c \
1123 src/core/device.h \
1124 src/core/mount.c \
1125 src/core/mount.h \
1126 src/core/automount.c \
1127 src/core/automount.h \
1128 src/core/swap.c \
1129 src/core/swap.h \
b30e2f4c
KS
1130 src/core/timer.c \
1131 src/core/timer.h \
1132 src/core/path.c \
1133 src/core/path.h \
a016b922
LP
1134 src/core/slice.c \
1135 src/core/slice.h \
6c12b52e
LP
1136 src/core/scope.c \
1137 src/core/scope.h \
b30e2f4c
KS
1138 src/core/load-dropin.c \
1139 src/core/load-dropin.h \
1140 src/core/execute.c \
1141 src/core/execute.h \
4819ff03
LP
1142 src/core/kill.c \
1143 src/core/kill.h \
b30e2f4c
KS
1144 src/core/dbus.c \
1145 src/core/dbus.h \
1146 src/core/dbus-manager.c \
1147 src/core/dbus-manager.h \
1148 src/core/dbus-unit.c \
1149 src/core/dbus-unit.h \
1150 src/core/dbus-job.c \
1151 src/core/dbus-job.h \
1152 src/core/dbus-service.c \
1153 src/core/dbus-service.h \
1154 src/core/dbus-socket.c \
1155 src/core/dbus-socket.h \
e821075a
LP
1156 src/core/dbus-busname.c \
1157 src/core/dbus-busname.h \
b30e2f4c
KS
1158 src/core/dbus-target.c \
1159 src/core/dbus-target.h \
e821075a
LP
1160 src/core/dbus-device.c \
1161 src/core/dbus-device.h \
b30e2f4c
KS
1162 src/core/dbus-mount.c \
1163 src/core/dbus-mount.h \
1164 src/core/dbus-automount.c \
1165 src/core/dbus-automount.h \
1166 src/core/dbus-swap.c \
1167 src/core/dbus-swap.h \
e821075a
LP
1168 src/core/dbus-timer.c \
1169 src/core/dbus-timer.h \
b30e2f4c
KS
1170 src/core/dbus-path.c \
1171 src/core/dbus-path.h \
a016b922
LP
1172 src/core/dbus-slice.c \
1173 src/core/dbus-slice.h \
6c12b52e
LP
1174 src/core/dbus-scope.c \
1175 src/core/dbus-scope.h \
4ad49000
LP
1176 src/core/dbus-execute.c \
1177 src/core/dbus-execute.h \
1178 src/core/dbus-kill.c \
1179 src/core/dbus-kill.h \
1180 src/core/dbus-cgroup.c \
1181 src/core/dbus-cgroup.h \
b30e2f4c
KS
1182 src/core/cgroup.c \
1183 src/core/cgroup.h \
e2417e41
DW
1184 src/core/selinux-access.c \
1185 src/core/selinux-access.h \
b30e2f4c
KS
1186 src/core/selinux-setup.c \
1187 src/core/selinux-setup.h \
ffbd2c4d
NC
1188 src/core/smack-setup.c \
1189 src/core/smack-setup.h \
b30e2f4c
KS
1190 src/core/ima-setup.c \
1191 src/core/ima-setup.h \
b30e2f4c
KS
1192 src/core/locale-setup.h \
1193 src/core/locale-setup.c \
4d896139
LP
1194 src/core/hostname-setup.c \
1195 src/core/hostname-setup.h \
08e1fb68
LP
1196 src/core/machine-id-setup.c \
1197 src/core/machine-id-setup.h \
1198 src/core/mount-setup.c \
1199 src/core/mount-setup.h \
f84f9974
LP
1200 src/core/kmod-setup.c \
1201 src/core/kmod-setup.h \
08e1fb68
LP
1202 src/core/loopback-setup.h \
1203 src/core/loopback-setup.c \
b30e2f4c
KS
1204 src/core/namespace.c \
1205 src/core/namespace.h \
bd3fa1d2 1206 src/core/killall.h \
8351ceae 1207 src/core/killall.c \
c1165f82 1208 src/core/audit-fd.c \
c65eb836 1209 src/core/audit-fd.h \
4d7213b2 1210 src/core/show-status.c \
2928b0a8
LP
1211 src/core/show-status.h \
1212 src/core/failure-action.c \
1213 src/core/failure-action.h
47be870b 1214
a095315b 1215nodist_libcore_la_SOURCES = \
90ccc3fc 1216 src/core/load-fragment-gperf.c \
baabc577 1217 src/core/load-fragment-gperf-nulstr.c
6e5c0444 1218
a095315b 1219libcore_la_CFLAGS = \
139be57d 1220 $(AM_CFLAGS) \
4927fcae 1221 $(PAM_CFLAGS) \
4536f716 1222 $(AUDIT_CFLAGS) \
c65eb836 1223 $(KMOD_CFLAGS) \
eef65bf3 1224 $(APPARMOR_CFLAGS) \
e1ada21e
CR
1225 $(MOUNT_CFLAGS) \
1226 $(SECCOMP_CFLAGS)
139be57d 1227
a095315b 1228libcore_la_LIBADD = \
a095315b 1229 libshared.la \
7a58bfa4 1230 $(PAM_LIBS) \
85f19d82 1231 $(AUDIT_LIBS) \
e9642be2 1232 $(KMOD_LIBS) \
eef65bf3 1233 $(APPARMOR_LIBS) \
8d3ae2bd 1234 $(MOUNT_LIBS)
e9642be2 1235
90ccc3fc 1236src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
bd923ff2
ZJS
1237 $(AM_V_at)$(MKDIR_P) $(dir $@)
1238 $(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 ";" }' < $< > $@
90ccc3fc 1239
9e4ded30 1240gperf_gperf_m4_sources = \
90ccc3fc
KS
1241 src/core/load-fragment-gperf.gperf.m4
1242
9e4ded30 1243gperf_txt_sources = \
a095315b
KS
1244 src/basic/errno-list.txt \
1245 src/basic/af-list.txt \
1246 src/basic/arphrd-list.txt \
1247 src/basic/cap-list.txt
8351ceae 1248
cc9f61b8 1249BUILT_SOURCES += \
9e4ded30
ZJS
1250 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \
1251 $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \
1252 $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \
1253 $(gperf_txt_sources:-list.txt=-from-name.h) \
1d3f8fa7 1254 $(filter-out %keyboard-keys-to-name.h,$(gperf_txt_sources:-list.txt=-to-name.h))
9e4ded30
ZJS
1255
1256CLEANFILES += \
1257 $(gperf_txt_sources:-list.txt=-from-name.gperf)
1258DISTCLEANFILES = \
1259 $(gperf_txt_sources)
1260
1261EXTRA_DIST += \
1262 $(gperf_gperf_m4_sources) \
ee3c31bf 1263 $(gperf_gperf_sources)
9e4ded30
ZJS
1264
1265CLEANFILES += \
1266 $(gperf_txt_sources)
cc9f61b8 1267
7263f724 1268%-from-name.gperf: %-list.txt
26511062 1269 $(AM_V_at)$(MKDIR_P) $(dir $@)
7263f724 1270 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
780896a4 1271
7263f724 1272%-from-name.h: %-from-name.gperf
26511062 1273 $(AM_V_at)$(MKDIR_P) $(dir $@)
7263f724 1274 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
780896a4 1275
780896a4 1276
a095315b 1277src/basic/errno-list.txt:
780896a4 1278 $(AM_V_at)$(MKDIR_P) $(dir $@)
ee8c4568 1279 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
90ccc3fc 1280
a095315b 1281src/basic/errno-to-name.h: src/basic/errno-list.txt
26511062 1282 $(AM_V_at)$(MKDIR_P) $(dir $@)
fd00a088 1283 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
4298d0b5 1284
4298d0b5 1285
a095315b 1286src/basic/af-list.txt:
4298d0b5 1287 $(AM_V_at)$(MKDIR_P) $(dir $@)
ee8c4568 1288 $(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; }' >$@
4298d0b5 1289
a095315b 1290src/basic/af-to-name.h: src/basic/af-list.txt
26511062 1291 $(AM_V_at)$(MKDIR_P) $(dir $@)
fd00a088 1292 $(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 "};"}' <$< >$@
4298d0b5 1293
2822da4f 1294
a095315b 1295src/basic/arphrd-list.txt:
ee8c4568
LP
1296 $(AM_V_at)$(MKDIR_P) $(dir $@)
1297 $(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_//' >$@
1298
a095315b 1299src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt
26511062 1300 $(AM_V_at)$(MKDIR_P) $(dir $@)
ee8c4568
LP
1301 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1302
a095315b 1303src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt
26511062 1304 $(AM_V_at)$(MKDIR_P) $(dir $@)
ee8c4568
LP
1305 $(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 }' <$< >$@
1306
7263f724 1307
a095315b 1308src/basic/cap-list.txt:
2822da4f
LP
1309 $(AM_V_at)$(MKDIR_P) $(dir $@)
1310 $(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 >$@
1311
a095315b 1312src/basic/cap-to-name.h: src/basic/cap-list.txt
26511062 1313 $(AM_V_at)$(MKDIR_P) $(dir $@)
34a3e4ec 1314 $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
2822da4f 1315
a095315b 1316src/basic/cap-from-name.gperf: src/basic/cap-list.txt
26511062 1317 $(AM_V_at)$(MKDIR_P) $(dir $@)
2822da4f
LP
1318 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1319
a095315b 1320src/basic/cap-from-name.h: src/basic/cap-from-name.gperf
26511062 1321 $(AM_V_at)$(MKDIR_P) $(dir $@)
2822da4f
LP
1322 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1323
07ba233e 1324audit_list_includes = -include linux/audit.h -include missing.h
4733607e
ZJS
1325if HAVE_AUDIT
1326audit_list_includes += -include libaudit.h
1327endif
1328
1329src/journal/audit_type-list.txt:
1330 $(AM_V_at)$(MKDIR_P) $(dir $@)
07ba233e 1331 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM $(audit_list_includes) - </dev/null | grep -vE 'AUDIT_.*(FIRST|LAST)_' | $(SED) -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | sort -k2 >$@
4733607e
ZJS
1332
1333src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt
26511062 1334 $(AM_V_at)$(MKDIR_P) $(dir $@)
4733607e
ZJS
1335 $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } {printf " case AUDIT_%s: return \"%s\";\n", $$1, $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@
1336
2822da4f 1337
7263f724
ZJS
1338src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1339 $(AM_V_at)$(MKDIR_P) $(dir $@)
1340 $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1341
1342src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
26511062 1343 $(AM_V_at)$(MKDIR_P) $(dir $@)
4733607e 1344 $(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 " default: return NULL;\n\t}\n}\n" }' <$< >$@
7263f724
ZJS
1345
1346src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
26511062 1347 $(AM_V_at)$(MKDIR_P) $(dir $@)
7263f724
ZJS
1348 $(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 }' <$< >$@
1349
d7832d2c 1350# ------------------------------------------------------------------------------
47be870b 1351systemd_SOURCES = \
78a825f2 1352 src/core/main.c
47be870b 1353
e1ada21e
CR
1354systemd_CFLAGS = \
1355 $(AM_CFLAGS) \
d379d442
KZ
1356 $(SECCOMP_CFLAGS) \
1357 $(MOUNT_CFLAGS)
e1ada21e 1358
47be870b 1359systemd_LDADD = \
8c8302a6 1360 libcore.la
47be870b 1361
90ccc3fc
KS
1362dist_pkgsysconf_DATA += \
1363 src/core/system.conf \
1364 src/core/user.conf
1365
1366dist_dbuspolicy_DATA += \
1367 src/core/org.freedesktop.systemd1.conf
1368
1369dist_dbussystemservice_DATA += \
1370 src/core/org.freedesktop.systemd1.service
1371
46ba8aae 1372polkitpolicy_in_in_files += \
90ccc3fc
KS
1373 src/core/org.freedesktop.systemd1.policy.in.in
1374
3bd31503 1375pkgconfigdata_DATA += \
90ccc3fc
KS
1376 src/core/systemd.pc
1377
590f18a2
LP
1378nodist_rpmmacros_DATA = \
1379 src/core/macros.systemd
1380
90ccc3fc 1381EXTRA_DIST += \
590f18a2 1382 src/core/systemd.pc.in \
873e4133
ZJS
1383 src/core/macros.systemd.in \
1384 src/core/triggers.systemd.in
90ccc3fc 1385
d7832d2c 1386# ------------------------------------------------------------------------------
8b835fcc 1387
cee22bd3 1388manual_tests += \
6cbf079f
KS
1389 test-ns \
1390 test-loopback \
1391 test-hostname \
1392 test-daemon \
1393 test-cgroup \
6cbf079f 1394 test-install \
b0193f1c 1395 test-watchdog \
66cdd0f2 1396 test-log \
d7c7c334 1397 test-ipcrm \
7b713b81
TG
1398 test-btrfs \
1399 test-acd \
8a1baa3a
ZJS
1400 test-ipv4ll-manual \
1401 test-ask-password-api
8d09b6de
KS
1402
1403if HAVE_LIBIPTC
1404manual_tests += \
12c2884c 1405 test-firewall-util
8d09b6de 1406endif
1dd5aa56
ZJS
1407
1408if HAVE_KMOD
1409manual_tests += \
1c4baffc 1410 test-netlink-manual
1dd5aa56 1411endif
6cbf079f 1412
cee22bd3 1413tests += \
0d8c31ff 1414 test-engine \
8328d8c6 1415 test-cgroup-mask \
e0eaab7c
KS
1416 test-job-type \
1417 test-env-replace \
97b5f608 1418 test-strbuf \
95ea1b90 1419 test-strv \
bc999297 1420 test-path \
76877b46 1421 test-path-util \
c62c294f 1422 test-strxcpyx \
a245d90a 1423 test-siphash24 \
b5b46d59 1424 test-unit-name \
cfbc22ab 1425 test-unit-file \
02a36bc9 1426 test-utf8 \
35d811f5 1427 test-ellipsize \
539ad707 1428 test-util \
9fe4ea21 1429 test-string-util \
23a3c916 1430 test-extract-word \
bb269eed 1431 test-parse-util \
d0260817 1432 test-user-util \
8fb49443 1433 test-hostname-util \
0b452006 1434 test-process-util \
288a74cc 1435 test-terminal-util \
4f1a33dd 1436 test-path-lookup \
279da1e3 1437 test-barrier \
65b3903f 1438 test-tmpfiles \
d8c9d3a4 1439 test-namespace \
6524990f 1440 test-date \
6e6fb527 1441 test-sleep \
bb112710 1442 test-replace-var \
36697dc0 1443 test-sched-prio \
e8bc0ea2 1444 test-calendarspec \
96cde13a 1445 test-strip-tab-ansi \
30bdd695 1446 test-cgroup-util \
d15d0333 1447 test-fstab-util \
f73141d7 1448 test-prioq \
cb0dac05 1449 test-fileio \
9341a4a1 1450 test-time \
3b18ae68 1451 test-hashmap \
647f6824 1452 test-set \
5ffa42cb 1453 test-bitmap \
a8b409db 1454 test-list \
f089257d 1455 test-unaligned \
8f6ce71f 1456 test-tables \
08bcebf3 1457 test-device-nodes \
099524d7 1458 test-xml \
c182135d 1459 test-architecture \
106ecd76 1460 test-socket-util \
09e00c52 1461 test-fdset \
6160e473 1462 test-conf-files \
0763adbe 1463 test-conf-parser \
e6b5c5d0 1464 test-capability \
e80cde5e 1465 test-async \
b08f2be6 1466 test-ratelimit \
134e56dc 1467 test-condition \
20725d92 1468 test-uid-range \
641d1f99 1469 test-locale-util \
281e05b6 1470 test-execute \
2822da4f 1471 test-copy \
fa6ac760 1472 test-cap-list \
d2f0e78f 1473 test-sigbus \
a0e4cae8 1474 test-rbtree \
4ad7f276 1475 test-verbs \
da8ba721
DM
1476 test-af-list \
1477 test-arphrd-list \
0ec0deaa 1478 test-dns-domain \
fe39daf2 1479 test-install-root \
0c5eb056
LP
1480 test-rlimit-util \
1481 test-signal-util
bb112710 1482
5bb5b236
ZJS
1483if HAVE_ACL
1484tests += \
1485 test-acl-util
1486endif
1487
bb112710 1488EXTRA_DIST += \
f22bbd11
KS
1489 test/a.service \
1490 test/basic.target \
1491 test/b.service \
1492 test/c.service \
1493 test/daughter.service \
1494 test/d.service \
5c404f1a 1495 test/end.service \
f22bbd11
KS
1496 test/e.service \
1497 test/f.service \
1498 test/grandchild.service \
1499 test/g.service \
1500 test/hello-after-sleep.target \
1501 test/hello.service \
1502 test/h.service \
1503 test/parent-deep.slice \
1504 test/parent.slice \
bb112710
HHPF
1505 test/sched_idle_bad.service \
1506 test/sched_idle_ok.service \
1507 test/sched_rr_bad.service \
21acf11d 1508 test/sched_rr_change.service \
f22bbd11
KS
1509 test/sched_rr_ok.service \
1510 test/shutdown.target \
1511 test/sleep.service \
1512 test/sockets.target \
21acf11d 1513 test/son.service \
f22bbd11
KS
1514 test/sysinit.target \
1515 test/testsuite.target \
1516 test/timers.target \
20725d92 1517 test/unstoppable.service \
aa8e00da
RC
1518 test/test-path/paths.target \
1519 test/test-path/basic.target \
1520 test/test-path/sysinit.target \
1521 test/test-path/path-changed.service \
1522 test/test-path/path-directorynotempty.service \
1523 test/test-path/path-existsglob.service \
1524 test/test-path/path-exists.service \
1525 test/test-path/path-makedirectory.service \
1526 test/test-path/path-modified.service \
1527 test/test-path/path-mycustomunit.service \
1528 test/test-path/path-service.service \
1529 test/test-path/path-changed.path \
1530 test/test-path/path-directorynotempty.path \
1531 test/test-path/path-existsglob.path \
1532 test/test-path/path-exists.path \
1533 test/test-path/path-makedirectory.path \
1534 test/test-path/path-modified.path \
1535 test/test-path/path-unit.path \
ac400816
RC
1536 test/test-execute/exec-environment-empty.service \
1537 test/test-execute/exec-environment-multiple.service \
1538 test/test-execute/exec-environment.service \
4c80d201
FB
1539 test/test-execute/exec-passenvironment-absent.service \
1540 test/test-execute/exec-passenvironment-empty.service \
1541 test/test-execute/exec-passenvironment-repeated.service \
1542 test/test-execute/exec-passenvironment.service \
ac400816
RC
1543 test/test-execute/exec-group.service \
1544 test/test-execute/exec-ignoresigpipe-no.service \
1545 test/test-execute/exec-ignoresigpipe-yes.service \
1546 test/test-execute/exec-personality-x86-64.service \
1547 test/test-execute/exec-personality-x86.service \
1548 test/test-execute/exec-personality-s390.service \
1549 test/test-execute/exec-privatedevices-no.service \
1550 test/test-execute/exec-privatedevices-yes.service \
1551 test/test-execute/exec-privatetmp-no.service \
1552 test/test-execute/exec-privatetmp-yes.service \
1553 test/test-execute/exec-systemcallerrornumber.service \
1554 test/test-execute/exec-systemcallfilter-failing2.service \
1555 test/test-execute/exec-systemcallfilter-failing.service \
1556 test/test-execute/exec-systemcallfilter-not-failing2.service \
1557 test/test-execute/exec-systemcallfilter-not-failing.service \
1558 test/test-execute/exec-user.service \
1559 test/test-execute/exec-workingdirectory.service \
1560 test/test-execute/exec-umask-0177.service \
1561 test/test-execute/exec-umask-default.service \
1562 test/test-execute/exec-privatenetwork-yes.service \
1563 test/test-execute/exec-environmentfile.service \
1564 test/test-execute/exec-oomscoreadjust-positive.service \
1565 test/test-execute/exec-oomscoreadjust-negative.service \
1566 test/test-execute/exec-ioschedulingclass-best-effort.service \
1567 test/test-execute/exec-ioschedulingclass-idle.service \
1568 test/test-execute/exec-ioschedulingclass-none.service \
1569 test/test-execute/exec-ioschedulingclass-realtime.service \
1570 test/test-execute/exec-capabilityboundingset-invert.service \
1571 test/test-execute/exec-capabilityboundingset-merge.service \
1572 test/test-execute/exec-capabilityboundingset-reset.service \
1573 test/test-execute/exec-capabilityboundingset-simple.service \
20725d92
DM
1574 test/bus-policy/hello.conf \
1575 test/bus-policy/methods.conf \
1576 test/bus-policy/ownerships.conf \
3a9cca11 1577 test/bus-policy/signals.conf \
55e18900
LP
1578 test/bus-policy/check-own-rules.conf \
1579 test/bus-policy/many-rules.conf \
1580 test/bus-policy/test.conf
20725d92 1581
e0eaab7c 1582
143bfdaf
HHPF
1583EXTRA_DIST += \
1584 src/test/test-helper.h
1585
8f6ce71f
DR
1586test_device_nodes_SOURCES = \
1587 src/test/test-device-nodes.c
1588
8f6ce71f 1589test_device_nodes_LDADD = \
a095315b 1590 libshared.la
8f6ce71f 1591
47be870b 1592test_engine_SOURCES = \
379079ba 1593 src/test/test-engine.c
47be870b 1594
41fd4c4c
KS
1595test_engine_CFLAGS = \
1596 $(AM_CFLAGS) \
d379d442
KZ
1597 $(SECCOMP_CFLAGS) \
1598 $(MOUNT_CFLAGS)
41fd4c4c 1599
235450b0 1600test_engine_LDADD = \
8c8302a6 1601 libcore.la
47be870b
LP
1602
1603test_job_type_SOURCES = \
379079ba 1604 src/test/test-job-type.c
47be870b 1605
41fd4c4c
KS
1606test_job_type_CFLAGS = \
1607 $(AM_CFLAGS) \
d379d442
KZ
1608 $(SECCOMP_CFLAGS) \
1609 $(MOUNT_CFLAGS)
41fd4c4c 1610
235450b0 1611test_job_type_LDADD = \
8c8302a6 1612 libcore.la
47be870b 1613
15ae422b 1614test_ns_SOURCES = \
379079ba 1615 src/test/test-ns.c
15ae422b 1616
41fd4c4c
KS
1617test_ns_CFLAGS = \
1618 $(AM_CFLAGS) \
1619 $(SECCOMP_CFLAGS)
1620
235450b0 1621test_ns_LDADD = \
a095315b 1622 libcore.la
15ae422b 1623
af5bc85d 1624test_loopback_SOURCES = \
379079ba 1625 src/test/test-loopback.c
af5bc85d 1626
139be57d 1627test_loopback_LDADD = \
a095315b 1628 libcore.la
139be57d 1629
e5907703 1630test_hostname_SOURCES = \
379079ba 1631 src/test/test-hostname.c
e5907703
LP
1632
1633test_hostname_LDADD = \
a095315b 1634 libcore.la
e5907703 1635
4ad7f276
NO
1636test_dns_domain_SOURCES = \
1637 src/test/test-dns-domain.c
1638
1639test_dns_domain_LDADD = \
1640 libsystemd-network.la \
8c8302a6 1641 libshared.la
4ad7f276 1642
c7472ce0 1643
b872e9a0 1644if ENABLE_EFI
cee22bd3 1645manual_tests += \
c51d84dc 1646 test-boot-timestamp
b872e9a0 1647
c51d84dc
KS
1648test_boot_timestamp_SOURCES = \
1649 src/test/test-boot-timestamps.c
2e3d0692 1650
c51d84dc 1651test_boot_timestamp_LDADD = \
a095315b 1652 libshared.la
b872e9a0 1653endif
2e3d0692 1654
b0193f1c
LP
1655test_unit_name_SOURCES = \
1656 src/test/test-unit-name.c
1657
41fd4c4c
KS
1658test_unit_name_CFLAGS = \
1659 $(AM_CFLAGS) \
d379d442
KZ
1660 $(SECCOMP_CFLAGS) \
1661 $(MOUNT_CFLAGS)
41fd4c4c 1662
b0193f1c 1663test_unit_name_LDADD = \
8c8302a6 1664 libcore.la
b0193f1c 1665
b5b46d59
LP
1666test_unit_file_SOURCES = \
1667 src/test/test-unit-file.c
1668
41fd4c4c
KS
1669test_unit_file_CFLAGS = \
1670 $(AM_CFLAGS) \
d379d442
KZ
1671 $(SECCOMP_CFLAGS) \
1672 $(MOUNT_CFLAGS)
41fd4c4c 1673
b5b46d59 1674test_unit_file_LDADD = \
8c8302a6 1675 libcore.la
b5b46d59 1676
02a36bc9
DR
1677test_utf8_SOURCES = \
1678 src/test/test-utf8.c
1679
02a36bc9 1680test_utf8_LDADD = \
a095315b 1681 libshared.la
02a36bc9 1682
6160e473
RC
1683test_capability_SOURCES = \
1684 src/test/test-capability.c
1685
1686test_capability_LDADD = \
a095315b 1687 libshared.la
6160e473 1688
e6b5c5d0
RC
1689test_async_SOURCES = \
1690 src/test/test-async.c
1691
1692test_async_LDADD = \
a095315b 1693 libshared.la
e6b5c5d0 1694
2b89a960
RC
1695test_locale_util_SOURCES = \
1696 src/test/test-locale-util.c
1697
1698test_locale_util_LDADD = \
a095315b 1699 libshared.la
2b89a960 1700
641d1f99
RC
1701test_copy_SOURCES = \
1702 src/test/test-copy.c
1703
1704test_copy_LDADD = \
a095315b 1705 libshared.la
641d1f99 1706
fa6ac760
LP
1707test_sigbus_SOURCES = \
1708 src/test/test-sigbus.c
1709
1710test_sigbus_LDADD = \
a095315b 1711 libshared.la
fa6ac760 1712
a0e4cae8
DH
1713test_rbtree_SOURCES = \
1714 src/test/test-rbtree.c
1715
1716test_rbtree_LDADD = \
1717 libshared.la
1718
134e56dc
LP
1719test_condition_SOURCES = \
1720 src/test/test-condition.c
b08f2be6 1721
134e56dc 1722test_condition_LDADD = \
a095315b 1723 libshared.la
b08f2be6 1724
106ecd76
RC
1725test_fdset_SOURCES = \
1726 src/test/test-fdset.c
1727
1728test_fdset_LDADD = \
a095315b 1729 libshared.la
106ecd76 1730
d15d0333
ZJS
1731test_fstab_util_SOURCES = \
1732 src/test/test-fstab-util.c
1733
1734test_fstab_util_LDADD = \
a095315b 1735 libshared.la
d15d0333 1736
e80cde5e
RC
1737test_ratelimit_SOURCES = \
1738 src/test/test-ratelimit.c
1739
1740test_ratelimit_LDADD = \
a095315b 1741 libshared.la
e80cde5e 1742
539ad707
TA
1743test_util_SOURCES = \
1744 src/test/test-util.c
1745
539ad707 1746test_util_LDADD = \
a095315b 1747 libshared.la
539ad707 1748
9fe4ea21
LP
1749test_string_util_SOURCES = \
1750 src/test/test-string-util.c
1751
1752test_string_util_LDADD = \
1753 libshared.la
1754
23a3c916
FB
1755test_extract_word_SOURCES = \
1756 src/test/test-extract-word.c
1757
1758test_extract_word_LDADD = \
1759 libshared.la
1760
bb269eed
FB
1761test_parse_util_SOURCES = \
1762 src/test/test-parse-util.c
1763
1764test_parse_util_LDADD = \
1765 libshared.la
1766
d0260817
LP
1767test_user_util_SOURCES = \
1768 src/test/test-user-util.c
1769
1770test_user_util_LDADD = \
1771 libshared.la
1772
8fb49443
ZJS
1773test_hostname_util_SOURCES = \
1774 src/test/test-hostname-util.c
1775
1776test_hostname_util_LDADD = \
1777 libshared.la
1778
0b452006
RC
1779test_process_util_SOURCES = \
1780 src/test/test-process-util.c
1781
1782test_process_util_LDADD = \
a095315b 1783 libshared.la
0b452006 1784
288a74cc
RC
1785test_terminal_util_SOURCES = \
1786 src/test/test-terminal-util.c
1787
1788test_terminal_util_LDADD = \
a095315b 1789 libshared.la
288a74cc 1790
4f1a33dd
ZJS
1791test_path_lookup_SOURCES = \
1792 src/test/test-path-lookup.c
1793
1794test_path_lookup_LDADD = \
a095315b 1795 libshared.la
4f1a33dd 1796
8530dc44
LP
1797test_uid_range_SOURCES = \
1798 src/test/test-uid-range.c
1799
1800test_uid_range_LDADD = \
a095315b 1801 libshared.la
8530dc44 1802
2822da4f
LP
1803test_cap_list_SOURCES = \
1804 src/test/test-cap-list.c
1805
1806test_cap_list_LDADD = \
a095315b 1807 libshared.la
2822da4f 1808
c182135d
RC
1809test_socket_util_SOURCES = \
1810 src/test/test-socket-util.c
1811
1812test_socket_util_LDADD = \
a095315b 1813 libshared.la
c182135d 1814
279da1e3
DH
1815test_barrier_SOURCES = \
1816 src/test/test-barrier.c
1817
1818test_barrier_LDADD = \
a095315b 1819 libshared.la
279da1e3 1820
65b3903f
ZJS
1821test_tmpfiles_SOURCES = \
1822 src/test/test-tmpfiles.c
1823
1824test_tmpfiles_LDADD = \
a095315b 1825 libshared.la
65b3903f 1826
d8c9d3a4
ZJS
1827test_namespace_SOURCES = \
1828 src/test/test-namespace.c
1829
d2f0e78f
DR
1830test_verbs_SOURCES = \
1831 src/test/test-verbs.c
1832
1833test_verbs_LDADD = \
a095315b 1834 libshared.la
d2f0e78f 1835
0ec0deaa
LP
1836test_install_root_SOURCES = \
1837 src/test/test-install-root.c
1838
1839test_install_root_LDADD = \
1840 libshared.la
1841
5bb5b236
ZJS
1842test_acl_util_SOURCES = \
1843 src/test/test-acl-util.c
1844
1845test_acl_util_LDADD = \
1846 libshared.la
1847
d8c9d3a4 1848test_namespace_LDADD = \
a095315b 1849 libcore.la
d8c9d3a4 1850
fe39daf2
EV
1851test_rlimit_util_SOURCES = \
1852 src/test/test-rlimit-util.c
1853
1854test_rlimit_util_LDADD = \
1855 libshared.la
1856
8a1baa3a
ZJS
1857test_ask_password_api_SOURCES = \
1858 src/test/test-ask-password-api.c
1859
1860test_ask_password_api_LDADD = \
1861 libshared.la
1862
0c5eb056
LP
1863test_signal_util_SOURCES = \
1864 src/test/test-signal-util.c
1865
1866test_signal_util_LDADD = \
1867 libshared.la
1868
32a4456c
MS
1869BUILT_SOURCES += \
1870 src/test/test-hashmap-ordered.c
1871
1872src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1873 $(AM_V_at)$(MKDIR_P) $(dir $@)
1874 $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1875 { if (!match($$0, "^#include")) \
1876 gsub(/hashmap/, "ordered_hashmap"); \
1877 gsub(/HASHMAP/, "ORDERED_HASHMAP"); \
1878 gsub(/Hashmap/, "OrderedHashmap"); \
1879 print }' <$< >$@
1880
1881nodist_test_hashmap_SOURCES = \
1882 src/test/test-hashmap-ordered.c
1883
9341a4a1 1884test_hashmap_SOURCES = \
32a4456c
MS
1885 src/test/test-hashmap.c \
1886 src/test/test-hashmap-plain.c
9341a4a1 1887
9341a4a1 1888test_hashmap_LDADD = \
a095315b 1889 libshared.la
9341a4a1 1890
647f6824
ZJS
1891test_set_SOURCES = \
1892 src/test/test-set.c
1893
1894test_set_LDADD = \
a095315b 1895 libshared.la
647f6824 1896
5ffa42cb
TG
1897test_bitmap_SOURCES = \
1898 src/test/test-bitmap.c
1899
1900test_bitmap_LDADD = \
1901 libshared.la
1902
08bcebf3
LP
1903test_xml_SOURCES = \
1904 src/test/test-xml.c
1905
1906test_xml_LDADD = \
a095315b 1907 libshared.la
08bcebf3 1908
3b18ae68
JJ
1909test_list_SOURCES = \
1910 src/test/test-list.c
1911
ad02805f 1912test_list_LDADD = \
a095315b 1913 libshared.la
ad02805f 1914
f089257d 1915test_unaligned_LDADD = \
a095315b 1916 libshared.la
f089257d
TG
1917
1918test_unaligned_SOURCES = \
1919 src/test/test-unaligned.c
1920
a8b409db
ZJS
1921test_tables_SOURCES = \
1922 src/test/test-tables.c \
86bbe5bf 1923 src/shared/test-tables.h \
86bbe5bf
ZJS
1924 src/journal/journald-server.c \
1925 src/journal/journald-server.h
a8b409db 1926
02041526 1927test_tables_CPPFLAGS = \
798c486f 1928 $(AM_CPPFLAGS)
02041526 1929
41fd4c4c
KS
1930test_tables_CFLAGS = \
1931 $(AM_CFLAGS) \
d379d442
KZ
1932 $(SECCOMP_CFLAGS) \
1933 $(MOUNT_CFLAGS)
41fd4c4c 1934
a8b409db 1935test_tables_LDADD = \
a095315b
KS
1936 libjournal-core.la \
1937 libcore.la \
8c8302a6 1938 libudev-core.la
a8b409db 1939
30bdd695
LP
1940test_prioq_SOURCES = \
1941 src/test/test-prioq.c
1942
30bdd695 1943test_prioq_LDADD = \
a095315b 1944 libshared.la
30bdd695 1945
f73141d7
LP
1946test_fileio_SOURCES = \
1947 src/test/test-fileio.c
1948
f73141d7 1949test_fileio_LDADD = \
a095315b 1950 libshared.la
f73141d7 1951
cb0dac05
LP
1952test_time_SOURCES = \
1953 src/test/test-time.c
1954
cb0dac05 1955test_time_LDADD = \
a095315b 1956 libshared.la
cb0dac05 1957
099524d7
LP
1958test_architecture_SOURCES = \
1959 src/test/test-architecture.c
1960
1961test_architecture_LDADD = \
a095315b 1962 libshared.la
099524d7 1963
877d54e9
LP
1964test_log_SOURCES = \
1965 src/test/test-log.c
1966
1967test_log_LDADD = \
a095315b 1968 libshared.la
877d54e9 1969
66cdd0f2
LP
1970test_ipcrm_SOURCES = \
1971 src/test/test-ipcrm.c
1972
1973test_ipcrm_LDADD = \
8c8302a6 1974 libshared.la
66cdd0f2 1975
d7c7c334
LP
1976test_btrfs_SOURCES = \
1977 src/test/test-btrfs.c
1978
1979test_btrfs_LDADD = \
a095315b 1980 libshared.la
d7c7c334 1981
8d09b6de 1982if HAVE_LIBIPTC
12c2884c
DM
1983test_firewall_util_SOURCES = \
1984 src/test/test-firewall-util.c
76917807 1985
12c2884c 1986test_firewall_util_CFLAGS = \
76917807
LP
1987 $(AM_CFLAGS) \
1988 $(LIBIPTC_CFLAGS)
1989
12c2884c 1990test_firewall_util_LDADD = \
a095315b
KS
1991 libfirewall.la \
1992 libshared.la \
76917807 1993 $(LIBIPTC_LIBS)
8d09b6de 1994endif
76917807 1995
1c4baffc
TG
1996test_netlink_manual_SOURCES = \
1997 src/test/test-netlink-manual.c
9a6704a8 1998
1c4baffc 1999test_netlink_manual_CFLAGS = \
7c4e5e4d
ŁS
2000 $(AM_CFLAGS) \
2001 $(KMOD_CFLAGS)
2002
1c4baffc 2003test_netlink_manual_LDADD = \
a095315b 2004 libshared.la \
7c4e5e4d 2005 $(KMOD_LIBS)
9a6704a8 2006
35d811f5
SL
2007test_ellipsize_SOURCES = \
2008 src/test/test-ellipsize.c
2009
2010test_ellipsize_LDADD = \
a095315b 2011 libshared.la
35d811f5 2012
cfbc22ab
LP
2013test_date_SOURCES = \
2014 src/test/test-date.c
2015
2016test_date_LDADD = \
a095315b 2017 libshared.la
cfbc22ab 2018
6524990f
LP
2019test_sleep_SOURCES = \
2020 src/test/test-sleep.c
2021
2022test_sleep_LDADD = \
a095315b 2023 libcore.la
6524990f 2024
6e6fb527
LP
2025test_replace_var_SOURCES = \
2026 src/test/test-replace-var.c
2027
2028test_replace_var_LDADD = \
a095315b 2029 libshared.la
6e6fb527 2030
36697dc0
LP
2031test_calendarspec_SOURCES = \
2032 src/test/test-calendarspec.c
2033
2034test_calendarspec_LDADD = \
a095315b 2035 libshared.la
36697dc0 2036
e8bc0ea2
LP
2037test_strip_tab_ansi_SOURCES = \
2038 src/test/test-strip-tab-ansi.c
2039
2040test_strip_tab_ansi_LDADD = \
a095315b 2041 libshared.la
e8bc0ea2 2042
8c47c732 2043test_daemon_SOURCES = \
379079ba 2044 src/test/test-daemon.c
af5bc85d 2045
139be57d 2046test_daemon_LDADD = \
a095315b 2047 libshared.la
139be57d 2048
8c6db833 2049test_cgroup_SOURCES = \
379079ba 2050 src/test/test-cgroup.c
8c6db833 2051
8c6db833 2052test_cgroup_LDADD = \
a095315b 2053 libshared.la
8c6db833 2054
6414b7c9
DS
2055test_cgroup_mask_SOURCES = \
2056 src/test/test-cgroup-mask.c
2057
96115cdf 2058test_cgroup_mask_CPPFLAGS = \
d379d442
KZ
2059 $(AM_CPPFLAGS) \
2060 $(MOUNT_CFLAGS)
6414b7c9 2061
41fd4c4c
KS
2062test_cgroup_mask_CFLAGS = \
2063 $(AM_CFLAGS) \
2064 $(SECCOMP_CFLAGS)
2065
6414b7c9 2066test_cgroup_mask_LDADD = \
8c8302a6 2067 libcore.la
6414b7c9 2068
96cde13a
ZJS
2069test_cgroup_util_SOURCES = \
2070 src/test/test-cgroup-util.c
2071
2072test_cgroup_util_LDADD = \
a095315b 2073 libshared.la
96cde13a 2074
c24eb49e 2075test_env_replace_SOURCES = \
379079ba 2076 src/test/test-env-replace.c
c24eb49e 2077
c24eb49e 2078test_env_replace_LDADD = \
a095315b 2079 libshared.la
c24eb49e 2080
97b5f608
TA
2081test_strbuf_SOURCES = \
2082 src/test/test-strbuf.c
2083
2084test_strbuf_LDADD = \
a095315b 2085 libshared.la
97b5f608 2086
f90cf44c 2087test_strv_SOURCES = \
379079ba 2088 src/test/test-strv.c
f90cf44c 2089
f90cf44c 2090test_strv_LDADD = \
a095315b 2091 libshared.la
f90cf44c 2092
76877b46
ZJS
2093test_path_util_SOURCES = \
2094 src/test/test-path-util.c
2095
2096test_path_util_LDADD = \
a095315b 2097 libshared.la
76877b46 2098
bc999297
RC
2099test_path_SOURCES = \
2100 src/test/test-path.c
2101
2102test_path_CFLAGS = \
d379d442
KZ
2103 $(AM_CFLAGS) \
2104 $(MOUNT_CFLAGS)
bc999297
RC
2105
2106test_path_LDADD = \
a095315b 2107 libcore.la
bc999297 2108
281e05b6
RC
2109test_execute_SOURCES = \
2110 src/test/test-execute.c
2111
2112test_execute_CFLAGS = \
d379d442
KZ
2113 $(AM_CFLAGS) \
2114 $(MOUNT_CFLAGS)
281e05b6
RC
2115
2116test_execute_LDADD = \
a095315b 2117 libcore.la
281e05b6 2118
a245d90a
TG
2119test_siphash24_SOURCES = \
2120 src/test/test-siphash24.c
2121
2122test_siphash24_LDADD = \
2123 libshared.la
2124
c62c294f
TA
2125test_strxcpyx_SOURCES = \
2126 src/test/test-strxcpyx.c
2127
2128test_strxcpyx_LDADD = \
a095315b 2129 libshared.la
c62c294f 2130
83096483 2131test_install_SOURCES = \
379079ba 2132 src/test/test-install.c
83096483 2133
83096483 2134test_install_LDADD = \
a095315b 2135 libshared.la
83096483 2136
e96d6be7 2137test_watchdog_SOURCES = \
379079ba 2138 src/test/test-watchdog.c
e96d6be7
LP
2139
2140test_watchdog_LDADD = \
a095315b 2141 libshared.la
e96d6be7 2142
bb112710
HHPF
2143test_sched_prio_SOURCES = \
2144 src/test/test-sched-prio.c
2145
96115cdf 2146test_sched_prio_CPPFLAGS = \
d379d442
KZ
2147 $(AM_CPPFLAGS) \
2148 $(MOUNT_CFLAGS)
bb112710 2149
41fd4c4c
KS
2150test_sched_prio_CFLAGS = \
2151 $(AM_CFLAGS) \
2152 $(SECCOMP_CFLAGS)
2153
bb112710 2154test_sched_prio_LDADD = \
8c8302a6 2155 libcore.la
bb112710 2156
09e00c52
MM
2157test_conf_files_SOURCES = \
2158 src/test/test-conf-files.c
2159
2160test_conf_files_LDADD = \
a095315b 2161 libshared.la
09e00c52 2162
0763adbe
RC
2163test_conf_parser_SOURCES = \
2164 src/test/test-conf-parser.c
2165
2166test_conf_parser_LDADD = \
a095315b 2167 libshared.la
0763adbe 2168
da8ba721
DM
2169test_af_list_SOURCES = \
2170 src/test/test-af-list.c
2171
2172test_af_list_LDADD = \
2173 libbasic.la
2174
2175test_arphrd_list_SOURCES = \
2176 src/test/test-arphrd-list.c
2177
2178test_arphrd_list_LDADD = \
2179 libbasic.la
2180
d7832d2c 2181# ------------------------------------------------------------------------------
6aea6d10 2182## .PHONY so it always rebuilds it
9f700755 2183.PHONY: coverage lcov-run lcov-report coverage-sync
6aea6d10
TA
2184
2185# run lcov from scratch, always
5549f483 2186coverage: all
6aea6d10
TA
2187 $(MAKE) lcov-run
2188 $(MAKE) lcov-report
2189
2190coverage_dir = coverage
2191coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2192
2193if ENABLE_COVERAGE
2194# reset run coverage tests
2195lcov-run:
2196 @rm -rf $(coverage_dir)
2197 lcov $(coverage_opts) --zerocounters
2198 -$(MAKE) check
2199
2200# generate report based on current coverage data
2201lcov-report:
2202 $(MKDIR_P) $(coverage_dir)
2203 lcov $(coverage_opts) --compat-libtool --capture --no-external \
2204 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
5445c7a0
RC
2205 lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2206 genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
6aea6d10
TA
2207 @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2208
2209# lcov doesn't work properly with vpath builds, make sure that bad
2210# output is not uploaded by mistake.
2211coverage-sync: coverage
2212 test "$(builddir)" = "$(srcdir)"
2213 rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2214
2215else
2216lcov-run lcov-report:
2217 echo "Need to reconfigure with --enable-coverage"
2218endif
2219
2220# ------------------------------------------------------------------------------
b0770377 2221systemd_analyze_SOURCES = \
1d3bc017
ZJS
2222 src/analyze/analyze.c \
2223 src/analyze/analyze-verify.c \
2224 src/analyze/analyze-verify.h
2225
144b1b4b 2226systemd_analyze_CFLAGS = \
1d3bc017 2227 $(AM_CFLAGS) \
d379d442
KZ
2228 $(SECCOMP_CFLAGS) \
2229 $(MOUNT_CFLAGS)
b0770377 2230
b0770377 2231systemd_analyze_LDADD = \
8c8302a6 2232 libcore.la
b0770377
KS
2233
2234# ------------------------------------------------------------------------------
7e8f489a 2235systemd_initctl_SOURCES = \
dce818b3 2236 src/initctl/initctl.c
7e8f489a 2237
7e8f489a 2238systemd_initctl_LDADD = \
a095315b 2239 libshared.la
7e8f489a 2240
d7832d2c 2241# ------------------------------------------------------------------------------
7e8f489a 2242systemd_update_utmp_SOURCES = \
dce818b3 2243 src/update-utmp/update-utmp.c
7e8f489a
KS
2244
2245systemd_update_utmp_CFLAGS = \
2246 $(AM_CFLAGS) \
7e8f489a
KS
2247 $(AUDIT_CFLAGS)
2248
2249systemd_update_utmp_LDADD = \
a095315b 2250 libshared.la \
7e8f489a
KS
2251 $(AUDIT_LIBS)
2252
8ea48dfc
LP
2253# ------------------------------------------------------------------------------
2254systemd_update_done_SOURCES = \
2255 src/update-done/update-done.c
2256
2257systemd_update_done_LDADD = \
a095315b 2258 libshared.la
8ea48dfc 2259
04ebb595 2260# ------------------------------------------------------------------------------
48d437bb 2261systemd_shutdown_SOURCES = \
146de817
LP
2262 src/core/umount.c \
2263 src/core/umount.h \
08e1fb68
LP
2264 src/core/shutdown.c \
2265 src/core/mount-setup.c \
bd3fa1d2
LP
2266 src/core/mount-setup.h \
2267 src/core/killall.h \
2268 src/core/killall.c
d4a66a7f 2269
48d437bb 2270systemd_shutdown_LDADD = \
a095315b 2271 libshared.la
d4a66a7f 2272
d7832d2c 2273# ------------------------------------------------------------------------------
aa590241 2274if HAVE_KMOD
48d437bb 2275systemd_modules_load_SOURCES = \
dce818b3 2276 src/modules-load/modules-load.c
d4a66a7f 2277
83684a35 2278systemd_modules_load_CFLAGS = \
235450b0 2279 $(AM_CFLAGS) \
83684a35
TG
2280 $(KMOD_CFLAGS)
2281
48d437bb 2282systemd_modules_load_LDADD = \
a095315b 2283 libshared.la \
83684a35 2284 $(KMOD_LIBS)
aa590241
KS
2285
2286rootlibexec_PROGRAMS += \
2287 systemd-modules-load
2288
2289nodist_systemunit_DATA += \
2290 units/systemd-modules-load.service
a3bd8447 2291
aa590241
KS
2292SYSINIT_TARGET_WANTS += \
2293 systemd-modules-load.service
2294
edeb68c5
TG
2295if ENABLE_TMPFILES
2296nodist_systemunit_DATA += \
2297 units/kmod-static-nodes.service
2298
2299SYSINIT_TARGET_WANTS += \
2300 kmod-static-nodes.service
2301endif
e3043162 2302endif
d4a66a7f 2303
aa590241 2304EXTRA_DIST += \
5590bbe5
KS
2305 units/systemd-modules-load.service.in \
2306 units/kmod-static-nodes.service.in
aa590241 2307
d7832d2c 2308# ------------------------------------------------------------------------------
6351163b 2309if ENABLE_TMPFILES
48d437bb 2310systemd_tmpfiles_SOURCES = \
189b2384 2311 src/tmpfiles/tmpfiles.c
d4a66a7f 2312
48d437bb 2313systemd_tmpfiles_LDADD = \
a095315b 2314 libshared.la
f8eeeaf9 2315
5b46fc6c
TG
2316rootbin_PROGRAMS += \
2317 systemd-tmpfiles
2318
2319dist_systemunit_DATA += \
2320 units/systemd-tmpfiles-clean.timer
2321
2322nodist_systemunit_DATA += \
2323 units/systemd-tmpfiles-setup-dev.service \
2324 units/systemd-tmpfiles-setup.service \
2325 units/systemd-tmpfiles-clean.service
2326
aeb50ff0 2327nodist_tmpfiles_DATA = \
ae5b2a86 2328 tmpfiles.d/systemd.conf \
aeb50ff0
TG
2329 tmpfiles.d/etc.conf
2330
5b46fc6c 2331dist_tmpfiles_DATA = \
c4708f13 2332 tmpfiles.d/systemd-nologin.conf \
5b46fc6c 2333 tmpfiles.d/tmp.conf \
9339db71 2334 tmpfiles.d/x11.conf \
fed2b07e 2335 tmpfiles.d/var.conf \
770b5ce4 2336 tmpfiles.d/home.conf \
2c8849ad
KS
2337 tmpfiles.d/systemd-nspawn.conf \
2338 tmpfiles.d/journal-nocow.conf
5b46fc6c
TG
2339
2340if HAVE_SYSV_COMPAT
2341dist_tmpfiles_DATA += \
2342 tmpfiles.d/legacy.conf
6351163b 2343endif
d4a66a7f 2344
5b46fc6c
TG
2345SYSINIT_TARGET_WANTS += \
2346 systemd-tmpfiles-setup-dev.service \
2347 systemd-tmpfiles-setup.service
2348
17163897 2349dist_zshcompletion_data += \
1272ff85
WG
2350 shell-completion/zsh/_systemd-tmpfiles
2351
5b46fc6c
TG
2352TIMERS_TARGET_WANTS += \
2353 systemd-tmpfiles-clean.timer
2354
2355INSTALL_DIRS += \
2356 $(tmpfilesdir) \
2357 $(sysconfdir)/tmpfiles.d
2358endif
2359
2360EXTRA_DIST += \
ae5b2a86 2361 tmpfiles.d/systemd.conf.m4 \
aeb50ff0 2362 tmpfiles.d/etc.conf.m4 \
5b46fc6c
TG
2363 units/systemd-tmpfiles-setup-dev.service.in \
2364 units/systemd-tmpfiles-setup.service.in \
2365 units/systemd-tmpfiles-clean.service.in
2366
1b992147
LP
2367# ------------------------------------------------------------------------------
2368if ENABLE_SYSUSERS
2369systemd_sysusers_SOURCES = \
2370 src/sysusers/sysusers.c
2371
2372systemd_sysusers_LDADD = \
a095315b 2373 libshared.la
1b992147 2374
b532bdea 2375rootbin_PROGRAMS += \
1b992147
LP
2376 systemd-sysusers
2377
ecde7065
LP
2378nodist_systemunit_DATA += \
2379 units/systemd-sysusers.service
2380
2381SYSINIT_TARGET_WANTS += \
2382 systemd-sysusers.service
2383
94655a16 2384nodist_sysusers_DATA = \
ae5b2a86 2385 sysusers.d/systemd.conf \
94655a16
LP
2386 sysusers.d/basic.conf
2387
e400d4b3
EV
2388if HAVE_REMOTE
2389nodist_sysusers_DATA += \
2390 sysusers.d/systemd-remote.conf
2391endif
2392
e37f6d61
MP
2393INSTALL_DIRS += \
2394 $(sysusersdir)
2395endif
2396
f8b5d994 2397EXTRA_DIST += \
ecde7065 2398 units/systemd-sysusers.service.in \
ae5b2a86 2399 sysusers.d/systemd.conf.m4 \
e400d4b3 2400 sysusers.d/systemd-remote.conf.m4 \
94655a16 2401 sysusers.d/basic.conf.in
f8b5d994 2402
94a15ffa
KS
2403# ------------------------------------------------------------------------------
2404dist_factory_etc_DATA = \
2405 factory/etc/nsswitch.conf
2406
2f88c858 2407if HAVE_PAM
94a15ffa
KS
2408dist_factory_pam_DATA = \
2409 factory/etc/pam.d/system-auth \
2410 factory/etc/pam.d/other
2f88c858 2411endif
94a15ffa 2412
418b9be5
LP
2413# ------------------------------------------------------------------------------
2414if ENABLE_FIRSTBOOT
2415systemd_firstboot_SOURCES = \
2416 src/firstboot/firstboot.c
2417
2418systemd_firstboot_LDADD = \
a095315b 2419 libshared.la \
418b9be5
LP
2420 -lcrypt
2421
2422rootbin_PROGRAMS += \
2423 systemd-firstboot
2424
2425nodist_systemunit_DATA += \
2426 units/systemd-firstboot.service
2427
e2680723
LP
2428SYSINIT_TARGET_WANTS += \
2429 systemd-firstboot.service
418b9be5
LP
2430endif
2431
e37f6d61
MP
2432EXTRA_DIST += \
2433 units/systemd-firstboot.service.in
2434
d7832d2c 2435# ------------------------------------------------------------------------------
48d437bb 2436systemd_machine_id_setup_SOURCES = \
4fc55688 2437 src/machine-id-setup/machine-id-setup-main.c \
08e1fb68
LP
2438 src/core/machine-id-setup.c \
2439 src/core/machine-id-setup.h
d4a66a7f 2440
48d437bb 2441systemd_machine_id_setup_LDADD = \
a095315b 2442 libshared.la
d4a66a7f 2443
4a9b1dd4
LP
2444SYSINIT_TARGET_WANTS += \
2445 systemd-machine-id-commit.service
2446
d7832d2c 2447# ------------------------------------------------------------------------------
48d437bb 2448systemd_sysctl_SOURCES = \
dce818b3 2449 src/sysctl/sysctl.c
d4a66a7f 2450
48d437bb 2451systemd_sysctl_LDADD = \
a095315b 2452 libshared.la
d4a66a7f 2453
6edd7d0a
LP
2454# ------------------------------------------------------------------------------
2455systemd_sleep_SOURCES = \
2456 src/sleep/sleep.c
2457
2458systemd_sleep_LDADD = \
a095315b 2459 libshared.la
6edd7d0a 2460
d7832d2c 2461# ------------------------------------------------------------------------------
48d437bb 2462systemd_fsck_SOURCES = \
dce818b3 2463 src/fsck/fsck.c
87d2c1ff 2464
48d437bb 2465systemd_fsck_LDADD = \
a095315b 2466 libshared.la
807e17f0 2467
d7832d2c 2468# ------------------------------------------------------------------------------
48d437bb 2469systemd_ac_power_SOURCES = \
dce818b3 2470 src/ac-power/ac-power.c
0b7964b8 2471
48d437bb 2472systemd_ac_power_LDADD = \
a095315b 2473 libshared.la
0b7964b8 2474
d7832d2c 2475# ------------------------------------------------------------------------------
48d437bb 2476systemd_detect_virt_SOURCES = \
dce818b3 2477 src/detect-virt/detect-virt.c
4927fcae 2478
48d437bb 2479systemd_detect_virt_LDADD = \
a095315b 2480 libshared.la
7e8f489a 2481
96ede260
LP
2482INSTALL_EXEC_HOOKS += \
2483 systemd-detect-virt-install-hook
2484
27b5482c
LP
2485# ------------------------------------------------------------------------------
2486systemd_delta_SOURCES = \
2487 src/delta/delta.c
2488
2489systemd_delta_LDADD = \
a095315b 2490 libshared.la
27b5482c 2491
d7832d2c 2492# ------------------------------------------------------------------------------
48d437bb 2493systemd_getty_generator_SOURCES = \
dce818b3 2494 src/getty-generator/getty-generator.c
f6144808 2495
48d437bb 2496systemd_getty_generator_LDADD = \
a095315b 2497 libshared.la
7e8f489a 2498
326bb68c
LP
2499# ------------------------------------------------------------------------------
2500systemd_debug_generator_SOURCES = \
2501 src/debug-generator/debug-generator.c
2502
2503systemd_debug_generator_LDADD = \
a095315b 2504 libshared.la
326bb68c 2505
6b1dc2bd
LP
2506# ------------------------------------------------------------------------------
2507systemd_fstab_generator_SOURCES = \
2508 src/fstab-generator/fstab-generator.c \
2509 src/core/mount-setup.c
2510
2511systemd_fstab_generator_LDADD = \
a095315b 2512 libshared.la
6b1dc2bd 2513
d360705f
LP
2514# ------------------------------------------------------------------------------
2515systemd_system_update_generator_SOURCES = \
2516 src/system-update-generator/system-update-generator.c
2517
2518systemd_system_update_generator_LDADD = \
a095315b 2519 libshared.la
d360705f 2520
d2c68822 2521# ------------------------------------------------------------------------------
4df5c00b
UTL
2522if ENABLE_HIBERNATE
2523systemgenerator_PROGRAMS += \
72ba9f04 2524 systemd-hibernate-resume-generator
4df5c00b
UTL
2525
2526rootlibexec_PROGRAMS += \
72ba9f04 2527 systemd-hibernate-resume
4df5c00b
UTL
2528
2529systemd_hibernate_resume_SOURCES = \
72ba9f04 2530 src/hibernate-resume/hibernate-resume.c
4df5c00b
UTL
2531
2532systemd_hibernate_resume_LDADD = \
a095315b 2533 libshared.la
4df5c00b 2534
d2c68822 2535systemd_hibernate_resume_generator_SOURCES = \
782c2652 2536 src/hibernate-resume/hibernate-resume-generator.c
d2c68822
IS
2537
2538systemd_hibernate_resume_generator_LDADD = \
a095315b 2539 libshared.la
d2c68822 2540
4df5c00b 2541dist_systemunit_DATA += \
72ba9f04
IS
2542 units/hibernate.target \
2543 units/hybrid-sleep.target
4df5c00b
UTL
2544
2545nodist_systemunit_DATA += \
72ba9f04
IS
2546 units/systemd-hibernate.service \
2547 units/systemd-hibernate-resume@.service \
2548 units/systemd-hybrid-sleep.service
4df5c00b
UTL
2549endif
2550
e37f6d61
MP
2551EXTRA_DIST += \
2552 units/systemd-hibernate.service.in \
2553 units/systemd-hibernate-resume@.service.in \
2554 units/systemd-hybrid-sleep.service.in
2555
5b46fc6c 2556# ------------------------------------------------------------------------------
4df5c00b 2557if ENABLE_EFI
563217eb 2558if HAVE_BLKID
5b46fc6c 2559bootctl_SOURCES = \
0974a682
KS
2560 src/boot/bootctl.c
2561
2562bootctl_CPPFLAGS = \
2563 $(AM_CPPFLAGS) \
2564 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \
e7dd673d 2565 -DBOOTLIBDIR=\"$(bootlibdir)\"
0974a682
KS
2566
2567bootctl_CFLAGS = \
2568 $(AM_CFLAGS) \
2569 $(BLKID_CFLAGS)
5b46fc6c
TG
2570
2571bootctl_LDADD = \
a095315b 2572 libshared.la \
0974a682 2573 $(BLKID_LIBS)
5b46fc6c
TG
2574
2575bin_PROGRAMS += \
2576 bootctl
51d0f1c9 2577
17163897 2578dist_bashcompletion_data += \
95fe27d9
TA
2579 shell-completion/bash/bootctl
2580
17163897 2581dist_zshcompletion_data += \
51d0f1c9 2582 shell-completion/zsh/_bootctl
563217eb 2583endif
51d0f1c9 2584
0fa2cac4 2585# ------------------------------------------------------------------------------
484122c3 2586if HAVE_GNUEFI
0fa2cac4
KS
2587efi_cppflags = \
2588 $(EFI_CPPFLAGS) \
2589 -I$(top_builddir) -include config.h \
2590 -I$(EFI_INC_DIR)/efi \
2591 -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \
2592 -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\"
2593
2594efi_cflags = \
2595 $(EFI_CFLAGS) \
2596 -Wall \
2597 -Wextra \
33d25be0 2598 -std=gnu90 \
0fa2cac4
KS
2599 -nostdinc \
2600 -ggdb -O0 \
2601 -fpic \
2602 -fshort-wchar \
2603 -nostdinc \
2604 -ffreestanding \
2605 -fno-strict-aliasing \
2606 -fno-stack-protector \
2607 -Wsign-compare \
32ef61b8 2608 -Wno-missing-field-initializers
0fa2cac4
KS
2609
2610if ARCH_X86_64
2611efi_cflags += \
2612 -mno-red-zone \
32ef61b8
KK
2613 -mno-sse \
2614 -mno-mmx \
0fa2cac4 2615 -DEFI_FUNCTION_WRAPPER \
33d25be0 2616 -DGNU_EFI_USE_MS_ABI
0fa2cac4
KS
2617endif
2618
32ef61b8
KK
2619if ARCH_IA32
2620efi_cflags += \
2621 -mno-sse \
2622 -mno-mmx
2623endif
2624
0fa2cac4
KS
2625efi_ldflags = \
2626 $(EFI_LDFLAGS) \
2627 -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \
2628 -shared \
2629 -Bsymbolic \
2630 -nostdlib \
2631 -znocombreloc \
2632 -L $(EFI_LIB_DIR) \
2633 $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o
2634
684edf2e
KK
2635# Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead,
2636# and add required symbols manually.
2637if ARCH_AARCH64
2638efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa
2639EFI_FORMAT = -O binary
2640else
2641EFI_FORMAT = --target=efi-app-$(EFI_ARCH)
2642endif
f80099c0
MAP
2643endif
2644endif
684edf2e 2645
0fa2cac4 2646# ------------------------------------------------------------------------------
e7dd673d
TG
2647systemd_boot_headers = \
2648 src/boot/efi/util.h \
2649 src/boot/efi/console.h \
2650 src/boot/efi/graphics.h \
8110e144 2651 src/boot/efi/pefile.h \
92ed3bb4 2652 src/boot/efi/measure.h \
8110e144 2653 src/boot/efi/disk.h
e7dd673d
TG
2654
2655systemd_boot_sources = \
2656 src/boot/efi/util.c \
2657 src/boot/efi/console.c \
2658 src/boot/efi/graphics.c \
2659 src/boot/efi/pefile.c \
8110e144 2660 src/boot/efi/disk.c \
92ed3bb4 2661 src/boot/efi/measure.c \
e7dd673d
TG
2662 src/boot/efi/boot.c
2663
f80099c0
MAP
2664EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers)
2665
e7dd673d
TG
2666systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o))
2667systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so
2668systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi
2669
4c32f2c9
ZJS
2670if ENABLE_EFI
2671if HAVE_GNUEFI
e7dd673d 2672bootlib_DATA = $(systemd_boot)
e7dd673d
TG
2673
2674$(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers))
2675 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
0fa2cac4
KS
2676 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2677
e7dd673d
TG
2678$(systemd_boot_solib): $(systemd_boot_objects)
2679 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \
0fa2cac4
KS
2680 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2681 nm -D -u $@ | grep ' U ' && exit 1 || :
2682
e7dd673d 2683$(systemd_boot): $(systemd_boot_solib)
c4a77bcb 2684 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
684edf2e 2685 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
f80099c0
MAP
2686endif
2687endif
0fa2cac4 2688
4c32f2c9
ZJS
2689CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot)
2690
0fa2cac4
KS
2691# ------------------------------------------------------------------------------
2692stub_headers = \
e7dd673d
TG
2693 src/boot/efi/util.h \
2694 src/boot/efi/pefile.h \
8110e144 2695 src/boot/efi/disk.h \
37fa3690 2696 src/boot/efi/graphics.h \
2f8d3364 2697 src/boot/efi/splash.h \
92ed3bb4 2698 src/boot/efi/measure.h \
e7dd673d 2699 src/boot/efi/linux.h
0fa2cac4
KS
2700
2701stub_sources = \
e7dd673d
TG
2702 src/boot/efi/util.c \
2703 src/boot/efi/pefile.c \
8110e144 2704 src/boot/efi/disk.c \
37fa3690 2705 src/boot/efi/graphics.c \
2f8d3364 2706 src/boot/efi/splash.c \
e7dd673d 2707 src/boot/efi/linux.c \
92ed3bb4 2708 src/boot/efi/measure.c \
e7dd673d 2709 src/boot/efi/stub.c
0fa2cac4 2710
2c8849ad
KS
2711EXTRA_DIST += \
2712 $(stub_sources) \
2713 $(stub_headers) \
2714 test/splash.bmp
f80099c0 2715
0fa2cac4 2716stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o))
e7dd673d 2717stub_solib = $(top_builddir)/src/boot/efi/stub.so
0fa2cac4
KS
2718stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub
2719
4c32f2c9
ZJS
2720if ENABLE_EFI
2721if HAVE_GNUEFI
e7dd673d 2722bootlib_DATA += $(stub)
0fa2cac4 2723
e7dd673d
TG
2724$(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers))
2725 @$(MKDIR_P) $(top_builddir)/src/boot/efi/
0fa2cac4
KS
2726 $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@
2727
2728$(stub_solib): $(stub_objects)
2729 $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \
2730 -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \
2731 nm -D -u $@ | grep ' U ' && exit 1 || :
2732
2733$(stub): $(stub_solib)
c4a77bcb 2734 $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \
684edf2e 2735 -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@
4c32f2c9
ZJS
2736endif
2737endif
2738
2739CLEANFILES += $(stub_objects) $(stub_solib) $(stub)
2740
0fa2cac4
KS
2741
2742# ------------------------------------------------------------------------------
2743CLEANFILES += test-efi-disk.img
0fa2cac4 2744
e7dd673d 2745test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh
0fa2cac4
KS
2746 $(AM_V_GEN)test/test-efi-create-disk.sh
2747
2748test-efi: test-efi-disk.img
2749 $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img
f4ce2b3e 2750
e37f6d61
MP
2751EXTRA_DIST += test/test-efi-create-disk.sh
2752
1a14a53c 2753# ------------------------------------------------------------------------------
046d2bd4 2754if HAVE_BLKID
1a14a53c
LP
2755systemgenerator_PROGRAMS += \
2756 systemd-gpt-auto-generator
2757
2758systemd_gpt_auto_generator_SOURCES = \
1b9e5b12 2759 src/gpt-auto-generator/gpt-auto-generator.c \
a095315b 2760 src/basic/blkid-util.h
1a14a53c
LP
2761
2762systemd_gpt_auto_generator_LDADD = \
a095315b 2763 libshared.la \
1a14a53c
LP
2764 $(BLKID_LIBS)
2765
2766systemd_gpt_auto_generator_CFLAGS = \
2767 $(AM_CFLAGS) \
2768 $(BLKID_CFLAGS)
046d2bd4 2769endif
1a14a53c 2770
674eb685
LP
2771# ------------------------------------------------------------------------------
2772systemgenerator_PROGRAMS += \
2773 systemd-dbus1-generator
2774
2775systemd_dbus1_generator_SOURCES = \
2776 src/dbus1-generator/dbus1-generator.c
2777
2778systemd_dbus1_generator_LDADD = \
a095315b 2779 libshared.la
674eb685 2780
2b197ae2 2781dbus1-generator-install-hook:
9f137db0 2782 $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
5e11d962 2783 $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
e2438b7a 2784 $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2b197ae2
KS
2785
2786dbus1-generator-uninstall-hook:
2787 rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2788
1401ec2d
KS
2789dist_xinitrc_SCRIPTS = \
2790 xorg/50-systemd-user.sh
2791
2b197ae2
KS
2792INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2793UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2794
95ed3294
TA
2795# ------------------------------------------------------------------------------
2796systemd_sysv_generator_SOURCES = \
2797 src/sysv-generator/sysv-generator.c
2798
2799systemd_sysv_generator_LDADD = \
a095315b 2800 libcore.la
95ed3294 2801
d7832d2c 2802# ------------------------------------------------------------------------------
48d437bb 2803systemd_rc_local_generator_SOURCES = \
dce818b3 2804 src/rc-local-generator/rc-local-generator.c
7e8f489a 2805
48d437bb 2806systemd_rc_local_generator_LDADD = \
a095315b 2807 libshared.la
7e8f489a 2808
d7832d2c 2809# ------------------------------------------------------------------------------
2b93b027
LP
2810systemd_remount_fs_SOURCES = \
2811 src/remount-fs/remount-fs.c \
08e1fb68
LP
2812 src/core/mount-setup.c \
2813 src/core/mount-setup.h
609518c1 2814
2b93b027 2815systemd_remount_fs_LDADD = \
a095315b 2816 libshared.la
609518c1 2817
d7832d2c 2818# ------------------------------------------------------------------------------
48d437bb 2819systemd_cgroups_agent_SOURCES = \
dce818b3 2820 src/cgroups-agent/cgroups-agent.c
7640a5de 2821
48d437bb 2822systemd_cgroups_agent_LDADD = \
a095315b 2823 libshared.la
7640a5de 2824
d7832d2c 2825# ------------------------------------------------------------------------------
b1a5a998
MB
2826systemd_escape_SOURCES = \
2827 src/escape/escape.c
2828
2829systemd_escape_LDADD = \
a095315b 2830 libshared.la
b1a5a998
MB
2831
2832# -----------------------------------------------------------------------------
48d437bb 2833systemctl_SOURCES = \
dce818b3 2834 src/systemctl/systemctl.c
f401e48c 2835
48d437bb 2836systemctl_LDADD = \
a095315b 2837 libshared.la
f401e48c 2838
d7832d2c 2839# ------------------------------------------------------------------------------
48d437bb 2840systemd_notify_SOURCES = \
d6bc8348 2841 src/notify/notify.c
1822350d 2842
48d437bb 2843systemd_notify_LDADD = \
a095315b 2844 libshared.la
681cfc6c 2845
9a00f57a
LP
2846# ------------------------------------------------------------------------------
2847systemd_path_SOURCES = \
2848 src/path/path.c
2849
2850systemd_path_LDADD = \
a095315b 2851 libshared.la
9a00f57a 2852
d7832d2c 2853# ------------------------------------------------------------------------------
48d437bb 2854systemd_ask_password_SOURCES = \
dce818b3 2855 src/ask-password/ask-password.c
681cfc6c 2856
48d437bb 2857systemd_ask_password_LDADD = \
a095315b 2858 libshared.la
681cfc6c 2859
d7832d2c 2860# ------------------------------------------------------------------------------
48d437bb 2861systemd_reply_password_SOURCES = \
dce818b3 2862 src/reply-password/reply-password.c
681cfc6c 2863
48d437bb 2864systemd_reply_password_LDADD = \
a095315b 2865 libshared.la
1822350d 2866
d7832d2c 2867# ------------------------------------------------------------------------------
48d437bb 2868systemd_cgls_SOURCES = \
dce818b3 2869 src/cgls/cgls.c
4668191d 2870
48d437bb 2871systemd_cgls_LDADD = \
a095315b 2872 libshared.la
4668191d 2873
d7832d2c 2874# ------------------------------------------------------------------------------
8f2d43a0 2875systemd_cgtop_SOURCES = \
dce818b3 2876 src/cgtop/cgtop.c
8f2d43a0
LP
2877
2878systemd_cgtop_LDADD = \
a095315b 2879 libshared.la
8f2d43a0 2880
d7832d2c 2881# ------------------------------------------------------------------------------
48d437bb 2882systemd_nspawn_SOURCES = \
08e1fb68 2883 src/nspawn/nspawn.c \
f757855e
LP
2884 src/nspawn/nspawn-settings.c \
2885 src/nspawn/nspawn-settings.h \
e83bebef
LP
2886 src/nspawn/nspawn-mount.c \
2887 src/nspawn/nspawn-mount.h \
9a2a5625
LP
2888 src/nspawn/nspawn-network.c \
2889 src/nspawn/nspawn-network.h \
7a8f6325
LP
2890 src/nspawn/nspawn-expose-ports.c \
2891 src/nspawn/nspawn-expose-ports.h \
34829a32
LP
2892 src/nspawn/nspawn-cgroup.c \
2893 src/nspawn/nspawn-cgroup.h \
b7103bc5
LP
2894 src/nspawn/nspawn-register.c \
2895 src/nspawn/nspawn-register.h \
ee645080
LP
2896 src/nspawn/nspawn-setuid.c \
2897 src/nspawn/nspawn-setuid.h \
7732f92b
LP
2898 src/nspawn/nspawn-stub-pid1.c \
2899 src/nspawn/nspawn-stub-pid1.h \
08e1fb68
LP
2900 src/core/mount-setup.c \
2901 src/core/mount-setup.h \
2902 src/core/loopback-setup.c \
f934051c 2903 src/core/loopback-setup.h
4668191d 2904
f757855e
LP
2905nodist_systemd_nspawn_SOURCES = \
2906 src/nspawn/nspawn-gperf.c
2907
2908gperf_gperf_sources += \
2909 src/nspawn/nspawn-gperf.gperf
2910
e9642be2
LP
2911systemd_nspawn_CFLAGS = \
2912 $(AM_CFLAGS) \
e1ada21e
CR
2913 $(BLKID_CFLAGS) \
2914 $(SECCOMP_CFLAGS)
e9642be2 2915
48d437bb 2916systemd_nspawn_LDADD = \
a095315b 2917 libshared.la \
1b9e5b12 2918 $(BLKID_LIBS)
8eea53dd 2919
6d0b55c2
LP
2920if HAVE_LIBIPTC
2921systemd_nspawn_LDADD += \
a095315b 2922 libfirewall.la
6d0b55c2
LP
2923endif
2924
c2756a68
LP
2925# ------------------------------------------------------------------------------
2926systemd_run_SOURCES = \
2927 src/run/run.c
2928
2929systemd_run_LDADD = \
a095315b 2930 libshared.la
c2756a68 2931
d7832d2c 2932# ------------------------------------------------------------------------------
f299e3e4 2933systemd_stdio_bridge_SOURCES = \
798c486f 2934 src/stdio-bridge/stdio-bridge.c
f252ff17 2935
f299e3e4 2936systemd_stdio_bridge_LDADD = \
a095315b 2937 libshared.la
7c9a6f90 2938
d7832d2c 2939# ------------------------------------------------------------------------------
48d437bb 2940systemd_tty_ask_password_agent_SOURCES = \
dce818b3 2941 src/tty-ask-password-agent/tty-ask-password-agent.c
2a018e83 2942
48d437bb 2943systemd_tty_ask_password_agent_LDADD = \
a095315b 2944 libshared.la
48d437bb 2945
de1c301e 2946# ------------------------------------------------------------------------------
add00dfd 2947libsystemd_internal_la_SOURCES = \
a7edaadd
LP
2948 src/systemd/sd-bus.h \
2949 src/systemd/sd-bus-protocol.h \
87b20a81 2950 src/systemd/sd-bus-vtable.h \
faaa5728 2951 src/systemd/sd-utf8.h \
c8a8806e 2952 src/systemd/sd-event.h \
1c4baffc 2953 src/systemd/sd-netlink.h \
3bedba4a 2954 src/systemd/sd-resolve.h \
0bba8d6e 2955 src/systemd/sd-login.h \
be127913 2956 src/systemd/sd-id128.h \
0ebee881 2957 src/systemd/sd-daemon.h \
9a00f57a 2958 src/systemd/sd-path.h \
a903fd34 2959 src/systemd/sd-network.h \
23fbe14f 2960 src/systemd/sd-hwdb.h \
57fa1d09 2961 src/systemd/sd-device.h \
73a7e461 2962 src/libsystemd/libsystemd.sym \
607553f9
TG
2963 src/libsystemd/sd-bus/sd-bus.c \
2964 src/libsystemd/sd-bus/bus-control.c \
2965 src/libsystemd/sd-bus/bus-control.h \
2966 src/libsystemd/sd-bus/bus-error.c \
2967 src/libsystemd/sd-bus/bus-error.h \
96aad8d1
LP
2968 src/libsystemd/sd-bus/bus-common-errors.h \
2969 src/libsystemd/sd-bus/bus-common-errors.c \
607553f9
TG
2970 src/libsystemd/sd-bus/bus-internal.c \
2971 src/libsystemd/sd-bus/bus-internal.h \
2972 src/libsystemd/sd-bus/bus-socket.c \
2973 src/libsystemd/sd-bus/bus-socket.h \
2974 src/libsystemd/sd-bus/bus-kernel.c \
2975 src/libsystemd/sd-bus/bus-kernel.h \
2976 src/libsystemd/sd-bus/bus-container.c \
2977 src/libsystemd/sd-bus/bus-container.h \
2978 src/libsystemd/sd-bus/bus-message.c \
2979 src/libsystemd/sd-bus/bus-message.h \
2980 src/libsystemd/sd-bus/bus-creds.c \
2981 src/libsystemd/sd-bus/bus-creds.h \
2982 src/libsystemd/sd-bus/bus-signature.c \
2983 src/libsystemd/sd-bus/bus-signature.h \
2984 src/libsystemd/sd-bus/bus-type.c \
2985 src/libsystemd/sd-bus/bus-type.h \
2986 src/libsystemd/sd-bus/bus-match.c \
2987 src/libsystemd/sd-bus/bus-match.h \
2988 src/libsystemd/sd-bus/bus-bloom.c \
2989 src/libsystemd/sd-bus/bus-bloom.h \
2990 src/libsystemd/sd-bus/bus-introspect.c \
2991 src/libsystemd/sd-bus/bus-introspect.h \
2992 src/libsystemd/sd-bus/bus-objects.c \
2993 src/libsystemd/sd-bus/bus-objects.h \
2994 src/libsystemd/sd-bus/bus-gvariant.c \
2995 src/libsystemd/sd-bus/bus-gvariant.h \
2996 src/libsystemd/sd-bus/bus-convenience.c \
8f8f05a9
LP
2997 src/libsystemd/sd-bus/bus-track.c \
2998 src/libsystemd/sd-bus/bus-track.h \
19befb2d
LP
2999 src/libsystemd/sd-bus/bus-slot.c \
3000 src/libsystemd/sd-bus/bus-slot.h \
607553f9
TG
3001 src/libsystemd/sd-bus/bus-protocol.h \
3002 src/libsystemd/sd-bus/kdbus.h \
a095315b
KS
3003 src/libsystemd/sd-bus/bus-dump.c \
3004 src/libsystemd/sd-bus/bus-dump.h \
607553f9
TG
3005 src/libsystemd/sd-utf8/sd-utf8.c \
3006 src/libsystemd/sd-event/sd-event.c \
1c4baffc
TG
3007 src/libsystemd/sd-netlink/sd-netlink.c \
3008 src/libsystemd/sd-netlink/netlink-internal.h \
3009 src/libsystemd/sd-netlink/netlink-message.c \
89489ef7
TG
3010 src/libsystemd/sd-netlink/netlink-socket.c \
3011 src/libsystemd/sd-netlink/rtnl-message.c \
1c4baffc
TG
3012 src/libsystemd/sd-netlink/netlink-types.h \
3013 src/libsystemd/sd-netlink/netlink-types.c \
3014 src/libsystemd/sd-netlink/netlink-util.h \
3015 src/libsystemd/sd-netlink/netlink-util.c \
3016 src/libsystemd/sd-netlink/local-addresses.h \
3017 src/libsystemd/sd-netlink/local-addresses.c \
be127913 3018 src/libsystemd/sd-id128/sd-id128.c \
0ebee881 3019 src/libsystemd/sd-daemon/sd-daemon.c \
9a00f57a 3020 src/libsystemd/sd-login/sd-login.c \
a903fd34
LP
3021 src/libsystemd/sd-path/sd-path.c \
3022 src/libsystemd/sd-network/sd-network.c \
84e51726 3023 src/libsystemd/sd-network/network-util.h \
23fbe14f
TG
3024 src/libsystemd/sd-network/network-util.c \
3025 src/libsystemd/sd-hwdb/sd-hwdb.c \
3026 src/libsystemd/sd-hwdb/hwdb-util.h \
84d32580 3027 src/libsystemd/sd-hwdb/hwdb-internal.h \
57fa1d09
TG
3028 src/libsystemd/sd-device/device-internal.h \
3029 src/libsystemd/sd-device/device-util.h \
96df036f
TG
3030 src/libsystemd/sd-device/device-enumerator.c \
3031 src/libsystemd/sd-device/device-enumerator-private.h \
57fa1d09
TG
3032 src/libsystemd/sd-device/sd-device.c \
3033 src/libsystemd/sd-device/device-private.c \
b3d5018b 3034 src/libsystemd/sd-device/device-private.h \
4afd3348 3035 src/libsystemd/sd-resolve/sd-resolve.c
6bb648a1 3036
f0329635 3037libsystemd_internal_la_LIBADD = \
b3d5018b 3038 libbasic.la \
93f1bcf4
LP
3039 -lresolv
3040
add00dfd 3041noinst_LTLIBRARIES += \
b3d5018b 3042 libsystemd-internal.la
add00dfd 3043
add00dfd 3044EXTRA_DIST += \
2b0a23e8 3045 src/libsystemd/libsystemd.pc.in \
add00dfd 3046 src/libsystemd/sd-bus/DIFFERENCES \
2b0a23e8 3047 src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
add00dfd 3048
add00dfd
KS
3049libsystemd_la_SOURCES = \
3050 $(libsystemd_internal_la_SOURCES) \
3051 $(libsystemd_journal_internal_la_SOURCES)
3052
3053nodist_libsystemd_la_SOURCES = \
3054 $(nodist_libsystemd_internal_la_SOURCES)
3055
3056libsystemd_la_CFLAGS = \
4a8cf554
KS
3057 $(libsystemd_internal_la_CFLAGS) \
3058 $(libsystemd_journal_internal_la_CFLAGS)
add00dfd 3059
6bb648a1 3060libsystemd_la_LDFLAGS = \
d9f644e2 3061 $(AM_LDFLAGS) \
b4b5212d 3062 -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
73a7e461 3063 -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
d9f644e2 3064
add00dfd 3065libsystemd_la_LIBADD = \
93f1bcf4 3066 $(libsystemd_internal_la_LIBADD) \
b3d5018b 3067 $(libsystemd_journal_internal_la_LIBADD)
add00dfd 3068
e288d6a8
DR
3069libsystemd-install-hook:
3070 libname=libsystemd.so && $(move-to-rootlibdir)
e288d6a8
DR
3071
3072libsystemd-uninstall-hook:
3073 rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
3074
3075INSTALL_EXEC_HOOKS += libsystemd-install-hook
3076UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
3077
c3b8df24 3078pkgconfiglib_DATA += \
6bb648a1 3079 src/libsystemd/libsystemd.pc
c3b8df24 3080
be127913 3081pkginclude_HEADERS += \
882897af
LP
3082 src/systemd/sd-bus.h \
3083 src/systemd/sd-bus-protocol.h \
3084 src/systemd/sd-bus-vtable.h \
49f582c0 3085 src/systemd/sd-event.h \
be127913 3086 src/systemd/sd-login.h \
be4b47cb
KS
3087 src/systemd/sd-id128.h \
3088 src/systemd/sd-daemon.h
3089
d9f644e2 3090lib_LTLIBRARIES += \
6bb648a1 3091 libsystemd.la
de1c301e 3092
cee22bd3 3093tests += \
de1c301e 3094 test-bus-marshal \
89ffcd2a 3095 test-bus-signature \
a9beb123 3096 test-bus-benchmark \
2181a7f5 3097 test-bus-chat \
b7fc42e0 3098 test-bus-cleanup \
392d5b37 3099 test-bus-server \
dd418b9a 3100 test-bus-match \
ddeb4241 3101 test-bus-kernel \
86312ab8 3102 test-bus-kernel-bloom \
29ddb38f
LP
3103 test-bus-zero-copy \
3104 test-bus-introspect \
fd38203a 3105 test-bus-objects \
780896a4 3106 test-bus-error \
5b12334d 3107 test-bus-creds \
c1b9d935 3108 test-bus-gvariant \
c813ca40 3109 test-event \
1c4baffc 3110 test-netlink \
e9140aff 3111 test-local-addresses \
3bedba4a 3112 test-resolve
89ffcd2a 3113
862e8bf8 3114bin_PROGRAMS += \
89ffcd2a 3115 busctl
de1c301e
LP
3116
3117test_bus_marshal_SOURCES = \
607553f9 3118 src/libsystemd/sd-bus/test-bus-marshal.c
de1c301e
LP
3119
3120test_bus_marshal_LDADD = \
a095315b 3121 libshared.la \
de1c301e 3122 $(GLIB_LIBS) \
0b906b8d 3123 $(DBUS_LIBS)
de1c301e
LP
3124
3125test_bus_marshal_CFLAGS = \
3126 $(AM_CFLAGS) \
3127 $(GLIB_CFLAGS) \
0b906b8d 3128 $(DBUS_CFLAGS)
de1c301e
LP
3129
3130test_bus_signature_SOURCES = \
607553f9 3131 src/libsystemd/sd-bus/test-bus-signature.c
de1c301e
LP
3132
3133test_bus_signature_LDADD = \
a095315b 3134 libshared.la
de1c301e 3135
89ffcd2a 3136test_bus_chat_SOURCES = \
607553f9 3137 src/libsystemd/sd-bus/test-bus-chat.c
89ffcd2a 3138
89ffcd2a 3139test_bus_chat_LDADD = \
a095315b 3140 libshared.la
89ffcd2a 3141
b7fc42e0 3142test_bus_cleanup_SOURCES = \
607553f9 3143 src/libsystemd/sd-bus/test-bus-cleanup.c
b7fc42e0 3144
41fd4c4c
KS
3145test_bus_cleanup_CFLAGS = \
3146 $(AM_CFLAGS) \
3147 $(SECCOMP_CFLAGS)
3148
b7fc42e0 3149test_bus_cleanup_LDADD = \
a095315b 3150 libshared.la
b7fc42e0 3151
2181a7f5 3152test_bus_server_SOURCES = \
607553f9 3153 src/libsystemd/sd-bus/test-bus-server.c
2181a7f5 3154
2181a7f5 3155test_bus_server_LDADD = \
a095315b 3156 libshared.la
2181a7f5 3157
29ddb38f 3158test_bus_objects_SOURCES = \
607553f9 3159 src/libsystemd/sd-bus/test-bus-objects.c
29ddb38f 3160
29ddb38f 3161test_bus_objects_LDADD = \
a095315b 3162 libshared.la
29ddb38f 3163
780896a4 3164test_bus_error_SOURCES = \
607553f9 3165 src/libsystemd/sd-bus/test-bus-error.c
780896a4
LP
3166
3167test_bus_error_LDADD = \
a095315b 3168 libshared.la
780896a4 3169
c1b9d935 3170test_bus_gvariant_SOURCES = \
607553f9 3171 src/libsystemd/sd-bus/test-bus-gvariant.c
c1b9d935
LP
3172
3173test_bus_gvariant_LDADD = \
a095315b 3174 libshared.la \
0b906b8d 3175 $(GLIB_LIBS)
c1b9d935
LP
3176
3177test_bus_gvariant_CFLAGS = \
3178 $(AM_CFLAGS) \
3179 $(GLIB_CFLAGS)
3180
5b12334d 3181test_bus_creds_SOURCES = \
607553f9 3182 src/libsystemd/sd-bus/test-bus-creds.c
5b12334d
LP
3183
3184test_bus_creds_LDADD = \
a095315b 3185 libshared.la
5b12334d 3186
392d5b37 3187test_bus_match_SOURCES = \
607553f9 3188 src/libsystemd/sd-bus/test-bus-match.c
392d5b37 3189
392d5b37 3190test_bus_match_LDADD = \
a095315b 3191 libshared.la
dd418b9a
LP
3192
3193test_bus_kernel_SOURCES = \
607553f9 3194 src/libsystemd/sd-bus/test-bus-kernel.c
dd418b9a 3195
dd418b9a 3196test_bus_kernel_LDADD = \
a095315b 3197 libshared.la
392d5b37 3198
86312ab8 3199test_bus_kernel_bloom_SOURCES = \
607553f9 3200 src/libsystemd/sd-bus/test-bus-kernel-bloom.c
86312ab8 3201
86312ab8 3202test_bus_kernel_bloom_LDADD = \
a095315b 3203 libshared.la
86312ab8 3204
a9beb123
TG
3205test_bus_benchmark_SOURCES = \
3206 src/libsystemd/sd-bus/test-bus-benchmark.c
8f155917 3207
a9beb123 3208test_bus_benchmark_LDADD = \
a095315b 3209 libshared.la
8f155917 3210
453a0c29 3211test_bus_zero_copy_SOURCES = \
607553f9 3212 src/libsystemd/sd-bus/test-bus-zero-copy.c
453a0c29 3213
453a0c29 3214test_bus_zero_copy_LDADD = \
a095315b 3215 libshared.la
453a0c29 3216
29ddb38f 3217test_bus_introspect_SOURCES = \
607553f9 3218 src/libsystemd/sd-bus/test-bus-introspect.c
29ddb38f 3219
29ddb38f 3220test_bus_introspect_LDADD = \
a095315b 3221 libshared.la
29ddb38f 3222
fd38203a 3223test_event_SOURCES = \
607553f9 3224 src/libsystemd/sd-event/test-event.c
fd38203a
LP
3225
3226test_event_LDADD = \
a095315b 3227 libshared.la
fd38203a 3228
1c4baffc
TG
3229test_netlink_SOURCES = \
3230 src/libsystemd/sd-netlink/test-netlink.c
0b54473e 3231
1c4baffc 3232test_netlink_LDADD = \
a095315b 3233 libshared.la
0b54473e 3234
e9140aff 3235test_local_addresses_SOURCES = \
1c4baffc 3236 src/libsystemd/sd-netlink/test-local-addresses.c
e9140aff
LP
3237
3238test_local_addresses_LDADD = \
a095315b 3239 libshared.la
e9140aff 3240
3bedba4a 3241test_resolve_SOURCES = \
607553f9 3242 src/libsystemd/sd-resolve/test-resolve.c
5681d7fb 3243
3bedba4a 3244test_resolve_LDADD = \
a095315b 3245 libshared.la
5681d7fb 3246
89ffcd2a 3247busctl_SOURCES = \
a1ad3767
LP
3248 src/libsystemd/sd-bus/busctl.c \
3249 src/libsystemd/sd-bus/busctl-introspect.c \
3250 src/libsystemd/sd-bus/busctl-introspect.h
89ffcd2a
LP
3251
3252busctl_LDADD = \
a095315b 3253 libshared.la
89ffcd2a 3254
c61be55d
TG
3255# ------------------------------------------------------------------------------
3256noinst_LTLIBRARIES += \
fe8db0c5 3257 libsystemd-network.la
c61be55d 3258
679be2a7
CR
3259libsystemd_network_la_CFLAGS = \
3260 $(AM_CFLAGS) \
3261 $(KMOD_CFLAGS)
3262
fe8db0c5 3263libsystemd_network_la_SOURCES = \
c61be55d 3264 src/systemd/sd-dhcp-client.h \
b44cd882 3265 src/systemd/sd-dhcp-server.h \
fe8db0c5 3266 src/systemd/sd-dhcp-lease.h \
5c1d3fc9 3267 src/systemd/sd-ipv4ll.h \
e3dca008 3268 src/systemd/sd-ipv4acd.h \
3ad0c5d8 3269 src/systemd/sd-ndisc.h \
a903fd34
LP
3270 src/systemd/sd-dhcp6-client.h \
3271 src/systemd/sd-dhcp6-lease.h \
e7aa89f9 3272 src/systemd/sd-lldp.h \
fe8db0c5 3273 src/libsystemd-network/sd-dhcp-client.c \
b44cd882 3274 src/libsystemd-network/sd-dhcp-server.c \
fe8db0c5
TG
3275 src/libsystemd-network/dhcp-network.c \
3276 src/libsystemd-network/dhcp-option.c \
3277 src/libsystemd-network/dhcp-packet.c \
3278 src/libsystemd-network/dhcp-internal.h \
b44cd882 3279 src/libsystemd-network/dhcp-server-internal.h \
fe8db0c5
TG
3280 src/libsystemd-network/dhcp-protocol.h \
3281 src/libsystemd-network/dhcp-lease-internal.h \
5c1d3fc9
UTL
3282 src/libsystemd-network/sd-dhcp-lease.c \
3283 src/libsystemd-network/sd-ipv4ll.c \
e3dca008 3284 src/libsystemd-network/sd-ipv4acd.c \
996d1697
TG
3285 src/libsystemd-network/arp-util.h \
3286 src/libsystemd-network/arp-util.c \
c6f7c917 3287 src/libsystemd-network/network-internal.c \
e3169126 3288 src/libsystemd-network/network-internal.h \
3ad0c5d8 3289 src/libsystemd-network/sd-ndisc.c \
940367a0
TG
3290 src/libsystemd-network/icmp6-util.h \
3291 src/libsystemd-network/icmp6-util.c \
3fb2c570 3292 src/libsystemd-network/sd-dhcp6-client.c \
e3169126 3293 src/libsystemd-network/dhcp6-internal.h \
228b2a12 3294 src/libsystemd-network/dhcp6-protocol.h \
f12ed3bf 3295 src/libsystemd-network/dhcp6-network.c \
3fb2c570
PF
3296 src/libsystemd-network/dhcp6-option.c \
3297 src/libsystemd-network/dhcp6-lease-internal.h \
ad1ad5c8 3298 src/libsystemd-network/sd-dhcp6-lease.c \
cfb5b380
TG
3299 src/libsystemd-network/dhcp-identifier.h \
3300 src/libsystemd-network/dhcp-identifier.c \
ad1ad5c8
SS
3301 src/libsystemd-network/lldp.h \
3302 src/libsystemd-network/lldp-tlv.h \
3303 src/libsystemd-network/lldp-tlv.c \
3304 src/libsystemd-network/lldp-network.h \
3305 src/libsystemd-network/lldp-network.c \
3306 src/libsystemd-network/lldp-port.h \
3307 src/libsystemd-network/lldp-port.c \
3308 src/libsystemd-network/lldp-internal.h \
3309 src/libsystemd-network/lldp-internal.c \
ad1ad5c8 3310 src/libsystemd-network/sd-lldp.c
fe8db0c5
TG
3311
3312libsystemd_network_la_LIBADD = \
679be2a7 3313 $(KMOD_LIBS)
c61be55d
TG
3314
3315test_dhcp_option_SOURCES = \
fe8db0c5
TG
3316 src/libsystemd-network/dhcp-protocol.h \
3317 src/libsystemd-network/dhcp-internal.h \
3318 src/libsystemd-network/test-dhcp-option.c
c61be55d
TG
3319
3320test_dhcp_option_LDADD = \
fe8db0c5 3321 libsystemd-network.la \
a095315b 3322 libshared.la
c61be55d
TG
3323
3324test_dhcp_client_SOURCES = \
3325 src/systemd/sd-dhcp-client.h \
fe8db0c5
TG
3326 src/libsystemd-network/dhcp-protocol.h \
3327 src/libsystemd-network/dhcp-internal.h \
3328 src/libsystemd-network/test-dhcp-client.c
c61be55d
TG
3329
3330test_dhcp_client_LDADD = \
fe8db0c5 3331 libsystemd-network.la \
8c8302a6 3332 libshared.la
c61be55d 3333
b44cd882
TG
3334test_dhcp_server_SOURCES = \
3335 src/libsystemd-network/test-dhcp-server.c
3336
3337test_dhcp_server_LDADD = \
3338 libsystemd-network.la \
a095315b 3339 libshared.la
b44cd882 3340
d9bf4f8c 3341test_ipv4ll_SOURCES = \
5590bbe5 3342 src/systemd/sd-ipv4ll.h \
996d1697 3343 src/libsystemd-network/arp-util.h \
5590bbe5 3344 src/libsystemd-network/test-ipv4ll.c
d9bf4f8c
UTL
3345
3346test_ipv4ll_LDADD = \
5590bbe5 3347 libsystemd-network.la \
a095315b 3348 libshared.la
d9bf4f8c 3349
7b713b81
TG
3350test_ipv4ll_manual_SOURCES = \
3351 src/systemd/sd-ipv4ll.h \
3352 src/libsystemd-network/test-ipv4ll-manual.c
3353
3354test_ipv4ll_manual_LDADD = \
3355 libsystemd-network.la \
3356 libshared.la
3357
3358test_acd_SOURCES = \
3359 src/systemd/sd-ipv4acd.h \
3360 src/libsystemd-network/test-acd.c
3361
3362test_acd_LDADD = \
3363 libsystemd-network.la \
3364 libshared.la
3365
3ad0c5d8 3366test_ndisc_rs_SOURCES = \
f20a35cc 3367 src/systemd/sd-dhcp6-client.h \
3ad0c5d8 3368 src/systemd/sd-ndisc.h \
940367a0 3369 src/libsystemd-network/icmp6-util.h \
3ad0c5d8 3370 src/libsystemd-network/test-ndisc-rs.c \
cfb5b380
TG
3371 src/libsystemd-network/dhcp-identifier.h \
3372 src/libsystemd-network/dhcp-identifier.c
f20a35cc 3373
3ad0c5d8 3374test_ndisc_rs_LDADD = \
f20a35cc 3375 libsystemd-network.la \
a095315b
KS
3376 libudev.la \
3377 libshared.la
f20a35cc 3378
813e3a6f
PF
3379test_dhcp6_client_SOURCES = \
3380 src/systemd/sd-dhcp6-client.h \
f12ed3bf 3381 src/libsystemd-network/dhcp6-internal.h \
cfb5b380
TG
3382 src/libsystemd-network/test-dhcp6-client.c \
3383 src/libsystemd-network/dhcp-identifier.h \
3384 src/libsystemd-network/dhcp-identifier.c
813e3a6f
PF
3385
3386test_dhcp6_client_LDADD = \
3387 libsystemd-network.la \
a095315b
KS
3388 libudev.la \
3389 libshared.la
813e3a6f 3390
ad1ad5c8 3391test_lldp_SOURCES = \
a095315b
KS
3392 src/libsystemd-network/lldp.h \
3393 src/libsystemd-network/lldp-tlv.h \
3394 src/libsystemd-network/lldp-tlv.c \
3395 src/libsystemd-network/test-lldp.c
ad1ad5c8
SS
3396
3397test_lldp_LDADD = \
3398 libsystemd-network.la \
a095315b 3399 libshared.la
ad1ad5c8 3400
c61be55d
TG
3401tests += \
3402 test-dhcp-option \
d9bf4f8c 3403 test-dhcp-client \
b44cd882 3404 test-dhcp-server \
f20a35cc 3405 test-ipv4ll \
3ad0c5d8 3406 test-ndisc-rs \
ad1ad5c8
SS
3407 test-dhcp6-client \
3408 test-lldp
c61be55d 3409
3e214785 3410# ------------------------------------------------------------------------------
3e214785 3411include_HEADERS += \
bb061708 3412 src/libudev/libudev.h
3e214785
KS
3413
3414lib_LTLIBRARIES += \
3415 libudev.la
3416
3e214785 3417libudev_la_SOURCES =\
dc579853 3418 src/libudev/libudev.sym \
bb061708 3419 src/libudev/libudev-private.h \
f4ac4d1a 3420 src/libudev/libudev-device-internal.h \
bb061708
KS
3421 src/libudev/libudev.c \
3422 src/libudev/libudev-list.c \
3423 src/libudev/libudev-util.c \
3424 src/libudev/libudev-device.c \
f4ac4d1a 3425 src/libudev/libudev-device-private.c \
bb061708
KS
3426 src/libudev/libudev-enumerate.c \
3427 src/libudev/libudev-monitor.c \
2001208c 3428 src/libudev/libudev-queue.c \
2001208c 3429 src/libudev/libudev-hwdb.c
3e214785
KS
3430
3431libudev_la_LDFLAGS = \
3432 $(AM_LDFLAGS) \
20bbd54f
KS
3433 -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3434 -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3e214785 3435
33502ffe 3436libudev_la_LIBADD = \
a095315b 3437 libsystemd-internal.la
33502ffe 3438
3e214785 3439pkgconfiglib_DATA += \
bb061708 3440 src/libudev/libudev.pc
3e214785
KS
3441
3442EXTRA_DIST += \
dc579853 3443 src/libudev/libudev.pc.in
3e214785 3444
3e214785 3445# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
24fdc230
ZJS
3446libudev-install-hook:
3447 libname=libudev.so && $(move-to-rootlibdir)
3e214785 3448
24fdc230 3449libudev-uninstall-hook:
3e214785
KS
3450 rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3451
24fdc230
ZJS
3452INSTALL_EXEC_HOOKS += libudev-install-hook
3453UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3e214785 3454
04a9d3a0
KS
3455# ------------------------------------------------------------------------------
3456noinst_LTLIBRARIES += \
48d7417d 3457 libudev-internal.la
04a9d3a0 3458
48d7417d 3459libudev_internal_la_SOURCES =\
f4ac4d1a 3460 $(libudev_la_SOURCES)
04a9d3a0 3461
3e214785 3462# ------------------------------------------------------------------------------
63ed840e 3463INSTALL_DIRS += \
65eb4378 3464 $(sysconfdir)/udev/rules.d
3e214785 3465
9dc670ea 3466dist_network_DATA = \
dd4d2c1c 3467 network/99-default.link \
4eaea664
LP
3468 network/80-container-host0.network \
3469 network/80-container-ve.network
daeb71a3 3470
3e214785 3471dist_udevrules_DATA += \
3e214785 3472 rules/50-udev-default.rules \
52346b5f 3473 rules/60-block.rules \
0a8da830 3474 rules/60-drm.rules \
51c0c286 3475 rules/60-evdev.rules \
3e214785 3476 rules/60-persistent-storage-tape.rules \
3e214785
KS
3477 rules/60-persistent-input.rules \
3478 rules/60-persistent-alsa.rules \
3479 rules/60-persistent-storage.rules \
a31a0c92 3480 rules/60-serial.rules \
0bb91b50 3481 rules/64-btrfs.rules \
ebb90c83 3482 rules/70-mouse.rules \
3e214785 3483 rules/75-net-description.rules \
3e214785 3484 rules/78-sound-card.rules \
654b036b 3485 rules/80-net-setup-link.rules
3e214785 3486
e2eb18d5
A
3487nodist_udevrules_DATA += \
3488 rules/99-systemd.rules
3489
3e214785
KS
3490udevconfdir = $(sysconfdir)/udev
3491dist_udevconf_DATA = \
3492 src/udev/udev.conf
3493
2f4d3bb9 3494pkgconfigdata_DATA += \
3e214785
KS
3495 src/udev/udev.pc
3496
3497EXTRA_DIST += \
3498 rules/99-systemd.rules.in \
3499 src/udev/udev.pc.in
3500
3e214785 3501EXTRA_DIST += \
51dfddc2 3502 units/systemd-udevd.service.in \
f13b388f 3503 units/systemd-udev-trigger.service.in \
65eb4378 3504 units/systemd-udev-settle.service.in
3e214785 3505
6ff39241
ZJS
3506SOCKETS_TARGET_WANTS += \
3507 systemd-udevd-control.socket \
3508 systemd-udevd-kernel.socket
ecde7065 3509
6ff39241
ZJS
3510SYSINIT_TARGET_WANTS += \
3511 systemd-udevd.service \
65eb4378 3512 systemd-udev-trigger.service
3e214785 3513
f432bb91 3514rootbin_PROGRAMS += \
3e214785
KS
3515 udevadm
3516
f13b388f
KS
3517rootlibexec_PROGRAMS += \
3518 systemd-udevd
3e214785 3519
04a9d3a0
KS
3520noinst_LTLIBRARIES += \
3521 libudev-core.la
3522
9e4ded30 3523src/udev/keyboard-keys-list.txt:
9d7d42bc 3524 $(AM_V_at)$(MKDIR_P) $(dir $@)
4c148220 3525 $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/input.h - < /dev/null | $(AWK) '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9K]/ { if ($$2 != "KEY_MAX") { print $$2 } }' > $@
9d7d42bc 3526
9e4ded30 3527src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt
9d7d42bc
KS
3528 $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3529
dff55e5d 3530src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
9d7d42bc
KS
3531 $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3532
9e4ded30
ZJS
3533gperf_txt_sources += \
3534 src/udev/keyboard-keys-list.txt
3535
04a9d3a0 3536libudev_core_la_SOURCES = \
3e214785
KS
3537 src/udev/udev.h \
3538 src/udev/udev-event.c \
3539 src/udev/udev-watch.c \
3540 src/udev/udev-node.c \
3541 src/udev/udev-rules.c \
3542 src/udev/udev-ctrl.c \
3543 src/udev/udev-builtin.c \
0bb91b50 3544 src/udev/udev-builtin-btrfs.c \
3e214785
KS
3545 src/udev/udev-builtin-hwdb.c \
3546 src/udev/udev-builtin-input_id.c \
9d7d42bc 3547 src/udev/udev-builtin-keyboard.c \
a660c63c 3548 src/udev/udev-builtin-net_id.c \
0b99c9f8 3549 src/udev/udev-builtin-net_setup_link.c \
3e214785 3550 src/udev/udev-builtin-path_id.c \
af6f0d42
TG
3551 src/udev/udev-builtin-usb_id.c \
3552 src/udev/net/link-config.h \
a5010333
TG
3553 src/udev/net/link-config.c \
3554 src/udev/net/ethtool-util.h \
3555 src/udev/net/ethtool-util.c
3e214785 3556
9d7d42bc
KS
3557nodist_libudev_core_la_SOURCES = \
3558 src/udev/keyboard-keys-from-name.h \
af6f0d42 3559 src/udev/net/link-config-gperf.c
9d7d42bc 3560
f757855e 3561gperf_gperf_sources += \
af6f0d42 3562 src/udev/net/link-config-gperf.gperf
9d7d42bc 3563
04a9d3a0 3564libudev_core_la_CFLAGS = \
235450b0 3565 $(AM_CFLAGS) \
3e214785
KS
3566 $(BLKID_CFLAGS) \
3567 $(KMOD_CFLAGS)
3568
04a9d3a0 3569libudev_core_la_LIBADD = \
c6f7c917 3570 libsystemd-network.la \
a095315b 3571 libshared.la \
3e214785
KS
3572 $(BLKID_LIBS) \
3573 $(KMOD_LIBS)
3574
e3043162
TG
3575if HAVE_KMOD
3576libudev_core_la_SOURCES += \
3577 src/udev/udev-builtin-kmod.c
a3bd8447
TG
3578
3579dist_udevrules_DATA += \
3580 rules/80-drivers.rules
e3043162
TG
3581endif
3582
f553b3b1
AO
3583if HAVE_BLKID
3584libudev_core_la_SOURCES += \
3585 src/udev/udev-builtin-blkid.c
3586endif
3587
83cd6b75 3588if HAVE_ACL
04a9d3a0 3589libudev_core_la_SOURCES += \
83cd6b75 3590 src/udev/udev-builtin-uaccess.c \
4193534e 3591 src/login/logind-acl.c \
58dfc42e
LP
3592 src/libsystemd/sd-login/sd-login.c \
3593 src/systemd/sd-login.h
83cd6b75
KS
3594endif
3595
f13b388f 3596systemd_udevd_SOURCES = \
83cd6b75 3597 src/udev/udevd.c
3e214785 3598
f13b388f 3599systemd_udevd_LDADD = \
0b906b8d 3600 libudev-core.la
3e214785
KS
3601
3602udevadm_SOURCES = \
3e214785
KS
3603 src/udev/udevadm.c \
3604 src/udev/udevadm-info.c \
3605 src/udev/udevadm-control.c \
3606 src/udev/udevadm-monitor.c \
796b06c2 3607 src/udev/udevadm-hwdb.c \
3e214785
KS
3608 src/udev/udevadm-settle.c \
3609 src/udev/udevadm-trigger.c \
3610 src/udev/udevadm-test.c \
d6170d27
ZJS
3611 src/udev/udevadm-test-builtin.c \
3612 src/udev/udevadm-util.c \
3613 src/udev/udevadm-util.h
3e214785 3614
3e214785 3615udevadm_LDADD = \
0b906b8d 3616 libudev-core.la
3e214785 3617
65eb4378 3618# ------------------------------------------------------------------------------
fe659612 3619if ENABLE_HWDB
65eb4378
TG
3620INSTALL_DIRS += \
3621 $(sysconfdir)/udev/hwdb.d
3622
3623systemd_hwdb_SOURCES = \
3624 src/libsystemd/sd-hwdb/hwdb-internal.h \
3625 src/hwdb/hwdb.c
3626
3627systemd_hwdb_LDADD = \
a095315b 3628 libshared.la
65eb4378
TG
3629
3630rootbin_PROGRAMS += \
3631 systemd-hwdb
3632
3633dist_udevhwdb_DATA = \
3634 hwdb/20-pci-vendor-model.hwdb \
3635 hwdb/20-pci-classes.hwdb \
3636 hwdb/20-usb-vendor-model.hwdb \
3637 hwdb/20-usb-classes.hwdb \
3638 hwdb/20-sdio-vendor-model.hwdb \
3639 hwdb/20-sdio-classes.hwdb \
3640 hwdb/20-bluetooth-vendor-product.hwdb \
3641 hwdb/20-acpi-vendor.hwdb \
3642 hwdb/20-OUI.hwdb \
3643 hwdb/20-net-ifname.hwdb \
51c0c286 3644 hwdb/60-evdev.hwdb \
65eb4378 3645 hwdb/60-keyboard.hwdb \
001a2473 3646 hwdb/70-mouse.hwdb \
05304592 3647 hwdb/70-pointingstick.hwdb
65eb4378 3648
65eb4378
TG
3649SYSINIT_TARGET_WANTS += \
3650 systemd-hwdb-update.service
3651
c4eb3681
KS
3652# Update hwdb on installation. Do not bother if installing
3653# in DESTDIR, since this is likely for packaging purposes.
3654hwdb-update-hook:
65eb4378 3655 -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
c4eb3681
KS
3656
3657INSTALL_DATA_HOOKS += \
3658 hwdb-update-hook
3659
ee623f0d 3660hwdb-remove-hook:
beb23689 3661 -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
fe659612 3662endif
ee623f0d 3663
e37f6d61
MP
3664EXTRA_DIST += \
3665 units/systemd-hwdb-update.service.in \
3666 hwdb/ids-update.pl \
3667 hwdb/sdio.ids
3668
3e214785 3669# ------------------------------------------------------------------------------
5433c3e1 3670if ENABLE_TESTS
6b8b149a 3671TESTS += \
5aaf8768 3672 test/udev-test.pl
72521ab9
MP
3673
3674if HAVE_PYTHON
3675TESTS += \
5aaf8768 3676 test/rule-syntax-check.py
dcf13690
ZJS
3677
3678if HAVE_SYSV_COMPAT
3679TESTS += \
5aaf8768 3680 test/sysv-generator-test.py
72521ab9 3681endif
dcf13690 3682endif
5433c3e1 3683endif
3e214785 3684
cee22bd3 3685manual_tests += \
3e214785
KS
3686 test-libudev \
3687 test-udev
3688
3689test_libudev_SOURCES = \
0b87a077 3690 src/test/test-libudev.c
3e214785
KS
3691
3692test_libudev_LDADD = \
8c8302a6 3693 libshared.la
3e214785
KS
3694
3695test_udev_SOURCES = \
4cb72937 3696 src/test/test-udev.c
3e214785 3697
3e214785 3698test_udev_LDADD = \
a4705396 3699 libudev-core.la \
6ada823a 3700 $(BLKID_LIBS) \
8c8302a6 3701 $(KMOD_LIBS)
3e214785 3702
5433c3e1 3703if ENABLE_TESTS
9b80f05f 3704check_DATA += \
0b87a077 3705 test/sys
5433c3e1 3706endif
3e214785
KS
3707
3708# packed sysfs test tree
0b87a077 3709test/sys:
bd923ff2
ZJS
3710 $(AM_V_at)$(MKDIR_P) $(dir $@)
3711 $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3e214785
KS
3712
3713test-sys-distclean:
0b87a077 3714 -rm -rf test/sys
3e214785
KS
3715DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3716
3717EXTRA_DIST += \
0b87a077
KS
3718 test/sys.tar.xz \
3719 test/udev-test.pl \
e28aa588
MP
3720 test/rule-syntax-check.py \
3721 test/sysv-generator-test.py \
5aaf8768 3722 test/mocks/fsck
e28aa588 3723
3e214785
KS
3724# ------------------------------------------------------------------------------
3725ata_id_SOURCES = \
3726 src/udev/ata_id/ata_id.c
3727
3728ata_id_LDADD = \
a095315b 3729 libshared.la
3e214785
KS
3730
3731udevlibexec_PROGRAMS += \
3732 ata_id
3733
3734# ------------------------------------------------------------------------------
3735cdrom_id_SOURCES = \
3736 src/udev/cdrom_id/cdrom_id.c
3737
3738cdrom_id_LDADD = \
a095315b 3739 libshared.la
3e214785
KS
3740
3741udevlibexec_PROGRAMS += \
3742 cdrom_id
3743
3744dist_udevrules_DATA += \
20d83f2f 3745 rules/60-cdrom_id.rules
3e214785
KS
3746
3747# ------------------------------------------------------------------------------
3748collect_SOURCES = \
3749 src/udev/collect/collect.c
3750
3751collect_LDADD = \
a095315b 3752 libshared.la
3e214785
KS
3753
3754udevlibexec_PROGRAMS += \
3755 collect
3756
3757# ------------------------------------------------------------------------------
3758scsi_id_SOURCES =\
3759 src/udev/scsi_id/scsi_id.c \
3760 src/udev/scsi_id/scsi_serial.c \
3761 src/udev/scsi_id/scsi.h \
3762 src/udev/scsi_id/scsi_id.h
3763
3764scsi_id_LDADD = \
a095315b 3765 libshared.la
3e214785
KS
3766
3767udevlibexec_PROGRAMS += \
3768 scsi_id
3769
3770EXTRA_DIST += \
3771 src/udev/scsi_id/README
3772
3773# ------------------------------------------------------------------------------
3774v4l_id_SOURCES = \
3775 src/udev/v4l_id/v4l_id.c
3776
3777v4l_id_LDADD = \
a095315b 3778 libshared.la
3e214785
KS
3779
3780udevlibexec_PROGRAMS += \
3781 v4l_id
3782
3783dist_udevrules_DATA += \
20d83f2f 3784 rules/60-persistent-v4l.rules
3e214785 3785
3e214785
KS
3786# ------------------------------------------------------------------------------
3787mtd_probe_SOURCES = \
3788 src/udev/mtd_probe/mtd_probe.c \
3789 src/udev/mtd_probe/mtd_probe.h \
3790 src/udev/mtd_probe/probe_smartmedia.c
3791
3e214785 3792dist_udevrules_DATA += \
20d83f2f 3793 rules/75-probe_mtd.rules
3e214785
KS
3794
3795udevlibexec_PROGRAMS += \
3796 mtd_probe
3797
48d437bb 3798# ------------------------------------------------------------------------------
48d437bb 3799test_id128_SOURCES = \
379079ba 3800 src/test/test-id128.c
051c7d1e 3801
48d437bb 3802test_id128_LDADD = \
a095315b 3803 libshared.la
051c7d1e 3804
cee22bd3 3805tests += \
e0eaab7c
KS
3806 test-id128
3807
2ca0435b
ZJS
3808# ------------------------------------------------------------------------------
3809
7f6e8043
ZJS
3810bin_PROGRAMS += \
3811 systemd-socket-activate
2ca0435b 3812
7f6e8043 3813systemd_socket_activate_SOURCES = \
2ca0435b
ZJS
3814 src/activate/activate.c
3815
7f6e8043 3816systemd_socket_activate_LDADD = \
a095315b 3817 libshared.la
2ca0435b 3818
48d437bb
KS
3819# ------------------------------------------------------------------------------
3820systemd_journald_SOURCES = \
3821 src/journal/journald.c \
d025f1e4 3822 src/journal/journald-server.h
e6960940 3823
48d437bb 3824systemd_journald_LDADD = \
a095315b
KS
3825 libjournal-core.la \
3826 libshared.la
2a018e83 3827
755a02c6 3828systemd_cat_SOURCES = \
6185ac1e 3829 src/journal/cat.c
755a02c6
LP
3830
3831systemd_cat_LDADD = \
a095315b 3832 libjournal-core.la
755a02c6 3833
cc64d017
ZJS
3834if HAVE_MICROHTTPD
3835rootlibexec_PROGRAMS += \
3836 systemd-journal-remote
3837
fdfccdbc 3838systemd_journal_remote_SOURCES = \
1e4e7b71
ZJS
3839 src/journal-remote/journal-remote-parse.h \
3840 src/journal-remote/journal-remote-parse.c \
3841 src/journal-remote/journal-remote-write.h \
3842 src/journal-remote/journal-remote-write.c \
9ff48d09 3843 src/journal-remote/journal-remote.h \
1e4e7b71 3844 src/journal-remote/journal-remote.c
fdfccdbc
ZJS
3845
3846systemd_journal_remote_LDADD = \
a095315b 3847 libjournal-core.la
fdfccdbc 3848
cc64d017 3849systemd_journal_remote_SOURCES += \
1e4e7b71
ZJS
3850 src/journal-remote/microhttpd-util.h \
3851 src/journal-remote/microhttpd-util.c
cc64d017
ZJS
3852
3853systemd_journal_remote_CFLAGS = \
3854 $(AM_CFLAGS) \
3855 $(MICROHTTPD_CFLAGS)
3856
3857systemd_journal_remote_LDADD += \
3858 $(MICROHTTPD_LIBS)
3859
bedd083a
ŁS
3860if ENABLE_TMPFILES
3861dist_tmpfiles_DATA += \
3862 tmpfiles.d/systemd-remote.conf
3863endif
3864
cc64d017
ZJS
3865if HAVE_GNUTLS
3866systemd_journal_remote_LDADD += \
3867 $(GNUTLS_LIBS)
08b62a9a 3868endif
ad95fd1d
ZJS
3869
3870# systemd-journal-remote make sense mostly with full crypto stack
3871dist_systemunit_DATA += \
3872 units/systemd-journal-remote.socket
3873
3874nodist_systemunit_DATA += \
3875 units/systemd-journal-remote.service
3876
ad95fd1d
ZJS
3877journal-remote-install-hook: journal-install-hook
3878 -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3879 -chown 0:0 $(DESTDIR)/var/log/journal/remote
3880 -chmod 755 $(DESTDIR)/var/log/journal/remote
3881
3882INSTALL_EXEC_HOOKS += journal-remote-install-hook
ad95fd1d
ZJS
3883
3884nodist_pkgsysconf_DATA += \
3885 src/journal-remote/journal-remote.conf
3886
3887EXTRA_DIST += \
e37f6d61 3888 units/systemd-journal-remote.service.in \
2c8849ad
KS
3889 src/journal-remote/journal-remote.conf.in \
3890 src/journal-remote/log-generator.py
cc64d017
ZJS
3891endif
3892
3d090cc6
ZJS
3893if HAVE_LIBCURL
3894rootlibexec_PROGRAMS += \
3895 systemd-journal-upload
3896
3897systemd_journal_upload_SOURCES = \
3898 src/journal-remote/journal-upload.h \
eacbb4d3
ZJS
3899 src/journal-remote/journal-upload.c \
3900 src/journal-remote/journal-upload-journal.c
3d090cc6
ZJS
3901
3902systemd_journal_upload_CFLAGS = \
3903 $(AM_CFLAGS) \
3904 $(LIBCURL_CFLAGS)
3905
3906systemd_journal_upload_LDADD = \
a095315b 3907 libshared.la \
3d090cc6 3908 $(LIBCURL_LIBS)
ad95fd1d
ZJS
3909
3910nodist_systemunit_DATA += \
3911 units/systemd-journal-upload.service
3912
29fc0ddc
ZJS
3913nodist_pkgsysconf_DATA += \
3914 src/journal-remote/journal-upload.conf
e37f6d61
MP
3915endif
3916
29fc0ddc 3917EXTRA_DIST += \
e37f6d61 3918 units/systemd-journal-upload.service.in \
29fc0ddc 3919 src/journal-remote/journal-upload.conf.in
3d090cc6 3920
145d2258
KS
3921# using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3922journalctl_CFLAGS = \
3923 $(AM_CFLAGS)
a54156a2 3924
169c4f65 3925journalctl_SOURCES = \
f33d3ec1 3926 src/journal/journalctl.c
2a018e83 3927
169c4f65 3928journalctl_LDADD = \
795ab08f
MS
3929 libshared.la \
3930 libudev-core.la
478c8269 3931
f6a971bc
LP
3932if HAVE_QRENCODE
3933journalctl_SOURCES += \
3934 src/journal/journal-qrcode.c \
3935 src/journal/journal-qrcode.h
3936
a54156a2 3937journalctl_CFLAGS += \
f6a971bc
LP
3938 $(QRENCODE_CFLAGS)
3939
3940journalctl_LDADD += \
3941 $(QRENCODE_LIBS)
3942endif
3943
48d437bb 3944test_journal_SOURCES = \
cbdca852 3945 src/journal/test-journal.c
2a018e83 3946
48d437bb 3947test_journal_LDADD = \
a095315b 3948 libjournal-core.la
2fb1aeda 3949
b070e7f3
LP
3950test_journal_send_SOURCES = \
3951 src/journal/test-journal-send.c
3952
3953test_journal_send_LDADD = \
a095315b 3954 libjournal-core.la
b070e7f3 3955
e88baee8 3956test_journal_syslog_SOURCES = \
d025f1e4 3957 src/journal/test-journal-syslog.c
e88baee8
ZJS
3958
3959test_journal_syslog_LDADD = \
a095315b 3960 libjournal-core.la
e88baee8 3961
cbdca852
LP
3962test_journal_match_SOURCES = \
3963 src/journal/test-journal-match.c
3964
3965test_journal_match_LDADD = \
a095315b 3966 libjournal-core.la
cbdca852 3967
a4bcff5b
LP
3968test_journal_enum_SOURCES = \
3969 src/journal/test-journal-enum.c
3970
3971test_journal_enum_LDADD = \
a095315b 3972 libjournal-core.la
a4bcff5b 3973
cbdca852
LP
3974test_journal_stream_SOURCES = \
3975 src/journal/test-journal-stream.c
3976
3977test_journal_stream_LDADD = \
a095315b 3978 libjournal-core.la
cbdca852 3979
d0767ffd
LP
3980test_journal_flush_SOURCES = \
3981 src/journal/test-journal-flush.c
3982
3983test_journal_flush_LDADD = \
a095315b 3984 libjournal-core.la
d0767ffd 3985
3b6c7e78
ZJS
3986test_journal_init_SOURCES = \
3987 src/journal/test-journal-init.c
3988
3989test_journal_init_LDADD = \
a095315b 3990 libjournal-core.la
3b6c7e78 3991
beec0085
LP
3992test_journal_verify_SOURCES = \
3993 src/journal/test-journal-verify.c
3994
3995test_journal_verify_LDADD = \
a095315b 3996 libjournal-core.la
beec0085 3997
7a050b54
MV
3998test_journal_interleaving_SOURCES = \
3999 src/journal/test-journal-interleaving.c
4000
4001test_journal_interleaving_LDADD = \
a095315b 4002 libjournal-core.la
7a050b54 4003
f8019684
LP
4004test_mmap_cache_SOURCES = \
4005 src/journal/test-mmap-cache.c
4006
4007test_mmap_cache_LDADD = \
a095315b 4008 libjournal-core.la
f8019684 4009
d4205751
LP
4010test_catalog_SOURCES = \
4011 src/journal/test-catalog.c
4012
96115cdf
TA
4013test_catalog_CPPFLAGS = \
4014 $(AM_CPPFLAGS) \
143bfdaf
HHPF
4015 -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
4016
d4205751 4017test_catalog_LDADD = \
a095315b 4018 libjournal-core.la
d4205751 4019
843fecc0
RC
4020test_compress_SOURCES = \
4021 src/journal/test-compress.c
4022
4023test_compress_LDADD = \
a095315b 4024 libshared.la
843fecc0 4025
fd53fee0
ZJS
4026test_compress_benchmark_SOURCES = \
4027 src/journal/test-compress-benchmark.c
4028
4029test_compress_benchmark_LDADD = \
a095315b 4030 libshared.la
fd53fee0 4031
8bb3626d
ZJS
4032test_audit_type_SOURCES = \
4033 src/journal/test-audit-type.c
4034
4035test_audit_type_LDADD = \
a095315b 4036 libjournal-core.la
8bb3626d 4037
a095315b 4038libjournal_core_la_SOURCES = \
d025f1e4
ZJS
4039 src/journal/journald-kmsg.c \
4040 src/journal/journald-kmsg.h \
4041 src/journal/journald-syslog.c \
4042 src/journal/journald-syslog.h \
4043 src/journal/journald-stream.c \
4044 src/journal/journald-stream.h \
4045 src/journal/journald-server.c \
4046 src/journal/journald-server.h \
4047 src/journal/journald-console.c \
4048 src/journal/journald-console.h \
40b71e89
ST
4049 src/journal/journald-wall.c \
4050 src/journal/journald-wall.h \
d025f1e4
ZJS
4051 src/journal/journald-native.c \
4052 src/journal/journald-native.h \
875c2e22
LP
4053 src/journal/journald-audit.c \
4054 src/journal/journald-audit.h \
d025f1e4
ZJS
4055 src/journal/journald-rate-limit.c \
4056 src/journal/journald-rate-limit.h \
4057 src/journal/journal-internal.h
96d1efba 4058
a095315b 4059nodist_libjournal_core_la_SOURCES = \
48d7417d 4060 src/journal/journald-gperf.c
7560fffc 4061
a095315b 4062libjournal_core_la_LIBADD = \
a095315b 4063 libshared.la
7560fffc 4064
48d7417d 4065noinst_LTLIBRARIES += \
a095315b 4066 libjournal-core.la
20263082 4067
0031ccd3
KS
4068journal-install-hook:
4069 -$(MKDIR_P) $(DESTDIR)/var/log/journal
4070 -chown 0:0 $(DESTDIR)/var/log/journal
4071 -chmod 755 $(DESTDIR)/var/log/journal
4072 -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
4073 -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
2ca0435b 4074
0031ccd3 4075journal-uninstall-hook:
ad95fd1d 4076 -rmdir $(DESTDIR)/var/log/journal/remote
0031ccd3
KS
4077 -rmdir $(DESTDIR)/var/log/journal/
4078
4079INSTALL_EXEC_HOOKS += journal-install-hook
4080UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
4081
4082# ------------------------------------------------------------------------------
c4eb3681 4083# Update catalog on installation. Do not bother if installing
e2bb347f
ZJS
4084# in DESTDIR, since this is likely for packaging purposes.
4085catalog-update-hook:
4ec24515 4086 -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
e2bb347f 4087
f975e76c 4088INSTALL_DATA_HOOKS += \
e2bb347f
ZJS
4089 catalog-update-hook
4090
4ec24515
ZJS
4091catalog-remove-hook:
4092 -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
4093
4094UNINSTALL_DATA_HOOKS += \
4095 catalog-remove-hook
4096
cee22bd3 4097manual_tests += \
844ec79b 4098 test-journal-enum
2a018e83 4099
cee22bd3 4100tests += \
216e2ade 4101 test-journal \
e88baee8
ZJS
4102 test-journal-send \
4103 test-journal-syslog \
95ea1b90 4104 test-journal-match \
beec0085 4105 test-journal-stream \
3b6c7e78 4106 test-journal-init \
8e41de0d 4107 test-journal-verify \
7a050b54 4108 test-journal-interleaving \
d0767ffd 4109 test-journal-flush \
844ec79b 4110 test-mmap-cache \
8bb3626d
ZJS
4111 test-catalog \
4112 test-audit-type
95ea1b90 4113
3b1a55e1 4114if HAVE_COMPRESSION
fd53fee0
ZJS
4115tests += \
4116 test-compress \
4117 test-compress-benchmark
3b1a55e1 4118endif
843fecc0 4119
48d437bb 4120pkginclude_HEADERS += \
81527be1 4121 src/systemd/sd-journal.h \
aacf3b48
LP
4122 src/systemd/sd-messages.h \
4123 src/systemd/_sd-common.h
2a018e83 4124
add00dfd
KS
4125libsystemd_journal_internal_la_SOURCES = \
4126 src/journal/sd-journal.c \
4127 src/systemd/sd-journal.h \
4128 src/systemd/_sd-common.h \
4129 src/journal/journal-file.c \
4130 src/journal/journal-file.h \
4131 src/journal/journal-vacuum.c \
4132 src/journal/journal-vacuum.h \
4133 src/journal/journal-verify.c \
4134 src/journal/journal-verify.h \
4135 src/journal/lookup3.c \
4136 src/journal/lookup3.h \
4137 src/journal/journal-send.c \
4138 src/journal/journal-def.h \
4139 src/journal/compress.h \
4140 src/journal/catalog.c \
4141 src/journal/catalog.h \
4142 src/journal/mmap-cache.c \
1325ec42 4143 src/journal/mmap-cache.h \
4733607e
ZJS
4144 src/journal/compress.c \
4145 src/journal/audit-type.h \
ee3c31bf
MAP
4146 src/journal/audit-type.c
4147
4148nodist_libsystemd_journal_internal_la_SOURCES = \
4733607e
ZJS
4149 src/journal/audit_type-to-name.h
4150
4151gperf_txt_sources += \
4152 src/journal/audit_type-list.txt
add00dfd
KS
4153
4154# using _CFLAGS = in the conditional below would suppress AM_CFLAGS
fe582db9 4155libsystemd_journal_internal_la_CFLAGS = \
add00dfd
KS
4156 $(AM_CFLAGS)
4157
42fcc4d2 4158libsystemd_journal_internal_la_LIBADD =
add00dfd 4159
d89c8fdf 4160if HAVE_XZ
add00dfd
KS
4161libsystemd_journal_internal_la_CFLAGS += \
4162 $(XZ_CFLAGS)
4163
4164libsystemd_journal_internal_la_LIBADD += \
4165 $(XZ_LIBS)
4166endif
4167
d89c8fdf
ZJS
4168if HAVE_LZ4
4169libsystemd_journal_internal_la_LIBADD += \
4170 -llz4
4171endif
4172
add00dfd
KS
4173if HAVE_GCRYPT
4174libsystemd_journal_internal_la_SOURCES += \
4175 src/journal/journal-authenticate.c \
4176 src/journal/journal-authenticate.h \
4177 src/journal/fsprg.c \
91e023d8
ZJS
4178 src/journal/fsprg.h \
4179 src/shared/gcrypt-util.c \
4180 src/shared/gcrypt-util.h
add00dfd
KS
4181
4182libsystemd_journal_internal_la_LIBADD += \
4183 $(GCRYPT_LIBS)
4184
4a8cf554 4185# fsprg.c is a drop-in file using void pointer arithmetic
add00dfd
KS
4186libsystemd_journal_internal_la_CFLAGS += \
4187 $(GCRYPT_CFLAGS) \
4188 -Wno-pointer-arith
4189endif
2a018e83 4190
474abe33
LP
4191noinst_LTLIBRARIES += \
4192 libsystemd-journal-internal.la
4193
48d437bb 4194rootlibexec_PROGRAMS += \
cc64d017 4195 systemd-journald
b1b2a107 4196
48d437bb 4197rootbin_PROGRAMS += \
169c4f65 4198 journalctl
b1b2a107 4199
755a02c6 4200bin_PROGRAMS += \
6185ac1e 4201 systemd-cat
755a02c6 4202
48d437bb 4203dist_systemunit_DATA += \
03ee5c38 4204 units/systemd-journald.socket \
875c2e22
LP
4205 units/systemd-journald-dev-log.socket \
4206 units/systemd-journald-audit.socket
b1b2a107 4207
48d437bb 4208nodist_systemunit_DATA += \
b8156be0 4209 units/systemd-journald.service \
ecde7065
LP
4210 units/systemd-journal-flush.service \
4211 units/systemd-journal-catalog-update.service
b2423f1f 4212
e6960940 4213dist_pkgsysconf_DATA += \
18b754d3 4214 src/journal/journald.conf
e6960940 4215
d4205751 4216dist_catalog_DATA = \
a220f358
VV
4217 catalog/systemd.be.catalog \
4218 catalog/systemd.be@latin.catalog \
a6e9f2b9 4219 catalog/systemd.fr.catalog \
a6e9f2b9 4220 catalog/systemd.it.catalog \
d6740361 4221 catalog/systemd.pl.catalog \
b3e486b8 4222 catalog/systemd.pt_BR.catalog \
d6740361 4223 catalog/systemd.ru.catalog \
e0c7a4e0 4224 catalog/systemd.zh_CN.catalog \
ea01a90d 4225 catalog/systemd.zh_TW.catalog \
d4205751
LP
4226 catalog/systemd.catalog
4227
6ff39241 4228SOCKETS_TARGET_WANTS += \
03ee5c38 4229 systemd-journald.socket \
875c2e22
LP
4230 systemd-journald-dev-log.socket \
4231 systemd-journald-audit.socket
03ee5c38 4232
6ff39241
ZJS
4233SYSINIT_TARGET_WANTS += \
4234 systemd-journald.service \
ecde7065
LP
4235 systemd-journal-flush.service \
4236 systemd-journal-catalog-update.service
5008d581 4237
48d437bb 4238EXTRA_DIST += \
e6960940 4239 units/systemd-journald.service.in \
b8156be0 4240 units/systemd-journal-flush.service.in \
9e4ded30 4241 units/systemd-journal-catalog-update.service.in
e6960940 4242
9e4ded30
ZJS
4243gperf_gperf_sources += \
4244 src/journal/journald-gperf.gperf
5008d581 4245
4caf4ac1 4246# ------------------------------------------------------------------------------
7b17a7d7 4247if HAVE_MICROHTTPD
7b17a7d7
LP
4248gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
4249
4250rootlibexec_PROGRAMS += \
4251 systemd-journal-gatewayd
4252
4253systemd_journal_gatewayd_SOURCES = \
1e4e7b71
ZJS
4254 src/journal-remote/journal-gatewayd.c \
4255 src/journal-remote/microhttpd-util.h \
4256 src/journal-remote/microhttpd-util.c
7b17a7d7
LP
4257
4258systemd_journal_gatewayd_LDADD = \
a095315b 4259 libshared.la \
7b17a7d7
LP
4260 $(MICROHTTPD_LIBS)
4261
cafc7f91
ZJS
4262if HAVE_GNUTLS
4263systemd_journal_gatewayd_LDADD += \
4264 $(GNUTLS_LIBS)
4265endif
4266
7b17a7d7 4267systemd_journal_gatewayd_CFLAGS = \
7b17a7d7
LP
4268 $(AM_CFLAGS) \
4269 $(MICROHTTPD_CFLAGS)
4270
96115cdf
TA
4271systemd_journal_gatewayd_CPPFLAGS = \
4272 $(AM_CPPFLAGS) \
4273 -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
4274
7b17a7d7
LP
4275dist_systemunit_DATA += \
4276 units/systemd-journal-gatewayd.socket
4277
4278nodist_systemunit_DATA += \
4279 units/systemd-journal-gatewayd.service
4280
4281dist_gatewayddocumentroot_DATA = \
1e4e7b71 4282 src/journal-remote/browse.html
7b17a7d7
LP
4283
4284endif
4285
e4d1062c
ZJS
4286EXTRA_DIST += \
4287 units/systemd-journal-gatewayd.service.in
4288
912b54ad
DS
4289# ------------------------------------------------------------------------------
4290
96c374d0
LP
4291systemd_socket_proxyd_SOURCES = \
4292 src/socket-proxy/socket-proxyd.c
912b54ad 4293
96c374d0 4294systemd_socket_proxyd_LDADD = \
b3d5018b 4295 libshared.la
912b54ad 4296
6185ac1e 4297# ------------------------------------------------------------------------------
f5e04665 4298if ENABLE_COREDUMP
f5e04665 4299systemd_coredump_SOURCES = \
f50cd2b2
LP
4300 src/coredump/coredump.c \
4301 src/coredump/coredump-vacuum.c \
4302 src/coredump/coredump-vacuum.h
f5e04665
LP
4303
4304systemd_coredump_LDADD = \
a095315b 4305 libshared.la
ba1261bc 4306
8d4e028f
LP
4307if HAVE_ELFUTILS
4308systemd_coredump_SOURCES += \
f50cd2b2
LP
4309 src/coredump/stacktrace.c \
4310 src/coredump/stacktrace.h
8d4e028f
LP
4311
4312systemd_coredump_LDADD += \
4313 $(ELFUTILS_LIBS)
4314endif
4315
3c171f0b
LP
4316nodist_systemunit_DATA += \
4317 units/systemd-coredump@.service
4318
4319dist_systemunit_DATA += \
4320 units/systemd-coredump.socket
4321
4322SOCKETS_TARGET_WANTS += \
4323 systemd-coredump.socket
4324
f5e04665 4325rootlibexec_PROGRAMS += \
6185ac1e 4326 systemd-coredump
f5e04665 4327
34c10968 4328dist_pkgsysconf_DATA += \
f50cd2b2 4329 src/coredump/coredump.conf
34c10968 4330
f4bab169 4331coredumpctl_SOURCES = \
f50cd2b2 4332 src/coredump/coredumpctl.c
d51167c6 4333
f4bab169 4334coredumpctl_LDADD = \
a095315b 4335 libshared.la
d51167c6
MB
4336
4337bin_PROGRAMS += \
f4bab169 4338 coredumpctl
d51167c6 4339
0dc5d23c
LP
4340manual_tests += \
4341 test-coredump-vacuum
4342
4343test_coredump_vacuum_SOURCES = \
f50cd2b2
LP
4344 src/coredump/test-coredump-vacuum.c \
4345 src/coredump/coredump-vacuum.c \
4346 src/coredump/coredump-vacuum.h
0dc5d23c
LP
4347
4348test_coredump_vacuum_LDADD = \
a095315b 4349 libshared.la
0dc5d23c 4350
17163897 4351dist_bashcompletion_data += \
f4bab169 4352 shell-completion/bash/coredumpctl
d51167c6 4353
17163897 4354dist_zshcompletion_data += \
f4bab169 4355 shell-completion/zsh/_coredumpctl
70e104c4 4356
ae5b2a86 4357nodist_sysctl_DATA = \
94c525f0 4358 sysctl.d/50-coredump.conf
f5e04665 4359
6185ac1e 4360CLEANFILES += \
94c525f0 4361 sysctl.d/50-coredump.conf
f5e04665
LP
4362endif
4363
299031ca 4364EXTRA_DIST += \
3c171f0b
LP
4365 sysctl.d/50-coredump.conf.in \
4366 units/systemd-coredump@.service.in
299031ca 4367
48d437bb
KS
4368# ------------------------------------------------------------------------------
4369if ENABLE_BINFMT
4370systemd_binfmt_SOURCES = \
4371 src/binfmt/binfmt.c
4372
4373systemd_binfmt_LDADD = \
a095315b 4374 libshared.la
3d20ed6d 4375
48d437bb
KS
4376rootlibexec_PROGRAMS += \
4377 systemd-binfmt
d7ccca2e 4378
48d437bb
KS
4379dist_systemunit_DATA += \
4380 units/proc-sys-fs-binfmt_misc.automount \
4381 units/proc-sys-fs-binfmt_misc.mount
d7ccca2e 4382
48d437bb
KS
4383nodist_systemunit_DATA += \
4384 units/systemd-binfmt.service
d7ccca2e 4385
6ff39241
ZJS
4386INSTALL_DIRS += \
4387 $(prefix)/lib/binfmt.d \
4388 $(sysconfdir)/binfmt.d
8e1bd70d 4389
6ff39241
ZJS
4390SYSINIT_TARGET_WANTS += \
4391 systemd-binfmt.service \
4392 proc-sys-fs-binfmt_misc.automount
8e1bd70d 4393
299031ca 4394endif
8e1bd70d 4395
48d437bb
KS
4396EXTRA_DIST += \
4397 units/systemd-binfmt.service.in
3d20ed6d 4398
e5e83e83
LP
4399# ------------------------------------------------------------------------------
4400if ENABLE_VCONSOLE
4401systemd_vconsole_setup_SOURCES = \
4402 src/vconsole/vconsole-setup.c
4403
4404systemd_vconsole_setup_LDADD = \
a095315b 4405 libshared.la
e5e83e83
LP
4406
4407rootlibexec_PROGRAMS += \
4408 systemd-vconsole-setup
4409
3b0ed75c 4410nodist_udevrules_DATA += \
f6ba8671
RS
4411 src/vconsole/90-vconsole.rules
4412
9e4ded30
ZJS
4413nodist_systemunit_DATA += \
4414 units/systemd-vconsole-setup.service
4415
6ff39241
ZJS
4416SYSINIT_TARGET_WANTS += \
4417 systemd-vconsole-setup.service
299031ca 4418endif
e5e83e83
LP
4419
4420EXTRA_DIST += \
3b0ed75c 4421 src/vconsole/90-vconsole.rules.in \
e5e83e83 4422 units/systemd-vconsole-setup.service.in
e5e83e83 4423
83fdc450
AK
4424# ------------------------------------------------------------------------------
4425if ENABLE_BOOTCHART
4426systemd_bootchart_SOURCES = \
4427 src/bootchart/bootchart.c \
4428 src/bootchart/bootchart.h \
e75dcf57 4429 src/bootchart/store.c \
6d031c0b 4430 src/bootchart/store.h \
4afb5c73
ZJS
4431 src/bootchart/svg.c \
4432 src/bootchart/svg.h
83fdc450 4433
e985665d 4434systemd_bootchart_LDADD = \
a095315b 4435 libshared.la
e985665d 4436
83fdc450
AK
4437rootlibexec_PROGRAMS += \
4438 systemd-bootchart
5088d19f
UTL
4439
4440dist_pkgsysconf_DATA += \
4441 src/bootchart/bootchart.conf
da64a1fc
WC
4442
4443nodist_systemunit_DATA += \
4444 units/systemd-bootchart.service
e37f6d61 4445endif
da64a1fc
WC
4446
4447EXTRA_DIST += \
4448 units/systemd-bootchart.service.in
83fdc450 4449
4de85612
LP
4450# ------------------------------------------------------------------------------
4451if ENABLE_QUOTACHECK
4452rootlibexec_PROGRAMS += \
4453 systemd-quotacheck
4454
4455nodist_systemunit_DATA += \
93a1d735 4456 units/systemd-quotacheck.service
4de85612 4457
4de85612 4458systemd_quotacheck_SOURCES = \
dce818b3 4459 src/quotacheck/quotacheck.c
4de85612
LP
4460
4461systemd_quotacheck_LDADD = \
a095315b 4462 libshared.la
4de85612
LP
4463endif
4464
299031ca
BK
4465EXTRA_DIST += \
4466 units/systemd-quotacheck.service.in
4467
b51fc639
DR
4468nodist_systemunit_DATA += \
4469 units/quotaon.service
4470
4de85612
LP
4471# ------------------------------------------------------------------------------
4472if ENABLE_RANDOMSEED
4473rootlibexec_PROGRAMS += \
4474 systemd-random-seed
4475
4476nodist_systemunit_DATA += \
c35b956d 4477 units/systemd-random-seed.service
4de85612 4478
4de85612 4479systemd_random_seed_SOURCES = \
dce818b3 4480 src/random-seed/random-seed.c
4de85612
LP
4481
4482systemd_random_seed_LDADD = \
a095315b 4483 libshared.la
4de85612 4484
6ff39241 4485SYSINIT_TARGET_WANTS += \
c35b956d 4486 systemd-random-seed.service
edcf89be 4487
4de85612
LP
4488endif
4489
299031ca 4490EXTRA_DIST += \
c35b956d 4491 units/systemd-random-seed.service.in
299031ca 4492
3731acf1
LP
4493# ------------------------------------------------------------------------------
4494if ENABLE_BACKLIGHT
4495rootlibexec_PROGRAMS += \
4496 systemd-backlight
4497
4498nodist_systemunit_DATA += \
4499 units/systemd-backlight@.service
4500
4501systemd_backlight_SOURCES = \
4502 src/backlight/backlight.c
4503
4504systemd_backlight_LDADD = \
a095315b 4505 libshared.la
3731acf1
LP
4506endif
4507
4508EXTRA_DIST += \
4509 units/systemd-backlight@.service.in
4510
3990f247
LP
4511# ------------------------------------------------------------------------------
4512if ENABLE_RFKILL
4513rootlibexec_PROGRAMS += \
4514 systemd-rfkill
4515
4516nodist_systemunit_DATA += \
d35c1bb1
LP
4517 units/systemd-rfkill.service
4518
4519dist_systemunit_DATA += \
4520 units/systemd-rfkill.socket
3990f247
LP
4521
4522systemd_rfkill_SOURCES = \
4523 src/rfkill/rfkill.c
4524
4525systemd_rfkill_LDADD = \
a095315b 4526 libshared.la
3990f247
LP
4527endif
4528
4529EXTRA_DIST += \
d35c1bb1 4530 units/systemd-rfkill.service.in
3990f247 4531
b4d0195b
LP
4532# ------------------------------------------------------------------------------
4533if HAVE_LIBCRYPTSETUP
4534rootlibexec_PROGRAMS += \
4535 systemd-cryptsetup
4536
4537systemgenerator_PROGRAMS += \
4538 systemd-cryptsetup-generator
4539
4540dist_systemunit_DATA += \
9542239e
LP
4541 units/cryptsetup.target \
4542 units/cryptsetup-pre.target
b4d0195b
LP
4543
4544systemd_cryptsetup_SOURCES = \
3bdf9c1d 4545 src/cryptsetup/cryptsetup.c
b4d0195b
LP
4546
4547systemd_cryptsetup_CFLAGS = \
4548 $(AM_CFLAGS) \
3e214785 4549 $(LIBCRYPTSETUP_CFLAGS)
b4d0195b
LP
4550
4551systemd_cryptsetup_LDADD = \
a095315b 4552 libshared.la \
49e942b2 4553 $(LIBCRYPTSETUP_LIBS)
b4d0195b
LP
4554
4555systemd_cryptsetup_generator_SOURCES = \
f33d3ec1 4556 src/cryptsetup/cryptsetup-generator.c
b4d0195b
LP
4557
4558systemd_cryptsetup_generator_LDADD = \
a095315b 4559 libshared.la
b4d0195b 4560
6ff39241
ZJS
4561SYSINIT_TARGET_WANTS += \
4562 cryptsetup.target
d0d6944c 4563
b4d0195b
LP
4564endif
4565
48d437bb
KS
4566# ------------------------------------------------------------------------------
4567if ENABLE_HOSTNAMED
4568systemd_hostnamed_SOURCES = \
3bdf9c1d 4569 src/hostname/hostnamed.c
48d437bb 4570
48d437bb 4571systemd_hostnamed_LDADD = \
a095315b 4572 libshared.la
3d20ed6d 4573
48d437bb
KS
4574rootlibexec_PROGRAMS += \
4575 systemd-hostnamed
3d20ed6d 4576
48d437bb
KS
4577nodist_systemunit_DATA += \
4578 units/systemd-hostnamed.service
e9278741 4579
36e46fe9 4580dist_systemunit_DATA_busnames += \
cde360cd
LP
4581 units/org.freedesktop.hostname1.busname
4582
48d437bb
KS
4583dist_dbuspolicy_DATA += \
4584 src/hostname/org.freedesktop.hostname1.conf
e9ddabc2 4585
48d437bb
KS
4586dist_dbussystemservice_DATA += \
4587 src/hostname/org.freedesktop.hostname1.service
e9ddabc2 4588
299031ca
BK
4589polkitpolicy_files += \
4590 src/hostname/org.freedesktop.hostname1.policy
e9ddabc2 4591
91e8651b
ZJS
4592SYSTEM_UNIT_ALIASES += \
4593 systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
48d437bb 4594
cde360cd
LP
4595BUSNAMES_TARGET_WANTS += \
4596 org.freedesktop.hostname1.busname
4597
dbc4fbae
LP
4598hostnamectl_SOURCES = \
4599 src/hostname/hostnamectl.c
4600
dbc4fbae 4601hostnamectl_LDADD = \
a095315b 4602 libshared.la
dbc4fbae
LP
4603
4604bin_PROGRAMS += \
4605 hostnamectl
4606
17163897 4607dist_bashcompletion_data += \
d611dadc
MB
4608 shell-completion/bash/hostnamectl
4609
17163897 4610dist_zshcompletion_data += \
db456cd0 4611 shell-completion/zsh/_hostnamectl
a5ba84b7 4612endif
299031ca 4613
cd49e2f6
LP
4614polkitpolicy_in_files += \
4615 src/hostname/org.freedesktop.hostname1.policy.in
4616
4617EXTRA_DIST += \
4618 units/systemd-hostnamed.service.in
4619
4620# ------------------------------------------------------------------------------
36e46fe9 4621dist_systemunit_DATA_busnames += \
5892a914 4622 units/org.freedesktop.systemd1.busname
15e91323
LP
4623
4624BUSNAMES_TARGET_WANTS += \
5892a914 4625 org.freedesktop.systemd1.busname
294c8660 4626
48d437bb
KS
4627# ------------------------------------------------------------------------------
4628if ENABLE_LOCALED
4629systemd_localed_SOURCES = \
3bdf9c1d 4630 src/locale/localed.c
48d437bb 4631
48d437bb 4632systemd_localed_LDADD = \
a095315b 4633 libshared.la \
d4f5a1f4
DH
4634 $(XKBCOMMON_LIBS)
4635
4636systemd_localed_CFLAGS = \
4637 $(AM_CFLAGS) \
4638 $(XKBCOMMON_CFLAGS)
07faed4f 4639
48d437bb
KS
4640nodist_systemunit_DATA += \
4641 units/systemd-localed.service
07faed4f 4642
36e46fe9 4643dist_systemunit_DATA_busnames += \
cde360cd
LP
4644 units/org.freedesktop.locale1.busname
4645
48d437bb
KS
4646rootlibexec_PROGRAMS += \
4647 systemd-localed
07faed4f 4648
48d437bb
KS
4649dist_dbuspolicy_DATA += \
4650 src/locale/org.freedesktop.locale1.conf
e23a0ce8 4651
48d437bb
KS
4652dist_dbussystemservice_DATA += \
4653 src/locale/org.freedesktop.locale1.service
e23a0ce8 4654
299031ca
BK
4655polkitpolicy_files += \
4656 src/locale/org.freedesktop.locale1.policy
e23a0ce8 4657
91e8651b
ZJS
4658SYSTEM_UNIT_ALIASES += \
4659 systemd-localed.service dbus-org.freedesktop.locale1.service
2a796654 4660
cde360cd
LP
4661BUSNAMES_TARGET_WANTS += \
4662 org.freedesktop.locale1.busname
4663
2c8849ad 4664dist_pkgdata_DATA = \
4e829d21
ZJS
4665 src/locale/kbd-model-map \
4666 src/locale/language-fallback-map
776a564f 4667
2087a7af
LP
4668localectl_SOURCES = \
4669 src/locale/localectl.c
4670
2087a7af 4671localectl_LDADD = \
a095315b 4672 libshared.la
2087a7af
LP
4673
4674bin_PROGRAMS += \
4675 localectl
4676
17163897 4677dist_bashcompletion_data += \
d611dadc
MB
4678 shell-completion/bash/localectl
4679
17163897 4680dist_zshcompletion_data += \
c4c12f13 4681 shell-completion/zsh/_localectl
a5ba84b7 4682endif
2a796654 4683
9f700755
ZJS
4684.PHONY: update-kbd-model-map
4685
299031ca
BK
4686polkitpolicy_in_files += \
4687 src/locale/org.freedesktop.locale1.policy.in
4688
4689EXTRA_DIST += \
4690 units/systemd-localed.service.in
4691
48d437bb
KS
4692# ------------------------------------------------------------------------------
4693if ENABLE_TIMEDATED
4694systemd_timedated_SOURCES = \
3bdf9c1d 4695 src/timedate/timedated.c
2a796654 4696
48d437bb 4697systemd_timedated_LDADD = \
a095315b 4698 libshared.la
15673083 4699
48d437bb
KS
4700rootlibexec_PROGRAMS += \
4701 systemd-timedated
15673083 4702
48d437bb
KS
4703dist_dbussystemservice_DATA += \
4704 src/timedate/org.freedesktop.timedate1.service
e9278741 4705
48d437bb
KS
4706dist_dbuspolicy_DATA += \
4707 src/timedate/org.freedesktop.timedate1.conf
e9278741 4708
48d437bb
KS
4709nodist_systemunit_DATA += \
4710 units/systemd-timedated.service
b2423f1f 4711
36e46fe9 4712dist_systemunit_DATA_busnames += \
cde360cd
LP
4713 units/org.freedesktop.timedate1.busname
4714
299031ca
BK
4715polkitpolicy_files += \
4716 src/timedate/org.freedesktop.timedate1.policy
97c4a07d 4717
91e8651b
ZJS
4718SYSTEM_UNIT_ALIASES += \
4719 systemd-timedated.service dbus-org.freedesktop.timedate1.service
449ddb2d 4720
cde360cd
LP
4721BUSNAMES_TARGET_WANTS += \
4722 org.freedesktop.timedate1.busname
4723
6d0274f1
LP
4724timedatectl_SOURCES = \
4725 src/timedate/timedatectl.c
4726
6d0274f1 4727timedatectl_LDADD = \
a095315b 4728 libshared.la
6d0274f1
LP
4729
4730bin_PROGRAMS += \
4731 timedatectl
d611dadc 4732
17163897 4733dist_bashcompletion_data += \
d611dadc 4734 shell-completion/bash/timedatectl
20c8382b 4735
17163897 4736dist_zshcompletion_data += \
20c8382b 4737 shell-completion/zsh/_timedatectl
299031ca
BK
4738endif
4739
4740polkitpolicy_in_files += \
4741 src/timedate/org.freedesktop.timedate1.policy.in
83620960 4742
48d437bb
KS
4743EXTRA_DIST += \
4744 units/systemd-timedated.service.in
449ddb2d 4745
4caf4ac1 4746# ------------------------------------------------------------------------------
687ed123
KS
4747if ENABLE_TIMESYNCD
4748systemd_timesyncd_SOURCES = \
e8af6973 4749 src/timesync/timesyncd.c \
84e51726
LP
4750 src/timesync/timesyncd-manager.c \
4751 src/timesync/timesyncd-manager.h \
4752 src/timesync/timesyncd-conf.c \
4753 src/timesync/timesyncd-conf.h \
4754 src/timesync/timesyncd-server.c \
4755 src/timesync/timesyncd-server.h
e8af6973
LP
4756
4757nodist_systemd_timesyncd_SOURCES = \
4758 src/timesync/timesyncd-gperf.c
4759
687ed123 4760systemd_timesyncd_LDADD = \
e0e5ce23 4761 libsystemd-network.la \
a095315b 4762 libshared.la
687ed123 4763
a91df40e 4764rootlibexec_PROGRAMS += \
687ed123 4765 systemd-timesyncd
a91df40e
KS
4766
4767nodist_systemunit_DATA += \
4768 units/systemd-timesyncd.service
4769
32104125 4770GENERAL_ALIASES += \
e9b11a84 4771 $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service
32104125 4772
e8af6973
LP
4773nodist_pkgsysconf_DATA += \
4774 src/timesync/timesyncd.conf
4775
f4747733
EV
4776endif
4777
4778gperf_gperf_sources += \
4779 src/timesync/timesyncd-gperf.gperf
4780
e8af6973 4781EXTRA_DIST += \
f4747733 4782 units/systemd-timesyncd.service.in \
e8af6973 4783 src/timesync/timesyncd.conf.in
687ed123
KS
4784
4785# ------------------------------------------------------------------------------
4caf4ac1
KS
4786if HAVE_MYHOSTNAME
4787libnss_myhostname_la_SOURCES = \
947127ff 4788 src/nss-myhostname/nss-myhostname.sym \
e80af1bd 4789 src/nss-myhostname/nss-myhostname.c
4caf4ac1 4790
4caf4ac1
KS
4791libnss_myhostname_la_LDFLAGS = \
4792 $(AM_LDFLAGS) \
4793 -module \
4794 -export-dynamic \
4795 -avoid-version \
4796 -shared \
947127ff
LP
4797 -shrext .so.2 \
4798 -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4caf4ac1 4799
d1ca51b1 4800libnss_myhostname_la_LIBADD = \
b4a4417c 4801 libsystemd-internal.la
d1ca51b1 4802
4caf4ac1
KS
4803lib_LTLIBRARIES += \
4804 libnss_myhostname.la
4caf4ac1
KS
4805endif
4806
1ee306e1
LP
4807# ------------------------------------------------------------------------------
4808if ENABLE_MACHINED
4809systemd_machined_SOURCES = \
4810 src/machine/machined.c \
a8b409db
ZJS
4811 src/machine/machined.h
4812
a8b409db 4813systemd_machined_LDADD = \
a095315b 4814 libmachine-core.la
a8b409db
ZJS
4815
4816rootlibexec_PROGRAMS += \
4817 systemd-machined
4818
a095315b 4819libmachine_core_la_SOURCES = \
1ee306e1
LP
4820 src/machine/machine.c \
4821 src/machine/machine.h \
cd61c3bf 4822 src/machine/machined-dbus.c \
ebeccf9e 4823 src/machine/machine-dbus.c \
69c4e277 4824 src/machine/machine-dbus.h \
003dffde
LP
4825 src/machine/image-dbus.c \
4826 src/machine/image-dbus.h
1ee306e1 4827
a095315b 4828libmachine_core_la_LIBADD = \
a095315b 4829 libshared.la
1ee306e1 4830
a8b409db 4831noinst_LTLIBRARIES += \
a095315b 4832 libmachine-core.la
1ee306e1
LP
4833
4834machinectl_SOURCES = \
4835 src/machine/machinectl.c
4836
1ee306e1 4837machinectl_LDADD = \
a095315b 4838 libshared.la
1ee306e1
LP
4839
4840rootbin_PROGRAMS += \
4841 machinectl
4842
a8b409db
ZJS
4843test_machine_tables_SOURCES = \
4844 src/machine/test-machine-tables.c
4845
a8b409db 4846test_machine_tables_LDADD = \
a095315b 4847 libmachine-core.la
a8b409db
ZJS
4848
4849tests += \
4850 test-machine-tables
4851
1ee306e1
LP
4852nodist_systemunit_DATA += \
4853 units/systemd-machined.service
4854
4855dist_systemunit_DATA += \
36e46fe9
MB
4856 units/machine.slice
4857
4858dist_systemunit_DATA_busnames += \
cde360cd 4859 units/org.freedesktop.machine1.busname
1ee306e1
LP
4860
4861dist_dbussystemservice_DATA += \
4862 src/machine/org.freedesktop.machine1.service
4863
4864dist_dbuspolicy_DATA += \
4865 src/machine/org.freedesktop.machine1.conf
4866
d04c1fb8
LP
4867polkitpolicy_files += \
4868 src/machine/org.freedesktop.machine1.policy
4869
17163897
ZJS
4870dist_bashcompletion_data += \
4871 shell-completion/bash/machinectl
4872
4873dist_zshcompletion_data += \
d895500c
WH
4874 shell-completion/zsh/_machinectl \
4875 shell-completion/zsh/_sd_machines
439b7ce8 4876
1ee306e1
LP
4877SYSTEM_UNIT_ALIASES += \
4878 systemd-machined.service dbus-org.freedesktop.machine1.service
4879
cde360cd
LP
4880BUSNAMES_TARGET_WANTS += \
4881 org.freedesktop.machine1.busname
4882
cabb0bc6
LP
4883libnss_mymachines_la_SOURCES = \
4884 src/nss-mymachines/nss-mymachines.sym \
4885 src/nss-mymachines/nss-mymachines.c
4886
4887libnss_mymachines_la_LDFLAGS = \
4888 $(AM_LDFLAGS) \
4889 -module \
4890 -export-dynamic \
4891 -avoid-version \
4892 -shared \
4893 -shrext .so.2 \
4894 -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4895
4896libnss_mymachines_la_LIBADD = \
d6ce77db 4897 libsystemd-internal.la
cabb0bc6
LP
4898
4899lib_LTLIBRARIES += \
4900 libnss_mymachines.la
72648326 4901
3d7415f4
LP
4902endif
4903
3712e124
MP
4904polkitpolicy_in_files += \
4905 src/machine/org.freedesktop.machine1.policy.in
4906
e37f6d61
MP
4907EXTRA_DIST += \
4908 units/systemd-machined.service.in
4909
3d7415f4
LP
4910# ------------------------------------------------------------------------------
4911if ENABLE_IMPORTD
4912
72648326 4913if HAVE_LIBCURL
85dbc41d
LP
4914if HAVE_XZ
4915if HAVE_ZLIB
8af3cf74 4916if HAVE_BZIP2
85dbc41d 4917if HAVE_GCRYPT
72648326 4918
3d7415f4
LP
4919rootlibexec_PROGRAMS += \
4920 systemd-importd \
b6e676ce 4921 systemd-pull \
587fec42
LP
4922 systemd-import \
4923 systemd-export
72648326 4924
3d7415f4 4925systemd_importd_SOURCES = \
ff828763 4926 src/import/importd.c
3d7415f4
LP
4927
4928systemd_importd_CFLAGS = \
4929 $(AM_CFLAGS) \
b6e676ce 4930 -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \
587fec42
LP
4931 -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \
4932 -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\"
3d7415f4
LP
4933
4934systemd_importd_LDADD = \
a095315b 4935 libshared.la
3d7415f4 4936
ff828763
LP
4937systemd_pull_SOURCES = \
4938 src/import/pull.c \
dc2c282b
LP
4939 src/import/pull-raw.c \
4940 src/import/pull-raw.h \
4941 src/import/pull-tar.c \
4942 src/import/pull-tar.h \
dc2c282b
LP
4943 src/import/pull-job.c \
4944 src/import/pull-job.h \
4945 src/import/pull-common.c \
4946 src/import/pull-common.h \
b6e676ce
LP
4947 src/import/import-common.c \
4948 src/import/import-common.h \
3e2cda69
LP
4949 src/import/import-compress.c \
4950 src/import/import-compress.h \
72648326
LP
4951 src/import/curl-util.c \
4952 src/import/curl-util.h \
edce2aed
LP
4953 src/import/qcow2-util.c \
4954 src/import/qcow2-util.h
72648326 4955
ff828763 4956systemd_pull_CFLAGS = \
72648326 4957 $(AM_CFLAGS) \
49bb233b 4958 $(LIBCURL_CFLAGS) \
edce2aed 4959 $(XZ_CFLAGS) \
85dbc41d 4960 $(ZLIB_CFLAGS) \
3576d631
LP
4961 $(GCRYPT_CFLAGS) \
4962 -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \
4963 -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\"
72648326 4964
ff828763 4965systemd_pull_LDADD = \
a095315b 4966 libshared.la \
49bb233b 4967 $(LIBCURL_LIBS) \
edce2aed 4968 $(XZ_LIBS) \
85dbc41d 4969 $(ZLIB_LIBS) \
8af3cf74 4970 -lbz2 \
85dbc41d 4971 $(GCRYPT_LIBS)
edce2aed 4972
b6e676ce
LP
4973systemd_import_SOURCES = \
4974 src/import/import.c \
4975 src/import/import-raw.c \
4976 src/import/import-raw.h \
4977 src/import/import-tar.c \
4978 src/import/import-tar.h \
4979 src/import/import-common.c \
4980 src/import/import-common.h \
4981 src/import/import-compress.c \
4982 src/import/import-compress.h \
4983 src/import/qcow2-util.c \
4984 src/import/qcow2-util.h
4985
4986systemd_import_CFLAGS = \
4987 $(AM_CFLAGS) \
4988 $(XZ_CFLAGS) \
4989 $(ZLIB_CFLAGS)
4990
4991systemd_import_LDADD = \
a095315b 4992 libshared.la \
b6e676ce
LP
4993 $(XZ_LIBS) \
4994 $(ZLIB_LIBS) \
4995 -lbz2
4996
587fec42
LP
4997systemd_export_SOURCES = \
4998 src/import/export.c \
4999 src/import/export-tar.c \
5000 src/import/export-tar.h \
5001 src/import/export-raw.c \
5002 src/import/export-raw.h \
5003 src/import/import-common.c \
5004 src/import/import-common.h \
5005 src/import/import-compress.c \
5006 src/import/import-compress.h
5007
5008systemd_export_CFLAGS = \
5009 $(AM_CFLAGS) \
5010 $(XZ_CFLAGS) \
5011 $(ZLIB_CFLAGS)
5012
5013systemd_export_LDADD = \
a095315b 5014 libshared.la \
587fec42
LP
5015 $(XZ_LIBS) \
5016 $(ZLIB_LIBS) \
5017 -lbz2
5018
3d7415f4
LP
5019dist_rootlibexec_DATA = \
5020 src/import/import-pubring.gpg
5021
5022nodist_systemunit_DATA += \
5023 units/systemd-importd.service
5024
3d7415f4
LP
5025dist_systemunit_DATA_busnames += \
5026 units/org.freedesktop.import1.busname
5027
5028BUSNAMES_TARGET_WANTS += \
5029 org.freedesktop.import1.busname
5030
5031SYSTEM_UNIT_ALIASES += \
5032 systemd-importd.service dbus-org.freedesktop.import1.service
5033
5034dist_dbussystemservice_DATA += \
5035 src/import/org.freedesktop.import1.service
5036
5037dist_dbuspolicy_DATA += \
5038 src/import/org.freedesktop.import1.conf
5039
5040polkitpolicy_files += \
5041 src/import/org.freedesktop.import1.policy
5042
edce2aed
LP
5043manual_tests += \
5044 test-qcow2
5045
5046test_qcow2_SOURCES = \
5047 src/import/test-qcow2.c \
5048 src/import/qcow2-util.c \
5049 src/import/qcow2-util.h
5050
5051test_qcow2_CFLAGS = \
5052 $(AM_CFLAGS) \
5053 $(ZLIB_CFLAGS)
5054
5055test_qcow2_LDADD = \
a095315b 5056 libshared.la \
edce2aed 5057 $(ZLIB_LIBS)
3576d631 5058
72648326 5059endif
85dbc41d
LP
5060endif
5061endif
5062endif
8af3cf74 5063endif
72648326 5064
1ee306e1
LP
5065endif
5066
3712e124
MP
5067polkitpolicy_in_files += \
5068 src/import/org.freedesktop.import1.policy.in
5069
e37f6d61 5070EXTRA_DIST += \
2b442ac8 5071 units/systemd-importd.service.in
e37f6d61
MP
5072
5073
091a364c
TG
5074# ------------------------------------------------------------------------------
5075if ENABLE_RESOLVED
2b442ac8 5076
6d99904f
ZJS
5077basic_dns_sources = \
5078 src/resolve/resolved-dns-dnssec.c \
5079 src/resolve/resolved-dns-dnssec.h \
5080 src/resolve/resolved-dns-packet.c \
5081 src/resolve/resolved-dns-packet.h \
5082 src/resolve/resolved-dns-rr.c \
5083 src/resolve/resolved-dns-rr.h \
5084 src/resolve/resolved-dns-answer.c \
5085 src/resolve/resolved-dns-answer.h \
5086 src/resolve/resolved-dns-question.c \
5087 src/resolve/resolved-dns-question.h \
5088 src/resolve/dns-type.c \
5089 src/resolve/dns-type.h
5090
091a364c 5091systemd_resolved_SOURCES = \
091a364c 5092 src/resolve/resolved.c \
74b2466e 5093 src/resolve/resolved-manager.c \
39d8db04 5094 src/resolve/resolved-manager.h \
4e945a6f
LP
5095 src/resolve/resolved-conf.c \
5096 src/resolve/resolved-conf.h \
f8dc7e34
LP
5097 src/resolve/resolved-resolv-conf.c \
5098 src/resolve/resolved-resolv-conf.h \
74b2466e 5099 src/resolve/resolved-bus.c \
39d8db04 5100 src/resolve/resolved-bus.h \
74b2466e
LP
5101 src/resolve/resolved-link.h \
5102 src/resolve/resolved-link.c \
3abaabda
LP
5103 src/resolve/resolved-link-bus.c \
5104 src/resolve/resolved-link-bus.h \
5f402ae8
DM
5105 src/resolve/resolved-llmnr.h \
5106 src/resolve/resolved-llmnr.c \
bc7702b0
DM
5107 src/resolve/resolved-mdns.h \
5108 src/resolve/resolved-mdns.c \
51323288 5109 src/resolve/resolved-def.h \
6d99904f 5110 $(basic_dns_sources) \
74b2466e
LP
5111 src/resolve/resolved-dns-query.h \
5112 src/resolve/resolved-dns-query.c \
839a4a20
LP
5113 src/resolve/resolved-dns-synthesize.h \
5114 src/resolve/resolved-dns-synthesize.c \
ec2c5e43
LP
5115 src/resolve/resolved-dns-transaction.h \
5116 src/resolve/resolved-dns-transaction.c \
74b2466e
LP
5117 src/resolve/resolved-dns-scope.h \
5118 src/resolve/resolved-dns-scope.c \
5119 src/resolve/resolved-dns-server.h \
5120 src/resolve/resolved-dns-server.c \
a51c1048
LP
5121 src/resolve/resolved-dns-search-domain.h \
5122 src/resolve/resolved-dns-search-domain.c \
322345fd 5123 src/resolve/resolved-dns-cache.h \
623a4c97
LP
5124 src/resolve/resolved-dns-cache.c \
5125 src/resolve/resolved-dns-zone.h \
5126 src/resolve/resolved-dns-zone.c \
5127 src/resolve/resolved-dns-stream.h \
7263f724 5128 src/resolve/resolved-dns-stream.c \
0d2cd476
LP
5129 src/resolve/resolved-dns-trust-anchor.h \
5130 src/resolve/resolved-dns-trust-anchor.c \
dd0bc0f1
LP
5131 src/resolve/resolved-etc-hosts.h \
5132 src/resolve/resolved-etc-hosts.c \
91e023d8
ZJS
5133 src/shared/gcrypt-util.c \
5134 src/shared/gcrypt-util.h
f884afb2 5135
091a364c 5136nodist_systemd_resolved_SOURCES = \
ee3c31bf
MAP
5137 src/resolve/dns_type-from-name.h \
5138 src/resolve/dns_type-to-name.h \
091a364c
TG
5139 src/resolve/resolved-gperf.c
5140
091a364c 5141systemd_resolved_LDADD = \
ffcf82d2 5142 libsystemd-network.la \
8c8302a6 5143 libshared.la
091a364c
TG
5144
5145rootlibexec_PROGRAMS += \
5146 systemd-resolved
5147
5148nodist_systemunit_DATA += \
5149 units/systemd-resolved.service
5150
36e46fe9 5151dist_systemunit_DATA_busnames += \
b7e6c03d
KS
5152 units/org.freedesktop.resolve1.busname
5153
18641cb1
KS
5154dist_dbuspolicy_DATA += \
5155 src/resolve/org.freedesktop.resolve1.conf
5156
5157dist_dbussystemservice_DATA += \
5158 src/resolve/org.freedesktop.resolve1.service
5159
b7e6c03d
KS
5160SYSTEM_UNIT_ALIASES += \
5161 systemd-resolved.service dbus-org.freedesktop.resolve1.service
5162
5163BUSNAMES_TARGET_WANTS += \
5164 org.freedesktop.resolve1.busname
5165
091a364c
TG
5166GENERAL_ALIASES += \
5167 $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service
5168
5169nodist_pkgsysconf_DATA += \
5170 src/resolve/resolved.conf
5171
4d1cf1e2
LP
5172libnss_resolve_la_SOURCES = \
5173 src/nss-resolve/nss-resolve.sym \
5174 src/nss-resolve/nss-resolve.c
5175
5176libnss_resolve_la_LDFLAGS = \
5177 $(AM_LDFLAGS) \
5178 -module \
5179 -export-dynamic \
5180 -avoid-version \
5181 -shared \
5182 -shrext .so.2 \
5183 -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym
5184
5185libnss_resolve_la_LIBADD = \
8c78165d 5186 libsystemd-internal.la \
e97379de 5187 -ldl
4d1cf1e2
LP
5188
5189lib_LTLIBRARIES += \
5190 libnss_resolve.la
5191
b5eb973b
LP
5192systemd_resolve_SOURCES = \
5193 src/resolve/resolve-tool.c \
6d99904f 5194 $(basic_dns_sources) \
4ac2ca1b
ZJS
5195 src/shared/gcrypt-util.c \
5196 src/shared/gcrypt-util.h
ee3c31bf 5197
b5eb973b 5198nodist_systemd_resolve_SOURCES = \
7263f724
ZJS
5199 src/resolve/dns_type-from-name.h \
5200 src/resolve/dns_type-to-name.h
bdef7319 5201
b5eb973b 5202systemd_resolve_LDADD = \
8c8302a6 5203 libshared.la
bdef7319 5204
6c38b6c0 5205bin_PROGRAMS += \
b5eb973b 5206 systemd-resolve
bdef7319 5207
e81eb287
ZJS
5208dist_bashcompletion_data += \
5209 shell-completion/bash/systemd-resolve
5210
5211dist_zshcompletion_data += \
5212 shell-completion/zsh/_systemd-resolve
5213
2b442ac8 5214tests += \
e49a8dcc
FB
5215 test-dns-packet \
5216 test-resolve-tables \
2b442ac8
LP
5217 test-dnssec
5218
412577e3
LP
5219manual_tests += \
5220 test-dnssec-complex
5221
6d99904f
ZJS
5222test_resolve_tables_SOURCES = \
5223 src/resolve/test-resolve-tables.c \
5224 src/resolve/dns_type-from-name.h \
5225 src/resolve/dns_type-to-name.h \
5226 $(basic_dns_sources) \
5227 src/shared/test-tables.h
5228
5229test_resolve_tables_LDADD = \
5230 libshared.la
5231
5232test_dns_packet_SOURCES = \
5233 src/resolve/test-dns-packet.c \
5234 $(basic_dns_sources)
5235
fff85dbe
ZJS
5236test_dns_packet_CPPFLAGS = \
5237 $(AM_CPPFLAGS) \
5238 -DRESOLVE_TEST_DIR=\"$(abs_top_srcdir)/src/resolve/test-data\"
5239
6d99904f
ZJS
5240test_dns_packet_LDADD = \
5241 libshared.la
5242
5243EXTRA_DIST += \
5244 src/resolve/test-data/_openpgpkey.fedoraproject.org.pkts \
5245 src/resolve/test-data/fedoraproject.org.pkts \
5246 src/resolve/test-data/gandi.net.pkts \
5247 src/resolve/test-data/google.com.pkts \
5248 src/resolve/test-data/root.pkts \
5249 src/resolve/test-data/sw1a1aa-sw1a2aa-sw1a2ab-sw1a2ac.find.me.uk.pkts \
5250 src/resolve/test-data/teamits.com.pkts \
fa45182e
ZJS
5251 src/resolve/test-data/zbyszek@fedoraproject.org.pkts \
5252 src/resolve/test-data/_443._tcp.fedoraproject.org.pkts \
718af59e
ZJS
5253 src/resolve/test-data/kyhwana.org.pkts \
5254 src/resolve/test-data/fake-caa.pkts
6d99904f 5255
2b442ac8
LP
5256test_dnssec_SOURCES = \
5257 src/resolve/test-dnssec.c \
6d99904f 5258 $(basic_dns_sources)
2b442ac8
LP
5259
5260test_dnssec_LDADD = \
5261 libshared.la
5262
412577e3
LP
5263test_dnssec_complex_SOURCES = \
5264 src/resolve/test-dnssec-complex.c \
5265 src/resolve/dns-type.c \
5266 src/resolve/dns-type.h
5267
5268test_dnssec_complex_LDADD = \
5269 libshared.la
5270
2b442ac8 5271endif
091a364c 5272
955c5010
EV
5273gperf_txt_sources += \
5274 src/resolve/dns_type-list.txt
5275
5276gperf_gperf_sources += \
5277 src/resolve/resolved-gperf.gperf
5278
e37f6d61 5279EXTRA_DIST += \
2b442ac8
LP
5280 units/systemd-resolved.service.m4.in \
5281 src/resolve/resolved.conf.in
e37f6d61 5282
f579559b 5283# ------------------------------------------------------------------------------
3c9317d2 5284if ENABLE_NETWORKD
f579559b
TG
5285rootlibexec_PROGRAMS += \
5286 systemd-networkd
5287
5288systemd_networkd_SOURCES = \
911f4d4d
TG
5289 src/network/networkd.c
5290
5291systemd_networkd_LDADD = \
8c8302a6 5292 libnetworkd-core.la
911f4d4d 5293
5a8bcb67
LP
5294if HAVE_LIBIPTC
5295systemd_networkd_LDADD += \
a095315b 5296 libfirewall.la
5a8bcb67
LP
5297endif
5298
911f4d4d 5299noinst_LTLIBRARIES += \
a095315b 5300 libnetworkd-core.la
911f4d4d 5301
a095315b 5302libnetworkd_core_la_CFLAGS = \
bddfc8af 5303 $(AM_CFLAGS)
679be2a7 5304
a095315b 5305libnetworkd_core_la_SOURCES = \
3a67e927 5306 src/libsystemd-network/network-internal.h \
f579559b 5307 src/network/networkd.h \
0b1831c2 5308 src/network/networkd-link.h \
fc2f9534 5309 src/network/networkd-link.c \
3be1d7e0 5310 src/network/networkd-netdev.h \
52433f6b 5311 src/network/networkd-netdev.c \
fc2f9534 5312 src/network/networkd-netdev-tunnel.h \
3be1d7e0 5313 src/network/networkd-netdev-tunnel.c \
fc2f9534 5314 src/network/networkd-netdev-veth.h \
3be1d7e0 5315 src/network/networkd-netdev-veth.c \
fc2f9534 5316 src/network/networkd-netdev-vxlan.h \
3be1d7e0 5317 src/network/networkd-netdev-vxlan.c \
fc2f9534 5318 src/network/networkd-netdev-vlan.h \
3be1d7e0 5319 src/network/networkd-netdev-vlan.c \
fc2f9534 5320 src/network/networkd-netdev-macvlan.h \
3be1d7e0 5321 src/network/networkd-netdev-macvlan.c \
fc2f9534 5322 src/network/networkd-netdev-ipvlan.h \
c4a5ddc9 5323 src/network/networkd-netdev-ipvlan.c \
fc2f9534 5324 src/network/networkd-netdev-dummy.h \
3be1d7e0 5325 src/network/networkd-netdev-dummy.c \
fc2f9534 5326 src/network/networkd-netdev-tuntap.h \
3be1d7e0 5327 src/network/networkd-netdev-tuntap.c \
fc2f9534 5328 src/network/networkd-netdev-bond.h \
3be1d7e0 5329 src/network/networkd-netdev-bond.c \
fc2f9534 5330 src/network/networkd-netdev-bridge.h \
3be1d7e0 5331 src/network/networkd-netdev-bridge.c \
e331e246 5332 src/network/networkd-link-bus.c \
b22d8a00 5333 src/network/networkd-ipv4ll.c \
3c9b8860 5334 src/network/networkd-dhcp4.c \
5c79bd79 5335 src/network/networkd-dhcp6.c \
a13c50e7 5336 src/network/networkd-ndisc.c \
fc2f9534 5337 src/network/networkd-network.h \
f579559b 5338 src/network/networkd-network.c \
3175fcde 5339 src/network/networkd-network-bus.c \
fc2f9534 5340 src/network/networkd-address.h \
f579559b 5341 src/network/networkd-address.c \
fc2f9534 5342 src/network/networkd-route.h \
f579559b 5343 src/network/networkd-route.c \
11bf3cce 5344 src/network/networkd-manager.c \
e331e246 5345 src/network/networkd-manager-bus.c \
fc2f9534 5346 src/network/networkd-fdb.h \
b98b483b 5347 src/network/networkd-fdb.c \
fc2f9534
LP
5348 src/network/networkd-address-pool.h \
5349 src/network/networkd-address-pool.c \
5350 src/network/networkd-util.h \
5351 src/network/networkd-util.c
f579559b 5352
a095315b 5353nodist_libnetworkd_core_la_SOURCES = \
c0dda186 5354 src/network/networkd-network-gperf.c \
091a364c 5355 src/network/networkd-netdev-gperf.c
f579559b 5356
a095315b 5357libnetworkd_core_la_LIBADD = \
fe8db0c5 5358 libsystemd-network.la \
a095315b 5359 libshared.la
f579559b 5360
020d5900
TG
5361rootlibexec_PROGRAMS += \
5362 systemd-networkd-wait-online
5363
679be2a7 5364systemd_networkd_wait_online_CFLAGS = \
bddfc8af 5365 $(AM_CFLAGS)
679be2a7 5366
020d5900 5367systemd_networkd_wait_online_SOURCES = \
3a67e927 5368 src/libsystemd-network/network-internal.h \
7de12ae7
TG
5369 src/network/networkd-wait-online.h \
5370 src/network/networkd-wait-online-link.h \
3a67e927 5371 src/network/networkd-wait-online.c \
7de12ae7
TG
5372 src/network/networkd-wait-online-manager.c \
5373 src/network/networkd-wait-online-link.c
3a67e927 5374
020d5900 5375systemd_networkd_wait_online_LDADD = \
d38cbe1b 5376 libsystemd-network.la \
a095315b 5377 libshared.la
020d5900 5378
ee8c4568
LP
5379rootbin_PROGRAMS += \
5380 networkctl
5381
5382networkctl_SOURCES = \
5383 src/network/networkctl.c
5384
5385networkctl_LDADD = \
a095315b 5386 libshared.la \
ee8c4568
LP
5387 libsystemd-network.la
5388
17163897 5389dist_bashcompletion_data += \
e7035a47 5390 shell-completion/bash/networkctl
e7035a47 5391
f579559b 5392test_network_SOURCES = \
911f4d4d 5393 src/network/test-network.c
f579559b
TG
5394
5395test_network_LDADD = \
8c8302a6 5396 libnetworkd-core.la
f579559b 5397
5a8bcb67
LP
5398if HAVE_LIBIPTC
5399test_network_LDADD += \
a095315b 5400 libfirewall.la
5a8bcb67
LP
5401endif
5402
86bbe5bf
ZJS
5403test_network_tables_SOURCES = \
5404 src/network/test-network-tables.c \
5405 src/shared/test-tables.h
5406
5407test_network_tables_LDADD = \
a095315b 5408 libnetworkd-core.la \
86bbe5bf
ZJS
5409 libudev-core.la
5410
6ca5708a
KS
5411if HAVE_LIBIPTC
5412test_network_tables_LDADD += \
a095315b 5413 libfirewall.la
6ca5708a
KS
5414endif
5415
cde93897 5416tests += \
86bbe5bf
ZJS
5417 test-network \
5418 test-network-tables
f579559b 5419
36c95795
ZJS
5420dist_systemunit_DATA += \
5421 units/systemd-networkd.socket
5422
2dcf7ec6
TG
5423nodist_systemunit_DATA += \
5424 units/systemd-networkd.service \
5425 units/systemd-networkd-wait-online.service
5426
e331e246
TG
5427dist_systemunit_DATA_busnames += \
5428 units/org.freedesktop.network1.busname
5429
5430dist_dbussystemservice_DATA += \
5431 src/network/org.freedesktop.network1.service
5432
5433dist_dbuspolicy_DATA += \
5434 src/network/org.freedesktop.network1.conf
5435
2dcf7ec6 5436GENERAL_ALIASES += \
5544ee85 5437 $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \
2dcf7ec6 5438 $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \
bfa501e1 5439 $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service
2dcf7ec6 5440
23cb977a
TG
5441SYSTEM_UNIT_ALIASES += \
5442 systemd-networkd.service dbus-org.freedesktop.network1.service
5443
5444BUSNAMES_TARGET_WANTS += \
5445 org.freedesktop.network1.busname
5446
f4747733
EV
5447endif
5448
9e4ded30 5449gperf_gperf_sources += \
c0dda186 5450 src/network/networkd-network-gperf.gperf \
9e4ded30
ZJS
5451 src/network/networkd-netdev-gperf.gperf
5452
5453EXTRA_DIST += \
b5acb956 5454 units/systemd-networkd.service.m4.in \
4ddb85b1
MP
5455 units/systemd-networkd-wait-online.service.in \
5456 test/networkd-test.py
f579559b 5457
48d437bb
KS
5458# ------------------------------------------------------------------------------
5459if ENABLE_LOGIND
5460systemd_logind_SOURCES = \
5461 src/login/logind.c \
a8b409db
ZJS
5462 src/login/logind.h
5463
5464nodist_systemd_logind_SOURCES = \
5465 src/login/logind-gperf.c
5466
a8b409db 5467systemd_logind_LDADD = \
a095315b 5468 liblogind-core.la
a8b409db 5469
a095315b 5470liblogind_core_la_SOURCES = \
2b3ab29d 5471 src/login/logind-core.c \
48d437bb 5472 src/login/logind-device.c \
69dd4165 5473 src/login/logind-device.h \
069cfc85
LP
5474 src/login/logind-button.c \
5475 src/login/logind-button.h \
23406ce5
LP
5476 src/login/logind-action.c \
5477 src/login/logind-action.h \
48d437bb 5478 src/login/logind-seat.c \
69dd4165 5479 src/login/logind-seat.h \
48d437bb 5480 src/login/logind-session.c \
69dd4165 5481 src/login/logind-session.h \
118ecf32
DH
5482 src/login/logind-session-device.c \
5483 src/login/logind-session-device.h \
48d437bb 5484 src/login/logind-user.c \
69dd4165 5485 src/login/logind-user.h \
f8e2fb7b
LP
5486 src/login/logind-inhibit.c \
5487 src/login/logind-inhibit.h \
718db961 5488 src/login/logind-dbus.c \
69dd4165
KS
5489 src/login/logind-session-dbus.c \
5490 src/login/logind-seat-dbus.c \
48d437bb 5491 src/login/logind-user-dbus.c \
e2fa5721 5492 src/login/logind-utmp.c \
58dfc42e 5493 src/login/logind-acl.h
8e274523 5494
a095315b 5495liblogind_core_la_LIBADD = \
a095315b 5496 libshared.la
78b2e3a6 5497
2b3ab29d 5498if HAVE_ACL
a095315b 5499liblogind_core_la_SOURCES += \
2b3ab29d 5500 src/login/logind-acl.c
2b3ab29d
ZJS
5501endif
5502
a8b409db 5503noinst_LTLIBRARIES += \
a095315b 5504 liblogind-core.la
addab137 5505
48d437bb 5506rootlibexec_PROGRAMS += \
ea24d8d1 5507 systemd-logind
48d437bb 5508
169c4f65 5509loginctl_SOURCES = \
48d437bb 5510 src/login/loginctl.c \
8b169c0f 5511 src/login/sysfs-show.h \
f33d3ec1 5512 src/login/sysfs-show.c
139be57d 5513
169c4f65 5514loginctl_LDADD = \
a095315b 5515 libshared.la
7e4249b9 5516
48d437bb 5517rootbin_PROGRAMS += \
169c4f65
LP
5518 loginctl
5519
17163897 5520dist_bashcompletion_data += \
d611dadc
MB
5521 shell-completion/bash/loginctl
5522
17163897 5523dist_zshcompletion_data += \
67e654f8
WG
5524 shell-completion/zsh/_loginctl \
5525 shell-completion/zsh/_systemd-inhibit
799d54be 5526
eecd1362
LP
5527systemd_inhibit_SOURCES = \
5528 src/login/inhibit.c
5529
eecd1362 5530systemd_inhibit_LDADD = \
a095315b 5531 libshared.la
eecd1362
LP
5532
5533rootbin_PROGRAMS += \
5534 systemd-inhibit
5535
48d437bb 5536test_login_SOURCES = \
58dfc42e 5537 src/libsystemd/sd-login/test-login.c
48d437bb
KS
5538
5539test_login_LDADD = \
a095315b 5540 libshared.la
4a2a8b5a 5541
35375afe
ZJS
5542test_login_shared_SOURCES = \
5543 src/login/test-login-shared.c
5544
5545test_login_shared_LDADD = \
a095315b 5546 libshared.la
35375afe 5547
f8e2fb7b
LP
5548test_inhibit_SOURCES = \
5549 src/login/test-inhibit.c
5550
5551test_inhibit_LDADD = \
a095315b 5552 libshared.la
f8e2fb7b 5553
a8b409db
ZJS
5554test_login_tables_SOURCES = \
5555 src/login/test-login-tables.c
5556
a8b409db 5557test_login_tables_LDADD = \
a095315b 5558 liblogind-core.la
a8b409db 5559
cee22bd3 5560manual_tests += \
f8e2fb7b
LP
5561 test-login \
5562 test-inhibit
490aed58 5563
a8b409db 5564tests += \
35375afe
ZJS
5565 test-login-tables \
5566 test-login-shared
a8b409db 5567
48d437bb
KS
5568if HAVE_PAM
5569pam_systemd_la_SOURCES = \
e09c69d9 5570 src/login/pam_systemd.sym \
dfb0c6cc 5571 src/login/pam_systemd.c
22be093f 5572
48d437bb
KS
5573pam_systemd_la_CFLAGS = \
5574 $(AM_CFLAGS) \
aac7c5ed 5575 $(PAM_CFLAGS)
22be093f 5576
48d437bb 5577pam_systemd_la_LDFLAGS = \
f7b6a32e 5578 $(AM_LDFLAGS) \
48d437bb
KS
5579 -module \
5580 -export-dynamic \
5581 -avoid-version \
5582 -shared \
e09c69d9 5583 -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym
48d437bb
KS
5584
5585pam_systemd_la_LIBADD = \
a095315b 5586 libshared.la \
b7739c77 5587 $(PAM_LIBS)
22be093f 5588
48d437bb
KS
5589pamlib_LTLIBRARIES = \
5590 pam_systemd.la
5c390a4a
ZJS
5591
5592dist_pamconf_DATA = \
5593 src/login/systemd-user
83e7d885 5594
a13cff19
KS
5595EXTRA_DIST += \
5596 src/login/systemd-user.m4
48d437bb 5597endif
22be093f 5598
48d437bb 5599nodist_systemunit_DATA += \
ea24d8d1 5600 units/systemd-logind.service
ac34b3af
ZJS
5601
5602dist_systemunit_DATA += \
36e46fe9
MB
5603 units/user.slice
5604
5605dist_systemunit_DATA_busnames += \
cde360cd 5606 units/org.freedesktop.login1.busname
88213476 5607
48d437bb
KS
5608dist_dbussystemservice_DATA += \
5609 src/login/org.freedesktop.login1.service
88213476 5610
48d437bb
KS
5611dist_dbuspolicy_DATA += \
5612 src/login/org.freedesktop.login1.conf
88213476 5613
48d437bb 5614dist_pkgsysconf_DATA += \
18b754d3 5615 src/login/logind.conf
a8f11321 5616
299031ca
BK
5617polkitpolicy_files += \
5618 src/login/org.freedesktop.login1.policy
10e87ee7 5619
6ff39241
ZJS
5620INSTALL_DIRS += \
5621 $(systemdstatedir)
5622
5623MULTI_USER_TARGET_WANTS += \
ea24d8d1 5624 systemd-logind.service
6ff39241 5625
91e8651b
ZJS
5626SYSTEM_UNIT_ALIASES += \
5627 systemd-logind.service dbus-org.freedesktop.login1.service
490aed58 5628
cde360cd
LP
5629BUSNAMES_TARGET_WANTS += \
5630 org.freedesktop.login1.busname
5631
48d437bb 5632dist_udevrules_DATA += \
cc093337 5633 src/login/70-uaccess.rules \
069cfc85 5634 src/login/70-power-switch.rules
131a4dcf
KS
5635
5636nodist_udevrules_DATA += \
d7e1c95e 5637 src/login/71-seat.rules \
131a4dcf 5638 src/login/73-seat-late.rules
114a50f8 5639
299031ca
BK
5640endif
5641
5642polkitpolicy_in_files += \
5643 src/login/org.freedesktop.login1.policy.in
5644
9e4ded30
ZJS
5645gperf_gperf_sources += \
5646 src/login/logind-gperf.gperf
5647
48d437bb 5648EXTRA_DIST += \
d7e1c95e 5649 src/login/71-seat.rules.in \
131a4dcf 5650 src/login/73-seat-late.rules.in \
ea24d8d1 5651 units/systemd-logind.service.in
48d437bb 5652
48d437bb 5653# ------------------------------------------------------------------------------
83e7d885
ZJS
5654if HAVE_PAM
5655
5656systemd_user_sessions_SOURCES = \
5657 src/user-sessions/user-sessions.c
5658
5659systemd_user_sessions_LDADD = \
a095315b 5660 libshared.la
83e7d885
ZJS
5661
5662rootlibexec_PROGRAMS += \
5663 systemd-user-sessions
5664
5665nodist_systemunit_DATA += \
5666 units/systemd-user-sessions.service
5667
83e7d885
ZJS
5668MULTI_USER_TARGET_WANTS += \
5669 systemd-user-sessions.service
5670
5671endif
5672
e37f6d61
MP
5673EXTRA_DIST += \
5674 units/systemd-user-sessions.service.in
5675
83e7d885 5676# ------------------------------------------------------------------------------
2c8849ad
KS
5677EXTRA_DIST += \
5678 test/Makefile \
5679 test/README.testsuite \
5680 test/TEST-01-BASIC \
5681 test/TEST-01-BASIC/Makefile \
5682 test/TEST-01-BASIC/test.sh \
5683 test/TEST-02-CRYPTSETUP \
5684 test/TEST-02-CRYPTSETUP/Makefile \
5685 test/TEST-02-CRYPTSETUP/test.sh \
5686 test/TEST-03-JOBS \
5687 test/TEST-03-JOBS/Makefile \
5688 test/TEST-03-JOBS/test-jobs.sh \
5689 test/TEST-03-JOBS/test.sh \
1c36b4a7
EV
5690 test/TEST-04-JOURNAL/Makefile \
5691 test/TEST-04-JOURNAL/test-journal.sh \
5692 test/TEST-04-JOURNAL/test.sh \
68a8f177
EV
5693 test/TEST-05-RLIMITS/Makefile \
5694 test/TEST-05-RLIMITS/test-rlimits.sh \
5695 test/TEST-05-RLIMITS/test.sh \
586bedd4
EV
5696 test/TEST-06-SELINUX/Makefile \
5697 test/TEST-06-SELINUX/test-selinux-checks.sh \
5698 test/TEST-06-SELINUX/test.sh \
5699 test/TEST-06-SELINUX/systemd_test.te \
5700 test/TEST-06-SELINUX/systemd_test.if \
09f6f45a
EV
5701 test/TEST-07-ISSUE-1981/Makefile \
5702 test/TEST-07-ISSUE-1981/test-segfault.sh \
5703 test/TEST-07-ISSUE-1981/test.sh \
2c8849ad
KS
5704 test/test-functions
5705
5706EXTRA_DIST += \
5707 test/loopy2.service \
5708 test/loopy3.service \
5709 test/loopy4.service \
5710 test/loopy.service \
5711 test/loopy.service.d \
5712 test/loopy.service.d/compat.conf
83e7d885 5713
8d7e170a 5714# ------------------------------------------------------------------------------
4e7b3c20
ZJS
5715substitutions = \
5716 '|rootlibexecdir=$(rootlibexecdir)|' \
5717 '|rootbindir=$(rootbindir)|' \
5718 '|bindir=$(bindir)|' \
5719 '|SYSTEMCTL=$(rootbindir)/systemctl|' \
5720 '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \
5721 '|pkgsysconfdir=$(pkgsysconfdir)|' \
5722 '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \
5723 '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \
5724 '|pkgdatadir=$(pkgdatadir)|' \
5725 '|systemunitdir=$(systemunitdir)|' \
5726 '|userunitdir=$(userunitdir)|' \
5727 '|systempresetdir=$(systempresetdir)|' \
5728 '|userpresetdir=$(userpresetdir)|' \
5729 '|udevhwdbdir=$(udevhwdbdir)|' \
5730 '|udevrulesdir=$(udevrulesdir)|' \
5731 '|catalogdir=$(catalogdir)|' \
5732 '|tmpfilesdir=$(tmpfilesdir)|' \
1b992147 5733 '|sysusersdir=$(sysusersdir)|' \
4e7b3c20 5734 '|sysctldir=$(sysctldir)|' \
d267e69d
ZJS
5735 '|systemgeneratordir=$(systemgeneratordir)|' \
5736 '|usergeneratordir=$(usergeneratordir)|' \
ad95fd1d 5737 '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \
4e7b3c20
ZJS
5738 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
5739 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
5740 '|PACKAGE_URL=$(PACKAGE_URL)|' \
952d97ed 5741 '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \
ef5bfcf6 5742 '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \
4e7b3c20
ZJS
5743 '|prefix=$(prefix)|' \
5744 '|exec_prefix=$(exec_prefix)|' \
5745 '|libdir=$(libdir)|' \
5746 '|includedir=$(includedir)|' \
5747 '|VERSION=$(VERSION)|' \
5748 '|rootprefix=$(rootprefix)|' \
5749 '|udevlibexecdir=$(udevlibexecdir)|' \
5750 '|SUSHELL=$(SUSHELL)|' \
66b0e0e0 5751 '|SULOGIN=$(SULOGIN)|' \
4e7b3c20
ZJS
5752 '|DEBUGTTY=$(DEBUGTTY)|' \
5753 '|KILL=$(KILL)|' \
edeb68c5 5754 '|KMOD=$(KMOD)|' \
d31dd62b
FB
5755 '|MOUNT_PATH=$(MOUNT_PATH)|' \
5756 '|UMOUNT_PATH=$(UMOUNT_PATH)|' \
3d56f7df 5757 '|MKDIR_P=$(MKDIR_P)|' \
4e7b3c20
ZJS
5758 '|QUOTAON=$(QUOTAON)|' \
5759 '|QUOTACHECK=$(QUOTACHECK)|' \
5760 '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \
5761 '|VARLOGDIR=$(varlogdir)|' \
5762 '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \
5763 '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \
5764 '|PYTHON=$(PYTHON)|' \
2dcf7ec6 5765 '|NTP_SERVERS=$(NTP_SERVERS)|' \
f7dc3ab9 5766 '|DNS_SERVERS=$(DNS_SERVERS)|' \
61ecb465 5767 '|DEFAULT_DNSSEC_MODE=$(DEFAULT_DNSSEC_MODE)|' \
f7dc3ab9 5768 '|systemuidmax=$(SYSTEM_UID_MAX)|' \
f8b5d994 5769 '|systemgidmax=$(SYSTEM_GID_MAX)|' \
d4e85aac
LP
5770 '|TTY_GID=$(TTY_GID)|' \
5771 '|systemsleepdir=$(systemsleepdir)|' \
40af96f6 5772 '|systemshutdowndir=$(systemshutdowndir)|' \
d4e85aac
LP
5773 '|binfmtdir=$(binfmtdir)|' \
5774 '|modulesloaddir=$(modulesloaddir)|'
4e7b3c20 5775
5e6afdd3 5776SED_PROCESS = \
a00e4879 5777 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
4e7b3c20 5778 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
96bd03d5 5779 < $< > $@
70fcff31 5780
dff55e5d 5781units/%: units/%.in
5e6afdd3
LP
5782 $(SED_PROCESS)
5783
dff55e5d 5784man/%: man/%.in
5e6afdd3 5785 $(SED_PROCESS)
f5e04665 5786
dff55e5d 5787sysctl.d/%: sysctl.d/%.in
f5e04665 5788 $(SED_PROCESS)
5e6afdd3 5789
dff55e5d 5790%.pc: %.pc.in
8c6db833
LP
5791 $(SED_PROCESS)
5792
ad95fd1d
ZJS
5793%.conf: %.conf.in
5794 $(SED_PROCESS)
5795
873e4133 5796src/core/%.systemd: src/core/%.systemd.in
590f18a2
LP
5797 $(SED_PROCESS)
5798
dff55e5d 5799src/%.policy.in: src/%.policy.in.in
25705583
LP
5800 $(SED_PROCESS)
5801
c0a67aef
ZJS
5802shell-completion/%: shell-completion/%.in
5803 $(SED_PROCESS)
5804
dff55e5d 5805%.rules: %.rules.in
0b191e60
LP
5806 $(SED_PROCESS)
5807
e8af6973
LP
5808%.conf: %.conf.in
5809 $(SED_PROCESS)
5810
dff55e5d 5811%.sh: %.sh.in
3e214785
KS
5812 $(SED_PROCESS)
5813 $(AM_V_GEN)chmod +x $@
5814
f975e971 5815src/%.c: src/%.gperf
bd923ff2 5816 $(AM_V_at)$(MKDIR_P) $(dir $@)
c8503a3e 5817 $(AM_V_GPERF)$(GPERF) < $< > $@
f975e971 5818
f3967584 5819src/%: src/%.m4 $(top_builddir)/config.status
bd923ff2 5820 $(AM_V_at)$(MKDIR_P) $(dir $@)
ebea41b8 5821 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
f975e971 5822
f3967584 5823sysusers.d/%: sysusers.d/%.m4 $(top_builddir)/config.status
5a16bc26
ŁS
5824 $(AM_V_at)$(MKDIR_P) $(dir $@)
5825 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5826
f3967584 5827tmpfiles.d/%: tmpfiles.d/%.m4 $(top_builddir)/config.status
aeb50ff0
TG
5828 $(AM_V_at)$(MKDIR_P) $(dir $@)
5829 $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@
5830
5831
f3967584 5832units/%: units/%.m4 $(top_builddir)/config.status
4acbce79 5833 $(AM_V_at)$(MKDIR_P) $(dir $@)
38936e3c 5834 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@
5e6afdd3 5835
f3967584 5836units/user/%: units/user/%.m4 $(top_builddir)/config.status
4acbce79 5837 $(AM_V_at)$(MKDIR_P) $(dir $@)
38936e3c 5838 $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@
a7b6f8e5 5839
46ba8aae 5840if ENABLE_POLKIT
3ce14249 5841nodist_polkitpolicy_DATA = \
299031ca 5842 $(polkitpolicy_files) \
90ccc3fc 5843 $(polkitpolicy_in_in_files:.policy.in.in=.policy)
46ba8aae 5844endif
90ccc3fc
KS
5845
5846EXTRA_DIST += \
5847 $(polkitpolicy_in_files) \
5848 $(polkitpolicy_in_in_files)
5849
2a4b7e7b 5850# ------------------------------------------------------------------------------
0689798a 5851man/custom-entities.ent: configure.ac
1a13e31d
ZJS
5852 $(AM_V_GEN)$(MKDIR_P) $(dir $@)
5853 $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \
21ac6ff1 5854 printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \
1a13e31d
ZJS
5855 > $@ # '
5856
0689798a 5857CLEANFILES += \
1a13e31d
ZJS
5858 man/custom-entities.ent
5859
c6365917
LP
5860XSLTPROC_FLAGS = \
5861 --nonet \
21ac6ff1 5862 --xinclude \
7c1d34c5 5863 --stringparam man.output.quietly 1 \
e362b372 5864 --stringparam funcsynopsis.style ansi \
e362b372 5865 --stringparam man.authors.section.enabled 0 \
702f64b9 5866 --stringparam man.copyright.section.enabled 0 \
1a13e31d
ZJS
5867 --stringparam systemd.version $(VERSION) \
5868 --path '$(builddir)/man:$(srcdir)/man'
c6365917 5869
ce245c84 5870XSLT = $(if $(XSLTPROC), $(XSLTPROC), xsltproc)
9f2c5942 5871XSLTPROC_PROCESS_MAN = \
ce245c84 5872 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $<
d1ab0ca0 5873
9f2c5942 5874XSLTPROC_PROCESS_HTML = \
ce245c84 5875 $(AM_V_XSLT)$(XSLT) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $<
d1ab0ca0 5876
1a13e31d 5877man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent
f9378423
LP
5878 $(XSLTPROC_PROCESS_MAN)
5879
1a13e31d 5880man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent
359957ee
LP
5881 $(XSLTPROC_PROCESS_MAN)
5882
1a13e31d 5883man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent
9f2c5942
LP
5884 $(XSLTPROC_PROCESS_MAN)
5885
1a13e31d 5886man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent
9f2c5942
LP
5887 $(XSLTPROC_PROCESS_MAN)
5888
1a13e31d 5889man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent
f9378423
LP
5890 $(XSLTPROC_PROCESS_MAN)
5891
1a13e31d 5892man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent
9f2c5942 5893 $(XSLTPROC_PROCESS_HTML)
87cfe600
ZJS
5894
5895define html-alias
78316212 5896 $(AM_V_LN)$(LN_S) -f $(notdir $<) $@
87cfe600
ZJS
5897endef
5898
4afb5c73
ZJS
5899EXTRA_DIST += \
5900 man/custom-html.xsl \
5901 man/custom-man.xsl
5902
2a4b7e7b 5903# ------------------------------------------------------------------------------
0ce8860a
LP
5904if HAVE_SYSV_COMPAT
5905sysvinit_DATA = \
5906 docs/sysvinit/README
5907
5908varlog_DATA = \
5909 docs/var-log/README
5910
5911docs/sysvinit/README: docs/sysvinit/README.in
5912 $(SED_PROCESS)
5913
5914docs/var-log/README: docs/var-log/README.in
5915 $(SED_PROCESS)
5916
5b4882b6
KS
5917CLEANFILES += \
5918 docs/sysvinit/README \
5919 docs/var-log/README
0ce8860a
LP
5920endif
5921
52edb228
ZJS
5922EXTRA_DIST += \
5923 docs/sysvinit/README.in \
5924 docs/var-log/README.in
5925
6ff39241 5926SOCKETS_TARGET_WANTS += \
d6b07ef7 5927 systemd-initctl.socket
6ff39241 5928
37161c51 5929if HAVE_UTMP
245d345f 5930if HAVE_SYSV_COMPAT
d5d8429a 5931MULTI_USER_TARGET_WANTS += \
6ff39241 5932 systemd-update-utmp-runlevel.service
d5d8429a 5933GRAPHICAL_TARGET_WANTS += \
6ff39241 5934 systemd-update-utmp-runlevel.service
d5d8429a 5935RESCUE_TARGET_WANTS += \
6ff39241 5936 systemd-update-utmp-runlevel.service
245d345f 5937endif
8ea48dfc 5938
3f92e4b4 5939SYSINIT_TARGET_WANTS += \
37161c51
ERB
5940 systemd-update-utmp.service
5941endif
5942
5943SYSINIT_TARGET_WANTS += \
12e34d9d 5944 systemd-update-done.service
8ea48dfc 5945
6ff39241
ZJS
5946LOCAL_FS_TARGET_WANTS += \
5947 systemd-remount-fs.service \
113b3fc1
LP
5948 tmp.mount \
5949 var-lib-machines.mount
8ea48dfc 5950
6ff39241
ZJS
5951MULTI_USER_TARGET_WANTS += \
5952 getty.target \
83e7d885 5953 systemd-ask-password-wall.path
8ea48dfc 5954
6ff39241
ZJS
5955SYSINIT_TARGET_WANTS += \
5956 dev-hugepages.mount \
5957 dev-mqueue.mount \
5958 sys-kernel-config.mount \
5959 sys-kernel-debug.mount \
5960 sys-fs-fuse-connections.mount \
6ff39241
ZJS
5961 systemd-sysctl.service \
5962 systemd-ask-password-console.path
6351163b 5963
245d345f 5964if HAVE_SYSV_COMPAT
91e8651b
ZJS
5965SYSTEM_UNIT_ALIASES += \
5966 poweroff.target runlevel0.target \
5967 rescue.target runlevel1.target \
5968 multi-user.target runlevel2.target \
5969 multi-user.target runlevel3.target \
5970 multi-user.target runlevel4.target \
5971 graphical.target runlevel5.target \
245d345f
ZJS
5972 reboot.target runlevel6.target
5973endif
2a4b7e7b 5974
245d345f 5975SYSTEM_UNIT_ALIASES += \
91e8651b
ZJS
5976 graphical.target default.target \
5977 reboot.target ctrl-alt-del.target \
5978 getty@.service autovt@.service
5979
5980USER_UNIT_ALIASES += \
5981 $(systemunitdir)/shutdown.target shutdown.target \
5982 $(systemunitdir)/sockets.target sockets.target \
e3d84721
LP
5983 $(systemunitdir)/timers.target timers.target \
5984 $(systemunitdir)/paths.target paths.target \
91e8651b
ZJS
5985 $(systemunitdir)/bluetooth.target bluetooth.target \
5986 $(systemunitdir)/printer.target printer.target \
e06e62f4
LP
5987 $(systemunitdir)/sound.target sound.target \
5988 $(systemunitdir)/smartcard.target smartcard.target
91e8651b 5989
36e46fe9
MB
5990USER_UNIT_ALIASES += \
5991 $(systemunitdir)/busnames.target busnames.target
36e46fe9 5992
91e8651b
ZJS
5993GENERAL_ALIASES += \
5994 $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \
5995 $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \
5996 $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \
e2438b7a 5997 $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service
91e8651b 5998
245d345f 5999if HAVE_SYSV_COMPAT
91e8651b
ZJS
6000INSTALL_DIRS += \
6001 $(systemunitdir)/runlevel1.target.wants \
6002 $(systemunitdir)/runlevel2.target.wants \
6003 $(systemunitdir)/runlevel3.target.wants \
6004 $(systemunitdir)/runlevel4.target.wants \
245d345f
ZJS
6005 $(systemunitdir)/runlevel5.target.wants
6006endif
2a4b7e7b 6007
245d345f 6008INSTALL_DIRS += \
91e8651b
ZJS
6009 $(prefix)/lib/modules-load.d \
6010 $(sysconfdir)/modules-load.d \
9dc670ea
TG
6011 $(prefix)/lib/systemd/network \
6012 $(sysconfdir)/systemd/network \
91e8651b
ZJS
6013 $(prefix)/lib/sysctl.d \
6014 $(sysconfdir)/sysctl.d \
06f42898
KS
6015 $(prefix)/lib/kernel/install.d \
6016 $(sysconfdir)/kernel/install.d \
91e8651b
ZJS
6017 $(systemshutdowndir) \
6018 $(systemsleepdir) \
6019 $(systemgeneratordir) \
6020 $(usergeneratordir) \
6021 \
6022 $(userunitdir) \
6023 $(pkgsysconfdir)/system \
6024 $(pkgsysconfdir)/system/multi-user.target.wants \
6025 $(pkgsysconfdir)/system/getty.target.wants \
6026 $(pkgsysconfdir)/user \
6027 $(dbussessionservicedir) \
6028 $(sysconfdir)/xdg/systemd
cd3f8b7d 6029
48d437bb 6030install-exec-hook: $(INSTALL_EXEC_HOOKS)
2a018e83 6031
4ec24515 6032uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS)
ae446765 6033
91e8651b 6034install-data-hook: $(INSTALL_DATA_HOOKS)
ae446765 6035
3e214785
KS
6036distclean-local: $(DISTCLEAN_LOCAL_HOOKS)
6037
9b281072 6038clean-local: $(CLEAN_LOCAL_HOOKS)
f13b388f 6039 rm -rf $(abs_srcdir)/install-tree
5fe25aff 6040 rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \
f5944e0f 6041 $(abs_srcdir)/hwdb/iab.txt
f13b388f 6042
d1ab0ca0 6043DISTCHECK_CONFIGURE_FLAGS = \
d2d12cd1
LP
6044 --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
6045 --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
6046 --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
db059f1b 6047 --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
4f87c47b 6048 --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
8c6db833 6049 --with-pamlibdir=$$dc_install_base/$(pamlibdir) \
5c390a4a 6050 --with-pamconfdir=$$dc_install_base/$(pamconfdir) \
3e214785 6051 --with-rootprefix=$$dc_install_base \
b20e61f4 6052 --enable-compat-libs
80a5cbac 6053
1d0b59f9
TG
6054if HAVE_SYSV_COMPAT
6055DISTCHECK_CONFIGURE_FLAGS += \
6056 --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \
dee4c244 6057 --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir)
d354315f
ZJS
6058else
6059DISTCHECK_CONFIGURE_FLAGS += \
6060 --with-sysvinit-path= \
6061 --with-sysvrcnd-path=
1d0b59f9
TG
6062endif
6063
2fe9e87a
MP
6064if ENABLE_SPLIT_USR
6065DISTCHECK_CONFIGURE_FLAGS += \
6066 --enable-split-usr
6067else
6068DISTCHECK_CONFIGURE_FLAGS += \
6069 --disable-split-usr
6070endif
6071
7118d2f7 6072.PHONY: dist-check-help
279419b3 6073
78eb158a
ZJS
6074dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
6075 for i in $(abspath $^); do \
6076 if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \
6077 echo "$(basename $$i) --help output is too wide:"; \
6078 $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \
6079 exit 1; \
6080 fi; done
6081
9f700755 6082.PHONY: hwdb-update
796b06c2 6083hwdb-update:
7f8e692b 6084 ( cd $(top_srcdir)/hwdb && \
fd5a4613
KS
6085 wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \
6086 wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \
eee15abc
KS
6087 wget -O ma-large.txt 'http://standards.ieee.org/develop/regauth/oui/oui.txt' && \
6088 wget -O ma-medium.txt 'http://standards.ieee.org/develop/regauth/oui28/mam.txt' && \
6089 wget -O ma-small.txt 'http://standards.ieee.org/develop/regauth/oui36/oui36.txt' && \
796b06c2
KS
6090 ./ids-update.pl )
6091
7ee7b225
DH
6092.PHONY: built-sources
6093built-sources: $(BUILT_SOURCES)
6094
381a662a
KS
6095.PHONY: git-tag
6096git-tag:
6097 git tag -s "v$(VERSION)" -m "systemd $(VERSION)"
6098
6f58d70e
KS
6099.PHONY: git-tar
6100git-tar:
e2b6ad03 6101 git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz
6f58d70e 6102
381a662a 6103www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd
a45f61d7 6104
9f700755 6105.PHONY: doc-sync
8388607b 6106doc-sync: all
202288be 6107 rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/
690804ca 6108
9f700755 6109.PHONY: install-tree
f13b388f
KS
6110install-tree: all
6111 rm -rf $(abs_srcdir)/install-tree
d426d8c8 6112 $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree
f13b388f 6113 tree $(abs_srcdir)/install-tree
cac914e6
LP
6114
6115# Let's run all tests of the test suite, but under valgrind. Let's
70fd7917 6116# exclude perl/python/shell scripts we have in there
9f700755 6117.PHONY: valgrind-tests
cac914e6 6118valgrind-tests: $(TESTS)
70fd7917 6119 $(AM_V_GEN)for f in $(filter-out %.pl %.py, $^); do \
a0846368
ZJS
6120 if file $$f | grep -q shell; then \
6121 echo -e "$${x}Skipping non-binary $$f"; else \
9b55cd56 6122 echo -e "$${x}Running $$f"; \
4854dc58 6123 $(LIBTOOL) --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \
9b55cd56 6124 x="\n\n"; \
a27e222b
LP
6125 done
6126
9173a308 6127exported-%: %
aac5ad0d 6128 $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@
9173a308
ZJS
6129
6130exported: $(addprefix exported-, $(lib_LTLIBRARIES))
b7b85f22 6131 $(AM_V_GEN)sort -u $^ > $@
d23284fa 6132
9f700755 6133.PHONY: check-api-docs
d23284fa 6134check-api-docs: exported man
f1e0c183 6135 $(AM_V_GEN)for symbol in `cat exported` ; do \
a27e222b
LP
6136 if test -f $(builddir)/man/$$symbol.html ; then \
6137 echo " Symbol $$symbol() is documented." ; \
6138 else \
6139 echo "‣ Symbol $$symbol() lacks documentation." ; \
6140 fi ; \
f1e0c183 6141 done
9070a9c1
LP
6142
6143OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES))
6144ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v)))
6145
39da205f 6146undefined defined: $(ALL_OBJECTS)
9070a9c1 6147 $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \
aac5ad0d 6148 $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \
39da205f 6149 done | cut -c 20- | cut -d @ -f 1 | sort -u > $@
9070a9c1
LP
6150
6151CLEANFILES += \
6152 defined \
6153 undefined
6154
9f700755 6155.PHONY: check-api-unused
d23284fa
LP
6156check-api-unused: defined undefined exported
6157 ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2-
f1e0c183 6158
bfb35cfd
KZ
6159.PHONY: check-includes
6160check-includes: $(top_srcdir)/tools/check-includes.pl
6161 $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \
6162 | xargs $(top_srcdir)/tools/check-includes.pl
6163
6164EXTRA_DIST += \
6165 $(top_srcdir)/tools/check-includes.pl
6166
f1e0c183 6167# Stupid test that everything purported to be exported really is
f1e0c183
ZJS
6168define generate-sym-test
6169 $(AM_V_at)$(MKDIR_P) $(dir $@)
4e1b76c2
DR
6170 $(AM_V_at)printf '#include <stdio.h>\n' > $@
6171 $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@
6172 $(AM_V_at)printf 'void* functions[] = {\n' >> $@
6173 $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@
6174 $(AM_V_at)printf '};\nint main(void) {\n' >> $@
6175 $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@
6176 $(AM_V_at)printf 'return 0; }\n' >> $@
f1e0c183
ZJS
6177endef
6178
6bb648a1 6179test-libsystemd-sym.c: \
2b0a23e8 6180 $(top_builddir)/src/libsystemd/libsystemd.sym \
add00dfd
KS
6181 src/systemd/sd-journal.h \
6182 src/systemd/sd-daemon.h \
6183 src/systemd/sd-login.h \
6184 src/systemd/sd-bus.h \
93f1bcf4 6185 src/systemd/sd-utf8.h \
2de30868 6186 src/systemd/sd-resolve.h \
882897af
LP
6187 src/systemd/sd-path.h \
6188 src/systemd/sd-event.h
f1e0c183
ZJS
6189 $(generate-sym-test)
6190
add00dfd
KS
6191test-libudev-sym.c: \
6192 src/libudev/libudev.sym \
6193 src/udev/udev.h
6194 $(generate-sym-test)
6195
2c8849ad 6196nodist_test_libsystemd_sym_SOURCES = \
add00dfd
KS
6197 test-libsystemd-sym.c
6198test_libsystemd_sym_LDADD = \
6199 libsystemd.la
6200
2c8849ad 6201nodist_test_libudev_sym_SOURCES = \
add00dfd 6202 test-libudev-sym.c
9ea28c55
KS
6203test_libudev_sym_CFLAGS = \
6204 $(AM_CFLAGS) \
6205 -Wno-deprecated-declarations
add00dfd
KS
6206test_libudev_sym_LDADD = \
6207 libudev.la
6208
6209BUILT_SOURCES += \
2c8849ad
KS
6210 test-libsystemd-sym.c \
6211 test-libudev-sym.c
6212
6213CLEANFILES += \
6214 test-libsystemd-sym.c \
6215 test-libudev-sym.c
add00dfd
KS
6216
6217tests += \
6218 test-libsystemd-sym \
6219 test-libudev-sym
6220
bd390ae7 6221.PHONY: cppcheck
16f4efb4 6222cppcheck:
43a99a7a 6223 cppcheck --enable=all -q $(top_srcdir)
0d8efe35
DR
6224
6225# Used to extract compile flags for YCM.
6226print-%:
6227 @echo $($*)
43c71255
LP
6228
6229git-contrib:
6230 @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u
2ea8c083
MS
6231
6232EXTRA_DIST += \
6233 tools/gdb-sd_dump_hashmaps.py
3576d631
LP
6234
6235list-keys:
6236 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys
6237
6238add-key:
6239 gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import -