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