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