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