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