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