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