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