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