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