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