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