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