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