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