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