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