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