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