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