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