]>
Commit | Line | Data |
---|---|---|
663996b3 MS |
1 | # -*- Mode: makefile; indent-tabs-mode: t -*- |
2 | # | |
3 | # This file is part of systemd. | |
4 | # | |
5 | # Copyright 2010-2012 Lennart Poettering | |
6 | # Copyright 2010-2012 Kay Sievers | |
7 | # Copyright 2013 Zbigniew Jędrzejewski-Szmek | |
60f067b4 | 8 | # Copyright 2013 David Strauss |
663996b3 MS |
9 | # |
10 | # systemd is free software; you can redistribute it and/or modify it | |
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 | |
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 | |
18 | # Lesser General Public License for more details. | |
19 | # | |
20 | # You should have received a copy of the GNU Lesser General Public License | |
21 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
22 | ||
23 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | |
24 | AM_MAKEFLAGS = --no-print-directory | |
25 | AUTOMAKE_OPTIONS = color-tests parallel-tests | |
26 | ||
5eef597e MP |
27 | GCC_COLORS ?= 'ooh, shiny!' |
28 | export GCC_COLORS | |
29 | ||
663996b3 MS |
30 | SUBDIRS = . po |
31 | ||
32 | # remove targets if the command fails | |
33 | .DELETE_ON_ERROR: | |
34 | ||
35 | # keep intermediate files | |
36 | .SECONDARY: | |
37 | ||
14228c0d MB |
38 | # Keep the test-suite.log |
39 | .PRECIOUS: $(TEST_SUITE_LOG) Makefile | |
40 | ||
5eef597e | 41 | LIBUDEV_CURRENT=7 |
86f210e9 | 42 | LIBUDEV_REVISION=4 |
5eef597e | 43 | LIBUDEV_AGE=6 |
663996b3 | 44 | |
6300502b | 45 | LIBSYSTEMD_CURRENT=12 |
d9dfd233 | 46 | LIBSYSTEMD_REVISION=0 |
6300502b | 47 | LIBSYSTEMD_AGE=12 |
60f067b4 JS |
48 | |
49 | # The following four libraries only exist for compatibility reasons, | |
50 | # their version info should not be bumped anymore | |
14228c0d | 51 | LIBSYSTEMD_LOGIN_CURRENT=9 |
60f067b4 | 52 | LIBSYSTEMD_LOGIN_REVISION=3 |
14228c0d | 53 | LIBSYSTEMD_LOGIN_AGE=9 |
663996b3 MS |
54 | |
55 | LIBSYSTEMD_DAEMON_CURRENT=0 | |
60f067b4 | 56 | LIBSYSTEMD_DAEMON_REVISION=12 |
663996b3 MS |
57 | LIBSYSTEMD_DAEMON_AGE=0 |
58 | ||
59 | LIBSYSTEMD_ID128_CURRENT=0 | |
60f067b4 | 60 | LIBSYSTEMD_ID128_REVISION=28 |
663996b3 MS |
61 | LIBSYSTEMD_ID128_AGE=0 |
62 | ||
14228c0d | 63 | LIBSYSTEMD_JOURNAL_CURRENT=11 |
60f067b4 | 64 | LIBSYSTEMD_JOURNAL_REVISION=5 |
14228c0d | 65 | LIBSYSTEMD_JOURNAL_AGE=11 |
663996b3 MS |
66 | |
67 | # Dirs of external packages | |
68 | dbuspolicydir=@dbuspolicydir@ | |
69 | dbussessionservicedir=@dbussessionservicedir@ | |
70 | dbussystemservicedir=@dbussystemservicedir@ | |
663996b3 | 71 | pamlibdir=@pamlibdir@ |
14228c0d | 72 | pamconfdir=@pamconfdir@ |
e3bff60a | 73 | pkgconfigdatadir=$(datadir)/pkgconfig |
663996b3 MS |
74 | pkgconfiglibdir=$(libdir)/pkgconfig |
75 | polkitpolicydir=$(datadir)/polkit-1/actions | |
76 | bashcompletiondir=@bashcompletiondir@ | |
14228c0d MB |
77 | zshcompletiondir=@zshcompletiondir@ |
78 | rpmmacrosdir=$(prefix)/lib/rpm/macros.d | |
663996b3 MS |
79 | sysvinitdir=$(SYSTEM_SYSVINIT_PATH) |
80 | sysvrcnddir=$(SYSTEM_SYSVRCND_PATH) | |
81 | varlogdir=$(localstatedir)/log | |
82 | systemdstatedir=$(localstatedir)/lib/systemd | |
83 | catalogstatedir=$(systemdstatedir)/catalog | |
e735f4d4 | 84 | xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d |
663996b3 MS |
85 | |
86 | # Our own, non-special dirs | |
87 | pkgsysconfdir=$(sysconfdir)/systemd | |
88 | userunitdir=$(prefix)/lib/systemd/user | |
89 | userpresetdir=$(prefix)/lib/systemd/user-preset | |
90 | tmpfilesdir=$(prefix)/lib/tmpfiles.d | |
e842803a | 91 | sysusersdir=$(prefix)/lib/sysusers.d |
663996b3 | 92 | sysctldir=$(prefix)/lib/sysctl.d |
e842803a MB |
93 | binfmtdir=$(prefix)/lib/binfmt.d |
94 | modulesloaddir=$(prefix)/lib/modules-load.d | |
60f067b4 | 95 | networkdir=$(rootprefix)/lib/systemd/network |
663996b3 MS |
96 | pkgincludedir=$(includedir)/systemd |
97 | systemgeneratordir=$(rootlibexecdir)/system-generators | |
14228c0d | 98 | usergeneratordir=$(prefix)/lib/systemd/user-generators |
663996b3 MS |
99 | systemshutdowndir=$(rootlibexecdir)/system-shutdown |
100 | systemsleepdir=$(rootlibexecdir)/system-sleep | |
101 | systemunitdir=$(rootprefix)/lib/systemd/system | |
102 | systempresetdir=$(rootprefix)/lib/systemd/system-preset | |
103 | udevlibexecdir=$(rootprefix)/lib/udev | |
104 | udevhomedir=$(udevlibexecdir) | |
105 | udevrulesdir=$(udevlibexecdir)/rules.d | |
106 | udevhwdbdir=$(udevlibexecdir)/hwdb.d | |
107 | catalogdir=$(prefix)/lib/systemd/catalog | |
108 | kernelinstalldir = $(prefix)/lib/kernel/install.d | |
e3bff60a MP |
109 | factory_etcdir = $(datadir)/factory/etc |
110 | factory_pamdir = $(datadir)/factory/etc/pam.d | |
111 | bootlibdir = $(prefix)/lib/systemd/boot/efi | |
663996b3 MS |
112 | |
113 | # And these are the special ones for / | |
114 | rootprefix=@rootprefix@ | |
115 | rootbindir=$(rootprefix)/bin | |
116 | rootlibexecdir=$(rootprefix)/lib/systemd | |
117 | ||
663996b3 MS |
118 | EXTRA_DIST = |
119 | BUILT_SOURCES = | |
120 | INSTALL_EXEC_HOOKS = | |
121 | UNINSTALL_EXEC_HOOKS = | |
122 | INSTALL_DATA_HOOKS = | |
123 | UNINSTALL_DATA_HOOKS = | |
124 | DISTCLEAN_LOCAL_HOOKS = | |
125 | CLEAN_LOCAL_HOOKS = | |
126 | pkginclude_HEADERS = | |
127 | noinst_LTLIBRARIES = | |
128 | lib_LTLIBRARIES = | |
129 | include_HEADERS = | |
130 | noinst_DATA = | |
e3bff60a | 131 | pkgconfigdata_DATA = |
663996b3 MS |
132 | pkgconfiglib_DATA = |
133 | polkitpolicy_in_in_files = | |
134 | polkitpolicy_in_files = | |
135 | polkitpolicy_files = | |
136 | dist_udevrules_DATA = | |
137 | nodist_udevrules_DATA = | |
138 | dist_pkgsysconf_DATA = | |
5eef597e | 139 | nodist_pkgsysconf_DATA = |
663996b3 | 140 | dist_dbuspolicy_DATA = |
663996b3 | 141 | dist_dbussystemservice_DATA = |
5eef597e | 142 | dist_systemunit_DATA_busnames = |
e3bff60a | 143 | dist_sysusers_DATA = |
663996b3 MS |
144 | check_PROGRAMS = |
145 | check_DATA = | |
146 | tests= | |
147 | manual_tests = | |
e735f4d4 MP |
148 | TEST_EXTENSIONS = .py |
149 | PY_LOG_COMPILER = $(PYTHON) | |
663996b3 MS |
150 | if ENABLE_TESTS |
151 | noinst_PROGRAMS = $(manual_tests) $(tests) | |
152 | TESTS = $(tests) | |
153 | else | |
154 | noinst_PROGRAMS = | |
155 | TESTS = | |
156 | endif | |
157 | udevlibexec_PROGRAMS = | |
d9dfd233 | 158 | gperf_gperf_sources = |
663996b3 | 159 | |
e3bff60a MP |
160 | in_files = $(filter %.in,$(EXTRA_DIST)) |
161 | in_in_files = $(filter %.in.in, $(in_files)) | |
162 | m4_files = $(filter %.m4,$(EXTRA_DIST) $(in_files:.m4.in=.m4)) | |
163 | ||
164 | CLEANFILES = $(BUILT_SOURCES) \ | |
165 | $(pkgconfigdata_DATA) \ | |
166 | $(pkgconfiglib_DATA) \ | |
167 | $(in_files:.in=) $(in_in_files:.in.in=) \ | |
168 | $(m4_files:.m4=) | |
169 | ||
60f067b4 JS |
170 | .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \ |
171 | $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \ | |
172 | $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS) | |
173 | ||
663996b3 MS |
174 | AM_CPPFLAGS = \ |
175 | -include $(top_builddir)/config.h \ | |
176 | -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \ | |
177 | -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ | |
178 | -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ | |
179 | -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ | |
180 | -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ | |
181 | -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \ | |
182 | -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \ | |
5eef597e | 183 | -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \ |
663996b3 MS |
184 | -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \ |
185 | -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ | |
186 | -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \ | |
86f210e9 | 187 | -DSYSTEMD_FSCK_PATH=\"$(rootlibexecdir)/systemd-fsck\" \ |
663996b3 MS |
188 | -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \ |
189 | -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \ | |
190 | -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ | |
191 | -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \ | |
192 | -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \ | |
193 | -DROOTPREFIX=\"$(rootprefix)\" \ | |
60f067b4 | 194 | -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \ |
14228c0d | 195 | -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \ |
663996b3 MS |
196 | -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \ |
197 | -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \ | |
198 | -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \ | |
199 | -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \ | |
200 | -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \ | |
201 | -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \ | |
e735f4d4 | 202 | -DSYSTEMD_LANGUAGE_FALLBACK_MAP=\"$(pkgdatadir)/language-fallback-map\" \ |
663996b3 MS |
203 | -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \ |
204 | -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ | |
205 | -DQUOTACHECK=\"$(QUOTACHECK)\" \ | |
14228c0d | 206 | -DKEXEC=\"$(KEXEC)\" \ |
e3bff60a MP |
207 | -DMOUNT_PATH=\"$(MOUNT_PATH)\" \ |
208 | -DUMOUNT_PATH=\"$(UMOUNT_PATH)\" \ | |
e842803a MB |
209 | -DLIBDIR=\"$(libdir)\" \ |
210 | -DROOTLIBDIR=\"$(rootlibdir)\" \ | |
e3bff60a | 211 | -DROOTLIBEXECDIR=\"$(rootlibexecdir)\" \ |
5eef597e | 212 | -DTEST_DIR=\"$(abs_top_srcdir)/test\" \ |
663996b3 | 213 | -I $(top_srcdir)/src \ |
86f210e9 MP |
214 | -I $(top_builddir)/src/basic \ |
215 | -I $(top_srcdir)/src/basic \ | |
663996b3 | 216 | -I $(top_srcdir)/src/shared \ |
86f210e9 | 217 | -I $(top_builddir)/src/shared \ |
60f067b4 | 218 | -I $(top_srcdir)/src/network \ |
663996b3 MS |
219 | -I $(top_srcdir)/src/login \ |
220 | -I $(top_srcdir)/src/journal \ | |
e3bff60a | 221 | -I $(top_builddir)/src/journal \ |
60f067b4 JS |
222 | -I $(top_srcdir)/src/timedate \ |
223 | -I $(top_srcdir)/src/timesync \ | |
d9dfd233 | 224 | -I $(top_srcdir)/src/nspawn \ |
60f067b4 | 225 | -I $(top_srcdir)/src/resolve \ |
5eef597e | 226 | -I $(top_builddir)/src/resolve \ |
663996b3 MS |
227 | -I $(top_srcdir)/src/systemd \ |
228 | -I $(top_builddir)/src/core \ | |
229 | -I $(top_srcdir)/src/core \ | |
230 | -I $(top_srcdir)/src/libudev \ | |
231 | -I $(top_srcdir)/src/udev \ | |
60f067b4 | 232 | -I $(top_srcdir)/src/udev/net \ |
14228c0d | 233 | -I $(top_builddir)/src/udev \ |
60f067b4 JS |
234 | -I $(top_srcdir)/src/libsystemd/sd-bus \ |
235 | -I $(top_srcdir)/src/libsystemd/sd-event \ | |
86f210e9 MP |
236 | -I $(top_srcdir)/src/libsystemd/sd-login \ |
237 | -I $(top_srcdir)/src/libsystemd/sd-netlink \ | |
5eef597e | 238 | -I $(top_srcdir)/src/libsystemd/sd-network \ |
e735f4d4 | 239 | -I $(top_srcdir)/src/libsystemd/sd-hwdb \ |
e3bff60a | 240 | -I $(top_srcdir)/src/libsystemd/sd-device \ |
60f067b4 | 241 | -I $(top_srcdir)/src/libsystemd-network \ |
663996b3 MS |
242 | $(OUR_CPPFLAGS) |
243 | ||
244 | AM_CFLAGS = $(OUR_CFLAGS) | |
245 | AM_LDFLAGS = $(OUR_LDFLAGS) | |
246 | ||
247 | # ------------------------------------------------------------------------------ | |
248 | define move-to-rootlibdir | |
249 | if test "$(libdir)" != "$(rootlibdir)"; then \ | |
250 | $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \ | |
251 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \ | |
60f067b4 JS |
252 | rm -f $(DESTDIR)$(libdir)/$$libname && \ |
253 | $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \ | |
663996b3 MS |
254 | mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \ |
255 | fi | |
256 | endef | |
257 | ||
258 | INSTALL_DIRS = | |
259 | ||
663996b3 MS |
260 | SHUTDOWN_TARGET_WANTS = |
261 | LOCAL_FS_TARGET_WANTS = | |
262 | MULTI_USER_TARGET_WANTS = | |
e3bff60a MP |
263 | GRAPHICAL_TARGET_WANTS = |
264 | RESCUE_TARGET_WANTS = | |
663996b3 MS |
265 | SYSINIT_TARGET_WANTS = |
266 | SOCKETS_TARGET_WANTS = | |
60f067b4 | 267 | BUSNAMES_TARGET_WANTS = |
663996b3 | 268 | TIMERS_TARGET_WANTS = |
60f067b4 | 269 | USER_SOCKETS_TARGET_WANTS = |
5eef597e | 270 | USER_DEFAULT_TARGET_WANTS = |
60f067b4 | 271 | USER_BUSNAMES_TARGET_WANTS = |
663996b3 MS |
272 | |
273 | SYSTEM_UNIT_ALIASES = | |
274 | USER_UNIT_ALIASES = | |
663996b3 MS |
275 | GENERAL_ALIASES = |
276 | ||
277 | install-target-wants-hook: | |
60f067b4 JS |
278 | what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants) |
279 | what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants) | |
280 | what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants) | |
e3bff60a MP |
281 | what="$(GRAPHICAL_TARGET_WANTS)" && wants=graphical.target && dir=$(systemunitdir) && $(add-wants) |
282 | what="$(RESCUE_TARGET_WANTS)" && wants=rescue.target && dir=$(systemunitdir) && $(add-wants) | |
60f067b4 JS |
283 | what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants) |
284 | what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants) | |
60f067b4 JS |
285 | what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants) |
286 | what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants) | |
287 | what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants) | |
5eef597e MP |
288 | what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants) |
289 | ||
290 | install-busnames-target-wants-hook: | |
291 | what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants) | |
60f067b4 | 292 | what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants) |
663996b3 MS |
293 | |
294 | define add-wants | |
295 | [ -z "$$what" ] || ( \ | |
60f067b4 | 296 | dir=$(DESTDIR)$$dir/$$wants.wants && \ |
663996b3 MS |
297 | $(MKDIR_P) -m 0755 $$dir && \ |
298 | cd $$dir && \ | |
299 | rm -f $$what && \ | |
300 | for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done ) | |
301 | endef | |
302 | ||
303 | install-directories-hook: | |
304 | $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS)) | |
305 | ||
306 | install-aliases-hook: | |
307 | set -- $(SYSTEM_UNIT_ALIASES) && \ | |
308 | dir=$(systemunitdir) && $(install-aliases) | |
309 | set -- $(USER_UNIT_ALIASES) && \ | |
60f067b4 | 310 | dir=$(userunitdir) && $(install-relative-aliases) |
663996b3 | 311 | set -- $(GENERAL_ALIASES) && \ |
60f067b4 | 312 | dir= && $(install-relative-aliases) |
663996b3 MS |
313 | |
314 | define install-aliases | |
315 | while [ -n "$$1" ]; do \ | |
316 | $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \ | |
317 | rm -f $(DESTDIR)$$dir/$$2 && \ | |
318 | $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \ | |
319 | shift 2 || exit $$?; \ | |
320 | done | |
321 | endef | |
322 | ||
60f067b4 JS |
323 | define install-relative-aliases |
324 | while [ -n "$$1" ]; do \ | |
325 | $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \ | |
326 | rm -f $(DESTDIR)$$dir/$$2 && \ | |
327 | $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \ | |
328 | shift 2 || exit $$?; \ | |
329 | done | |
330 | endef | |
331 | ||
e842803a MB |
332 | install-touch-usr-hook: |
333 | touch -c $(DESTDIR)/$(prefix) | |
334 | ||
663996b3 MS |
335 | INSTALL_EXEC_HOOKS += \ |
336 | install-target-wants-hook \ | |
337 | install-directories-hook \ | |
e842803a MB |
338 | install-aliases-hook \ |
339 | install-touch-usr-hook | |
663996b3 | 340 | |
5eef597e MP |
341 | INSTALL_EXEC_HOOKS += \ |
342 | install-busnames-target-wants-hook | |
5eef597e | 343 | |
663996b3 MS |
344 | # ------------------------------------------------------------------------------ |
345 | AM_V_M4 = $(AM_V_M4_$(V)) | |
346 | AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY)) | |
347 | AM_V_M4_0 = @echo " M4 " $@; | |
348 | ||
349 | AM_V_XSLT = $(AM_V_XSLT_$(V)) | |
350 | AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) | |
351 | AM_V_XSLT_0 = @echo " XSLT " $@; | |
352 | ||
353 | AM_V_GPERF = $(AM_V_GPERF_$(V)) | |
354 | AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY)) | |
355 | AM_V_GPERF_0 = @echo " GPERF " $@; | |
356 | ||
357 | AM_V_LN = $(AM_V_LN_$(V)) | |
358 | AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY)) | |
359 | AM_V_LN_0 = @echo " LN " $@; | |
360 | ||
60f067b4 JS |
361 | AM_V_RM = $(AM_V_RM_$(V)) |
362 | AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY)) | |
363 | AM_V_RM_0 = @echo " RM " $@; | |
364 | ||
663996b3 MS |
365 | # ------------------------------------------------------------------------------ |
366 | rootbin_PROGRAMS = \ | |
367 | systemctl \ | |
368 | systemd-notify \ | |
369 | systemd-ask-password \ | |
370 | systemd-tty-ask-password-agent \ | |
5eef597e MP |
371 | systemd-machine-id-setup \ |
372 | systemd-escape | |
663996b3 MS |
373 | |
374 | bin_PROGRAMS = \ | |
375 | systemd-cgls \ | |
376 | systemd-cgtop \ | |
663996b3 MS |
377 | systemd-nspawn \ |
378 | systemd-detect-virt \ | |
379 | systemd-delta \ | |
14228c0d | 380 | systemd-analyze \ |
e842803a | 381 | systemd-run \ |
e735f4d4 | 382 | systemd-stdio-bridge \ |
e842803a | 383 | systemd-path |
663996b3 MS |
384 | |
385 | dist_bin_SCRIPTS = \ | |
386 | src/kernel-install/kernel-install | |
387 | ||
388 | dist_kernelinstall_SCRIPTS = \ | |
389 | src/kernel-install/50-depmod.install \ | |
390 | src/kernel-install/90-loaderentry.install | |
391 | ||
392 | rootlibexec_PROGRAMS = \ | |
393 | systemd \ | |
394 | systemd-cgroups-agent \ | |
395 | systemd-initctl \ | |
663996b3 MS |
396 | systemd-shutdown \ |
397 | systemd-remount-fs \ | |
398 | systemd-reply-password \ | |
399 | systemd-fsck \ | |
663996b3 MS |
400 | systemd-ac-power \ |
401 | systemd-sysctl \ | |
60f067b4 JS |
402 | systemd-sleep \ |
403 | systemd-bus-proxyd \ | |
e842803a MB |
404 | systemd-socket-proxyd \ |
405 | systemd-update-done | |
663996b3 | 406 | |
5eef597e MP |
407 | if HAVE_UTMP |
408 | rootlibexec_PROGRAMS += \ | |
409 | systemd-update-utmp | |
410 | endif | |
411 | ||
663996b3 MS |
412 | systemgenerator_PROGRAMS = \ |
413 | systemd-getty-generator \ | |
414 | systemd-fstab-generator \ | |
e842803a MB |
415 | systemd-system-update-generator \ |
416 | systemd-debug-generator | |
663996b3 | 417 | |
13d276d0 | 418 | if ENABLE_BASH_COMPLETION |
663996b3 | 419 | dist_bashcompletion_DATA = \ |
60f067b4 | 420 | shell-completion/bash/busctl \ |
663996b3 | 421 | shell-completion/bash/journalctl \ |
663996b3 | 422 | shell-completion/bash/systemd-analyze \ |
60f067b4 JS |
423 | shell-completion/bash/systemd-cat \ |
424 | shell-completion/bash/systemd-cgls \ | |
425 | shell-completion/bash/systemd-cgtop \ | |
426 | shell-completion/bash/systemd-delta \ | |
427 | shell-completion/bash/systemd-detect-virt \ | |
428 | shell-completion/bash/systemd-nspawn \ | |
14228c0d MB |
429 | shell-completion/bash/systemd-run \ |
430 | shell-completion/bash/udevadm \ | |
431 | shell-completion/bash/kernel-install | |
432 | ||
5eef597e MP |
433 | nodist_bashcompletion_DATA = \ |
434 | shell-completion/bash/systemctl | |
13d276d0 | 435 | endif |
5eef597e | 436 | |
13d276d0 | 437 | if ENABLE_ZSH_COMPLETION |
14228c0d | 438 | dist_zshcompletion_DATA = \ |
fb183854 | 439 | shell-completion/zsh/_busctl \ |
14228c0d MB |
440 | shell-completion/zsh/_journalctl \ |
441 | shell-completion/zsh/_udevadm \ | |
442 | shell-completion/zsh/_kernel-install \ | |
443 | shell-completion/zsh/_systemd-nspawn \ | |
444 | shell-completion/zsh/_systemd-analyze \ | |
60f067b4 | 445 | shell-completion/zsh/_systemd-run \ |
14228c0d | 446 | shell-completion/zsh/_sd_hosts_or_user_at_host \ |
5eef597e MP |
447 | shell-completion/zsh/_sd_outputmodes \ |
448 | shell-completion/zsh/_sd_unit_files \ | |
14228c0d MB |
449 | shell-completion/zsh/_systemd-delta \ |
450 | shell-completion/zsh/_systemd | |
663996b3 | 451 | |
5eef597e MP |
452 | nodist_zshcompletion_DATA = \ |
453 | shell-completion/zsh/_systemctl | |
13d276d0 | 454 | endif |
5eef597e MP |
455 | |
456 | EXTRA_DIST += \ | |
457 | shell-completion/bash/systemctl.in \ | |
458 | shell-completion/zsh/_systemctl.in | |
459 | ||
460 | CLEANFILES += \ | |
461 | $(nodist_bashcompletion_DATA) \ | |
462 | $(nodist_zshcompletion_DATA) | |
463 | ||
663996b3 MS |
464 | dist_sysctl_DATA = \ |
465 | sysctl.d/50-default.conf | |
466 | ||
663996b3 MS |
467 | dist_systemunit_DATA = \ |
468 | units/graphical.target \ | |
469 | units/multi-user.target \ | |
663996b3 MS |
470 | units/emergency.target \ |
471 | units/sysinit.target \ | |
472 | units/basic.target \ | |
473 | units/getty.target \ | |
474 | units/halt.target \ | |
475 | units/kexec.target \ | |
6300502b | 476 | units/exit.target \ |
663996b3 MS |
477 | units/local-fs.target \ |
478 | units/local-fs-pre.target \ | |
479 | units/initrd.target \ | |
480 | units/initrd-fs.target \ | |
481 | units/initrd-root-fs.target \ | |
482 | units/remote-fs.target \ | |
483 | units/remote-fs-pre.target \ | |
484 | units/network.target \ | |
60f067b4 | 485 | units/network-pre.target \ |
663996b3 MS |
486 | units/network-online.target \ |
487 | units/nss-lookup.target \ | |
488 | units/nss-user-lookup.target \ | |
663996b3 MS |
489 | units/poweroff.target \ |
490 | units/reboot.target \ | |
491 | units/rescue.target \ | |
492 | units/rpcbind.target \ | |
493 | units/time-sync.target \ | |
494 | units/shutdown.target \ | |
495 | units/final.target \ | |
496 | units/umount.target \ | |
497 | units/sigpwr.target \ | |
498 | units/sleep.target \ | |
499 | units/sockets.target \ | |
500 | units/timers.target \ | |
501 | units/paths.target \ | |
502 | units/suspend.target \ | |
503 | units/swap.target \ | |
14228c0d MB |
504 | units/slices.target \ |
505 | units/system.slice \ | |
506 | units/x-.slice \ | |
663996b3 | 507 | units/systemd-initctl.socket \ |
663996b3 MS |
508 | units/syslog.socket \ |
509 | units/dev-hugepages.mount \ | |
510 | units/dev-mqueue.mount \ | |
511 | units/sys-kernel-config.mount \ | |
512 | units/sys-kernel-debug.mount \ | |
513 | units/sys-fs-fuse-connections.mount \ | |
514 | units/tmp.mount \ | |
e3bff60a | 515 | units/var-lib-machines.mount \ |
663996b3 MS |
516 | units/printer.target \ |
517 | units/sound.target \ | |
518 | units/bluetooth.target \ | |
519 | units/smartcard.target \ | |
663996b3 MS |
520 | units/systemd-ask-password-wall.path \ |
521 | units/systemd-ask-password-console.path \ | |
522 | units/systemd-udevd-control.socket \ | |
523 | units/systemd-udevd-kernel.socket \ | |
524 | units/system-update.target \ | |
e735f4d4 MP |
525 | units/initrd-switch-root.target \ |
526 | units/machines.target | |
5eef597e | 527 | |
5eef597e MP |
528 | dist_systemunit_DATA += \ |
529 | $(dist_systemunit_DATA_busnames) | |
5eef597e MP |
530 | |
531 | dist_systemunit_DATA_busnames += \ | |
532 | units/busnames.target | |
663996b3 MS |
533 | |
534 | nodist_systemunit_DATA = \ | |
535 | units/getty@.service \ | |
536 | units/serial-getty@.service \ | |
537 | units/console-shell.service \ | |
538 | units/console-getty.service \ | |
60f067b4 | 539 | units/container-getty@.service \ |
663996b3 | 540 | units/systemd-initctl.service \ |
663996b3 | 541 | units/systemd-remount-fs.service \ |
663996b3 MS |
542 | units/systemd-ask-password-wall.service \ |
543 | units/systemd-ask-password-console.service \ | |
544 | units/systemd-sysctl.service \ | |
545 | units/emergency.service \ | |
546 | units/rescue.service \ | |
547 | units/user@.service \ | |
663996b3 MS |
548 | units/systemd-suspend.service \ |
549 | units/systemd-halt.service \ | |
550 | units/systemd-poweroff.service \ | |
551 | units/systemd-reboot.service \ | |
552 | units/systemd-kexec.service \ | |
6300502b | 553 | units/systemd-exit.service \ |
663996b3 MS |
554 | units/systemd-fsck@.service \ |
555 | units/systemd-fsck-root.service \ | |
f47781d8 | 556 | units/systemd-machine-id-commit.service \ |
663996b3 MS |
557 | units/systemd-udevd.service \ |
558 | units/systemd-udev-trigger.service \ | |
559 | units/systemd-udev-settle.service \ | |
e735f4d4 | 560 | units/systemd-hwdb-update.service \ |
663996b3 MS |
561 | units/debug-shell.service \ |
562 | units/initrd-parse-etc.service \ | |
563 | units/initrd-cleanup.service \ | |
564 | units/initrd-udevadm-cleanup-db.service \ | |
565 | units/initrd-switch-root.service \ | |
e842803a MB |
566 | units/systemd-nspawn@.service \ |
567 | units/systemd-update-done.service | |
663996b3 | 568 | |
5eef597e MP |
569 | if HAVE_UTMP |
570 | nodist_systemunit_DATA += \ | |
571 | units/systemd-update-utmp.service \ | |
572 | units/systemd-update-utmp-runlevel.service | |
573 | endif | |
574 | ||
663996b3 | 575 | dist_userunit_DATA = \ |
60f067b4 | 576 | units/user/basic.target \ |
663996b3 MS |
577 | units/user/default.target \ |
578 | units/user/exit.target | |
579 | ||
580 | nodist_userunit_DATA = \ | |
581 | units/user/systemd-exit.service | |
582 | ||
e842803a MB |
583 | dist_systempreset_DATA = \ |
584 | system-preset/90-systemd.preset | |
585 | ||
663996b3 MS |
586 | EXTRA_DIST += \ |
587 | units/getty@.service.m4 \ | |
588 | units/serial-getty@.service.m4 \ | |
589 | units/console-shell.service.m4.in \ | |
590 | units/console-getty.service.m4.in \ | |
60f067b4 | 591 | units/container-getty@.service.m4.in \ |
5eef597e | 592 | units/rescue.service.in \ |
663996b3 | 593 | units/systemd-initctl.service.in \ |
663996b3 | 594 | units/systemd-remount-fs.service.in \ |
14228c0d | 595 | units/systemd-update-utmp.service.in \ |
663996b3 | 596 | units/systemd-update-utmp-runlevel.service.in \ |
663996b3 MS |
597 | units/systemd-ask-password-wall.service.in \ |
598 | units/systemd-ask-password-console.service.in \ | |
599 | units/systemd-sysctl.service.in \ | |
600 | units/emergency.service.in \ | |
601 | units/systemd-halt.service.in \ | |
602 | units/systemd-poweroff.service.in \ | |
603 | units/systemd-reboot.service.in \ | |
604 | units/systemd-kexec.service.in \ | |
6300502b | 605 | units/systemd-exit.service.in \ |
663996b3 MS |
606 | units/user/systemd-exit.service.in \ |
607 | units/systemd-fsck@.service.in \ | |
608 | units/systemd-fsck-root.service.in \ | |
f47781d8 MP |
609 | units/systemd-machine-id-commit.service.in \ |
610 | units/user@.service.m4.in \ | |
663996b3 | 611 | units/debug-shell.service.in \ |
663996b3 MS |
612 | units/systemd-suspend.service.in \ |
613 | units/quotaon.service.in \ | |
614 | units/initrd-parse-etc.service.in \ | |
615 | units/initrd-cleanup.service.in \ | |
616 | units/initrd-udevadm-cleanup-db.service.in \ | |
617 | units/initrd-switch-root.service.in \ | |
e842803a MB |
618 | units/systemd-nspawn@.service.in \ |
619 | units/systemd-update-done.service.in | |
663996b3 | 620 | |
663996b3 MS |
621 | if HAVE_SYSV_COMPAT |
622 | nodist_systemunit_DATA += \ | |
623 | units/rc-local.service \ | |
624 | units/halt-local.service | |
625 | ||
626 | systemgenerator_PROGRAMS += \ | |
60f067b4 | 627 | systemd-sysv-generator \ |
663996b3 MS |
628 | systemd-rc-local-generator |
629 | endif | |
630 | ||
631 | EXTRA_DIST += \ | |
86f210e9 | 632 | src/systemctl/systemd-sysv-install.SKELETON \ |
663996b3 MS |
633 | units/rc-local.service.in \ |
634 | units/halt-local.service.in | |
635 | ||
14228c0d MB |
636 | # automake is broken and can't handle files with a dash in front |
637 | # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8 | |
638 | units-install-hook: | |
639 | mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice | |
640 | ||
641 | units-uninstall-hook: | |
642 | rm -f $(DESTDIR)/$(systemunitdir)/-.slice | |
643 | ||
644 | INSTALL_DATA_HOOKS += units-install-hook | |
645 | UNINSTALL_DATA_HOOKS += units-uninstall-hook | |
646 | ||
663996b3 MS |
647 | dist_doc_DATA = \ |
648 | README \ | |
649 | NEWS \ | |
fb183854 | 650 | CODING_STYLE \ |
663996b3 MS |
651 | LICENSE.LGPL2.1 \ |
652 | LICENSE.GPL2 \ | |
60f067b4 JS |
653 | DISTRO_PORTING \ |
654 | src/libsystemd/sd-bus/PORTING-DBUS1 \ | |
655 | src/libsystemd/sd-bus/DIFFERENCES \ | |
7035cd9e MP |
656 | src/libsystemd/sd-bus/GVARIANT-SERIALIZATION |
657 | ||
658 | EXTRA_DIST += \ | |
659 | README.md \ | |
fb183854 MP |
660 | autogen.sh \ |
661 | .dir-locals.el \ | |
662 | .vimrc \ | |
663 | .ycm_extra_conf.py \ | |
664 | .travis.yml \ | |
665 | .mailmap | |
663996b3 MS |
666 | |
667 | @INTLTOOL_POLICY_RULE@ | |
668 | ||
669 | # ------------------------------------------------------------------------------ | |
670 | ||
671 | MANPAGES = | |
672 | MANPAGES_ALIAS = | |
673 | ||
674 | include Makefile-man.am | |
675 | ||
60f067b4 | 676 | .PHONY: man update-man-list |
14228c0d MB |
677 | man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS) |
678 | ||
663996b3 MS |
679 | XML_FILES = \ |
680 | ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} | |
681 | HTML_FILES = \ | |
682 | ${XML_FILES:.xml=.html} | |
683 | HTML_ALIAS = \ | |
684 | ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}} | |
685 | ||
686 | if ENABLE_MANPAGES | |
687 | man_MANS = \ | |
688 | $(MANPAGES) \ | |
689 | $(MANPAGES_ALIAS) | |
690 | ||
691 | noinst_DATA += \ | |
692 | $(HTML_FILES) \ | |
693 | $(HTML_ALIAS) | |
694 | ||
695 | CLEANFILES += \ | |
696 | $(man_MANS) \ | |
697 | $(HTML_FILES) \ | |
698 | $(HTML_ALIAS) | |
699 | ||
700 | docs/html/man: | |
701 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
702 | $(AM_V_LN)$(LN_S) -f ../../man $@ | |
703 | ||
704 | noinst_DATA += \ | |
705 | docs/html/man | |
706 | ||
707 | CLEANFILES += \ | |
708 | docs/html/man | |
709 | ||
710 | if HAVE_PYTHON | |
711 | man/index.html: man/systemd.index.html | |
712 | $(AM_V_LN)$(LN_S) -f systemd.index.html $@ | |
713 | ||
714 | noinst_DATA += \ | |
715 | man/index.html | |
716 | ||
717 | CLEANFILES += \ | |
718 | man/index.html | |
719 | ||
fb183854 | 720 | XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml) |
663996b3 | 721 | NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES)) |
86f210e9 | 722 | SOURCE_XML_FILES = ${patsubst %,$(top_srcdir)/%,$(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))} |
663996b3 | 723 | |
fb183854 MP |
724 | # This target should only be run manually. It recreates Makefile-man.am |
725 | # file in the source directory based on all man/*.xml files. Run it after | |
726 | # adding, removing, or changing the conditional in a man page. | |
727 | update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB) | |
663996b3 MS |
728 | $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp |
729 | $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am | |
730 | @echo "Makefile-man.am has been regenerated" | |
731 | ||
60f067b4 | 732 | man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES) |
663996b3 MS |
733 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
734 | $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^) | |
735 | ||
86f210e9 | 736 | man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py man/custom-entities.ent $(SOURCE_XML_FILES) |
663996b3 | 737 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
86f210e9 | 738 | $(AM_V_GEN)$(PYTHON) $< $@ $(SOURCE_XML_FILES) |
663996b3 MS |
739 | |
740 | CLEANFILES += \ | |
741 | man/systemd.index.xml \ | |
742 | man/systemd.directives.xml | |
743 | ||
fb183854 MP |
744 | EXTRA_DIST += \ |
745 | tools/make-man-rules.py | |
746 | ||
663996b3 MS |
747 | endif |
748 | ||
749 | endif | |
750 | ||
751 | EXTRA_DIST += \ | |
fb183854 | 752 | $(filter-out man/systemd.directives.xml man/systemd.index.xml,$(XML_FILES)) \ |
60f067b4 JS |
753 | tools/make-man-index.py \ |
754 | tools/make-directive-index.py \ | |
86f210e9 | 755 | tools/xml_helper.py \ |
fb183854 | 756 | man/glib-event-glue.c |
663996b3 MS |
757 | |
758 | # ------------------------------------------------------------------------------ | |
759 | noinst_LTLIBRARIES += \ | |
86f210e9 MP |
760 | libbasic.la |
761 | ||
762 | libbasic_la_SOURCES = \ | |
763 | src/basic/missing.h \ | |
764 | src/basic/capability.c \ | |
765 | src/basic/capability.h \ | |
766 | src/basic/conf-files.c \ | |
767 | src/basic/conf-files.h \ | |
768 | src/basic/hostname-util.h \ | |
769 | src/basic/hostname-util.c \ | |
770 | src/basic/unit-name.c \ | |
771 | src/basic/unit-name.h \ | |
772 | src/basic/ioprio.h \ | |
773 | src/basic/securebits.h \ | |
774 | src/basic/special.h \ | |
775 | src/basic/list.h \ | |
776 | src/basic/unaligned.h \ | |
777 | src/basic/macro.h \ | |
778 | src/basic/def.h \ | |
779 | src/basic/sparse-endian.h \ | |
780 | src/basic/refcnt.h \ | |
781 | src/basic/util.c \ | |
782 | src/basic/util.h \ | |
6300502b MP |
783 | src/basic/cpu-set-util.c \ |
784 | src/basic/cpu-set-util.h \ | |
86f210e9 MP |
785 | src/basic/lockfile-util.c \ |
786 | src/basic/lockfile-util.h \ | |
787 | src/basic/path-util.c \ | |
788 | src/basic/path-util.h \ | |
789 | src/basic/time-util.c \ | |
790 | src/basic/time-util.h \ | |
791 | src/basic/locale-util.c \ | |
792 | src/basic/locale-util.h \ | |
793 | src/basic/signal-util.c \ | |
794 | src/basic/signal-util.h \ | |
795 | src/basic/mempool.c \ | |
796 | src/basic/mempool.h \ | |
797 | src/basic/hashmap.c \ | |
798 | src/basic/hashmap.h \ | |
799 | src/basic/siphash24.c \ | |
800 | src/basic/siphash24.h \ | |
801 | src/basic/set.h \ | |
802 | src/basic/ordered-set.h \ | |
7035cd9e MP |
803 | src/basic/bitmap.c \ |
804 | src/basic/bitmap.h \ | |
86f210e9 MP |
805 | src/basic/fdset.c \ |
806 | src/basic/fdset.h \ | |
807 | src/basic/prioq.c \ | |
808 | src/basic/prioq.h \ | |
809 | src/basic/strv.c \ | |
810 | src/basic/strv.h \ | |
811 | src/basic/env-util.c \ | |
812 | src/basic/env-util.h \ | |
813 | src/basic/strbuf.c \ | |
814 | src/basic/strbuf.h \ | |
815 | src/basic/strxcpyx.c \ | |
816 | src/basic/strxcpyx.h \ | |
817 | src/basic/log.c \ | |
818 | src/basic/log.h \ | |
819 | src/basic/bus-label.c \ | |
820 | src/basic/bus-label.h \ | |
821 | src/basic/ratelimit.h \ | |
822 | src/basic/ratelimit.c \ | |
823 | src/basic/exit-status.c \ | |
824 | src/basic/exit-status.h \ | |
825 | src/basic/virt.c \ | |
826 | src/basic/virt.h \ | |
827 | src/basic/smack-util.c \ | |
828 | src/basic/smack-util.h \ | |
829 | src/basic/device-nodes.c \ | |
830 | src/basic/device-nodes.h \ | |
831 | src/basic/utf8.c \ | |
832 | src/basic/utf8.h \ | |
833 | src/basic/gunicode.c \ | |
834 | src/basic/gunicode.h \ | |
835 | src/basic/socket-util.c \ | |
836 | src/basic/socket-util.h \ | |
837 | src/basic/in-addr-util.c \ | |
838 | src/basic/in-addr-util.h \ | |
839 | src/basic/ether-addr-util.h \ | |
840 | src/basic/replace-var.c \ | |
841 | src/basic/replace-var.h \ | |
842 | src/basic/clock-util.c \ | |
843 | src/basic/clock-util.h \ | |
844 | src/basic/calendarspec.c \ | |
845 | src/basic/calendarspec.h \ | |
846 | src/basic/fileio.c \ | |
847 | src/basic/fileio.h \ | |
848 | src/basic/MurmurHash2.c \ | |
849 | src/basic/MurmurHash2.h \ | |
850 | src/basic/mkdir.c \ | |
851 | src/basic/mkdir.h \ | |
852 | src/basic/cgroup-util.c \ | |
853 | src/basic/cgroup-util.h \ | |
854 | src/basic/errno-list.c \ | |
855 | src/basic/errno-list.h \ | |
856 | src/basic/af-list.c \ | |
857 | src/basic/af-list.h \ | |
858 | src/basic/arphrd-list.c \ | |
859 | src/basic/arphrd-list.h \ | |
860 | src/basic/terminal-util.c \ | |
861 | src/basic/terminal-util.h \ | |
862 | src/basic/login-util.h \ | |
863 | src/basic/login-util.c \ | |
864 | src/basic/cap-list.c \ | |
865 | src/basic/cap-list.h \ | |
866 | src/basic/audit.c \ | |
867 | src/basic/audit.h \ | |
868 | src/basic/xml.c \ | |
869 | src/basic/xml.h \ | |
870 | src/basic/json.c \ | |
871 | src/basic/json.h \ | |
86f210e9 MP |
872 | src/basic/barrier.c \ |
873 | src/basic/barrier.h \ | |
874 | src/basic/async.c \ | |
875 | src/basic/async.h \ | |
876 | src/basic/memfd-util.c \ | |
877 | src/basic/memfd-util.h \ | |
878 | src/basic/process-util.c \ | |
879 | src/basic/process-util.h \ | |
880 | src/basic/random-util.c \ | |
881 | src/basic/random-util.h \ | |
882 | src/basic/verbs.c \ | |
883 | src/basic/verbs.h \ | |
884 | src/basic/sigbus.c \ | |
885 | src/basic/sigbus.h \ | |
886 | src/basic/build.h \ | |
887 | src/basic/socket-label.c \ | |
888 | src/basic/label.c \ | |
889 | src/basic/label.h \ | |
890 | src/basic/btrfs-util.c \ | |
891 | src/basic/btrfs-util.h \ | |
892 | src/basic/btrfs-ctree.h \ | |
893 | src/basic/selinux-util.c \ | |
894 | src/basic/selinux-util.h \ | |
895 | src/basic/mkdir-label.c \ | |
896 | src/basic/fileio-label.c \ | |
897 | src/basic/fileio-label.h \ | |
898 | src/basic/rm-rf.c \ | |
899 | src/basic/rm-rf.h \ | |
900 | src/basic/copy.c \ | |
901 | src/basic/copy.h | |
902 | ||
903 | nodist_libbasic_la_SOURCES = \ | |
904 | src/basic/errno-from-name.h \ | |
905 | src/basic/errno-to-name.h \ | |
906 | src/basic/af-from-name.h \ | |
907 | src/basic/af-to-name.h \ | |
908 | src/basic/arphrd-from-name.h \ | |
909 | src/basic/arphrd-to-name.h \ | |
910 | src/basic/cap-from-name.h \ | |
911 | src/basic/cap-to-name.h | |
912 | ||
913 | libbasic_la_CFLAGS = \ | |
914 | $(AM_CFLAGS) \ | |
915 | $(SELINUX_CFLAGS) \ | |
916 | $(CAP_CFLAGS) \ | |
917 | -pthread | |
918 | ||
919 | libbasic_la_LIBADD = \ | |
920 | $(SELINUX_LIBS) \ | |
921 | $(CAP_LIBS) \ | |
922 | -ldl \ | |
923 | -lrt \ | |
924 | -lm | |
925 | ||
926 | # ----------------------------------------------------------------------------- | |
927 | noinst_LTLIBRARIES += \ | |
928 | libshared.la | |
663996b3 | 929 | |
86f210e9 MP |
930 | libshared_la_SOURCES = \ |
931 | src/shared/output-mode.h \ | |
932 | src/shared/gpt.h \ | |
933 | src/shared/udev-util.h \ | |
663996b3 | 934 | src/shared/linux/auto_dev-ioctl.h \ |
60f067b4 | 935 | src/shared/initreq.h \ |
86f210e9 MP |
936 | src/shared/dns-domain.c \ |
937 | src/shared/dns-domain.h \ | |
60f067b4 JS |
938 | src/shared/architecture.c \ |
939 | src/shared/architecture.h \ | |
663996b3 MS |
940 | src/shared/efivars.c \ |
941 | src/shared/efivars.h \ | |
e3bff60a | 942 | src/shared/formats-util.h \ |
e735f4d4 MP |
943 | src/shared/fstab-util.c \ |
944 | src/shared/fstab-util.h \ | |
663996b3 MS |
945 | src/shared/sleep-config.c \ |
946 | src/shared/sleep-config.h \ | |
663996b3 MS |
947 | src/shared/conf-parser.c \ |
948 | src/shared/conf-parser.h \ | |
663996b3 MS |
949 | src/shared/pager.c \ |
950 | src/shared/pager.h \ | |
663996b3 MS |
951 | src/shared/spawn-polkit-agent.c \ |
952 | src/shared/spawn-polkit-agent.h \ | |
60f067b4 JS |
953 | src/shared/apparmor-util.c \ |
954 | src/shared/apparmor-util.h \ | |
955 | src/shared/ima-util.c \ | |
956 | src/shared/ima-util.h \ | |
957 | src/shared/ptyfwd.c \ | |
958 | src/shared/ptyfwd.h \ | |
e842803a | 959 | src/shared/base-filesystem.c \ |
5eef597e | 960 | src/shared/base-filesystem.h \ |
5eef597e MP |
961 | src/shared/uid-range.c \ |
962 | src/shared/uid-range.h \ | |
e735f4d4 | 963 | src/shared/nss-util.h \ |
663996b3 MS |
964 | src/shared/install.c \ |
965 | src/shared/install.h \ | |
966 | src/shared/install-printf.c \ | |
967 | src/shared/install-printf.h \ | |
968 | src/shared/path-lookup.c \ | |
969 | src/shared/path-lookup.h \ | |
970 | src/shared/specifier.c \ | |
86f210e9 | 971 | src/shared/specifier.h \ |
663996b3 | 972 | src/shared/dev-setup.c \ |
e842803a MB |
973 | src/shared/dev-setup.h \ |
974 | src/shared/dropin.c \ | |
975 | src/shared/dropin.h \ | |
f47781d8 MP |
976 | src/shared/condition.c \ |
977 | src/shared/condition.h \ | |
86f210e9 MP |
978 | src/shared/clean-ipc.c \ |
979 | src/shared/clean-ipc.h \ | |
e842803a | 980 | src/shared/generator.h \ |
e735f4d4 | 981 | src/shared/generator.c \ |
86f210e9 MP |
982 | src/shared/acpi-fpdt.h \ |
983 | src/shared/acpi-fpdt.c \ | |
984 | src/shared/boot-timestamps.h \ | |
985 | src/shared/boot-timestamps.c \ | |
986 | src/shared/cgroup-show.c \ | |
987 | src/shared/cgroup-show.h \ | |
988 | src/shared/utmp-wtmp.h \ | |
989 | src/shared/watchdog.c \ | |
990 | src/shared/watchdog.h \ | |
991 | src/shared/spawn-ask-password-agent.c \ | |
992 | src/shared/spawn-ask-password-agent.h \ | |
993 | src/shared/ask-password-api.c \ | |
994 | src/shared/ask-password-api.h \ | |
995 | src/shared/switch-root.h \ | |
996 | src/shared/switch-root.c \ | |
997 | src/shared/import-util.c \ | |
998 | src/shared/import-util.h \ | |
999 | src/shared/sysctl-util.c \ | |
1000 | src/shared/sysctl-util.h \ | |
1001 | src/shared/bus-util.c \ | |
1002 | src/shared/bus-util.h \ | |
1003 | src/shared/logs-show.c \ | |
1004 | src/shared/logs-show.h \ | |
e735f4d4 MP |
1005 | src/shared/machine-image.c \ |
1006 | src/shared/machine-image.h \ | |
e3bff60a | 1007 | src/shared/machine-pool.c \ |
86f210e9 | 1008 | src/shared/machine-pool.h |
663996b3 | 1009 | |
86f210e9 MP |
1010 | if HAVE_UTMP |
1011 | libshared_la_SOURCES += \ | |
1012 | src/shared/utmp-wtmp.c | |
1013 | endif | |
1014 | ||
1015 | if HAVE_SECCOMP | |
1016 | libshared_la_SOURCES += \ | |
1017 | src/shared/seccomp-util.h \ | |
1018 | src/shared/seccomp-util.c | |
1019 | endif | |
1020 | ||
1021 | if HAVE_ACL | |
1022 | libshared_la_SOURCES += \ | |
1023 | src/shared/acl-util.c \ | |
1024 | src/shared/acl-util.h | |
1025 | endif | |
1026 | ||
1027 | libshared_la_CFLAGS = \ | |
663996b3 | 1028 | $(AM_CFLAGS) \ |
86f210e9 MP |
1029 | $(ACL_CFLAGS) \ |
1030 | $(LIBIDN_CFLAGS) \ | |
1031 | $(SECCOMP_CFLAGS) | |
663996b3 | 1032 | |
86f210e9 MP |
1033 | libshared_la_LIBADD = \ |
1034 | libsystemd-internal.la \ | |
1035 | libsystemd-journal-internal.la \ | |
1036 | libudev-internal.la \ | |
1037 | $(ACL_LIBS) \ | |
1038 | $(LIBIDN_LIBS) \ | |
1039 | $(SECCOMP_LIBS) | |
663996b3 | 1040 | |
5eef597e | 1041 | # ----------------------------------------------------------------------------- |
e735f4d4 MP |
1042 | if HAVE_LIBIPTC |
1043 | noinst_LTLIBRARIES += \ | |
86f210e9 | 1044 | libfirewall.la |
e735f4d4 | 1045 | |
86f210e9 MP |
1046 | libfirewall_la_SOURCES = \ |
1047 | src/shared/firewall-util.h \ | |
1048 | src/shared/firewall-util.c | |
e735f4d4 | 1049 | |
86f210e9 | 1050 | libfirewall_la_CFLAGS = \ |
e735f4d4 MP |
1051 | $(AM_CFLAGS) \ |
1052 | $(LIBIPTC_CFLAGS) | |
1053 | ||
86f210e9 | 1054 | libfirewall_la_LIBADD = \ |
e735f4d4 MP |
1055 | $(LIBIPTC_LIBS) |
1056 | endif | |
1057 | ||
1058 | # ----------------------------------------------------------------------------- | |
5eef597e MP |
1059 | if ENABLE_LDCONFIG |
1060 | dist_systemunit_DATA += \ | |
1061 | units/ldconfig.service | |
1062 | ||
1063 | SYSINIT_TARGET_WANTS += \ | |
1064 | ldconfig.service | |
1065 | endif | |
1066 | ||
60f067b4 | 1067 | # ------------------------------------------------------------------------------ |
60f067b4 | 1068 | noinst_LTLIBRARIES += \ |
86f210e9 | 1069 | libcore.la |
663996b3 | 1070 | |
86f210e9 | 1071 | libcore_la_SOURCES = \ |
663996b3 MS |
1072 | src/core/unit.c \ |
1073 | src/core/unit.h \ | |
1074 | src/core/unit-printf.c \ | |
1075 | src/core/unit-printf.h \ | |
1076 | src/core/job.c \ | |
1077 | src/core/job.h \ | |
1078 | src/core/manager.c \ | |
1079 | src/core/manager.h \ | |
1080 | src/core/transaction.c \ | |
1081 | src/core/transaction.h \ | |
1082 | src/core/load-fragment.c \ | |
1083 | src/core/load-fragment.h \ | |
1084 | src/core/service.c \ | |
1085 | src/core/service.h \ | |
60f067b4 JS |
1086 | src/core/socket.c \ |
1087 | src/core/socket.h \ | |
1088 | src/core/busname.c \ | |
1089 | src/core/busname.h \ | |
5eef597e MP |
1090 | src/core/bus-endpoint.c \ |
1091 | src/core/bus-endpoint.h \ | |
e735f4d4 MP |
1092 | src/core/bus-policy.c \ |
1093 | src/core/bus-policy.h \ | |
663996b3 MS |
1094 | src/core/target.c \ |
1095 | src/core/target.h \ | |
1096 | src/core/snapshot.c \ | |
1097 | src/core/snapshot.h \ | |
60f067b4 JS |
1098 | src/core/device.c \ |
1099 | src/core/device.h \ | |
1100 | src/core/mount.c \ | |
1101 | src/core/mount.h \ | |
1102 | src/core/automount.c \ | |
1103 | src/core/automount.h \ | |
1104 | src/core/swap.c \ | |
1105 | src/core/swap.h \ | |
663996b3 MS |
1106 | src/core/timer.c \ |
1107 | src/core/timer.h \ | |
1108 | src/core/path.c \ | |
1109 | src/core/path.h \ | |
14228c0d MB |
1110 | src/core/slice.c \ |
1111 | src/core/slice.h \ | |
1112 | src/core/scope.c \ | |
1113 | src/core/scope.h \ | |
663996b3 MS |
1114 | src/core/load-dropin.c \ |
1115 | src/core/load-dropin.h \ | |
1116 | src/core/execute.c \ | |
1117 | src/core/execute.h \ | |
1118 | src/core/kill.c \ | |
1119 | src/core/kill.h \ | |
1120 | src/core/dbus.c \ | |
1121 | src/core/dbus.h \ | |
1122 | src/core/dbus-manager.c \ | |
1123 | src/core/dbus-manager.h \ | |
1124 | src/core/dbus-unit.c \ | |
1125 | src/core/dbus-unit.h \ | |
1126 | src/core/dbus-job.c \ | |
1127 | src/core/dbus-job.h \ | |
1128 | src/core/dbus-service.c \ | |
1129 | src/core/dbus-service.h \ | |
1130 | src/core/dbus-socket.c \ | |
1131 | src/core/dbus-socket.h \ | |
60f067b4 JS |
1132 | src/core/dbus-busname.c \ |
1133 | src/core/dbus-busname.h \ | |
663996b3 MS |
1134 | src/core/dbus-target.c \ |
1135 | src/core/dbus-target.h \ | |
60f067b4 JS |
1136 | src/core/dbus-snapshot.c \ |
1137 | src/core/dbus-snapshot.h \ | |
1138 | src/core/dbus-device.c \ | |
1139 | src/core/dbus-device.h \ | |
663996b3 MS |
1140 | src/core/dbus-mount.c \ |
1141 | src/core/dbus-mount.h \ | |
1142 | src/core/dbus-automount.c \ | |
1143 | src/core/dbus-automount.h \ | |
1144 | src/core/dbus-swap.c \ | |
1145 | src/core/dbus-swap.h \ | |
60f067b4 JS |
1146 | src/core/dbus-timer.c \ |
1147 | src/core/dbus-timer.h \ | |
14228c0d MB |
1148 | src/core/dbus-path.c \ |
1149 | src/core/dbus-path.h \ | |
1150 | src/core/dbus-slice.c \ | |
1151 | src/core/dbus-slice.h \ | |
1152 | src/core/dbus-scope.c \ | |
1153 | src/core/dbus-scope.h \ | |
663996b3 MS |
1154 | src/core/dbus-execute.c \ |
1155 | src/core/dbus-execute.h \ | |
1156 | src/core/dbus-kill.c \ | |
1157 | src/core/dbus-kill.h \ | |
14228c0d MB |
1158 | src/core/dbus-cgroup.c \ |
1159 | src/core/dbus-cgroup.h \ | |
663996b3 MS |
1160 | src/core/cgroup.c \ |
1161 | src/core/cgroup.h \ | |
1162 | src/core/selinux-access.c \ | |
1163 | src/core/selinux-access.h \ | |
1164 | src/core/selinux-setup.c \ | |
1165 | src/core/selinux-setup.h \ | |
1166 | src/core/smack-setup.c \ | |
1167 | src/core/smack-setup.h \ | |
1168 | src/core/ima-setup.c \ | |
1169 | src/core/ima-setup.h \ | |
1170 | src/core/locale-setup.h \ | |
1171 | src/core/locale-setup.c \ | |
1172 | src/core/hostname-setup.c \ | |
1173 | src/core/hostname-setup.h \ | |
1174 | src/core/machine-id-setup.c \ | |
1175 | src/core/machine-id-setup.h \ | |
1176 | src/core/mount-setup.c \ | |
1177 | src/core/mount-setup.h \ | |
f47781d8 MP |
1178 | src/core/kmod-setup.c \ |
1179 | src/core/kmod-setup.h \ | |
663996b3 MS |
1180 | src/core/loopback-setup.h \ |
1181 | src/core/loopback-setup.c \ | |
663996b3 MS |
1182 | src/core/namespace.c \ |
1183 | src/core/namespace.h \ | |
663996b3 MS |
1184 | src/core/killall.h \ |
1185 | src/core/killall.c \ | |
663996b3 MS |
1186 | src/core/audit-fd.c \ |
1187 | src/core/audit-fd.h \ | |
60f067b4 | 1188 | src/core/show-status.c \ |
5eef597e MP |
1189 | src/core/show-status.h \ |
1190 | src/core/failure-action.c \ | |
1191 | src/core/failure-action.h | |
663996b3 | 1192 | |
86f210e9 | 1193 | nodist_libcore_la_SOURCES = \ |
663996b3 | 1194 | src/core/load-fragment-gperf.c \ |
60f067b4 | 1195 | src/core/load-fragment-gperf-nulstr.c |
663996b3 | 1196 | |
86f210e9 | 1197 | libcore_la_CFLAGS = \ |
663996b3 | 1198 | $(AM_CFLAGS) \ |
663996b3 MS |
1199 | $(PAM_CFLAGS) \ |
1200 | $(AUDIT_CFLAGS) \ | |
1201 | $(KMOD_CFLAGS) \ | |
60f067b4 | 1202 | $(APPARMOR_CFLAGS) \ |
f47781d8 | 1203 | $(MOUNT_CFLAGS) \ |
86f210e9 | 1204 | $(SECCOMP_CFLAGS) |
663996b3 | 1205 | |
86f210e9 MP |
1206 | libcore_la_LIBADD = \ |
1207 | libshared.la \ | |
663996b3 MS |
1208 | $(PAM_LIBS) \ |
1209 | $(AUDIT_LIBS) \ | |
60f067b4 JS |
1210 | $(KMOD_LIBS) \ |
1211 | $(APPARMOR_LIBS) \ | |
f47781d8 | 1212 | $(MOUNT_LIBS) |
60f067b4 | 1213 | |
663996b3 MS |
1214 | src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf |
1215 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1216 | $(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 ";" }' < $< > $@ | |
1217 | ||
e3bff60a | 1218 | gperf_gperf_m4_sources = \ |
663996b3 MS |
1219 | src/core/load-fragment-gperf.gperf.m4 |
1220 | ||
e3bff60a | 1221 | gperf_txt_sources = \ |
86f210e9 MP |
1222 | src/basic/errno-list.txt \ |
1223 | src/basic/af-list.txt \ | |
1224 | src/basic/arphrd-list.txt \ | |
1225 | src/basic/cap-list.txt | |
663996b3 MS |
1226 | |
1227 | BUILT_SOURCES += \ | |
e3bff60a MP |
1228 | $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf.c) \ |
1229 | $(gperf_gperf_m4_sources:-gperf.gperf.m4=-gperf-nulstr.c) \ | |
1230 | $(gperf_gperf_sources:-gperf.gperf=-gperf.c) \ | |
1231 | $(gperf_txt_sources:-list.txt=-from-name.h) \ | |
1232 | $(gperf_txt_sources:-list.txt=-to-name.h) | |
1233 | ||
1234 | CLEANFILES += \ | |
1235 | $(gperf_txt_sources:-list.txt=-from-name.gperf) | |
1236 | DISTCLEANFILES = \ | |
1237 | $(gperf_txt_sources) | |
1238 | ||
1239 | EXTRA_DIST += \ | |
1240 | $(gperf_gperf_m4_sources) \ | |
86f210e9 | 1241 | $(gperf_gperf_sources) |
e3bff60a MP |
1242 | |
1243 | CLEANFILES += \ | |
1244 | $(gperf_txt_sources) | |
663996b3 | 1245 | |
5eef597e | 1246 | %-from-name.gperf: %-list.txt |
e3bff60a | 1247 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e MP |
1248 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@ |
1249 | ||
1250 | %-from-name.h: %-from-name.gperf | |
e3bff60a | 1251 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e | 1252 | $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@ |
663996b3 | 1253 | |
663996b3 | 1254 | |
86f210e9 | 1255 | src/basic/errno-list.txt: |
663996b3 | 1256 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e | 1257 | $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@ |
663996b3 | 1258 | |
86f210e9 | 1259 | src/basic/errno-to-name.h: src/basic/errno-list.txt |
e3bff60a | 1260 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e MP |
1261 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@ |
1262 | ||
60f067b4 | 1263 | |
86f210e9 | 1264 | src/basic/af-list.txt: |
60f067b4 | 1265 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e | 1266 | $(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; }' >$@ |
60f067b4 | 1267 | |
86f210e9 | 1268 | src/basic/af-to-name.h: src/basic/af-list.txt |
e3bff60a | 1269 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e | 1270 | $(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 "};"}' <$< >$@ |
60f067b4 | 1271 | |
f47781d8 | 1272 | |
86f210e9 | 1273 | src/basic/arphrd-list.txt: |
60f067b4 | 1274 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e | 1275 | $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@ |
60f067b4 | 1276 | |
86f210e9 | 1277 | src/basic/arphrd-to-name.h: src/basic/arphrd-list.txt |
e3bff60a | 1278 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e MP |
1279 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@ |
1280 | ||
86f210e9 | 1281 | src/basic/arphrd-from-name.gperf: src/basic/arphrd-list.txt |
e3bff60a | 1282 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e MP |
1283 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@ |
1284 | ||
1285 | ||
86f210e9 | 1286 | src/basic/cap-list.txt: |
f47781d8 MP |
1287 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
1288 | $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@ | |
1289 | ||
86f210e9 | 1290 | src/basic/cap-to-name.h: src/basic/cap-list.txt |
e3bff60a | 1291 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
e735f4d4 | 1292 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@ |
f47781d8 | 1293 | |
86f210e9 | 1294 | src/basic/cap-from-name.gperf: src/basic/cap-list.txt |
e3bff60a | 1295 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
f47781d8 MP |
1296 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@ |
1297 | ||
86f210e9 | 1298 | src/basic/cap-from-name.h: src/basic/cap-from-name.gperf |
e3bff60a | 1299 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
f47781d8 MP |
1300 | $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@ |
1301 | ||
86f210e9 | 1302 | audit_list_includes = -include linux/audit.h -include missing.h |
e3bff60a MP |
1303 | if HAVE_AUDIT |
1304 | audit_list_includes += -include libaudit.h | |
1305 | endif | |
1306 | ||
1307 | src/journal/audit_type-list.txt: | |
1308 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
86f210e9 | 1309 | $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM $(audit_list_includes) - </dev/null | grep -vE 'AUDIT_.*(FIRST|LAST)_' | $(SED) -r -n 's/^#define\s+AUDIT_(\w+)\s+([0-9]{4})\s*$$/\1\t\2/p' | sort -k2 >$@ |
e3bff60a MP |
1310 | |
1311 | src/journal/audit_type-to-name.h: src/journal/audit_type-list.txt | |
1312 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1313 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" } {printf " case AUDIT_%s: return \"%s\";\n", $$1, $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@ | |
1314 | ||
f47781d8 | 1315 | |
5eef597e | 1316 | src/resolve/dns_type-list.txt: src/resolve/dns-type.h |
60f067b4 | 1317 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e MP |
1318 | $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@ |
1319 | ||
1320 | src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt | |
e3bff60a MP |
1321 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
1322 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf " case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print " default: return NULL;\n\t}\n}\n" }' <$< >$@ | |
5eef597e MP |
1323 | |
1324 | src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt | |
e3bff60a | 1325 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
5eef597e | 1326 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@ |
663996b3 MS |
1327 | |
1328 | # ------------------------------------------------------------------------------ | |
1329 | systemd_SOURCES = \ | |
1330 | src/core/main.c | |
1331 | ||
1332 | systemd_CFLAGS = \ | |
1333 | $(AM_CFLAGS) \ | |
6300502b MP |
1334 | $(SECCOMP_CFLAGS) \ |
1335 | $(MOUNT_CFLAGS) | |
663996b3 MS |
1336 | |
1337 | systemd_LDADD = \ | |
86f210e9 | 1338 | libcore.la |
663996b3 MS |
1339 | |
1340 | dist_pkgsysconf_DATA += \ | |
1341 | src/core/system.conf \ | |
1342 | src/core/user.conf | |
1343 | ||
1344 | dist_dbuspolicy_DATA += \ | |
1345 | src/core/org.freedesktop.systemd1.conf | |
1346 | ||
1347 | dist_dbussystemservice_DATA += \ | |
1348 | src/core/org.freedesktop.systemd1.service | |
1349 | ||
663996b3 MS |
1350 | polkitpolicy_in_in_files += \ |
1351 | src/core/org.freedesktop.systemd1.policy.in.in | |
1352 | ||
e3bff60a | 1353 | pkgconfigdata_DATA += \ |
663996b3 MS |
1354 | src/core/systemd.pc |
1355 | ||
1356 | nodist_rpmmacros_DATA = \ | |
1357 | src/core/macros.systemd | |
1358 | ||
1359 | EXTRA_DIST += \ | |
1360 | src/core/systemd.pc.in \ | |
1361 | src/core/macros.systemd.in | |
1362 | ||
663996b3 | 1363 | # ------------------------------------------------------------------------------ |
5eef597e | 1364 | |
663996b3 | 1365 | manual_tests += \ |
663996b3 MS |
1366 | test-ns \ |
1367 | test-loopback \ | |
1368 | test-hostname \ | |
1369 | test-daemon \ | |
1370 | test-cgroup \ | |
1371 | test-install \ | |
1372 | test-watchdog \ | |
60f067b4 | 1373 | test-log \ |
e735f4d4 | 1374 | test-ipcrm \ |
6300502b MP |
1375 | test-btrfs \ |
1376 | test-acd \ | |
1377 | test-ipv4ll-manual | |
e735f4d4 MP |
1378 | |
1379 | if HAVE_LIBIPTC | |
1380 | manual_tests += \ | |
86f210e9 | 1381 | test-firewall-util |
e735f4d4 | 1382 | endif |
60f067b4 JS |
1383 | |
1384 | if HAVE_KMOD | |
1385 | manual_tests += \ | |
86f210e9 | 1386 | test-netlink-manual |
60f067b4 | 1387 | endif |
663996b3 MS |
1388 | |
1389 | tests += \ | |
5eef597e MP |
1390 | test-engine \ |
1391 | test-cgroup-mask \ | |
663996b3 MS |
1392 | test-job-type \ |
1393 | test-env-replace \ | |
1394 | test-strbuf \ | |
1395 | test-strv \ | |
f47781d8 | 1396 | test-path \ |
663996b3 MS |
1397 | test-path-util \ |
1398 | test-strxcpyx \ | |
6300502b | 1399 | test-siphash24 \ |
663996b3 MS |
1400 | test-unit-name \ |
1401 | test-unit-file \ | |
14228c0d | 1402 | test-utf8 \ |
60f067b4 | 1403 | test-ellipsize \ |
663996b3 | 1404 | test-util \ |
13d276d0 | 1405 | test-hostname-util \ |
e3bff60a MP |
1406 | test-process-util \ |
1407 | test-terminal-util \ | |
e735f4d4 | 1408 | test-path-lookup \ |
5eef597e | 1409 | test-barrier \ |
60f067b4 JS |
1410 | test-tmpfiles \ |
1411 | test-namespace \ | |
663996b3 MS |
1412 | test-date \ |
1413 | test-sleep \ | |
1414 | test-replace-var \ | |
1415 | test-sched-prio \ | |
1416 | test-calendarspec \ | |
1417 | test-strip-tab-ansi \ | |
1418 | test-cgroup-util \ | |
e735f4d4 | 1419 | test-fstab-util \ |
663996b3 MS |
1420 | test-prioq \ |
1421 | test-fileio \ | |
1422 | test-time \ | |
14228c0d | 1423 | test-hashmap \ |
5eef597e | 1424 | test-set \ |
7035cd9e | 1425 | test-bitmap \ |
14228c0d | 1426 | test-list \ |
f47781d8 | 1427 | test-unaligned \ |
14228c0d | 1428 | test-tables \ |
60f067b4 JS |
1429 | test-device-nodes \ |
1430 | test-xml \ | |
e735f4d4 | 1431 | test-json \ |
e842803a MB |
1432 | test-architecture \ |
1433 | test-socket-util \ | |
1434 | test-fdset \ | |
1435 | test-conf-files \ | |
86f210e9 | 1436 | test-conf-parser \ |
e842803a MB |
1437 | test-capability \ |
1438 | test-async \ | |
5eef597e | 1439 | test-ratelimit \ |
f47781d8 | 1440 | test-condition \ |
5eef597e | 1441 | test-uid-range \ |
f47781d8 MP |
1442 | test-bus-policy \ |
1443 | test-locale-util \ | |
1444 | test-execute \ | |
1445 | test-copy \ | |
e735f4d4 MP |
1446 | test-cap-list \ |
1447 | test-sigbus \ | |
86f210e9 | 1448 | test-verbs \ |
13d276d0 MP |
1449 | test-af-list \ |
1450 | test-arphrd-list \ | |
86f210e9 | 1451 | test-dns-domain |
663996b3 MS |
1452 | |
1453 | EXTRA_DIST += \ | |
5eef597e MP |
1454 | test/a.service \ |
1455 | test/basic.target \ | |
1456 | test/b.service \ | |
1457 | test/c.service \ | |
1458 | test/daughter.service \ | |
1459 | test/d.service \ | |
e735f4d4 | 1460 | test/end.service.in \ |
5eef597e MP |
1461 | test/e.service \ |
1462 | test/f.service \ | |
1463 | test/grandchild.service \ | |
1464 | test/g.service \ | |
1465 | test/hello-after-sleep.target \ | |
1466 | test/hello.service \ | |
1467 | test/h.service \ | |
1468 | test/parent-deep.slice \ | |
1469 | test/parent.slice \ | |
1470 | test/paths.target \ | |
663996b3 MS |
1471 | test/sched_idle_bad.service \ |
1472 | test/sched_idle_ok.service \ | |
1473 | test/sched_rr_bad.service \ | |
60f067b4 | 1474 | test/sched_rr_change.service \ |
5eef597e MP |
1475 | test/sched_rr_ok.service \ |
1476 | test/shutdown.target \ | |
1477 | test/sleep.service \ | |
1478 | test/sockets.target \ | |
60f067b4 | 1479 | test/son.service \ |
5eef597e MP |
1480 | test/sysinit.target \ |
1481 | test/testsuite.target \ | |
1482 | test/timers.target \ | |
1483 | test/unstoppable.service \ | |
f47781d8 MP |
1484 | test/path-changed.service \ |
1485 | test/path-directorynotempty.service \ | |
1486 | test/path-existsglob.service \ | |
1487 | test/path-exists.service \ | |
1488 | test/path-makedirectory.service \ | |
1489 | test/path-modified.service \ | |
1490 | test/path-mycustomunit.service \ | |
1491 | test/path-service.service \ | |
1492 | test/path-changed.path \ | |
1493 | test/path-directorynotempty.path \ | |
1494 | test/path-existsglob.path \ | |
1495 | test/path-exists.path \ | |
1496 | test/path-makedirectory.path \ | |
1497 | test/path-modified.path \ | |
1498 | test/path-unit.path \ | |
1499 | test/exec-environment-empty.service \ | |
1500 | test/exec-environment-multiple.service \ | |
1501 | test/exec-environment.service \ | |
1502 | test/exec-group.service \ | |
1503 | test/exec-ignoresigpipe-no.service \ | |
1504 | test/exec-ignoresigpipe-yes.service \ | |
1505 | test/exec-personality-x86-64.service \ | |
1506 | test/exec-personality-x86.service \ | |
6300502b | 1507 | test/exec-personality-s390.service \ |
f47781d8 MP |
1508 | test/exec-privatedevices-no.service \ |
1509 | test/exec-privatedevices-yes.service \ | |
1510 | test/exec-privatetmp-no.service \ | |
1511 | test/exec-privatetmp-yes.service \ | |
1512 | test/exec-systemcallerrornumber.service \ | |
1513 | test/exec-systemcallfilter-failing2.service \ | |
1514 | test/exec-systemcallfilter-failing.service \ | |
1515 | test/exec-systemcallfilter-not-failing2.service \ | |
1516 | test/exec-systemcallfilter-not-failing.service \ | |
1517 | test/exec-user.service \ | |
1518 | test/exec-workingdirectory.service \ | |
e735f4d4 MP |
1519 | test/exec-umask-0177.service \ |
1520 | test/exec-umask-default.service \ | |
5eef597e MP |
1521 | test/bus-policy/hello.conf \ |
1522 | test/bus-policy/methods.conf \ | |
1523 | test/bus-policy/ownerships.conf \ | |
f47781d8 MP |
1524 | test/bus-policy/signals.conf \ |
1525 | test/bus-policy/check-own-rules.conf \ | |
1526 | test/bus-policy/many-rules.conf \ | |
1527 | test/bus-policy/test.conf | |
5eef597e | 1528 | |
663996b3 | 1529 | |
14228c0d MB |
1530 | EXTRA_DIST += \ |
1531 | src/test/test-helper.h | |
1532 | ||
1533 | test_device_nodes_SOURCES = \ | |
1534 | src/test/test-device-nodes.c | |
1535 | ||
1536 | test_device_nodes_LDADD = \ | |
86f210e9 | 1537 | libshared.la |
14228c0d | 1538 | |
663996b3 MS |
1539 | test_engine_SOURCES = \ |
1540 | src/test/test-engine.c | |
1541 | ||
1542 | test_engine_CFLAGS = \ | |
1543 | $(AM_CFLAGS) \ | |
6300502b MP |
1544 | $(SECCOMP_CFLAGS) \ |
1545 | $(MOUNT_CFLAGS) | |
663996b3 MS |
1546 | |
1547 | test_engine_LDADD = \ | |
86f210e9 | 1548 | libcore.la |
663996b3 MS |
1549 | |
1550 | test_job_type_SOURCES = \ | |
1551 | src/test/test-job-type.c | |
1552 | ||
1553 | test_job_type_CFLAGS = \ | |
1554 | $(AM_CFLAGS) \ | |
6300502b MP |
1555 | $(SECCOMP_CFLAGS) \ |
1556 | $(MOUNT_CFLAGS) | |
663996b3 MS |
1557 | |
1558 | test_job_type_LDADD = \ | |
86f210e9 | 1559 | libcore.la |
663996b3 MS |
1560 | |
1561 | test_ns_SOURCES = \ | |
1562 | src/test/test-ns.c | |
1563 | ||
14228c0d MB |
1564 | test_ns_CFLAGS = \ |
1565 | $(AM_CFLAGS) \ | |
60f067b4 JS |
1566 | $(SECCOMP_CFLAGS) |
1567 | ||
1568 | test_ns_LDADD = \ | |
86f210e9 | 1569 | libcore.la |
14228c0d | 1570 | |
663996b3 MS |
1571 | test_loopback_SOURCES = \ |
1572 | src/test/test-loopback.c | |
1573 | ||
1574 | test_loopback_LDADD = \ | |
86f210e9 | 1575 | libcore.la |
663996b3 MS |
1576 | |
1577 | test_hostname_SOURCES = \ | |
1578 | src/test/test-hostname.c | |
1579 | ||
1580 | test_hostname_LDADD = \ | |
86f210e9 MP |
1581 | libcore.la |
1582 | ||
1583 | test_dns_domain_SOURCES = \ | |
1584 | src/test/test-dns-domain.c | |
1585 | ||
1586 | test_dns_domain_LDADD = \ | |
1587 | libsystemd-network.la \ | |
1588 | libshared.la | |
663996b3 MS |
1589 | |
1590 | if ENABLE_EFI | |
1591 | manual_tests += \ | |
14228c0d | 1592 | test-boot-timestamp |
663996b3 | 1593 | |
14228c0d MB |
1594 | test_boot_timestamp_SOURCES = \ |
1595 | src/test/test-boot-timestamps.c | |
663996b3 | 1596 | |
14228c0d | 1597 | test_boot_timestamp_LDADD = \ |
86f210e9 | 1598 | libshared.la |
663996b3 MS |
1599 | endif |
1600 | ||
1601 | test_unit_name_SOURCES = \ | |
1602 | src/test/test-unit-name.c | |
1603 | ||
1604 | test_unit_name_CFLAGS = \ | |
1605 | $(AM_CFLAGS) \ | |
6300502b MP |
1606 | $(SECCOMP_CFLAGS) \ |
1607 | $(MOUNT_CFLAGS) | |
663996b3 MS |
1608 | |
1609 | test_unit_name_LDADD = \ | |
86f210e9 | 1610 | libcore.la |
663996b3 MS |
1611 | |
1612 | test_unit_file_SOURCES = \ | |
1613 | src/test/test-unit-file.c | |
1614 | ||
1615 | test_unit_file_CFLAGS = \ | |
1616 | $(AM_CFLAGS) \ | |
6300502b MP |
1617 | $(SECCOMP_CFLAGS) \ |
1618 | $(MOUNT_CFLAGS) | |
663996b3 MS |
1619 | |
1620 | test_unit_file_LDADD = \ | |
86f210e9 | 1621 | libcore.la |
663996b3 | 1622 | |
14228c0d MB |
1623 | test_utf8_SOURCES = \ |
1624 | src/test/test-utf8.c | |
1625 | ||
14228c0d | 1626 | test_utf8_LDADD = \ |
86f210e9 | 1627 | libshared.la |
14228c0d | 1628 | |
e842803a MB |
1629 | test_capability_SOURCES = \ |
1630 | src/test/test-capability.c | |
1631 | ||
1632 | test_capability_LDADD = \ | |
86f210e9 | 1633 | libshared.la |
e842803a MB |
1634 | |
1635 | test_async_SOURCES = \ | |
1636 | src/test/test-async.c | |
1637 | ||
1638 | test_async_LDADD = \ | |
86f210e9 | 1639 | libshared.la |
e842803a | 1640 | |
f47781d8 MP |
1641 | test_locale_util_SOURCES = \ |
1642 | src/test/test-locale-util.c | |
5eef597e | 1643 | |
f47781d8 | 1644 | test_locale_util_LDADD = \ |
86f210e9 | 1645 | libshared.la |
f47781d8 MP |
1646 | |
1647 | test_copy_SOURCES = \ | |
1648 | src/test/test-copy.c | |
1649 | ||
1650 | test_copy_LDADD = \ | |
86f210e9 | 1651 | libshared.la |
e735f4d4 MP |
1652 | |
1653 | test_sigbus_SOURCES = \ | |
1654 | src/test/test-sigbus.c | |
1655 | ||
1656 | test_sigbus_LDADD = \ | |
86f210e9 | 1657 | libshared.la |
5eef597e | 1658 | |
f47781d8 MP |
1659 | test_condition_SOURCES = \ |
1660 | src/test/test-condition.c | |
1661 | ||
1662 | test_condition_LDADD = \ | |
86f210e9 | 1663 | libshared.la |
5eef597e | 1664 | |
e842803a MB |
1665 | test_fdset_SOURCES = \ |
1666 | src/test/test-fdset.c | |
1667 | ||
1668 | test_fdset_LDADD = \ | |
86f210e9 | 1669 | libshared.la |
e842803a | 1670 | |
e735f4d4 MP |
1671 | test_fstab_util_SOURCES = \ |
1672 | src/test/test-fstab-util.c | |
1673 | ||
1674 | test_fstab_util_LDADD = \ | |
86f210e9 | 1675 | libshared.la |
e735f4d4 | 1676 | |
e842803a MB |
1677 | test_ratelimit_SOURCES = \ |
1678 | src/test/test-ratelimit.c | |
1679 | ||
1680 | test_ratelimit_LDADD = \ | |
86f210e9 | 1681 | libshared.la |
e842803a | 1682 | |
663996b3 MS |
1683 | test_util_SOURCES = \ |
1684 | src/test/test-util.c | |
1685 | ||
663996b3 | 1686 | test_util_LDADD = \ |
86f210e9 | 1687 | libshared.la |
e3bff60a | 1688 | |
13d276d0 MP |
1689 | test_hostname_util_SOURCES = \ |
1690 | src/test/test-hostname-util.c | |
1691 | ||
1692 | test_hostname_util_LDADD = \ | |
1693 | libshared.la | |
1694 | ||
e3bff60a MP |
1695 | test_process_util_SOURCES = \ |
1696 | src/test/test-process-util.c | |
1697 | ||
1698 | test_process_util_LDADD = \ | |
86f210e9 | 1699 | libshared.la |
e3bff60a MP |
1700 | |
1701 | test_terminal_util_SOURCES = \ | |
1702 | src/test/test-terminal-util.c | |
1703 | ||
1704 | test_terminal_util_LDADD = \ | |
86f210e9 | 1705 | libshared.la |
e735f4d4 MP |
1706 | |
1707 | test_path_lookup_SOURCES = \ | |
1708 | src/test/test-path-lookup.c | |
1709 | ||
1710 | test_path_lookup_LDADD = \ | |
86f210e9 | 1711 | libshared.la |
663996b3 | 1712 | |
5eef597e MP |
1713 | test_uid_range_SOURCES = \ |
1714 | src/test/test-uid-range.c | |
1715 | ||
1716 | test_uid_range_LDADD = \ | |
86f210e9 | 1717 | libshared.la |
f47781d8 MP |
1718 | |
1719 | test_cap_list_SOURCES = \ | |
1720 | src/test/test-cap-list.c | |
1721 | ||
1722 | test_cap_list_LDADD = \ | |
86f210e9 | 1723 | libshared.la |
5eef597e | 1724 | |
e842803a MB |
1725 | test_socket_util_SOURCES = \ |
1726 | src/test/test-socket-util.c | |
1727 | ||
1728 | test_socket_util_LDADD = \ | |
86f210e9 | 1729 | libshared.la |
e842803a | 1730 | |
5eef597e MP |
1731 | test_barrier_SOURCES = \ |
1732 | src/test/test-barrier.c | |
1733 | ||
1734 | test_barrier_LDADD = \ | |
86f210e9 | 1735 | libshared.la |
5eef597e | 1736 | |
60f067b4 JS |
1737 | test_tmpfiles_SOURCES = \ |
1738 | src/test/test-tmpfiles.c | |
1739 | ||
1740 | test_tmpfiles_LDADD = \ | |
86f210e9 | 1741 | libshared.la |
60f067b4 JS |
1742 | |
1743 | test_namespace_SOURCES = \ | |
1744 | src/test/test-namespace.c | |
1745 | ||
e735f4d4 MP |
1746 | test_verbs_SOURCES = \ |
1747 | src/test/test-verbs.c | |
1748 | ||
1749 | test_verbs_LDADD = \ | |
86f210e9 | 1750 | libshared.la |
e735f4d4 | 1751 | |
60f067b4 | 1752 | test_namespace_LDADD = \ |
86f210e9 | 1753 | libcore.la |
60f067b4 | 1754 | |
5eef597e MP |
1755 | BUILT_SOURCES += \ |
1756 | src/test/test-hashmap-ordered.c | |
1757 | ||
1758 | src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c | |
1759 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1760 | $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \ | |
1761 | { if (!match($$0, "^#include")) \ | |
1762 | gsub(/hashmap/, "ordered_hashmap"); \ | |
1763 | gsub(/HASHMAP/, "ORDERED_HASHMAP"); \ | |
1764 | gsub(/Hashmap/, "OrderedHashmap"); \ | |
1765 | print }' <$< >$@ | |
1766 | ||
1767 | nodist_test_hashmap_SOURCES = \ | |
1768 | src/test/test-hashmap-ordered.c | |
1769 | ||
663996b3 | 1770 | test_hashmap_SOURCES = \ |
5eef597e MP |
1771 | src/test/test-hashmap.c \ |
1772 | src/test/test-hashmap-plain.c | |
663996b3 | 1773 | |
663996b3 | 1774 | test_hashmap_LDADD = \ |
86f210e9 | 1775 | libshared.la |
663996b3 | 1776 | |
5eef597e MP |
1777 | test_set_SOURCES = \ |
1778 | src/test/test-set.c | |
1779 | ||
1780 | test_set_LDADD = \ | |
86f210e9 | 1781 | libshared.la |
5eef597e | 1782 | |
7035cd9e MP |
1783 | test_bitmap_SOURCES = \ |
1784 | src/test/test-bitmap.c | |
1785 | ||
1786 | test_bitmap_LDADD = \ | |
1787 | libshared.la | |
1788 | ||
60f067b4 JS |
1789 | test_xml_SOURCES = \ |
1790 | src/test/test-xml.c | |
1791 | ||
1792 | test_xml_LDADD = \ | |
86f210e9 | 1793 | libshared.la |
60f067b4 | 1794 | |
e735f4d4 MP |
1795 | test_json_SOURCES = \ |
1796 | src/test/test-json.c | |
1797 | ||
1798 | test_json_LDADD = \ | |
86f210e9 | 1799 | libshared.la |
e735f4d4 | 1800 | |
14228c0d MB |
1801 | test_list_SOURCES = \ |
1802 | src/test/test-list.c | |
1803 | ||
14228c0d | 1804 | test_list_LDADD = \ |
86f210e9 | 1805 | libshared.la |
f47781d8 MP |
1806 | |
1807 | test_unaligned_LDADD = \ | |
86f210e9 | 1808 | libshared.la |
f47781d8 MP |
1809 | |
1810 | test_unaligned_SOURCES = \ | |
1811 | src/test/test-unaligned.c | |
14228c0d MB |
1812 | |
1813 | test_tables_SOURCES = \ | |
1814 | src/test/test-tables.c \ | |
5eef597e | 1815 | src/shared/test-tables.h \ |
e735f4d4 MP |
1816 | src/bus-proxyd/bus-xml-policy.c \ |
1817 | src/bus-proxyd/bus-xml-policy.h \ | |
5eef597e MP |
1818 | src/journal/journald-server.c \ |
1819 | src/journal/journald-server.h | |
1820 | ||
1821 | test_tables_CPPFLAGS = \ | |
1822 | $(AM_CPPFLAGS) \ | |
1823 | -I$(top_srcdir)/src/bus-proxyd | |
14228c0d MB |
1824 | |
1825 | test_tables_CFLAGS = \ | |
1826 | $(AM_CFLAGS) \ | |
6300502b MP |
1827 | $(SECCOMP_CFLAGS) \ |
1828 | $(MOUNT_CFLAGS) | |
14228c0d MB |
1829 | |
1830 | test_tables_LDADD = \ | |
86f210e9 MP |
1831 | libjournal-core.la \ |
1832 | libcore.la \ | |
1833 | libudev-core.la | |
14228c0d | 1834 | |
663996b3 MS |
1835 | test_prioq_SOURCES = \ |
1836 | src/test/test-prioq.c | |
1837 | ||
663996b3 | 1838 | test_prioq_LDADD = \ |
86f210e9 | 1839 | libshared.la |
663996b3 MS |
1840 | |
1841 | test_fileio_SOURCES = \ | |
1842 | src/test/test-fileio.c | |
1843 | ||
663996b3 | 1844 | test_fileio_LDADD = \ |
86f210e9 | 1845 | libshared.la |
663996b3 MS |
1846 | |
1847 | test_time_SOURCES = \ | |
1848 | src/test/test-time.c | |
1849 | ||
663996b3 | 1850 | test_time_LDADD = \ |
86f210e9 | 1851 | libshared.la |
663996b3 | 1852 | |
60f067b4 JS |
1853 | test_architecture_SOURCES = \ |
1854 | src/test/test-architecture.c | |
1855 | ||
1856 | test_architecture_LDADD = \ | |
86f210e9 | 1857 | libshared.la |
60f067b4 | 1858 | |
663996b3 MS |
1859 | test_log_SOURCES = \ |
1860 | src/test/test-log.c | |
1861 | ||
1862 | test_log_LDADD = \ | |
86f210e9 | 1863 | libshared.la |
663996b3 | 1864 | |
60f067b4 JS |
1865 | test_ipcrm_SOURCES = \ |
1866 | src/test/test-ipcrm.c | |
1867 | ||
1868 | test_ipcrm_LDADD = \ | |
86f210e9 | 1869 | libshared.la |
60f067b4 | 1870 | |
e735f4d4 MP |
1871 | test_btrfs_SOURCES = \ |
1872 | src/test/test-btrfs.c | |
1873 | ||
1874 | test_btrfs_LDADD = \ | |
86f210e9 | 1875 | libshared.la |
e735f4d4 MP |
1876 | |
1877 | if HAVE_LIBIPTC | |
86f210e9 MP |
1878 | test_firewall_util_SOURCES = \ |
1879 | src/test/test-firewall-util.c | |
e735f4d4 | 1880 | |
86f210e9 | 1881 | test_firewall_util_CFLAGS = \ |
e735f4d4 MP |
1882 | $(AM_CFLAGS) \ |
1883 | $(LIBIPTC_CFLAGS) | |
1884 | ||
86f210e9 MP |
1885 | test_firewall_util_LDADD = \ |
1886 | libfirewall.la \ | |
1887 | libshared.la \ | |
e735f4d4 MP |
1888 | $(LIBIPTC_LIBS) |
1889 | endif | |
1890 | ||
86f210e9 MP |
1891 | test_netlink_manual_SOURCES = \ |
1892 | src/test/test-netlink-manual.c | |
60f067b4 | 1893 | |
86f210e9 | 1894 | test_netlink_manual_CFLAGS = \ |
60f067b4 JS |
1895 | $(AM_CFLAGS) \ |
1896 | $(KMOD_CFLAGS) | |
1897 | ||
86f210e9 MP |
1898 | test_netlink_manual_LDADD = \ |
1899 | libshared.la \ | |
60f067b4 JS |
1900 | $(KMOD_LIBS) |
1901 | ||
1902 | test_ellipsize_SOURCES = \ | |
1903 | src/test/test-ellipsize.c | |
1904 | ||
1905 | test_ellipsize_LDADD = \ | |
86f210e9 | 1906 | libshared.la |
60f067b4 | 1907 | |
663996b3 MS |
1908 | test_date_SOURCES = \ |
1909 | src/test/test-date.c | |
1910 | ||
1911 | test_date_LDADD = \ | |
86f210e9 | 1912 | libshared.la |
663996b3 MS |
1913 | |
1914 | test_sleep_SOURCES = \ | |
1915 | src/test/test-sleep.c | |
1916 | ||
1917 | test_sleep_LDADD = \ | |
86f210e9 | 1918 | libcore.la |
663996b3 MS |
1919 | |
1920 | test_replace_var_SOURCES = \ | |
1921 | src/test/test-replace-var.c | |
1922 | ||
1923 | test_replace_var_LDADD = \ | |
86f210e9 | 1924 | libshared.la |
663996b3 MS |
1925 | |
1926 | test_calendarspec_SOURCES = \ | |
1927 | src/test/test-calendarspec.c | |
1928 | ||
1929 | test_calendarspec_LDADD = \ | |
86f210e9 | 1930 | libshared.la |
663996b3 MS |
1931 | |
1932 | test_strip_tab_ansi_SOURCES = \ | |
1933 | src/test/test-strip-tab-ansi.c | |
1934 | ||
1935 | test_strip_tab_ansi_LDADD = \ | |
86f210e9 | 1936 | libshared.la |
663996b3 MS |
1937 | |
1938 | test_daemon_SOURCES = \ | |
1939 | src/test/test-daemon.c | |
1940 | ||
1941 | test_daemon_LDADD = \ | |
86f210e9 | 1942 | libshared.la |
663996b3 MS |
1943 | |
1944 | test_cgroup_SOURCES = \ | |
1945 | src/test/test-cgroup.c | |
1946 | ||
1947 | test_cgroup_LDADD = \ | |
86f210e9 | 1948 | libshared.la |
60f067b4 JS |
1949 | |
1950 | test_cgroup_mask_SOURCES = \ | |
1951 | src/test/test-cgroup-mask.c | |
1952 | ||
1953 | test_cgroup_mask_CPPFLAGS = \ | |
6300502b MP |
1954 | $(AM_CPPFLAGS) \ |
1955 | $(MOUNT_CFLAGS) | |
60f067b4 JS |
1956 | |
1957 | test_cgroup_mask_CFLAGS = \ | |
1958 | $(AM_CFLAGS) \ | |
1959 | $(SECCOMP_CFLAGS) | |
1960 | ||
1961 | test_cgroup_mask_LDADD = \ | |
86f210e9 | 1962 | libcore.la |
663996b3 MS |
1963 | |
1964 | test_cgroup_util_SOURCES = \ | |
1965 | src/test/test-cgroup-util.c | |
1966 | ||
1967 | test_cgroup_util_LDADD = \ | |
86f210e9 | 1968 | libshared.la |
663996b3 MS |
1969 | |
1970 | test_env_replace_SOURCES = \ | |
1971 | src/test/test-env-replace.c | |
1972 | ||
1973 | test_env_replace_LDADD = \ | |
86f210e9 | 1974 | libshared.la |
663996b3 MS |
1975 | |
1976 | test_strbuf_SOURCES = \ | |
1977 | src/test/test-strbuf.c | |
1978 | ||
1979 | test_strbuf_LDADD = \ | |
86f210e9 | 1980 | libshared.la |
663996b3 MS |
1981 | |
1982 | test_strv_SOURCES = \ | |
1983 | src/test/test-strv.c | |
1984 | ||
1985 | test_strv_LDADD = \ | |
86f210e9 | 1986 | libshared.la |
663996b3 MS |
1987 | |
1988 | test_path_util_SOURCES = \ | |
1989 | src/test/test-path-util.c | |
1990 | ||
1991 | test_path_util_LDADD = \ | |
86f210e9 | 1992 | libshared.la |
663996b3 | 1993 | |
f47781d8 MP |
1994 | test_path_SOURCES = \ |
1995 | src/test/test-path.c | |
1996 | ||
1997 | test_path_CFLAGS = \ | |
6300502b MP |
1998 | $(AM_CFLAGS) \ |
1999 | $(MOUNT_CFLAGS) | |
f47781d8 MP |
2000 | |
2001 | test_path_LDADD = \ | |
86f210e9 | 2002 | libcore.la |
f47781d8 MP |
2003 | |
2004 | test_execute_SOURCES = \ | |
2005 | src/test/test-execute.c | |
2006 | ||
2007 | test_execute_CFLAGS = \ | |
6300502b MP |
2008 | $(AM_CFLAGS) \ |
2009 | $(MOUNT_CFLAGS) | |
f47781d8 MP |
2010 | |
2011 | test_execute_LDADD = \ | |
86f210e9 | 2012 | libcore.la |
f47781d8 | 2013 | |
6300502b MP |
2014 | test_siphash24_SOURCES = \ |
2015 | src/test/test-siphash24.c | |
2016 | ||
2017 | test_siphash24_LDADD = \ | |
2018 | libshared.la | |
2019 | ||
663996b3 MS |
2020 | test_strxcpyx_SOURCES = \ |
2021 | src/test/test-strxcpyx.c | |
2022 | ||
2023 | test_strxcpyx_LDADD = \ | |
86f210e9 | 2024 | libshared.la |
663996b3 MS |
2025 | |
2026 | test_install_SOURCES = \ | |
2027 | src/test/test-install.c | |
2028 | ||
663996b3 | 2029 | test_install_LDADD = \ |
86f210e9 | 2030 | libshared.la |
663996b3 MS |
2031 | |
2032 | test_watchdog_SOURCES = \ | |
2033 | src/test/test-watchdog.c | |
2034 | ||
2035 | test_watchdog_LDADD = \ | |
86f210e9 | 2036 | libshared.la |
663996b3 MS |
2037 | |
2038 | test_sched_prio_SOURCES = \ | |
2039 | src/test/test-sched-prio.c | |
2040 | ||
60f067b4 | 2041 | test_sched_prio_CPPFLAGS = \ |
6300502b MP |
2042 | $(AM_CPPFLAGS) \ |
2043 | $(MOUNT_CFLAGS) | |
60f067b4 | 2044 | |
663996b3 MS |
2045 | test_sched_prio_CFLAGS = \ |
2046 | $(AM_CFLAGS) \ | |
60f067b4 | 2047 | $(SECCOMP_CFLAGS) |
663996b3 MS |
2048 | |
2049 | test_sched_prio_LDADD = \ | |
86f210e9 | 2050 | libcore.la |
663996b3 | 2051 | |
e842803a MB |
2052 | test_conf_files_SOURCES = \ |
2053 | src/test/test-conf-files.c | |
2054 | ||
2055 | test_conf_files_LDADD = \ | |
86f210e9 MP |
2056 | libshared.la |
2057 | ||
2058 | test_conf_parser_SOURCES = \ | |
2059 | src/test/test-conf-parser.c | |
2060 | ||
2061 | test_conf_parser_LDADD = \ | |
2062 | libshared.la | |
e842803a | 2063 | |
5eef597e | 2064 | test_bus_policy_SOURCES = \ |
e735f4d4 | 2065 | src/bus-proxyd/test-bus-xml-policy.c |
5eef597e MP |
2066 | |
2067 | test_bus_policy_LDADD = \ | |
86f210e9 MP |
2068 | libbus-proxy-core.la \ |
2069 | libshared.la | |
5eef597e | 2070 | |
13d276d0 MP |
2071 | test_af_list_SOURCES = \ |
2072 | src/test/test-af-list.c | |
2073 | ||
2074 | test_af_list_LDADD = \ | |
2075 | libbasic.la | |
2076 | ||
2077 | test_arphrd_list_SOURCES = \ | |
2078 | src/test/test-arphrd-list.c | |
2079 | ||
2080 | test_arphrd_list_LDADD = \ | |
2081 | libbasic.la | |
2082 | ||
14228c0d MB |
2083 | # ------------------------------------------------------------------------------ |
2084 | ## .PHONY so it always rebuilds it | |
60f067b4 | 2085 | .PHONY: coverage lcov-run lcov-report coverage-sync |
14228c0d MB |
2086 | |
2087 | # run lcov from scratch, always | |
e842803a | 2088 | coverage: all |
14228c0d MB |
2089 | $(MAKE) lcov-run |
2090 | $(MAKE) lcov-report | |
2091 | ||
2092 | coverage_dir = coverage | |
2093 | coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))' | |
2094 | ||
2095 | if ENABLE_COVERAGE | |
2096 | # reset run coverage tests | |
2097 | lcov-run: | |
2098 | @rm -rf $(coverage_dir) | |
2099 | lcov $(coverage_opts) --zerocounters | |
2100 | -$(MAKE) check | |
2101 | ||
2102 | # generate report based on current coverage data | |
2103 | lcov-report: | |
2104 | $(MKDIR_P) $(coverage_dir) | |
2105 | lcov $(coverage_opts) --compat-libtool --capture --no-external \ | |
2106 | | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info | |
f47781d8 MP |
2107 | lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*' |
2108 | genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info | |
14228c0d MB |
2109 | @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html" |
2110 | ||
2111 | # lcov doesn't work properly with vpath builds, make sure that bad | |
2112 | # output is not uploaded by mistake. | |
2113 | coverage-sync: coverage | |
2114 | test "$(builddir)" = "$(srcdir)" | |
2115 | rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage | |
2116 | ||
2117 | else | |
2118 | lcov-run lcov-report: | |
2119 | echo "Need to reconfigure with --enable-coverage" | |
2120 | endif | |
2121 | ||
60f067b4 JS |
2122 | # ------------------------------------------------------------------------------ |
2123 | systemd_analyze_SOURCES = \ | |
5eef597e MP |
2124 | src/analyze/analyze.c \ |
2125 | src/analyze/analyze-verify.c \ | |
2126 | src/analyze/analyze-verify.h | |
2127 | ||
86f210e9 | 2128 | systemd_analyze_CFLAGS = \ |
5eef597e | 2129 | $(AM_CFLAGS) \ |
6300502b MP |
2130 | $(SECCOMP_CFLAGS) \ |
2131 | $(MOUNT_CFLAGS) | |
60f067b4 JS |
2132 | |
2133 | systemd_analyze_LDADD = \ | |
86f210e9 | 2134 | libcore.la |
60f067b4 | 2135 | |
663996b3 MS |
2136 | # ------------------------------------------------------------------------------ |
2137 | systemd_initctl_SOURCES = \ | |
2138 | src/initctl/initctl.c | |
2139 | ||
663996b3 | 2140 | systemd_initctl_LDADD = \ |
86f210e9 | 2141 | libshared.la |
663996b3 MS |
2142 | |
2143 | # ------------------------------------------------------------------------------ | |
2144 | systemd_update_utmp_SOURCES = \ | |
2145 | src/update-utmp/update-utmp.c | |
2146 | ||
2147 | systemd_update_utmp_CFLAGS = \ | |
2148 | $(AM_CFLAGS) \ | |
663996b3 MS |
2149 | $(AUDIT_CFLAGS) |
2150 | ||
2151 | systemd_update_utmp_LDADD = \ | |
86f210e9 | 2152 | libshared.la \ |
663996b3 MS |
2153 | $(AUDIT_LIBS) |
2154 | ||
e842803a MB |
2155 | # ------------------------------------------------------------------------------ |
2156 | systemd_update_done_SOURCES = \ | |
2157 | src/update-done/update-done.c | |
2158 | ||
2159 | systemd_update_done_LDADD = \ | |
86f210e9 | 2160 | libshared.la |
e842803a | 2161 | |
663996b3 MS |
2162 | # ------------------------------------------------------------------------------ |
2163 | systemd_shutdown_SOURCES = \ | |
2164 | src/core/umount.c \ | |
2165 | src/core/umount.h \ | |
2166 | src/core/shutdown.c \ | |
2167 | src/core/mount-setup.c \ | |
2168 | src/core/mount-setup.h \ | |
2169 | src/core/killall.h \ | |
2170 | src/core/killall.c | |
2171 | ||
2172 | systemd_shutdown_LDADD = \ | |
86f210e9 | 2173 | libshared.la |
663996b3 MS |
2174 | |
2175 | # ------------------------------------------------------------------------------ | |
2176 | if HAVE_KMOD | |
2177 | systemd_modules_load_SOURCES = \ | |
2178 | src/modules-load/modules-load.c | |
2179 | ||
2180 | systemd_modules_load_CFLAGS = \ | |
2181 | $(AM_CFLAGS) \ | |
2182 | $(KMOD_CFLAGS) | |
2183 | ||
2184 | systemd_modules_load_LDADD = \ | |
86f210e9 | 2185 | libshared.la \ |
663996b3 MS |
2186 | $(KMOD_LIBS) |
2187 | ||
2188 | rootlibexec_PROGRAMS += \ | |
2189 | systemd-modules-load | |
2190 | ||
2191 | nodist_systemunit_DATA += \ | |
2192 | units/systemd-modules-load.service | |
2193 | ||
2194 | SYSINIT_TARGET_WANTS += \ | |
2195 | systemd-modules-load.service | |
2196 | ||
14228c0d MB |
2197 | if ENABLE_TMPFILES |
2198 | nodist_systemunit_DATA += \ | |
2199 | units/kmod-static-nodes.service | |
2200 | ||
2201 | SYSINIT_TARGET_WANTS += \ | |
2202 | kmod-static-nodes.service | |
2203 | endif | |
663996b3 MS |
2204 | endif |
2205 | ||
2206 | EXTRA_DIST += \ | |
60f067b4 JS |
2207 | units/systemd-modules-load.service.in \ |
2208 | units/kmod-static-nodes.service.in | |
663996b3 MS |
2209 | |
2210 | # ------------------------------------------------------------------------------ | |
14228c0d | 2211 | if ENABLE_TMPFILES |
663996b3 | 2212 | systemd_tmpfiles_SOURCES = \ |
60f067b4 | 2213 | src/tmpfiles/tmpfiles.c |
663996b3 MS |
2214 | |
2215 | systemd_tmpfiles_LDADD = \ | |
86f210e9 | 2216 | libshared.la |
e735f4d4 | 2217 | |
14228c0d MB |
2218 | rootbin_PROGRAMS += \ |
2219 | systemd-tmpfiles | |
2220 | ||
2221 | dist_systemunit_DATA += \ | |
2222 | units/systemd-tmpfiles-clean.timer | |
2223 | ||
2224 | nodist_systemunit_DATA += \ | |
2225 | units/systemd-tmpfiles-setup-dev.service \ | |
2226 | units/systemd-tmpfiles-setup.service \ | |
2227 | units/systemd-tmpfiles-clean.service | |
2228 | ||
5eef597e | 2229 | nodist_tmpfiles_DATA = \ |
e3bff60a | 2230 | tmpfiles.d/systemd.conf \ |
5eef597e MP |
2231 | tmpfiles.d/etc.conf |
2232 | ||
14228c0d | 2233 | dist_tmpfiles_DATA = \ |
60f067b4 | 2234 | tmpfiles.d/systemd-nologin.conf \ |
14228c0d | 2235 | tmpfiles.d/tmp.conf \ |
60f067b4 | 2236 | tmpfiles.d/x11.conf \ |
e3bff60a | 2237 | tmpfiles.d/var.conf \ |
86f210e9 | 2238 | tmpfiles.d/home.conf \ |
fb183854 MP |
2239 | tmpfiles.d/systemd-nspawn.conf \ |
2240 | tmpfiles.d/journal-nocow.conf | |
14228c0d MB |
2241 | |
2242 | if HAVE_SYSV_COMPAT | |
2243 | dist_tmpfiles_DATA += \ | |
2244 | tmpfiles.d/legacy.conf | |
2245 | endif | |
2246 | ||
2247 | SYSINIT_TARGET_WANTS += \ | |
2248 | systemd-tmpfiles-setup-dev.service \ | |
2249 | systemd-tmpfiles-setup.service | |
2250 | ||
13d276d0 | 2251 | if ENABLE_ZSH_COMPLETION |
14228c0d MB |
2252 | dist_zshcompletion_DATA += \ |
2253 | shell-completion/zsh/_systemd-tmpfiles | |
13d276d0 | 2254 | endif |
14228c0d MB |
2255 | |
2256 | TIMERS_TARGET_WANTS += \ | |
2257 | systemd-tmpfiles-clean.timer | |
2258 | ||
2259 | INSTALL_DIRS += \ | |
2260 | $(tmpfilesdir) \ | |
2261 | $(sysconfdir)/tmpfiles.d | |
2262 | endif | |
2263 | ||
2264 | EXTRA_DIST += \ | |
e3bff60a | 2265 | tmpfiles.d/systemd.conf.m4 \ |
5eef597e | 2266 | tmpfiles.d/etc.conf.m4 \ |
14228c0d MB |
2267 | units/systemd-tmpfiles-setup-dev.service.in \ |
2268 | units/systemd-tmpfiles-setup.service.in \ | |
2269 | units/systemd-tmpfiles-clean.service.in | |
663996b3 | 2270 | |
e842803a MB |
2271 | # ------------------------------------------------------------------------------ |
2272 | if ENABLE_SYSUSERS | |
2273 | systemd_sysusers_SOURCES = \ | |
2274 | src/sysusers/sysusers.c | |
2275 | ||
2276 | systemd_sysusers_LDADD = \ | |
86f210e9 | 2277 | libshared.la |
e842803a MB |
2278 | |
2279 | rootbin_PROGRAMS += \ | |
2280 | systemd-sysusers | |
2281 | ||
2282 | nodist_systemunit_DATA += \ | |
2283 | units/systemd-sysusers.service | |
2284 | ||
2285 | SYSINIT_TARGET_WANTS += \ | |
2286 | systemd-sysusers.service | |
2287 | ||
e842803a | 2288 | nodist_sysusers_DATA = \ |
e3bff60a | 2289 | sysusers.d/systemd.conf \ |
e842803a MB |
2290 | sysusers.d/basic.conf |
2291 | ||
86f210e9 MP |
2292 | INSTALL_DIRS += \ |
2293 | $(sysusersdir) | |
2294 | endif | |
2295 | ||
e842803a MB |
2296 | EXTRA_DIST += \ |
2297 | units/systemd-sysusers.service.in \ | |
e3bff60a | 2298 | sysusers.d/systemd.conf.m4 \ |
e842803a MB |
2299 | sysusers.d/basic.conf.in |
2300 | ||
5eef597e MP |
2301 | # ------------------------------------------------------------------------------ |
2302 | dist_factory_etc_DATA = \ | |
2303 | factory/etc/nsswitch.conf | |
2304 | ||
2305 | if HAVE_PAM | |
2306 | dist_factory_pam_DATA = \ | |
2307 | factory/etc/pam.d/system-auth \ | |
2308 | factory/etc/pam.d/other | |
2309 | endif | |
2310 | ||
2311 | # ------------------------------------------------------------------------------ | |
2312 | if ENABLE_FIRSTBOOT | |
2313 | systemd_firstboot_SOURCES = \ | |
2314 | src/firstboot/firstboot.c | |
2315 | ||
2316 | systemd_firstboot_LDADD = \ | |
86f210e9 | 2317 | libshared.la \ |
5eef597e MP |
2318 | -lcrypt |
2319 | ||
2320 | rootbin_PROGRAMS += \ | |
2321 | systemd-firstboot | |
2322 | ||
2323 | nodist_systemunit_DATA += \ | |
2324 | units/systemd-firstboot.service | |
2325 | ||
5eef597e MP |
2326 | SYSINIT_TARGET_WANTS += \ |
2327 | systemd-firstboot.service | |
2328 | endif | |
2329 | ||
86f210e9 MP |
2330 | EXTRA_DIST += \ |
2331 | units/systemd-firstboot.service.in | |
2332 | ||
663996b3 MS |
2333 | # ------------------------------------------------------------------------------ |
2334 | systemd_machine_id_setup_SOURCES = \ | |
2335 | src/machine-id-setup/machine-id-setup-main.c \ | |
2336 | src/core/machine-id-setup.c \ | |
2337 | src/core/machine-id-setup.h | |
2338 | ||
2339 | systemd_machine_id_setup_LDADD = \ | |
86f210e9 | 2340 | libshared.la |
663996b3 | 2341 | |
6300502b MP |
2342 | SYSINIT_TARGET_WANTS += \ |
2343 | systemd-machine-id-commit.service | |
2344 | ||
663996b3 MS |
2345 | # ------------------------------------------------------------------------------ |
2346 | systemd_sysctl_SOURCES = \ | |
2347 | src/sysctl/sysctl.c | |
2348 | ||
2349 | systemd_sysctl_LDADD = \ | |
86f210e9 | 2350 | libshared.la |
663996b3 MS |
2351 | |
2352 | # ------------------------------------------------------------------------------ | |
2353 | systemd_sleep_SOURCES = \ | |
2354 | src/sleep/sleep.c | |
2355 | ||
2356 | systemd_sleep_LDADD = \ | |
86f210e9 | 2357 | libshared.la |
663996b3 MS |
2358 | |
2359 | # ------------------------------------------------------------------------------ | |
2360 | systemd_fsck_SOURCES = \ | |
2361 | src/fsck/fsck.c | |
2362 | ||
663996b3 | 2363 | systemd_fsck_LDADD = \ |
86f210e9 | 2364 | libshared.la |
663996b3 | 2365 | |
663996b3 MS |
2366 | # ------------------------------------------------------------------------------ |
2367 | systemd_ac_power_SOURCES = \ | |
2368 | src/ac-power/ac-power.c | |
2369 | ||
2370 | systemd_ac_power_LDADD = \ | |
86f210e9 | 2371 | libshared.la |
663996b3 MS |
2372 | |
2373 | # ------------------------------------------------------------------------------ | |
2374 | systemd_detect_virt_SOURCES = \ | |
2375 | src/detect-virt/detect-virt.c | |
2376 | ||
2377 | systemd_detect_virt_LDADD = \ | |
86f210e9 | 2378 | libshared.la |
663996b3 | 2379 | |
663996b3 MS |
2380 | INSTALL_EXEC_HOOKS += \ |
2381 | systemd-detect-virt-install-hook | |
2382 | ||
2383 | # ------------------------------------------------------------------------------ | |
2384 | systemd_delta_SOURCES = \ | |
2385 | src/delta/delta.c | |
2386 | ||
2387 | systemd_delta_LDADD = \ | |
86f210e9 | 2388 | libshared.la |
663996b3 MS |
2389 | |
2390 | # ------------------------------------------------------------------------------ | |
2391 | systemd_getty_generator_SOURCES = \ | |
2392 | src/getty-generator/getty-generator.c | |
2393 | ||
2394 | systemd_getty_generator_LDADD = \ | |
86f210e9 | 2395 | libshared.la |
663996b3 | 2396 | |
e842803a MB |
2397 | # ------------------------------------------------------------------------------ |
2398 | systemd_debug_generator_SOURCES = \ | |
2399 | src/debug-generator/debug-generator.c | |
2400 | ||
2401 | systemd_debug_generator_LDADD = \ | |
86f210e9 | 2402 | libshared.la |
e842803a | 2403 | |
663996b3 MS |
2404 | # ------------------------------------------------------------------------------ |
2405 | systemd_fstab_generator_SOURCES = \ | |
2406 | src/fstab-generator/fstab-generator.c \ | |
2407 | src/core/mount-setup.c | |
2408 | ||
2409 | systemd_fstab_generator_LDADD = \ | |
86f210e9 | 2410 | libshared.la |
663996b3 MS |
2411 | |
2412 | # ------------------------------------------------------------------------------ | |
2413 | systemd_system_update_generator_SOURCES = \ | |
2414 | src/system-update-generator/system-update-generator.c | |
2415 | ||
2416 | systemd_system_update_generator_LDADD = \ | |
86f210e9 | 2417 | libshared.la |
663996b3 | 2418 | |
14228c0d | 2419 | # ------------------------------------------------------------------------------ |
5eef597e MP |
2420 | if ENABLE_HIBERNATE |
2421 | systemgenerator_PROGRAMS += \ | |
2422 | systemd-hibernate-resume-generator | |
2423 | ||
2424 | rootlibexec_PROGRAMS += \ | |
2425 | systemd-hibernate-resume | |
2426 | ||
2427 | systemd_hibernate_resume_SOURCES = \ | |
2428 | src/hibernate-resume/hibernate-resume.c | |
2429 | ||
2430 | systemd_hibernate_resume_LDADD = \ | |
86f210e9 | 2431 | libshared.la |
5eef597e MP |
2432 | |
2433 | systemd_hibernate_resume_generator_SOURCES = \ | |
2434 | src/hibernate-resume/hibernate-resume-generator.c | |
2435 | ||
2436 | systemd_hibernate_resume_generator_LDADD = \ | |
86f210e9 | 2437 | libshared.la |
5eef597e MP |
2438 | |
2439 | dist_systemunit_DATA += \ | |
2440 | units/hibernate.target \ | |
2441 | units/hybrid-sleep.target | |
2442 | ||
2443 | nodist_systemunit_DATA += \ | |
2444 | units/systemd-hibernate.service \ | |
2445 | units/systemd-hibernate-resume@.service \ | |
2446 | units/systemd-hybrid-sleep.service | |
2447 | endif | |
2448 | ||
86f210e9 MP |
2449 | EXTRA_DIST += \ |
2450 | units/systemd-hibernate.service.in \ | |
2451 | units/systemd-hibernate-resume@.service.in \ | |
2452 | units/systemd-hybrid-sleep.service.in | |
2453 | ||
5eef597e MP |
2454 | # ------------------------------------------------------------------------------ |
2455 | if ENABLE_EFI | |
e3bff60a | 2456 | if HAVE_BLKID |
14228c0d | 2457 | bootctl_SOURCES = \ |
e3bff60a MP |
2458 | src/boot/bootctl.c |
2459 | ||
2460 | bootctl_CPPFLAGS = \ | |
2461 | $(AM_CPPFLAGS) \ | |
2462 | -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" \ | |
2463 | -DBOOTLIBDIR=\"$(bootlibdir)\" | |
2464 | ||
2465 | bootctl_CFLAGS = \ | |
2466 | $(AM_CFLAGS) \ | |
2467 | $(BLKID_CFLAGS) | |
14228c0d MB |
2468 | |
2469 | bootctl_LDADD = \ | |
86f210e9 | 2470 | libshared.la \ |
e3bff60a | 2471 | $(BLKID_LIBS) |
14228c0d MB |
2472 | |
2473 | bin_PROGRAMS += \ | |
2474 | bootctl | |
60f067b4 | 2475 | |
13d276d0 | 2476 | if ENABLE_BASH_COMPLETION |
60f067b4 JS |
2477 | dist_bashcompletion_DATA += \ |
2478 | shell-completion/bash/bootctl | |
13d276d0 | 2479 | endif |
60f067b4 | 2480 | |
13d276d0 | 2481 | if ENABLE_ZSH_COMPLETION |
60f067b4 JS |
2482 | dist_zshcompletion_DATA += \ |
2483 | shell-completion/zsh/_bootctl | |
e3bff60a | 2484 | endif |
13d276d0 | 2485 | endif |
e3bff60a MP |
2486 | |
2487 | # ------------------------------------------------------------------------------ | |
2488 | if HAVE_GNUEFI | |
2489 | efi_cppflags = \ | |
2490 | $(EFI_CPPFLAGS) \ | |
2491 | -I$(top_builddir) -include config.h \ | |
2492 | -I$(EFI_INC_DIR)/efi \ | |
2493 | -I$(EFI_INC_DIR)/efi/$(EFI_ARCH) \ | |
2494 | -DEFI_MACHINE_TYPE_NAME=\"$(EFI_MACHINE_TYPE_NAME)\" | |
2495 | ||
2496 | efi_cflags = \ | |
2497 | $(EFI_CFLAGS) \ | |
2498 | -Wall \ | |
2499 | -Wextra \ | |
2500 | -std=gnu90 \ | |
2501 | -nostdinc \ | |
2502 | -ggdb -O0 \ | |
2503 | -fpic \ | |
2504 | -fshort-wchar \ | |
2505 | -nostdinc \ | |
2506 | -ffreestanding \ | |
2507 | -fno-strict-aliasing \ | |
2508 | -fno-stack-protector \ | |
2509 | -Wsign-compare \ | |
2510 | -Wno-missing-field-initializers | |
2511 | ||
2512 | if ARCH_X86_64 | |
2513 | efi_cflags += \ | |
2514 | -mno-red-zone \ | |
2515 | -mno-sse \ | |
2516 | -mno-mmx \ | |
2517 | -DEFI_FUNCTION_WRAPPER \ | |
2518 | -DGNU_EFI_USE_MS_ABI | |
2519 | endif | |
60f067b4 | 2520 | |
e3bff60a MP |
2521 | if ARCH_IA32 |
2522 | efi_cflags += \ | |
2523 | -mno-sse \ | |
2524 | -mno-mmx | |
2525 | endif | |
2526 | ||
2527 | efi_ldflags = \ | |
2528 | $(EFI_LDFLAGS) \ | |
2529 | -T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \ | |
2530 | -shared \ | |
2531 | -Bsymbolic \ | |
2532 | -nostdlib \ | |
2533 | -znocombreloc \ | |
2534 | -L $(EFI_LIB_DIR) \ | |
2535 | $(EFI_LDS_DIR)/crt0-efi-$(EFI_ARCH).o | |
2536 | ||
2537 | # Aarch64 and ARM32 don't have an EFI capable objcopy. Use 'binary' instead, | |
2538 | # and add required symbols manually. | |
2539 | if ARCH_AARCH64 | |
2540 | efi_ldflags += --defsym=EFI_SUBSYSTEM=0xa | |
2541 | EFI_FORMAT = -O binary | |
2542 | else | |
2543 | EFI_FORMAT = --target=efi-app-$(EFI_ARCH) | |
2544 | endif | |
86f210e9 MP |
2545 | endif |
2546 | endif | |
e3bff60a MP |
2547 | |
2548 | # ------------------------------------------------------------------------------ | |
2549 | systemd_boot_headers = \ | |
2550 | src/boot/efi/util.h \ | |
2551 | src/boot/efi/console.h \ | |
2552 | src/boot/efi/graphics.h \ | |
5fd56512 MP |
2553 | src/boot/efi/pefile.h \ |
2554 | src/boot/efi/disk.h | |
e3bff60a MP |
2555 | |
2556 | systemd_boot_sources = \ | |
2557 | src/boot/efi/util.c \ | |
2558 | src/boot/efi/console.c \ | |
2559 | src/boot/efi/graphics.c \ | |
2560 | src/boot/efi/pefile.c \ | |
5fd56512 | 2561 | src/boot/efi/disk.c \ |
e3bff60a MP |
2562 | src/boot/efi/boot.c |
2563 | ||
86f210e9 MP |
2564 | EXTRA_DIST += $(systemd_boot_sources) $(systemd_boot_headers) |
2565 | ||
2566 | if ENABLE_EFI | |
2567 | if HAVE_GNUEFI | |
e3bff60a MP |
2568 | systemd_boot_objects = $(addprefix $(top_builddir)/,$(systemd_boot_sources:.c=.o)) |
2569 | systemd_boot_solib = $(top_builddir)/src/boot/efi/systemd_boot.so | |
2570 | systemd_boot = systemd-boot$(EFI_MACHINE_TYPE_NAME).efi | |
2571 | ||
2572 | bootlib_DATA = $(systemd_boot) | |
2573 | CLEANFILES += $(systemd_boot_objects) $(systemd_boot_solib) $(systemd_boot) | |
e3bff60a MP |
2574 | |
2575 | $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(systemd_boot_headers)) | |
2576 | @$(MKDIR_P) $(top_builddir)/src/boot/efi/ | |
2577 | $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@ | |
2578 | ||
2579 | $(systemd_boot_solib): $(systemd_boot_objects) | |
2580 | $(AM_V_CCLD)$(LD) $(efi_ldflags) $(systemd_boot_objects) \ | |
2581 | -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \ | |
2582 | nm -D -u $@ | grep ' U ' && exit 1 || : | |
2583 | ||
2584 | $(systemd_boot): $(systemd_boot_solib) | |
2585 | $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \ | |
2586 | -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@ | |
86f210e9 MP |
2587 | endif |
2588 | endif | |
e3bff60a MP |
2589 | |
2590 | # ------------------------------------------------------------------------------ | |
2591 | stub_headers = \ | |
2592 | src/boot/efi/util.h \ | |
2593 | src/boot/efi/pefile.h \ | |
5fd56512 | 2594 | src/boot/efi/disk.h \ |
e3bff60a MP |
2595 | src/boot/efi/graphics.h \ |
2596 | src/boot/efi/splash.h \ | |
2597 | src/boot/efi/linux.h | |
2598 | ||
2599 | stub_sources = \ | |
2600 | src/boot/efi/util.c \ | |
2601 | src/boot/efi/pefile.c \ | |
5fd56512 | 2602 | src/boot/efi/disk.c \ |
e3bff60a MP |
2603 | src/boot/efi/graphics.c \ |
2604 | src/boot/efi/splash.c \ | |
2605 | src/boot/efi/linux.c \ | |
2606 | src/boot/efi/stub.c | |
2607 | ||
fb183854 MP |
2608 | EXTRA_DIST += \ |
2609 | $(stub_sources) \ | |
2610 | $(stub_headers) \ | |
2611 | test/splash.bmp | |
86f210e9 MP |
2612 | |
2613 | if ENABLE_EFI | |
2614 | if HAVE_GNUEFI | |
e3bff60a MP |
2615 | stub_objects = $(addprefix $(top_builddir)/,$(stub_sources:.c=.o)) |
2616 | stub_solib = $(top_builddir)/src/boot/efi/stub.so | |
2617 | stub = linux$(EFI_MACHINE_TYPE_NAME).efi.stub | |
2618 | ||
2619 | bootlib_DATA += $(stub) | |
2620 | CLEANFILES += $(stub_objects) $(stub_solib) $(stub) | |
e3bff60a MP |
2621 | |
2622 | $(top_builddir)/src/boot/efi/%.o: $(top_srcdir)/src/boot/efi/%.c $(addprefix $(top_srcdir)/,$(stub_headers)) | |
2623 | @$(MKDIR_P) $(top_builddir)/src/boot/efi/ | |
2624 | $(AM_V_CC)$(EFI_CC) $(efi_cppflags) $(efi_cflags) -c $< -o $@ | |
2625 | ||
2626 | $(stub_solib): $(stub_objects) | |
2627 | $(AM_V_CCLD)$(LD) $(efi_ldflags) $(stub_objects) \ | |
2628 | -o $@ -lefi -lgnuefi $(shell $(CC) -print-libgcc-file-name); \ | |
2629 | nm -D -u $@ | grep ' U ' && exit 1 || : | |
2630 | ||
2631 | $(stub): $(stub_solib) | |
2632 | $(AM_V_GEN)$(OBJCOPY) -j .text -j .sdata -j .data -j .dynamic \ | |
2633 | -j .dynsym -j .rel -j .rela -j .reloc $(EFI_FORMAT) $< $@ | |
2634 | ||
2635 | # ------------------------------------------------------------------------------ | |
2636 | CLEANFILES += test-efi-disk.img | |
e3bff60a MP |
2637 | |
2638 | test-efi-disk.img: $(systemd_boot) $(stub) test/test-efi-create-disk.sh | |
2639 | $(AM_V_GEN)test/test-efi-create-disk.sh | |
2640 | ||
2641 | test-efi: test-efi-disk.img | |
2642 | $(QEMU) -machine accel=kvm -m 1024 -bios $(QEMU_BIOS) -snapshot test-efi-disk.img | |
2643 | endif | |
14228c0d MB |
2644 | endif |
2645 | ||
86f210e9 MP |
2646 | EXTRA_DIST += test/test-efi-create-disk.sh |
2647 | ||
14228c0d MB |
2648 | # ------------------------------------------------------------------------------ |
2649 | if HAVE_BLKID | |
2650 | systemgenerator_PROGRAMS += \ | |
2651 | systemd-gpt-auto-generator | |
2652 | ||
2653 | systemd_gpt_auto_generator_SOURCES = \ | |
60f067b4 | 2654 | src/gpt-auto-generator/gpt-auto-generator.c \ |
86f210e9 | 2655 | src/basic/blkid-util.h |
14228c0d MB |
2656 | |
2657 | systemd_gpt_auto_generator_LDADD = \ | |
86f210e9 | 2658 | libshared.la \ |
14228c0d MB |
2659 | $(BLKID_LIBS) |
2660 | ||
2661 | systemd_gpt_auto_generator_CFLAGS = \ | |
2662 | $(AM_CFLAGS) \ | |
2663 | $(BLKID_CFLAGS) | |
663996b3 MS |
2664 | endif |
2665 | ||
2666 | # ------------------------------------------------------------------------------ | |
60f067b4 JS |
2667 | systemgenerator_PROGRAMS += \ |
2668 | systemd-dbus1-generator | |
663996b3 | 2669 | |
60f067b4 JS |
2670 | systemd_dbus1_generator_SOURCES = \ |
2671 | src/dbus1-generator/dbus1-generator.c | |
2672 | ||
2673 | systemd_dbus1_generator_LDADD = \ | |
86f210e9 | 2674 | libshared.la |
663996b3 | 2675 | |
60f067b4 JS |
2676 | dbus1-generator-install-hook: |
2677 | $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir) | |
2678 | $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator | |
2679 | $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator | |
663996b3 | 2680 | |
60f067b4 JS |
2681 | dbus1-generator-uninstall-hook: |
2682 | rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator | |
663996b3 | 2683 | |
e735f4d4 MP |
2684 | dist_xinitrc_SCRIPTS = \ |
2685 | xorg/50-systemd-user.sh | |
2686 | ||
60f067b4 JS |
2687 | INSTALL_EXEC_HOOKS += dbus1-generator-install-hook |
2688 | UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook | |
60f067b4 JS |
2689 | |
2690 | # ------------------------------------------------------------------------------ | |
2691 | systemd_sysv_generator_SOURCES = \ | |
2692 | src/sysv-generator/sysv-generator.c | |
2693 | ||
2694 | systemd_sysv_generator_LDADD = \ | |
86f210e9 | 2695 | libcore.la |
60f067b4 JS |
2696 | |
2697 | # ------------------------------------------------------------------------------ | |
2698 | systemd_rc_local_generator_SOURCES = \ | |
2699 | src/rc-local-generator/rc-local-generator.c | |
2700 | ||
2701 | systemd_rc_local_generator_LDADD = \ | |
86f210e9 | 2702 | libshared.la |
60f067b4 JS |
2703 | |
2704 | # ------------------------------------------------------------------------------ | |
2705 | systemd_remount_fs_SOURCES = \ | |
2706 | src/remount-fs/remount-fs.c \ | |
2707 | src/core/mount-setup.c \ | |
2708 | src/core/mount-setup.h | |
2709 | ||
2710 | systemd_remount_fs_LDADD = \ | |
86f210e9 | 2711 | libshared.la |
60f067b4 JS |
2712 | |
2713 | # ------------------------------------------------------------------------------ | |
663996b3 MS |
2714 | systemd_cgroups_agent_SOURCES = \ |
2715 | src/cgroups-agent/cgroups-agent.c | |
2716 | ||
663996b3 | 2717 | systemd_cgroups_agent_LDADD = \ |
86f210e9 | 2718 | libshared.la |
663996b3 MS |
2719 | |
2720 | # ------------------------------------------------------------------------------ | |
5eef597e MP |
2721 | systemd_escape_SOURCES = \ |
2722 | src/escape/escape.c | |
2723 | ||
2724 | systemd_escape_LDADD = \ | |
86f210e9 | 2725 | libshared.la |
5eef597e MP |
2726 | |
2727 | # ----------------------------------------------------------------------------- | |
663996b3 MS |
2728 | systemctl_SOURCES = \ |
2729 | src/systemctl/systemctl.c | |
2730 | ||
663996b3 | 2731 | systemctl_LDADD = \ |
86f210e9 | 2732 | libshared.la |
663996b3 MS |
2733 | |
2734 | # ------------------------------------------------------------------------------ | |
2735 | systemd_notify_SOURCES = \ | |
5eef597e | 2736 | src/notify/notify.c |
663996b3 MS |
2737 | |
2738 | systemd_notify_LDADD = \ | |
86f210e9 | 2739 | libshared.la |
663996b3 | 2740 | |
e842803a MB |
2741 | # ------------------------------------------------------------------------------ |
2742 | systemd_path_SOURCES = \ | |
2743 | src/path/path.c | |
2744 | ||
2745 | systemd_path_LDADD = \ | |
86f210e9 | 2746 | libshared.la |
e842803a | 2747 | |
663996b3 MS |
2748 | # ------------------------------------------------------------------------------ |
2749 | systemd_ask_password_SOURCES = \ | |
2750 | src/ask-password/ask-password.c | |
2751 | ||
2752 | systemd_ask_password_LDADD = \ | |
86f210e9 | 2753 | libshared.la |
663996b3 MS |
2754 | |
2755 | # ------------------------------------------------------------------------------ | |
2756 | systemd_reply_password_SOURCES = \ | |
2757 | src/reply-password/reply-password.c | |
2758 | ||
2759 | systemd_reply_password_LDADD = \ | |
86f210e9 | 2760 | libshared.la |
663996b3 MS |
2761 | |
2762 | # ------------------------------------------------------------------------------ | |
2763 | systemd_cgls_SOURCES = \ | |
2764 | src/cgls/cgls.c | |
2765 | ||
2766 | systemd_cgls_LDADD = \ | |
86f210e9 | 2767 | libshared.la |
663996b3 MS |
2768 | |
2769 | # ------------------------------------------------------------------------------ | |
2770 | systemd_cgtop_SOURCES = \ | |
2771 | src/cgtop/cgtop.c | |
2772 | ||
2773 | systemd_cgtop_LDADD = \ | |
86f210e9 | 2774 | libshared.la |
663996b3 MS |
2775 | |
2776 | # ------------------------------------------------------------------------------ | |
2777 | systemd_nspawn_SOURCES = \ | |
2778 | src/nspawn/nspawn.c \ | |
d9dfd233 MP |
2779 | src/nspawn/nspawn-settings.c \ |
2780 | src/nspawn/nspawn-settings.h \ | |
2781 | src/nspawn/nspawn-mount.c \ | |
2782 | src/nspawn/nspawn-mount.h \ | |
2783 | src/nspawn/nspawn-network.c \ | |
2784 | src/nspawn/nspawn-network.h \ | |
2785 | src/nspawn/nspawn-expose-ports.c \ | |
2786 | src/nspawn/nspawn-expose-ports.h \ | |
2787 | src/nspawn/nspawn-cgroup.c \ | |
2788 | src/nspawn/nspawn-cgroup.h \ | |
2789 | src/nspawn/nspawn-register.c \ | |
2790 | src/nspawn/nspawn-register.h \ | |
2791 | src/nspawn/nspawn-setuid.c \ | |
2792 | src/nspawn/nspawn-setuid.h \ | |
663996b3 MS |
2793 | src/core/mount-setup.c \ |
2794 | src/core/mount-setup.h \ | |
2795 | src/core/loopback-setup.c \ | |
2796 | src/core/loopback-setup.h | |
2797 | ||
d9dfd233 MP |
2798 | nodist_systemd_nspawn_SOURCES = \ |
2799 | src/nspawn/nspawn-gperf.c | |
2800 | ||
2801 | gperf_gperf_sources += \ | |
2802 | src/nspawn/nspawn-gperf.gperf | |
2803 | ||
60f067b4 JS |
2804 | systemd_nspawn_CFLAGS = \ |
2805 | $(AM_CFLAGS) \ | |
86f210e9 MP |
2806 | $(BLKID_CFLAGS) \ |
2807 | $(SECCOMP_CFLAGS) | |
60f067b4 | 2808 | |
663996b3 | 2809 | systemd_nspawn_LDADD = \ |
86f210e9 | 2810 | libshared.la \ |
60f067b4 JS |
2811 | $(BLKID_LIBS) |
2812 | ||
e735f4d4 MP |
2813 | if HAVE_LIBIPTC |
2814 | systemd_nspawn_LDADD += \ | |
86f210e9 | 2815 | libfirewall.la |
e735f4d4 MP |
2816 | endif |
2817 | ||
14228c0d MB |
2818 | # ------------------------------------------------------------------------------ |
2819 | systemd_run_SOURCES = \ | |
2820 | src/run/run.c | |
2821 | ||
2822 | systemd_run_LDADD = \ | |
86f210e9 | 2823 | libshared.la |
663996b3 MS |
2824 | |
2825 | # ------------------------------------------------------------------------------ | |
e735f4d4 | 2826 | noinst_LTLIBRARIES += \ |
86f210e9 | 2827 | libbus-proxy-core.la |
e735f4d4 | 2828 | |
86f210e9 | 2829 | libbus_proxy_core_la_SOURCES = \ |
e735f4d4 MP |
2830 | src/bus-proxyd/bus-xml-policy.c \ |
2831 | src/bus-proxyd/bus-xml-policy.h \ | |
2832 | src/bus-proxyd/driver.c \ | |
2833 | src/bus-proxyd/driver.h \ | |
2834 | src/bus-proxyd/proxy.c \ | |
2835 | src/bus-proxyd/proxy.h \ | |
2836 | src/bus-proxyd/synthesize.c \ | |
2837 | src/bus-proxyd/synthesize.h | |
2838 | ||
86f210e9 MP |
2839 | libbus_proxy_core_la_LIBADD = \ |
2840 | libshared.la | |
e735f4d4 | 2841 | |
60f067b4 | 2842 | systemd_bus_proxyd_SOURCES = \ |
e735f4d4 MP |
2843 | src/bus-proxyd/bus-proxyd.c |
2844 | ||
60f067b4 | 2845 | systemd_bus_proxyd_LDADD = \ |
86f210e9 MP |
2846 | libbus-proxy-core.la \ |
2847 | libshared.la | |
60f067b4 | 2848 | |
e735f4d4 MP |
2849 | systemd_stdio_bridge_SOURCES = \ |
2850 | src/bus-proxyd/stdio-bridge.c | |
60f067b4 | 2851 | |
e735f4d4 | 2852 | systemd_stdio_bridge_LDADD = \ |
86f210e9 MP |
2853 | libbus-proxy-core.la \ |
2854 | libshared.la | |
60f067b4 | 2855 | |
60f067b4 | 2856 | nodist_systemunit_DATA += \ |
e735f4d4 | 2857 | units/systemd-bus-proxyd.service |
60f067b4 JS |
2858 | |
2859 | dist_systemunit_DATA += \ | |
2860 | units/systemd-bus-proxyd.socket | |
2861 | ||
5eef597e | 2862 | nodist_userunit_DATA += \ |
e735f4d4 | 2863 | units/user/systemd-bus-proxyd.service |
5eef597e MP |
2864 | |
2865 | dist_userunit_DATA += \ | |
2866 | units/user/systemd-bus-proxyd.socket | |
60f067b4 JS |
2867 | |
2868 | EXTRA_DIST += \ | |
e735f4d4 MP |
2869 | units/systemd-bus-proxyd.service.m4.in \ |
2870 | units/user/systemd-bus-proxyd.service.in | |
663996b3 | 2871 | |
f47781d8 MP |
2872 | if HAVE_SMACK |
2873 | bus-proxyd-set-cap-hook: | |
2874 | -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd | |
2875 | ||
2876 | INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook | |
2877 | endif | |
2878 | ||
663996b3 MS |
2879 | # ------------------------------------------------------------------------------ |
2880 | systemd_tty_ask_password_agent_SOURCES = \ | |
2881 | src/tty-ask-password-agent/tty-ask-password-agent.c | |
2882 | ||
2883 | systemd_tty_ask_password_agent_LDADD = \ | |
86f210e9 | 2884 | libshared.la |
663996b3 MS |
2885 | |
2886 | # ------------------------------------------------------------------------------ | |
60f067b4 JS |
2887 | libsystemd_internal_la_SOURCES = \ |
2888 | src/systemd/sd-bus.h \ | |
2889 | src/systemd/sd-bus-protocol.h \ | |
2890 | src/systemd/sd-bus-vtable.h \ | |
60f067b4 JS |
2891 | src/systemd/sd-utf8.h \ |
2892 | src/systemd/sd-event.h \ | |
86f210e9 | 2893 | src/systemd/sd-netlink.h \ |
60f067b4 JS |
2894 | src/systemd/sd-resolve.h \ |
2895 | src/systemd/sd-login.h \ | |
2896 | src/systemd/sd-id128.h \ | |
2897 | src/systemd/sd-daemon.h \ | |
e842803a | 2898 | src/systemd/sd-path.h \ |
5eef597e | 2899 | src/systemd/sd-network.h \ |
e735f4d4 | 2900 | src/systemd/sd-hwdb.h \ |
e3bff60a | 2901 | src/systemd/sd-device.h \ |
86f210e9 | 2902 | src/libsystemd/libsystemd.sym \ |
60f067b4 JS |
2903 | src/libsystemd/sd-bus/sd-bus.c \ |
2904 | src/libsystemd/sd-bus/bus-control.c \ | |
2905 | src/libsystemd/sd-bus/bus-control.h \ | |
2906 | src/libsystemd/sd-bus/bus-error.c \ | |
2907 | src/libsystemd/sd-bus/bus-error.h \ | |
f47781d8 MP |
2908 | src/libsystemd/sd-bus/bus-common-errors.h \ |
2909 | src/libsystemd/sd-bus/bus-common-errors.c \ | |
60f067b4 JS |
2910 | src/libsystemd/sd-bus/bus-internal.c \ |
2911 | src/libsystemd/sd-bus/bus-internal.h \ | |
2912 | src/libsystemd/sd-bus/bus-socket.c \ | |
2913 | src/libsystemd/sd-bus/bus-socket.h \ | |
2914 | src/libsystemd/sd-bus/bus-kernel.c \ | |
2915 | src/libsystemd/sd-bus/bus-kernel.h \ | |
2916 | src/libsystemd/sd-bus/bus-container.c \ | |
2917 | src/libsystemd/sd-bus/bus-container.h \ | |
2918 | src/libsystemd/sd-bus/bus-message.c \ | |
2919 | src/libsystemd/sd-bus/bus-message.h \ | |
2920 | src/libsystemd/sd-bus/bus-creds.c \ | |
2921 | src/libsystemd/sd-bus/bus-creds.h \ | |
2922 | src/libsystemd/sd-bus/bus-signature.c \ | |
2923 | src/libsystemd/sd-bus/bus-signature.h \ | |
2924 | src/libsystemd/sd-bus/bus-type.c \ | |
2925 | src/libsystemd/sd-bus/bus-type.h \ | |
2926 | src/libsystemd/sd-bus/bus-match.c \ | |
2927 | src/libsystemd/sd-bus/bus-match.h \ | |
2928 | src/libsystemd/sd-bus/bus-bloom.c \ | |
2929 | src/libsystemd/sd-bus/bus-bloom.h \ | |
2930 | src/libsystemd/sd-bus/bus-introspect.c \ | |
2931 | src/libsystemd/sd-bus/bus-introspect.h \ | |
2932 | src/libsystemd/sd-bus/bus-objects.c \ | |
2933 | src/libsystemd/sd-bus/bus-objects.h \ | |
2934 | src/libsystemd/sd-bus/bus-gvariant.c \ | |
2935 | src/libsystemd/sd-bus/bus-gvariant.h \ | |
2936 | src/libsystemd/sd-bus/bus-convenience.c \ | |
2937 | src/libsystemd/sd-bus/bus-track.c \ | |
2938 | src/libsystemd/sd-bus/bus-track.h \ | |
60f067b4 JS |
2939 | src/libsystemd/sd-bus/bus-slot.c \ |
2940 | src/libsystemd/sd-bus/bus-slot.h \ | |
2941 | src/libsystemd/sd-bus/bus-protocol.h \ | |
2942 | src/libsystemd/sd-bus/kdbus.h \ | |
86f210e9 MP |
2943 | src/libsystemd/sd-bus/bus-dump.c \ |
2944 | src/libsystemd/sd-bus/bus-dump.h \ | |
60f067b4 JS |
2945 | src/libsystemd/sd-utf8/sd-utf8.c \ |
2946 | src/libsystemd/sd-event/sd-event.c \ | |
2947 | src/libsystemd/sd-event/event-util.h \ | |
86f210e9 MP |
2948 | src/libsystemd/sd-netlink/sd-netlink.c \ |
2949 | src/libsystemd/sd-netlink/netlink-internal.h \ | |
2950 | src/libsystemd/sd-netlink/netlink-message.c \ | |
2951 | src/libsystemd/sd-netlink/netlink-socket.c \ | |
2952 | src/libsystemd/sd-netlink/rtnl-message.c \ | |
2953 | src/libsystemd/sd-netlink/netlink-types.h \ | |
2954 | src/libsystemd/sd-netlink/netlink-types.c \ | |
2955 | src/libsystemd/sd-netlink/netlink-util.h \ | |
2956 | src/libsystemd/sd-netlink/netlink-util.c \ | |
2957 | src/libsystemd/sd-netlink/local-addresses.h \ | |
2958 | src/libsystemd/sd-netlink/local-addresses.c \ | |
60f067b4 JS |
2959 | src/libsystemd/sd-id128/sd-id128.c \ |
2960 | src/libsystemd/sd-daemon/sd-daemon.c \ | |
e842803a | 2961 | src/libsystemd/sd-login/sd-login.c \ |
5eef597e MP |
2962 | src/libsystemd/sd-path/sd-path.c \ |
2963 | src/libsystemd/sd-network/sd-network.c \ | |
2964 | src/libsystemd/sd-network/network-util.h \ | |
e735f4d4 MP |
2965 | src/libsystemd/sd-network/network-util.c \ |
2966 | src/libsystemd/sd-hwdb/sd-hwdb.c \ | |
2967 | src/libsystemd/sd-hwdb/hwdb-util.h \ | |
e3bff60a MP |
2968 | src/libsystemd/sd-hwdb/hwdb-internal.h \ |
2969 | src/libsystemd/sd-device/device-internal.h \ | |
2970 | src/libsystemd/sd-device/device-util.h \ | |
2971 | src/libsystemd/sd-device/device-enumerator.c \ | |
2972 | src/libsystemd/sd-device/device-enumerator-private.h \ | |
2973 | src/libsystemd/sd-device/sd-device.c \ | |
2974 | src/libsystemd/sd-device/device-private.c \ | |
86f210e9 | 2975 | src/libsystemd/sd-device/device-private.h \ |
60f067b4 JS |
2976 | src/libsystemd/sd-resolve/sd-resolve.c \ |
2977 | src/libsystemd/sd-resolve/resolve-util.h | |
663996b3 | 2978 | |
86f210e9 MP |
2979 | libsystemd_internal_la_LIBADD = \ |
2980 | libbasic.la \ | |
60f067b4 | 2981 | -lresolv |
663996b3 | 2982 | |
60f067b4 | 2983 | noinst_LTLIBRARIES += \ |
86f210e9 | 2984 | libsystemd-internal.la |
60f067b4 JS |
2985 | |
2986 | EXTRA_DIST += \ | |
60f067b4 | 2987 | src/libsystemd/libsystemd.pc.in \ |
60f067b4 JS |
2988 | src/libsystemd/sd-bus/DIFFERENCES \ |
2989 | src/libsystemd/sd-bus/GVARIANT-SERIALIZATION | |
663996b3 | 2990 | |
60f067b4 JS |
2991 | libsystemd_la_SOURCES = \ |
2992 | $(libsystemd_internal_la_SOURCES) \ | |
60f067b4 JS |
2993 | $(libsystemd_journal_internal_la_SOURCES) |
2994 | ||
2995 | nodist_libsystemd_la_SOURCES = \ | |
2996 | $(nodist_libsystemd_internal_la_SOURCES) | |
2997 | ||
2998 | libsystemd_la_CFLAGS = \ | |
2999 | $(libsystemd_internal_la_CFLAGS) \ | |
60f067b4 JS |
3000 | $(libsystemd_journal_internal_la_CFLAGS) |
3001 | ||
3002 | libsystemd_la_LDFLAGS = \ | |
3003 | $(AM_LDFLAGS) \ | |
3004 | -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \ | |
86f210e9 | 3005 | -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym |
60f067b4 JS |
3006 | |
3007 | libsystemd_la_LIBADD = \ | |
60f067b4 | 3008 | $(libsystemd_internal_la_LIBADD) \ |
86f210e9 | 3009 | $(libsystemd_journal_internal_la_LIBADD) |
60f067b4 JS |
3010 | |
3011 | libsystemd-install-hook: | |
3012 | libname=libsystemd.so && $(move-to-rootlibdir) | |
3013 | ||
3014 | libsystemd-uninstall-hook: | |
3015 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so* | |
3016 | ||
3017 | INSTALL_EXEC_HOOKS += libsystemd-install-hook | |
3018 | UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook | |
663996b3 MS |
3019 | |
3020 | pkgconfiglib_DATA += \ | |
60f067b4 | 3021 | src/libsystemd/libsystemd.pc |
663996b3 | 3022 | |
60f067b4 | 3023 | pkginclude_HEADERS += \ |
663996b3 MS |
3024 | src/systemd/sd-bus.h \ |
3025 | src/systemd/sd-bus-protocol.h \ | |
60f067b4 | 3026 | src/systemd/sd-bus-vtable.h \ |
60f067b4 | 3027 | src/systemd/sd-event.h \ |
86f210e9 MP |
3028 | src/systemd/sd-login.h \ |
3029 | src/systemd/sd-id128.h \ | |
3030 | src/systemd/sd-daemon.h | |
14228c0d | 3031 | |
60f067b4 JS |
3032 | lib_LTLIBRARIES += \ |
3033 | libsystemd.la | |
663996b3 MS |
3034 | |
3035 | tests += \ | |
3036 | test-bus-marshal \ | |
3037 | test-bus-signature \ | |
e3bff60a | 3038 | test-bus-benchmark \ |
663996b3 | 3039 | test-bus-chat \ |
60f067b4 | 3040 | test-bus-cleanup \ |
663996b3 MS |
3041 | test-bus-server \ |
3042 | test-bus-match \ | |
7035cd9e | 3043 | test-bus-proxy \ |
14228c0d MB |
3044 | test-bus-kernel \ |
3045 | test-bus-kernel-bloom \ | |
60f067b4 JS |
3046 | test-bus-zero-copy \ |
3047 | test-bus-introspect \ | |
3048 | test-bus-objects \ | |
3049 | test-bus-error \ | |
3050 | test-bus-creds \ | |
3051 | test-bus-gvariant \ | |
3052 | test-event \ | |
86f210e9 | 3053 | test-netlink \ |
f47781d8 | 3054 | test-local-addresses \ |
60f067b4 | 3055 | test-resolve |
663996b3 | 3056 | |
60f067b4 | 3057 | bin_PROGRAMS += \ |
663996b3 MS |
3058 | busctl |
3059 | ||
3060 | test_bus_marshal_SOURCES = \ | |
60f067b4 | 3061 | src/libsystemd/sd-bus/test-bus-marshal.c |
663996b3 MS |
3062 | |
3063 | test_bus_marshal_LDADD = \ | |
86f210e9 | 3064 | libshared.la \ |
663996b3 | 3065 | $(GLIB_LIBS) \ |
f47781d8 | 3066 | $(DBUS_LIBS) |
663996b3 MS |
3067 | |
3068 | test_bus_marshal_CFLAGS = \ | |
3069 | $(AM_CFLAGS) \ | |
3070 | $(GLIB_CFLAGS) \ | |
f47781d8 | 3071 | $(DBUS_CFLAGS) |
663996b3 MS |
3072 | |
3073 | test_bus_signature_SOURCES = \ | |
60f067b4 | 3074 | src/libsystemd/sd-bus/test-bus-signature.c |
663996b3 MS |
3075 | |
3076 | test_bus_signature_LDADD = \ | |
86f210e9 | 3077 | libshared.la |
663996b3 MS |
3078 | |
3079 | test_bus_chat_SOURCES = \ | |
60f067b4 | 3080 | src/libsystemd/sd-bus/test-bus-chat.c |
663996b3 | 3081 | |
663996b3 | 3082 | test_bus_chat_LDADD = \ |
86f210e9 | 3083 | libshared.la |
60f067b4 JS |
3084 | |
3085 | test_bus_cleanup_SOURCES = \ | |
3086 | src/libsystemd/sd-bus/test-bus-cleanup.c | |
3087 | ||
3088 | test_bus_cleanup_CFLAGS = \ | |
3089 | $(AM_CFLAGS) \ | |
3090 | $(SECCOMP_CFLAGS) | |
3091 | ||
3092 | test_bus_cleanup_LDADD = \ | |
86f210e9 | 3093 | libshared.la |
663996b3 MS |
3094 | |
3095 | test_bus_server_SOURCES = \ | |
60f067b4 | 3096 | src/libsystemd/sd-bus/test-bus-server.c |
663996b3 | 3097 | |
663996b3 | 3098 | test_bus_server_LDADD = \ |
86f210e9 | 3099 | libshared.la |
60f067b4 JS |
3100 | |
3101 | test_bus_objects_SOURCES = \ | |
3102 | src/libsystemd/sd-bus/test-bus-objects.c | |
3103 | ||
60f067b4 | 3104 | test_bus_objects_LDADD = \ |
86f210e9 | 3105 | libshared.la |
663996b3 | 3106 | |
60f067b4 JS |
3107 | test_bus_error_SOURCES = \ |
3108 | src/libsystemd/sd-bus/test-bus-error.c | |
663996b3 | 3109 | |
60f067b4 | 3110 | test_bus_error_LDADD = \ |
86f210e9 | 3111 | libshared.la |
663996b3 | 3112 | |
60f067b4 JS |
3113 | test_bus_gvariant_SOURCES = \ |
3114 | src/libsystemd/sd-bus/test-bus-gvariant.c | |
3115 | ||
3116 | test_bus_gvariant_LDADD = \ | |
86f210e9 | 3117 | libshared.la \ |
f47781d8 | 3118 | $(GLIB_LIBS) |
60f067b4 JS |
3119 | |
3120 | test_bus_gvariant_CFLAGS = \ | |
3121 | $(AM_CFLAGS) \ | |
3122 | $(GLIB_CFLAGS) | |
60f067b4 JS |
3123 | |
3124 | test_bus_creds_SOURCES = \ | |
3125 | src/libsystemd/sd-bus/test-bus-creds.c | |
3126 | ||
3127 | test_bus_creds_LDADD = \ | |
86f210e9 | 3128 | libshared.la |
663996b3 | 3129 | |
60f067b4 JS |
3130 | test_bus_match_SOURCES = \ |
3131 | src/libsystemd/sd-bus/test-bus-match.c | |
663996b3 | 3132 | |
60f067b4 | 3133 | test_bus_match_LDADD = \ |
86f210e9 | 3134 | libshared.la |
60f067b4 | 3135 | |
7035cd9e MP |
3136 | test_bus_proxy_SOURCES = \ |
3137 | src/libsystemd/sd-bus/test-bus-proxy.c | |
3138 | ||
3139 | test_bus_proxy_LDADD = \ | |
3140 | libshared.la | |
3141 | ||
60f067b4 JS |
3142 | test_bus_kernel_SOURCES = \ |
3143 | src/libsystemd/sd-bus/test-bus-kernel.c | |
663996b3 MS |
3144 | |
3145 | test_bus_kernel_LDADD = \ | |
86f210e9 | 3146 | libshared.la |
14228c0d | 3147 | |
60f067b4 JS |
3148 | test_bus_kernel_bloom_SOURCES = \ |
3149 | src/libsystemd/sd-bus/test-bus-kernel-bloom.c | |
14228c0d MB |
3150 | |
3151 | test_bus_kernel_bloom_LDADD = \ | |
86f210e9 | 3152 | libshared.la |
14228c0d | 3153 | |
e3bff60a MP |
3154 | test_bus_benchmark_SOURCES = \ |
3155 | src/libsystemd/sd-bus/test-bus-benchmark.c | |
14228c0d | 3156 | |
e3bff60a | 3157 | test_bus_benchmark_LDADD = \ |
86f210e9 | 3158 | libshared.la |
14228c0d | 3159 | |
14228c0d | 3160 | test_bus_zero_copy_SOURCES = \ |
60f067b4 | 3161 | src/libsystemd/sd-bus/test-bus-zero-copy.c |
14228c0d MB |
3162 | |
3163 | test_bus_zero_copy_LDADD = \ | |
86f210e9 | 3164 | libshared.la |
60f067b4 JS |
3165 | |
3166 | test_bus_introspect_SOURCES = \ | |
3167 | src/libsystemd/sd-bus/test-bus-introspect.c | |
3168 | ||
3169 | test_bus_introspect_LDADD = \ | |
86f210e9 | 3170 | libshared.la |
60f067b4 JS |
3171 | |
3172 | test_event_SOURCES = \ | |
3173 | src/libsystemd/sd-event/test-event.c | |
3174 | ||
3175 | test_event_LDADD = \ | |
86f210e9 | 3176 | libshared.la |
60f067b4 | 3177 | |
86f210e9 MP |
3178 | test_netlink_SOURCES = \ |
3179 | src/libsystemd/sd-netlink/test-netlink.c | |
60f067b4 | 3180 | |
86f210e9 MP |
3181 | test_netlink_LDADD = \ |
3182 | libshared.la | |
60f067b4 | 3183 | |
f47781d8 | 3184 | test_local_addresses_SOURCES = \ |
86f210e9 | 3185 | src/libsystemd/sd-netlink/test-local-addresses.c |
f47781d8 MP |
3186 | |
3187 | test_local_addresses_LDADD = \ | |
86f210e9 | 3188 | libshared.la |
f47781d8 | 3189 | |
60f067b4 JS |
3190 | test_resolve_SOURCES = \ |
3191 | src/libsystemd/sd-resolve/test-resolve.c | |
3192 | ||
3193 | test_resolve_LDADD = \ | |
86f210e9 | 3194 | libshared.la |
14228c0d | 3195 | |
663996b3 | 3196 | busctl_SOURCES = \ |
f47781d8 MP |
3197 | src/libsystemd/sd-bus/busctl.c \ |
3198 | src/libsystemd/sd-bus/busctl-introspect.c \ | |
3199 | src/libsystemd/sd-bus/busctl-introspect.h | |
663996b3 MS |
3200 | |
3201 | busctl_LDADD = \ | |
86f210e9 | 3202 | libshared.la |
60f067b4 JS |
3203 | |
3204 | # ------------------------------------------------------------------------------ | |
3205 | noinst_LTLIBRARIES += \ | |
3206 | libsystemd-network.la | |
3207 | ||
3208 | libsystemd_network_la_CFLAGS = \ | |
3209 | $(AM_CFLAGS) \ | |
3210 | $(KMOD_CFLAGS) | |
3211 | ||
3212 | libsystemd_network_la_SOURCES = \ | |
60f067b4 | 3213 | src/systemd/sd-dhcp-client.h \ |
e842803a | 3214 | src/systemd/sd-dhcp-server.h \ |
60f067b4 JS |
3215 | src/systemd/sd-dhcp-lease.h \ |
3216 | src/systemd/sd-ipv4ll.h \ | |
6300502b | 3217 | src/systemd/sd-ipv4acd.h \ |
5eef597e MP |
3218 | src/systemd/sd-icmp6-nd.h \ |
3219 | src/systemd/sd-dhcp6-client.h \ | |
3220 | src/systemd/sd-dhcp6-lease.h \ | |
f47781d8 | 3221 | src/systemd/sd-pppoe.h \ |
e735f4d4 | 3222 | src/systemd/sd-lldp.h \ |
60f067b4 | 3223 | src/libsystemd-network/sd-dhcp-client.c \ |
e842803a | 3224 | src/libsystemd-network/sd-dhcp-server.c \ |
60f067b4 JS |
3225 | src/libsystemd-network/dhcp-network.c \ |
3226 | src/libsystemd-network/dhcp-option.c \ | |
3227 | src/libsystemd-network/dhcp-packet.c \ | |
3228 | src/libsystemd-network/dhcp-internal.h \ | |
e842803a | 3229 | src/libsystemd-network/dhcp-server-internal.h \ |
60f067b4 JS |
3230 | src/libsystemd-network/dhcp-protocol.h \ |
3231 | src/libsystemd-network/dhcp-lease-internal.h \ | |
3232 | src/libsystemd-network/sd-dhcp-lease.c \ | |
3233 | src/libsystemd-network/sd-ipv4ll.c \ | |
6300502b MP |
3234 | src/libsystemd-network/sd-ipv4acd.c \ |
3235 | src/libsystemd-network/arp-util.h \ | |
3236 | src/libsystemd-network/arp-util.c \ | |
f47781d8 | 3237 | src/libsystemd-network/sd-pppoe.c \ |
60f067b4 | 3238 | src/libsystemd-network/network-internal.c \ |
e842803a | 3239 | src/libsystemd-network/network-internal.h \ |
e842803a MB |
3240 | src/libsystemd-network/sd-icmp6-nd.c \ |
3241 | src/libsystemd-network/sd-dhcp6-client.c \ | |
3242 | src/libsystemd-network/dhcp6-internal.h \ | |
3243 | src/libsystemd-network/dhcp6-protocol.h \ | |
3244 | src/libsystemd-network/dhcp6-network.c \ | |
3245 | src/libsystemd-network/dhcp6-option.c \ | |
3246 | src/libsystemd-network/dhcp6-lease-internal.h \ | |
e735f4d4 MP |
3247 | src/libsystemd-network/sd-dhcp6-lease.c \ |
3248 | src/libsystemd-network/dhcp-identifier.h \ | |
3249 | src/libsystemd-network/dhcp-identifier.c \ | |
3250 | src/libsystemd-network/lldp.h \ | |
3251 | src/libsystemd-network/lldp-tlv.h \ | |
3252 | src/libsystemd-network/lldp-tlv.c \ | |
3253 | src/libsystemd-network/lldp-network.h \ | |
3254 | src/libsystemd-network/lldp-network.c \ | |
3255 | src/libsystemd-network/lldp-port.h \ | |
3256 | src/libsystemd-network/lldp-port.c \ | |
3257 | src/libsystemd-network/lldp-internal.h \ | |
3258 | src/libsystemd-network/lldp-internal.c \ | |
3259 | src/libsystemd-network/lldp-util.h \ | |
3260 | src/libsystemd-network/sd-lldp.c | |
60f067b4 JS |
3261 | |
3262 | libsystemd_network_la_LIBADD = \ | |
60f067b4 JS |
3263 | $(KMOD_LIBS) |
3264 | ||
3265 | test_dhcp_option_SOURCES = \ | |
3266 | src/libsystemd-network/dhcp-protocol.h \ | |
3267 | src/libsystemd-network/dhcp-internal.h \ | |
3268 | src/libsystemd-network/test-dhcp-option.c | |
3269 | ||
3270 | test_dhcp_option_LDADD = \ | |
3271 | libsystemd-network.la \ | |
86f210e9 | 3272 | libshared.la |
60f067b4 JS |
3273 | |
3274 | test_dhcp_client_SOURCES = \ | |
3275 | src/systemd/sd-dhcp-client.h \ | |
3276 | src/libsystemd-network/dhcp-protocol.h \ | |
3277 | src/libsystemd-network/dhcp-internal.h \ | |
3278 | src/libsystemd-network/test-dhcp-client.c | |
3279 | ||
3280 | test_dhcp_client_LDADD = \ | |
3281 | libsystemd-network.la \ | |
86f210e9 | 3282 | libshared.la |
60f067b4 | 3283 | |
e842803a MB |
3284 | test_dhcp_server_SOURCES = \ |
3285 | src/libsystemd-network/test-dhcp-server.c | |
3286 | ||
3287 | test_dhcp_server_LDADD = \ | |
3288 | libsystemd-network.la \ | |
86f210e9 | 3289 | libshared.la |
e842803a | 3290 | |
60f067b4 JS |
3291 | test_ipv4ll_SOURCES = \ |
3292 | src/systemd/sd-ipv4ll.h \ | |
6300502b | 3293 | src/libsystemd-network/arp-util.h \ |
60f067b4 JS |
3294 | src/libsystemd-network/test-ipv4ll.c |
3295 | ||
3296 | test_ipv4ll_LDADD = \ | |
3297 | libsystemd-network.la \ | |
86f210e9 | 3298 | libshared.la |
60f067b4 | 3299 | |
6300502b MP |
3300 | test_ipv4ll_manual_SOURCES = \ |
3301 | src/systemd/sd-ipv4ll.h \ | |
3302 | src/libsystemd-network/test-ipv4ll-manual.c | |
3303 | ||
3304 | test_ipv4ll_manual_LDADD = \ | |
3305 | libsystemd-network.la \ | |
3306 | libshared.la | |
3307 | ||
3308 | test_acd_SOURCES = \ | |
3309 | src/systemd/sd-ipv4acd.h \ | |
3310 | src/libsystemd-network/test-acd.c | |
3311 | ||
3312 | test_acd_LDADD = \ | |
3313 | libsystemd-network.la \ | |
3314 | libshared.la | |
3315 | ||
f47781d8 MP |
3316 | test_pppoe_SOURCES = \ |
3317 | src/systemd/sd-pppoe.h \ | |
3318 | src/libsystemd-network/test-pppoe.c | |
3319 | ||
3320 | test_pppoe_LDADD = \ | |
3321 | libsystemd-network.la \ | |
86f210e9 | 3322 | libshared.la |
f47781d8 | 3323 | |
e842803a MB |
3324 | test_icmp6_rs_SOURCES = \ |
3325 | src/systemd/sd-dhcp6-client.h \ | |
3326 | src/systemd/sd-icmp6-nd.h \ | |
3327 | src/libsystemd-network/dhcp6-internal.h \ | |
e735f4d4 MP |
3328 | src/libsystemd-network/test-icmp6-rs.c \ |
3329 | src/libsystemd-network/dhcp-identifier.h \ | |
3330 | src/libsystemd-network/dhcp-identifier.c | |
e842803a MB |
3331 | |
3332 | test_icmp6_rs_LDADD = \ | |
3333 | libsystemd-network.la \ | |
86f210e9 MP |
3334 | libudev.la \ |
3335 | libshared.la | |
e842803a MB |
3336 | |
3337 | test_dhcp6_client_SOURCES = \ | |
3338 | src/systemd/sd-dhcp6-client.h \ | |
3339 | src/libsystemd-network/dhcp6-internal.h \ | |
e735f4d4 MP |
3340 | src/libsystemd-network/test-dhcp6-client.c \ |
3341 | src/libsystemd-network/dhcp-identifier.h \ | |
3342 | src/libsystemd-network/dhcp-identifier.c | |
e842803a MB |
3343 | |
3344 | test_dhcp6_client_LDADD = \ | |
3345 | libsystemd-network.la \ | |
86f210e9 MP |
3346 | libudev.la \ |
3347 | libshared.la | |
e842803a | 3348 | |
e735f4d4 | 3349 | test_lldp_SOURCES = \ |
86f210e9 MP |
3350 | src/libsystemd-network/lldp.h \ |
3351 | src/libsystemd-network/lldp-tlv.h \ | |
3352 | src/libsystemd-network/lldp-tlv.c \ | |
3353 | src/libsystemd-network/test-lldp.c | |
e735f4d4 MP |
3354 | |
3355 | test_lldp_LDADD = \ | |
3356 | libsystemd-network.la \ | |
86f210e9 | 3357 | libshared.la |
e735f4d4 | 3358 | |
60f067b4 JS |
3359 | tests += \ |
3360 | test-dhcp-option \ | |
3361 | test-dhcp-client \ | |
e842803a MB |
3362 | test-dhcp-server \ |
3363 | test-ipv4ll \ | |
3364 | test-icmp6-rs \ | |
e735f4d4 MP |
3365 | test-dhcp6-client \ |
3366 | test-lldp | |
663996b3 | 3367 | |
f47781d8 MP |
3368 | manual_tests += \ |
3369 | test-pppoe | |
3370 | ||
86f210e9 | 3371 | # ------------------------------------------------------------------------------ |
663996b3 MS |
3372 | include_HEADERS += \ |
3373 | src/libudev/libudev.h | |
3374 | ||
3375 | lib_LTLIBRARIES += \ | |
3376 | libudev.la | |
3377 | ||
3378 | libudev_la_SOURCES =\ | |
60f067b4 | 3379 | src/libudev/libudev.sym \ |
663996b3 | 3380 | src/libudev/libudev-private.h \ |
e3bff60a | 3381 | src/libudev/libudev-device-internal.h \ |
663996b3 MS |
3382 | src/libudev/libudev.c \ |
3383 | src/libudev/libudev-list.c \ | |
3384 | src/libudev/libudev-util.c \ | |
3385 | src/libudev/libudev-device.c \ | |
e3bff60a | 3386 | src/libudev/libudev-device-private.c \ |
663996b3 MS |
3387 | src/libudev/libudev-enumerate.c \ |
3388 | src/libudev/libudev-monitor.c \ | |
3389 | src/libudev/libudev-queue.c \ | |
663996b3 MS |
3390 | src/libudev/libudev-hwdb.c |
3391 | ||
663996b3 MS |
3392 | libudev_la_LDFLAGS = \ |
3393 | $(AM_LDFLAGS) \ | |
3394 | -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \ | |
3395 | -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym | |
3396 | ||
3397 | libudev_la_LIBADD = \ | |
86f210e9 | 3398 | libsystemd-internal.la |
663996b3 MS |
3399 | |
3400 | pkgconfiglib_DATA += \ | |
3401 | src/libudev/libudev.pc | |
3402 | ||
3403 | EXTRA_DIST += \ | |
60f067b4 | 3404 | src/libudev/libudev.pc.in |
663996b3 | 3405 | |
663996b3 MS |
3406 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed |
3407 | libudev-install-hook: | |
3408 | libname=libudev.so && $(move-to-rootlibdir) | |
3409 | ||
3410 | libudev-uninstall-hook: | |
3411 | rm -f $(DESTDIR)$(rootlibdir)/libudev.so* | |
3412 | ||
3413 | INSTALL_EXEC_HOOKS += libudev-install-hook | |
3414 | UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook | |
3415 | ||
3416 | # ------------------------------------------------------------------------------ | |
3417 | noinst_LTLIBRARIES += \ | |
60f067b4 | 3418 | libudev-internal.la |
663996b3 | 3419 | |
60f067b4 | 3420 | libudev_internal_la_SOURCES =\ |
e3bff60a | 3421 | $(libudev_la_SOURCES) |
663996b3 | 3422 | |
663996b3 MS |
3423 | # ------------------------------------------------------------------------------ |
3424 | INSTALL_DIRS += \ | |
e735f4d4 | 3425 | $(sysconfdir)/udev/rules.d |
663996b3 | 3426 | |
60f067b4 JS |
3427 | dist_network_DATA = \ |
3428 | network/99-default.link \ | |
3429 | network/80-container-host0.network \ | |
3430 | network/80-container-ve.network | |
3431 | ||
663996b3 | 3432 | dist_udevrules_DATA += \ |
663996b3 | 3433 | rules/50-udev-default.rules \ |
e3bff60a | 3434 | rules/60-block.rules \ |
60f067b4 | 3435 | rules/60-drm.rules \ |
e3bff60a | 3436 | rules/60-evdev.rules \ |
663996b3 | 3437 | rules/60-persistent-storage-tape.rules \ |
663996b3 MS |
3438 | rules/60-persistent-input.rules \ |
3439 | rules/60-persistent-alsa.rules \ | |
3440 | rules/60-persistent-storage.rules \ | |
e3bff60a | 3441 | rules/60-serial.rules \ |
663996b3 | 3442 | rules/64-btrfs.rules \ |
e735f4d4 | 3443 | rules/70-mouse.rules \ |
663996b3 | 3444 | rules/75-net-description.rules \ |
663996b3 | 3445 | rules/78-sound-card.rules \ |
e3bff60a | 3446 | rules/80-net-setup-link.rules |
663996b3 | 3447 | |
60f067b4 JS |
3448 | nodist_udevrules_DATA += \ |
3449 | rules/99-systemd.rules | |
3450 | ||
663996b3 MS |
3451 | udevconfdir = $(sysconfdir)/udev |
3452 | dist_udevconf_DATA = \ | |
3453 | src/udev/udev.conf | |
3454 | ||
e3bff60a | 3455 | pkgconfigdata_DATA += \ |
663996b3 MS |
3456 | src/udev/udev.pc |
3457 | ||
3458 | EXTRA_DIST += \ | |
3459 | rules/99-systemd.rules.in \ | |
3460 | src/udev/udev.pc.in | |
3461 | ||
663996b3 MS |
3462 | EXTRA_DIST += \ |
3463 | units/systemd-udevd.service.in \ | |
3464 | units/systemd-udev-trigger.service.in \ | |
e735f4d4 | 3465 | units/systemd-udev-settle.service.in |
663996b3 | 3466 | |
663996b3 MS |
3467 | SOCKETS_TARGET_WANTS += \ |
3468 | systemd-udevd-control.socket \ | |
3469 | systemd-udevd-kernel.socket | |
e842803a | 3470 | |
663996b3 MS |
3471 | SYSINIT_TARGET_WANTS += \ |
3472 | systemd-udevd.service \ | |
e735f4d4 | 3473 | systemd-udev-trigger.service |
663996b3 MS |
3474 | |
3475 | rootbin_PROGRAMS += \ | |
3476 | udevadm | |
3477 | ||
3478 | rootlibexec_PROGRAMS += \ | |
3479 | systemd-udevd | |
3480 | ||
3481 | noinst_LTLIBRARIES += \ | |
3482 | libudev-core.la | |
3483 | ||
e3bff60a | 3484 | src/udev/keyboard-keys-list.txt: |
14228c0d MB |
3485 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
3486 | $(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/' > $@ | |
3487 | ||
e3bff60a | 3488 | src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys-list.txt |
14228c0d MB |
3489 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@ |
3490 | ||
60f067b4 | 3491 | src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf |
14228c0d MB |
3492 | $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@ |
3493 | ||
e3bff60a | 3494 | src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys-list.txt |
14228c0d MB |
3495 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ |
3496 | ||
e3bff60a MP |
3497 | gperf_txt_sources += \ |
3498 | src/udev/keyboard-keys-list.txt | |
3499 | ||
663996b3 MS |
3500 | libudev_core_la_SOURCES = \ |
3501 | src/udev/udev.h \ | |
3502 | src/udev/udev-event.c \ | |
3503 | src/udev/udev-watch.c \ | |
3504 | src/udev/udev-node.c \ | |
3505 | src/udev/udev-rules.c \ | |
3506 | src/udev/udev-ctrl.c \ | |
3507 | src/udev/udev-builtin.c \ | |
3508 | src/udev/udev-builtin-btrfs.c \ | |
3509 | src/udev/udev-builtin-hwdb.c \ | |
3510 | src/udev/udev-builtin-input_id.c \ | |
14228c0d | 3511 | src/udev/udev-builtin-keyboard.c \ |
663996b3 | 3512 | src/udev/udev-builtin-net_id.c \ |
60f067b4 | 3513 | src/udev/udev-builtin-net_setup_link.c \ |
663996b3 | 3514 | src/udev/udev-builtin-path_id.c \ |
60f067b4 JS |
3515 | src/udev/udev-builtin-usb_id.c \ |
3516 | src/udev/net/link-config.h \ | |
3517 | src/udev/net/link-config.c \ | |
3518 | src/udev/net/ethtool-util.h \ | |
3519 | src/udev/net/ethtool-util.c | |
663996b3 | 3520 | |
14228c0d MB |
3521 | nodist_libudev_core_la_SOURCES = \ |
3522 | src/udev/keyboard-keys-from-name.h \ | |
60f067b4 JS |
3523 | src/udev/keyboard-keys-to-name.h \ |
3524 | src/udev/net/link-config-gperf.c | |
14228c0d | 3525 | |
d9dfd233 | 3526 | gperf_gperf_sources += \ |
60f067b4 | 3527 | src/udev/net/link-config-gperf.gperf |
14228c0d | 3528 | |
663996b3 MS |
3529 | libudev_core_la_CFLAGS = \ |
3530 | $(AM_CFLAGS) \ | |
3531 | $(BLKID_CFLAGS) \ | |
3532 | $(KMOD_CFLAGS) | |
3533 | ||
3534 | libudev_core_la_LIBADD = \ | |
60f067b4 | 3535 | libsystemd-network.la \ |
86f210e9 | 3536 | libshared.la \ |
663996b3 MS |
3537 | $(BLKID_LIBS) \ |
3538 | $(KMOD_LIBS) | |
3539 | ||
663996b3 MS |
3540 | if HAVE_KMOD |
3541 | libudev_core_la_SOURCES += \ | |
3542 | src/udev/udev-builtin-kmod.c | |
3543 | ||
3544 | dist_udevrules_DATA += \ | |
3545 | rules/80-drivers.rules | |
3546 | endif | |
3547 | ||
3548 | if HAVE_BLKID | |
3549 | libudev_core_la_SOURCES += \ | |
3550 | src/udev/udev-builtin-blkid.c | |
3551 | endif | |
3552 | ||
3553 | if HAVE_ACL | |
3554 | libudev_core_la_SOURCES += \ | |
3555 | src/udev/udev-builtin-uaccess.c \ | |
3556 | src/login/logind-acl.c \ | |
60f067b4 JS |
3557 | src/libsystemd/sd-login/sd-login.c \ |
3558 | src/systemd/sd-login.h | |
663996b3 MS |
3559 | endif |
3560 | ||
3561 | systemd_udevd_SOURCES = \ | |
3562 | src/udev/udevd.c | |
3563 | ||
3564 | systemd_udevd_LDADD = \ | |
3565 | libudev-core.la | |
3566 | ||
3567 | udevadm_SOURCES = \ | |
3568 | src/udev/udevadm.c \ | |
3569 | src/udev/udevadm-info.c \ | |
3570 | src/udev/udevadm-control.c \ | |
3571 | src/udev/udevadm-monitor.c \ | |
3572 | src/udev/udevadm-hwdb.c \ | |
3573 | src/udev/udevadm-settle.c \ | |
3574 | src/udev/udevadm-trigger.c \ | |
3575 | src/udev/udevadm-test.c \ | |
f47781d8 MP |
3576 | src/udev/udevadm-test-builtin.c \ |
3577 | src/udev/udevadm-util.c \ | |
3578 | src/udev/udevadm-util.h | |
663996b3 MS |
3579 | |
3580 | udevadm_LDADD = \ | |
60f067b4 | 3581 | libudev-core.la |
663996b3 | 3582 | |
e735f4d4 MP |
3583 | # ------------------------------------------------------------------------------ |
3584 | if ENABLE_HWDB | |
3585 | INSTALL_DIRS += \ | |
3586 | $(sysconfdir)/udev/hwdb.d | |
3587 | ||
3588 | systemd_hwdb_SOURCES = \ | |
3589 | src/libsystemd/sd-hwdb/hwdb-internal.h \ | |
3590 | src/hwdb/hwdb.c | |
3591 | ||
3592 | systemd_hwdb_LDADD = \ | |
86f210e9 | 3593 | libshared.la |
e735f4d4 MP |
3594 | |
3595 | rootbin_PROGRAMS += \ | |
3596 | systemd-hwdb | |
3597 | ||
3598 | dist_udevhwdb_DATA = \ | |
3599 | hwdb/20-pci-vendor-model.hwdb \ | |
3600 | hwdb/20-pci-classes.hwdb \ | |
3601 | hwdb/20-usb-vendor-model.hwdb \ | |
3602 | hwdb/20-usb-classes.hwdb \ | |
3603 | hwdb/20-sdio-vendor-model.hwdb \ | |
3604 | hwdb/20-sdio-classes.hwdb \ | |
3605 | hwdb/20-bluetooth-vendor-product.hwdb \ | |
3606 | hwdb/20-acpi-vendor.hwdb \ | |
3607 | hwdb/20-OUI.hwdb \ | |
3608 | hwdb/20-net-ifname.hwdb \ | |
e3bff60a | 3609 | hwdb/60-evdev.hwdb \ |
e735f4d4 MP |
3610 | hwdb/60-keyboard.hwdb \ |
3611 | hwdb/70-mouse.hwdb \ | |
fb183854 | 3612 | hwdb/70-pointingstick.hwdb |
e735f4d4 | 3613 | |
e735f4d4 MP |
3614 | SYSINIT_TARGET_WANTS += \ |
3615 | systemd-hwdb-update.service | |
3616 | ||
663996b3 MS |
3617 | # Update hwdb on installation. Do not bother if installing |
3618 | # in DESTDIR, since this is likely for packaging purposes. | |
3619 | hwdb-update-hook: | |
e735f4d4 | 3620 | -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update |
663996b3 MS |
3621 | |
3622 | INSTALL_DATA_HOOKS += \ | |
3623 | hwdb-update-hook | |
3624 | ||
3625 | hwdb-remove-hook: | |
3626 | -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin | |
e735f4d4 | 3627 | endif |
663996b3 | 3628 | |
86f210e9 MP |
3629 | EXTRA_DIST += \ |
3630 | units/systemd-hwdb-update.service.in \ | |
3631 | hwdb/ids-update.pl \ | |
3632 | hwdb/sdio.ids | |
3633 | ||
663996b3 MS |
3634 | # ------------------------------------------------------------------------------ |
3635 | TESTS += \ | |
fb183854 | 3636 | test/udev-test.pl |
e735f4d4 MP |
3637 | |
3638 | if HAVE_PYTHON | |
3639 | TESTS += \ | |
fb183854 | 3640 | test/rule-syntax-check.py |
e3bff60a MP |
3641 | |
3642 | if HAVE_SYSV_COMPAT | |
3643 | TESTS += \ | |
fb183854 | 3644 | test/sysv-generator-test.py |
e735f4d4 | 3645 | endif |
e3bff60a | 3646 | endif |
663996b3 MS |
3647 | |
3648 | manual_tests += \ | |
3649 | test-libudev \ | |
3650 | test-udev | |
3651 | ||
3652 | test_libudev_SOURCES = \ | |
3653 | src/test/test-libudev.c | |
3654 | ||
3655 | test_libudev_LDADD = \ | |
86f210e9 | 3656 | libshared.la |
663996b3 MS |
3657 | |
3658 | test_udev_SOURCES = \ | |
3659 | src/test/test-udev.c | |
3660 | ||
3661 | test_udev_LDADD = \ | |
f47781d8 | 3662 | libudev-core.la \ |
663996b3 | 3663 | $(BLKID_LIBS) \ |
86f210e9 | 3664 | $(KMOD_LIBS) |
663996b3 MS |
3665 | |
3666 | check_DATA += \ | |
3667 | test/sys | |
3668 | ||
3669 | # packed sysfs test tree | |
3670 | test/sys: | |
3671 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
3672 | $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz | |
3673 | ||
3674 | test-sys-distclean: | |
3675 | -rm -rf test/sys | |
3676 | DISTCLEAN_LOCAL_HOOKS += test-sys-distclean | |
3677 | ||
3678 | EXTRA_DIST += \ | |
3679 | test/sys.tar.xz \ | |
3680 | test/udev-test.pl \ | |
e735f4d4 MP |
3681 | test/rule-syntax-check.py \ |
3682 | test/sysv-generator-test.py \ | |
fb183854 | 3683 | test/mocks/fsck |
663996b3 MS |
3684 | |
3685 | # ------------------------------------------------------------------------------ | |
3686 | ata_id_SOURCES = \ | |
3687 | src/udev/ata_id/ata_id.c | |
3688 | ||
3689 | ata_id_LDADD = \ | |
86f210e9 | 3690 | libshared.la |
663996b3 MS |
3691 | |
3692 | udevlibexec_PROGRAMS += \ | |
3693 | ata_id | |
3694 | ||
3695 | # ------------------------------------------------------------------------------ | |
3696 | cdrom_id_SOURCES = \ | |
3697 | src/udev/cdrom_id/cdrom_id.c | |
3698 | ||
3699 | cdrom_id_LDADD = \ | |
86f210e9 | 3700 | libshared.la |
663996b3 MS |
3701 | |
3702 | udevlibexec_PROGRAMS += \ | |
3703 | cdrom_id | |
3704 | ||
3705 | dist_udevrules_DATA += \ | |
3706 | rules/60-cdrom_id.rules | |
3707 | ||
3708 | # ------------------------------------------------------------------------------ | |
3709 | collect_SOURCES = \ | |
3710 | src/udev/collect/collect.c | |
3711 | ||
3712 | collect_LDADD = \ | |
86f210e9 | 3713 | libshared.la |
663996b3 MS |
3714 | |
3715 | udevlibexec_PROGRAMS += \ | |
3716 | collect | |
3717 | ||
3718 | # ------------------------------------------------------------------------------ | |
3719 | scsi_id_SOURCES =\ | |
3720 | src/udev/scsi_id/scsi_id.c \ | |
3721 | src/udev/scsi_id/scsi_serial.c \ | |
3722 | src/udev/scsi_id/scsi.h \ | |
3723 | src/udev/scsi_id/scsi_id.h | |
3724 | ||
3725 | scsi_id_LDADD = \ | |
86f210e9 | 3726 | libshared.la |
663996b3 MS |
3727 | |
3728 | udevlibexec_PROGRAMS += \ | |
3729 | scsi_id | |
3730 | ||
3731 | EXTRA_DIST += \ | |
3732 | src/udev/scsi_id/README | |
3733 | ||
3734 | # ------------------------------------------------------------------------------ | |
3735 | v4l_id_SOURCES = \ | |
3736 | src/udev/v4l_id/v4l_id.c | |
3737 | ||
3738 | v4l_id_LDADD = \ | |
86f210e9 | 3739 | libshared.la |
663996b3 MS |
3740 | |
3741 | udevlibexec_PROGRAMS += \ | |
3742 | v4l_id | |
3743 | ||
3744 | dist_udevrules_DATA += \ | |
3745 | rules/60-persistent-v4l.rules | |
3746 | ||
663996b3 MS |
3747 | # ------------------------------------------------------------------------------ |
3748 | mtd_probe_SOURCES = \ | |
3749 | src/udev/mtd_probe/mtd_probe.c \ | |
3750 | src/udev/mtd_probe/mtd_probe.h \ | |
3751 | src/udev/mtd_probe/probe_smartmedia.c | |
3752 | ||
663996b3 MS |
3753 | dist_udevrules_DATA += \ |
3754 | rules/75-probe_mtd.rules | |
3755 | ||
3756 | udevlibexec_PROGRAMS += \ | |
3757 | mtd_probe | |
3758 | ||
3759 | # ------------------------------------------------------------------------------ | |
663996b3 MS |
3760 | test_id128_SOURCES = \ |
3761 | src/test/test-id128.c | |
3762 | ||
3763 | test_id128_LDADD = \ | |
86f210e9 | 3764 | libshared.la |
663996b3 MS |
3765 | |
3766 | tests += \ | |
3767 | test-id128 | |
3768 | ||
663996b3 MS |
3769 | # ------------------------------------------------------------------------------ |
3770 | ||
3771 | rootlibexec_PROGRAMS += \ | |
3772 | systemd-activate | |
3773 | ||
3774 | systemd_activate_SOURCES = \ | |
3775 | src/activate/activate.c | |
3776 | ||
3777 | systemd_activate_LDADD = \ | |
86f210e9 | 3778 | libshared.la |
663996b3 MS |
3779 | |
3780 | # ------------------------------------------------------------------------------ | |
3781 | systemd_journald_SOURCES = \ | |
3782 | src/journal/journald.c \ | |
3783 | src/journal/journald-server.h | |
3784 | ||
3785 | systemd_journald_LDADD = \ | |
86f210e9 MP |
3786 | libjournal-core.la \ |
3787 | libshared.la | |
663996b3 MS |
3788 | |
3789 | systemd_cat_SOURCES = \ | |
3790 | src/journal/cat.c | |
3791 | ||
3792 | systemd_cat_LDADD = \ | |
86f210e9 | 3793 | libjournal-core.la |
663996b3 | 3794 | |
60f067b4 JS |
3795 | if HAVE_MICROHTTPD |
3796 | rootlibexec_PROGRAMS += \ | |
3797 | systemd-journal-remote | |
3798 | ||
3799 | systemd_journal_remote_SOURCES = \ | |
5eef597e MP |
3800 | src/journal-remote/journal-remote-parse.h \ |
3801 | src/journal-remote/journal-remote-parse.c \ | |
3802 | src/journal-remote/journal-remote-write.h \ | |
3803 | src/journal-remote/journal-remote-write.c \ | |
3804 | src/journal-remote/journal-remote.h \ | |
3805 | src/journal-remote/journal-remote.c | |
60f067b4 JS |
3806 | |
3807 | systemd_journal_remote_LDADD = \ | |
86f210e9 | 3808 | libjournal-core.la |
60f067b4 JS |
3809 | |
3810 | systemd_journal_remote_SOURCES += \ | |
5eef597e MP |
3811 | src/journal-remote/microhttpd-util.h \ |
3812 | src/journal-remote/microhttpd-util.c | |
60f067b4 JS |
3813 | |
3814 | systemd_journal_remote_CFLAGS = \ | |
3815 | $(AM_CFLAGS) \ | |
3816 | $(MICROHTTPD_CFLAGS) | |
663996b3 | 3817 | |
60f067b4 JS |
3818 | systemd_journal_remote_LDADD += \ |
3819 | $(MICROHTTPD_LIBS) | |
3820 | ||
f47781d8 MP |
3821 | if ENABLE_SYSUSERS |
3822 | dist_sysusers_DATA += \ | |
3823 | sysusers.d/systemd-remote.conf | |
3824 | endif | |
3825 | ||
3826 | if ENABLE_TMPFILES | |
3827 | dist_tmpfiles_DATA += \ | |
3828 | tmpfiles.d/systemd-remote.conf | |
3829 | endif | |
3830 | ||
60f067b4 JS |
3831 | if HAVE_GNUTLS |
3832 | systemd_journal_remote_LDADD += \ | |
3833 | $(GNUTLS_LIBS) | |
5eef597e MP |
3834 | |
3835 | # systemd-journal-remote make sense mostly with full crypto stack | |
3836 | dist_systemunit_DATA += \ | |
3837 | units/systemd-journal-remote.socket | |
3838 | ||
3839 | nodist_systemunit_DATA += \ | |
3840 | units/systemd-journal-remote.service | |
3841 | ||
5eef597e MP |
3842 | journal-remote-install-hook: journal-install-hook |
3843 | -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote | |
3844 | -chown 0:0 $(DESTDIR)/var/log/journal/remote | |
3845 | -chmod 755 $(DESTDIR)/var/log/journal/remote | |
3846 | ||
3847 | INSTALL_EXEC_HOOKS += journal-remote-install-hook | |
60f067b4 | 3848 | endif |
5eef597e MP |
3849 | |
3850 | nodist_pkgsysconf_DATA += \ | |
3851 | src/journal-remote/journal-remote.conf | |
3852 | ||
3853 | EXTRA_DIST += \ | |
86f210e9 | 3854 | units/systemd-journal-remote.service.in \ |
fb183854 MP |
3855 | src/journal-remote/journal-remote.conf.in \ |
3856 | src/journal-remote/log-generator.py | |
5eef597e MP |
3857 | endif |
3858 | ||
3859 | if HAVE_LIBCURL | |
3860 | rootlibexec_PROGRAMS += \ | |
3861 | systemd-journal-upload | |
3862 | ||
3863 | systemd_journal_upload_SOURCES = \ | |
3864 | src/journal-remote/journal-upload.h \ | |
3865 | src/journal-remote/journal-upload.c \ | |
3866 | src/journal-remote/journal-upload-journal.c | |
3867 | ||
3868 | systemd_journal_upload_CFLAGS = \ | |
3869 | $(AM_CFLAGS) \ | |
3870 | $(LIBCURL_CFLAGS) | |
3871 | ||
3872 | systemd_journal_upload_LDADD = \ | |
86f210e9 | 3873 | libshared.la \ |
5eef597e MP |
3874 | $(LIBCURL_LIBS) |
3875 | ||
3876 | nodist_systemunit_DATA += \ | |
3877 | units/systemd-journal-upload.service | |
3878 | ||
5eef597e MP |
3879 | nodist_pkgsysconf_DATA += \ |
3880 | src/journal-remote/journal-upload.conf | |
86f210e9 MP |
3881 | endif |
3882 | ||
5eef597e | 3883 | EXTRA_DIST += \ |
86f210e9 | 3884 | units/systemd-journal-upload.service.in \ |
5eef597e | 3885 | src/journal-remote/journal-upload.conf.in |
60f067b4 JS |
3886 | |
3887 | # using _CFLAGS = in the conditional below would suppress AM_CFLAGS | |
663996b3 MS |
3888 | journalctl_CFLAGS = \ |
3889 | $(AM_CFLAGS) | |
3890 | ||
60f067b4 JS |
3891 | journalctl_SOURCES = \ |
3892 | src/journal/journalctl.c | |
3893 | ||
663996b3 | 3894 | journalctl_LDADD = \ |
86f210e9 | 3895 | libshared.la |
663996b3 MS |
3896 | |
3897 | if HAVE_QRENCODE | |
3898 | journalctl_SOURCES += \ | |
3899 | src/journal/journal-qrcode.c \ | |
3900 | src/journal/journal-qrcode.h | |
3901 | ||
3902 | journalctl_CFLAGS += \ | |
3903 | $(QRENCODE_CFLAGS) | |
3904 | ||
3905 | journalctl_LDADD += \ | |
3906 | $(QRENCODE_LIBS) | |
3907 | endif | |
3908 | ||
3909 | test_journal_SOURCES = \ | |
3910 | src/journal/test-journal.c | |
3911 | ||
3912 | test_journal_LDADD = \ | |
86f210e9 | 3913 | libjournal-core.la |
663996b3 MS |
3914 | |
3915 | test_journal_send_SOURCES = \ | |
3916 | src/journal/test-journal-send.c | |
3917 | ||
3918 | test_journal_send_LDADD = \ | |
86f210e9 | 3919 | libjournal-core.la |
663996b3 MS |
3920 | |
3921 | test_journal_syslog_SOURCES = \ | |
3922 | src/journal/test-journal-syslog.c | |
3923 | ||
3924 | test_journal_syslog_LDADD = \ | |
86f210e9 | 3925 | libjournal-core.la |
663996b3 MS |
3926 | |
3927 | test_journal_match_SOURCES = \ | |
3928 | src/journal/test-journal-match.c | |
3929 | ||
3930 | test_journal_match_LDADD = \ | |
86f210e9 | 3931 | libjournal-core.la |
663996b3 MS |
3932 | |
3933 | test_journal_enum_SOURCES = \ | |
3934 | src/journal/test-journal-enum.c | |
3935 | ||
3936 | test_journal_enum_LDADD = \ | |
86f210e9 | 3937 | libjournal-core.la |
663996b3 MS |
3938 | |
3939 | test_journal_stream_SOURCES = \ | |
3940 | src/journal/test-journal-stream.c | |
3941 | ||
3942 | test_journal_stream_LDADD = \ | |
86f210e9 | 3943 | libjournal-core.la |
60f067b4 JS |
3944 | |
3945 | test_journal_flush_SOURCES = \ | |
3946 | src/journal/test-journal-flush.c | |
3947 | ||
3948 | test_journal_flush_LDADD = \ | |
86f210e9 | 3949 | libjournal-core.la |
663996b3 | 3950 | |
14228c0d MB |
3951 | test_journal_init_SOURCES = \ |
3952 | src/journal/test-journal-init.c | |
3953 | ||
3954 | test_journal_init_LDADD = \ | |
86f210e9 | 3955 | libjournal-core.la |
14228c0d | 3956 | |
663996b3 MS |
3957 | test_journal_verify_SOURCES = \ |
3958 | src/journal/test-journal-verify.c | |
3959 | ||
3960 | test_journal_verify_LDADD = \ | |
86f210e9 | 3961 | libjournal-core.la |
663996b3 | 3962 | |
14228c0d MB |
3963 | test_journal_interleaving_SOURCES = \ |
3964 | src/journal/test-journal-interleaving.c | |
3965 | ||
3966 | test_journal_interleaving_LDADD = \ | |
86f210e9 | 3967 | libjournal-core.la |
14228c0d | 3968 | |
663996b3 MS |
3969 | test_mmap_cache_SOURCES = \ |
3970 | src/journal/test-mmap-cache.c | |
3971 | ||
3972 | test_mmap_cache_LDADD = \ | |
86f210e9 | 3973 | libjournal-core.la |
663996b3 MS |
3974 | |
3975 | test_catalog_SOURCES = \ | |
3976 | src/journal/test-catalog.c | |
3977 | ||
60f067b4 JS |
3978 | test_catalog_CPPFLAGS = \ |
3979 | $(AM_CPPFLAGS) \ | |
14228c0d MB |
3980 | -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\" |
3981 | ||
663996b3 | 3982 | test_catalog_LDADD = \ |
86f210e9 | 3983 | libjournal-core.la |
663996b3 | 3984 | |
e842803a MB |
3985 | test_compress_SOURCES = \ |
3986 | src/journal/test-compress.c | |
3987 | ||
3988 | test_compress_LDADD = \ | |
86f210e9 | 3989 | libshared.la |
5eef597e MP |
3990 | |
3991 | test_compress_benchmark_SOURCES = \ | |
3992 | src/journal/test-compress-benchmark.c | |
3993 | ||
3994 | test_compress_benchmark_LDADD = \ | |
86f210e9 | 3995 | libshared.la |
e842803a | 3996 | |
e3bff60a MP |
3997 | test_audit_type_SOURCES = \ |
3998 | src/journal/test-audit-type.c | |
3999 | ||
4000 | test_audit_type_LDADD = \ | |
86f210e9 | 4001 | libjournal-core.la |
e3bff60a | 4002 | |
86f210e9 | 4003 | libjournal_core_la_SOURCES = \ |
663996b3 MS |
4004 | src/journal/journald-kmsg.c \ |
4005 | src/journal/journald-kmsg.h \ | |
4006 | src/journal/journald-syslog.c \ | |
4007 | src/journal/journald-syslog.h \ | |
4008 | src/journal/journald-stream.c \ | |
4009 | src/journal/journald-stream.h \ | |
4010 | src/journal/journald-server.c \ | |
4011 | src/journal/journald-server.h \ | |
4012 | src/journal/journald-console.c \ | |
4013 | src/journal/journald-console.h \ | |
60f067b4 JS |
4014 | src/journal/journald-wall.c \ |
4015 | src/journal/journald-wall.h \ | |
663996b3 MS |
4016 | src/journal/journald-native.c \ |
4017 | src/journal/journald-native.h \ | |
f47781d8 MP |
4018 | src/journal/journald-audit.c \ |
4019 | src/journal/journald-audit.h \ | |
663996b3 MS |
4020 | src/journal/journald-rate-limit.c \ |
4021 | src/journal/journald-rate-limit.h \ | |
4022 | src/journal/journal-internal.h | |
4023 | ||
86f210e9 | 4024 | nodist_libjournal_core_la_SOURCES = \ |
663996b3 MS |
4025 | src/journal/journald-gperf.c |
4026 | ||
86f210e9 MP |
4027 | libjournal_core_la_LIBADD = \ |
4028 | libshared.la | |
663996b3 | 4029 | |
60f067b4 | 4030 | noinst_LTLIBRARIES += \ |
86f210e9 | 4031 | libjournal-core.la |
663996b3 | 4032 | |
60f067b4 | 4033 | journal-install-hook: |
663996b3 MS |
4034 | -$(MKDIR_P) $(DESTDIR)/var/log/journal |
4035 | -chown 0:0 $(DESTDIR)/var/log/journal | |
4036 | -chmod 755 $(DESTDIR)/var/log/journal | |
4037 | -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/ | |
4038 | -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/ | |
4039 | ||
60f067b4 | 4040 | journal-uninstall-hook: |
5eef597e | 4041 | -rmdir $(DESTDIR)/var/log/journal/remote |
60f067b4 | 4042 | -rmdir $(DESTDIR)/var/log/journal/ |
663996b3 | 4043 | |
60f067b4 JS |
4044 | INSTALL_EXEC_HOOKS += journal-install-hook |
4045 | UNINSTALL_EXEC_HOOKS += journal-uninstall-hook | |
663996b3 MS |
4046 | |
4047 | # ------------------------------------------------------------------------------ | |
663996b3 MS |
4048 | # Update catalog on installation. Do not bother if installing |
4049 | # in DESTDIR, since this is likely for packaging purposes. | |
4050 | catalog-update-hook: | |
4051 | -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog | |
4052 | ||
4053 | INSTALL_DATA_HOOKS += \ | |
4054 | catalog-update-hook | |
4055 | ||
4056 | catalog-remove-hook: | |
4057 | -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database | |
4058 | ||
4059 | UNINSTALL_DATA_HOOKS += \ | |
4060 | catalog-remove-hook | |
4061 | ||
4062 | manual_tests += \ | |
4063 | test-journal-enum | |
4064 | ||
4065 | tests += \ | |
4066 | test-journal \ | |
4067 | test-journal-send \ | |
4068 | test-journal-syslog \ | |
4069 | test-journal-match \ | |
4070 | test-journal-stream \ | |
14228c0d | 4071 | test-journal-init \ |
663996b3 | 4072 | test-journal-verify \ |
14228c0d | 4073 | test-journal-interleaving \ |
60f067b4 | 4074 | test-journal-flush \ |
663996b3 | 4075 | test-mmap-cache \ |
e3bff60a MP |
4076 | test-catalog \ |
4077 | test-audit-type | |
663996b3 | 4078 | |
5eef597e MP |
4079 | if HAVE_COMPRESSION |
4080 | tests += \ | |
4081 | test-compress \ | |
4082 | test-compress-benchmark | |
e842803a MB |
4083 | endif |
4084 | ||
663996b3 MS |
4085 | pkginclude_HEADERS += \ |
4086 | src/systemd/sd-journal.h \ | |
60f067b4 JS |
4087 | src/systemd/sd-messages.h \ |
4088 | src/systemd/_sd-common.h | |
663996b3 | 4089 | |
60f067b4 JS |
4090 | libsystemd_journal_internal_la_SOURCES = \ |
4091 | src/journal/sd-journal.c \ | |
4092 | src/systemd/sd-journal.h \ | |
4093 | src/systemd/_sd-common.h \ | |
4094 | src/journal/journal-file.c \ | |
4095 | src/journal/journal-file.h \ | |
4096 | src/journal/journal-vacuum.c \ | |
4097 | src/journal/journal-vacuum.h \ | |
4098 | src/journal/journal-verify.c \ | |
4099 | src/journal/journal-verify.h \ | |
4100 | src/journal/lookup3.c \ | |
4101 | src/journal/lookup3.h \ | |
4102 | src/journal/journal-send.c \ | |
4103 | src/journal/journal-def.h \ | |
4104 | src/journal/compress.h \ | |
4105 | src/journal/catalog.c \ | |
4106 | src/journal/catalog.h \ | |
4107 | src/journal/mmap-cache.c \ | |
e735f4d4 | 4108 | src/journal/mmap-cache.h \ |
e3bff60a MP |
4109 | src/journal/compress.c \ |
4110 | src/journal/audit-type.h \ | |
86f210e9 MP |
4111 | src/journal/audit-type.c |
4112 | ||
4113 | nodist_libsystemd_journal_internal_la_SOURCES = \ | |
e3bff60a MP |
4114 | src/journal/audit_type-to-name.h |
4115 | ||
4116 | gperf_txt_sources += \ | |
4117 | src/journal/audit_type-list.txt | |
60f067b4 JS |
4118 | |
4119 | # using _CFLAGS = in the conditional below would suppress AM_CFLAGS | |
e842803a | 4120 | libsystemd_journal_internal_la_CFLAGS = \ |
60f067b4 JS |
4121 | $(AM_CFLAGS) |
4122 | ||
86f210e9 | 4123 | libsystemd_journal_internal_la_LIBADD = |
60f067b4 | 4124 | |
5eef597e | 4125 | if HAVE_XZ |
60f067b4 JS |
4126 | libsystemd_journal_internal_la_CFLAGS += \ |
4127 | $(XZ_CFLAGS) | |
4128 | ||
4129 | libsystemd_journal_internal_la_LIBADD += \ | |
4130 | $(XZ_LIBS) | |
4131 | endif | |
4132 | ||
5eef597e MP |
4133 | if HAVE_LZ4 |
4134 | libsystemd_journal_internal_la_LIBADD += \ | |
4135 | -llz4 | |
4136 | endif | |
4137 | ||
60f067b4 JS |
4138 | if HAVE_GCRYPT |
4139 | libsystemd_journal_internal_la_SOURCES += \ | |
4140 | src/journal/journal-authenticate.c \ | |
4141 | src/journal/journal-authenticate.h \ | |
4142 | src/journal/fsprg.c \ | |
4143 | src/journal/fsprg.h | |
4144 | ||
4145 | libsystemd_journal_internal_la_LIBADD += \ | |
4146 | $(GCRYPT_LIBS) | |
4147 | ||
4148 | # fsprg.c is a drop-in file using void pointer arithmetic | |
4149 | libsystemd_journal_internal_la_CFLAGS += \ | |
4150 | $(GCRYPT_CFLAGS) \ | |
4151 | -Wno-pointer-arith | |
4152 | endif | |
663996b3 MS |
4153 | |
4154 | noinst_LTLIBRARIES += \ | |
4155 | libsystemd-journal-internal.la | |
4156 | ||
4157 | rootlibexec_PROGRAMS += \ | |
4158 | systemd-journald | |
4159 | ||
4160 | rootbin_PROGRAMS += \ | |
4161 | journalctl | |
4162 | ||
4163 | bin_PROGRAMS += \ | |
4164 | systemd-cat | |
4165 | ||
4166 | dist_systemunit_DATA += \ | |
60f067b4 | 4167 | units/systemd-journald.socket \ |
f47781d8 MP |
4168 | units/systemd-journald-dev-log.socket \ |
4169 | units/systemd-journald-audit.socket | |
663996b3 MS |
4170 | |
4171 | nodist_systemunit_DATA += \ | |
4172 | units/systemd-journald.service \ | |
e842803a MB |
4173 | units/systemd-journal-flush.service \ |
4174 | units/systemd-journal-catalog-update.service | |
663996b3 MS |
4175 | |
4176 | dist_pkgsysconf_DATA += \ | |
4177 | src/journal/journald.conf | |
4178 | ||
663996b3 | 4179 | dist_catalog_DATA = \ |
86f210e9 MP |
4180 | catalog/systemd.be.catalog \ |
4181 | catalog/systemd.be@latin.catalog \ | |
60f067b4 | 4182 | catalog/systemd.fr.catalog \ |
60f067b4 | 4183 | catalog/systemd.it.catalog \ |
5eef597e | 4184 | catalog/systemd.pl.catalog \ |
e735f4d4 | 4185 | catalog/systemd.pt_BR.catalog \ |
5eef597e | 4186 | catalog/systemd.ru.catalog \ |
86f210e9 | 4187 | catalog/systemd.zh_TW.catalog \ |
663996b3 MS |
4188 | catalog/systemd.catalog |
4189 | ||
4190 | SOCKETS_TARGET_WANTS += \ | |
60f067b4 | 4191 | systemd-journald.socket \ |
f47781d8 MP |
4192 | systemd-journald-dev-log.socket \ |
4193 | systemd-journald-audit.socket | |
60f067b4 | 4194 | |
663996b3 MS |
4195 | SYSINIT_TARGET_WANTS += \ |
4196 | systemd-journald.service \ | |
e842803a MB |
4197 | systemd-journal-flush.service \ |
4198 | systemd-journal-catalog-update.service | |
663996b3 MS |
4199 | |
4200 | EXTRA_DIST += \ | |
663996b3 MS |
4201 | units/systemd-journald.service.in \ |
4202 | units/systemd-journal-flush.service.in \ | |
e3bff60a | 4203 | units/systemd-journal-catalog-update.service.in |
663996b3 | 4204 | |
e3bff60a MP |
4205 | gperf_gperf_sources += \ |
4206 | src/journal/journald-gperf.gperf | |
663996b3 MS |
4207 | |
4208 | # ------------------------------------------------------------------------------ | |
4209 | if HAVE_MICROHTTPD | |
4210 | gatewayddocumentrootdir=$(pkgdatadir)/gatewayd | |
4211 | ||
4212 | rootlibexec_PROGRAMS += \ | |
4213 | systemd-journal-gatewayd | |
4214 | ||
4215 | systemd_journal_gatewayd_SOURCES = \ | |
5eef597e MP |
4216 | src/journal-remote/journal-gatewayd.c \ |
4217 | src/journal-remote/microhttpd-util.h \ | |
4218 | src/journal-remote/microhttpd-util.c | |
663996b3 MS |
4219 | |
4220 | systemd_journal_gatewayd_LDADD = \ | |
86f210e9 | 4221 | libshared.la \ |
663996b3 MS |
4222 | $(MICROHTTPD_LIBS) |
4223 | ||
60f067b4 JS |
4224 | if HAVE_GNUTLS |
4225 | systemd_journal_gatewayd_LDADD += \ | |
4226 | $(GNUTLS_LIBS) | |
4227 | endif | |
4228 | ||
663996b3 | 4229 | systemd_journal_gatewayd_CFLAGS = \ |
663996b3 MS |
4230 | $(AM_CFLAGS) \ |
4231 | $(MICROHTTPD_CFLAGS) | |
4232 | ||
60f067b4 JS |
4233 | systemd_journal_gatewayd_CPPFLAGS = \ |
4234 | $(AM_CPPFLAGS) \ | |
4235 | -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" | |
4236 | ||
663996b3 MS |
4237 | dist_systemunit_DATA += \ |
4238 | units/systemd-journal-gatewayd.socket | |
4239 | ||
4240 | nodist_systemunit_DATA += \ | |
4241 | units/systemd-journal-gatewayd.service | |
4242 | ||
4243 | dist_gatewayddocumentroot_DATA = \ | |
5eef597e | 4244 | src/journal-remote/browse.html |
663996b3 MS |
4245 | |
4246 | endif | |
4247 | ||
4248 | EXTRA_DIST += \ | |
4249 | units/systemd-journal-gatewayd.service.in | |
4250 | ||
60f067b4 JS |
4251 | # ------------------------------------------------------------------------------ |
4252 | ||
4253 | systemd_socket_proxyd_SOURCES = \ | |
4254 | src/socket-proxy/socket-proxyd.c | |
4255 | ||
4256 | systemd_socket_proxyd_LDADD = \ | |
86f210e9 | 4257 | libshared.la |
60f067b4 | 4258 | |
663996b3 MS |
4259 | # ------------------------------------------------------------------------------ |
4260 | if ENABLE_COREDUMP | |
4261 | systemd_coredump_SOURCES = \ | |
e842803a MB |
4262 | src/journal/coredump.c \ |
4263 | src/journal/coredump-vacuum.c \ | |
4264 | src/journal/coredump-vacuum.h | |
663996b3 MS |
4265 | |
4266 | systemd_coredump_LDADD = \ | |
86f210e9 | 4267 | libshared.la |
663996b3 | 4268 | |
e842803a MB |
4269 | if HAVE_ELFUTILS |
4270 | systemd_coredump_SOURCES += \ | |
4271 | src/journal/stacktrace.c \ | |
4272 | src/journal/stacktrace.h | |
4273 | ||
4274 | systemd_coredump_LDADD += \ | |
4275 | $(ELFUTILS_LIBS) | |
4276 | endif | |
4277 | ||
663996b3 MS |
4278 | rootlibexec_PROGRAMS += \ |
4279 | systemd-coredump | |
4280 | ||
e842803a MB |
4281 | dist_pkgsysconf_DATA += \ |
4282 | src/journal/coredump.conf | |
4283 | ||
e842803a | 4284 | coredumpctl_SOURCES = \ |
663996b3 MS |
4285 | src/journal/coredumpctl.c |
4286 | ||
e842803a | 4287 | coredumpctl_LDADD = \ |
86f210e9 | 4288 | libshared.la |
663996b3 MS |
4289 | |
4290 | bin_PROGRAMS += \ | |
e842803a MB |
4291 | coredumpctl |
4292 | ||
4293 | manual_tests += \ | |
4294 | test-coredump-vacuum | |
4295 | ||
4296 | test_coredump_vacuum_SOURCES = \ | |
4297 | src/journal/test-coredump-vacuum.c \ | |
4298 | src/journal/coredump-vacuum.c \ | |
4299 | src/journal/coredump-vacuum.h | |
4300 | ||
4301 | test_coredump_vacuum_LDADD = \ | |
86f210e9 | 4302 | libshared.la |
663996b3 | 4303 | |
13d276d0 | 4304 | if ENABLE_BASH_COMPLETION |
663996b3 | 4305 | dist_bashcompletion_DATA += \ |
e842803a | 4306 | shell-completion/bash/coredumpctl |
13d276d0 | 4307 | endif |
663996b3 | 4308 | |
13d276d0 | 4309 | if ENABLE_ZSH_COMPLETION |
14228c0d | 4310 | dist_zshcompletion_DATA += \ |
e842803a | 4311 | shell-completion/zsh/_coredumpctl |
13d276d0 | 4312 | endif |
e842803a | 4313 | |
e3bff60a | 4314 | nodist_sysctl_DATA = \ |
663996b3 MS |
4315 | sysctl.d/50-coredump.conf |
4316 | ||
4317 | CLEANFILES += \ | |
4318 | sysctl.d/50-coredump.conf | |
4319 | endif | |
4320 | ||
4321 | EXTRA_DIST += \ | |
4322 | sysctl.d/50-coredump.conf.in | |
4323 | ||
4324 | # ------------------------------------------------------------------------------ | |
4325 | if ENABLE_BINFMT | |
4326 | systemd_binfmt_SOURCES = \ | |
4327 | src/binfmt/binfmt.c | |
4328 | ||
4329 | systemd_binfmt_LDADD = \ | |
86f210e9 | 4330 | libshared.la |
663996b3 MS |
4331 | |
4332 | rootlibexec_PROGRAMS += \ | |
4333 | systemd-binfmt | |
4334 | ||
4335 | dist_systemunit_DATA += \ | |
4336 | units/proc-sys-fs-binfmt_misc.automount \ | |
4337 | units/proc-sys-fs-binfmt_misc.mount | |
4338 | ||
4339 | nodist_systemunit_DATA += \ | |
4340 | units/systemd-binfmt.service | |
4341 | ||
4342 | INSTALL_DIRS += \ | |
4343 | $(prefix)/lib/binfmt.d \ | |
4344 | $(sysconfdir)/binfmt.d | |
4345 | ||
4346 | SYSINIT_TARGET_WANTS += \ | |
4347 | systemd-binfmt.service \ | |
4348 | proc-sys-fs-binfmt_misc.automount | |
4349 | ||
4350 | endif | |
4351 | ||
4352 | EXTRA_DIST += \ | |
4353 | units/systemd-binfmt.service.in | |
4354 | ||
4355 | # ------------------------------------------------------------------------------ | |
4356 | if ENABLE_VCONSOLE | |
4357 | systemd_vconsole_setup_SOURCES = \ | |
4358 | src/vconsole/vconsole-setup.c | |
4359 | ||
4360 | systemd_vconsole_setup_LDADD = \ | |
86f210e9 | 4361 | libshared.la |
663996b3 MS |
4362 | |
4363 | rootlibexec_PROGRAMS += \ | |
4364 | systemd-vconsole-setup | |
4365 | ||
f47781d8 MP |
4366 | nodist_udevrules_DATA += \ |
4367 | src/vconsole/90-vconsole.rules | |
4368 | ||
e3bff60a MP |
4369 | nodist_systemunit_DATA += \ |
4370 | units/systemd-vconsole-setup.service | |
4371 | ||
663996b3 MS |
4372 | SYSINIT_TARGET_WANTS += \ |
4373 | systemd-vconsole-setup.service | |
4374 | endif | |
4375 | ||
4376 | EXTRA_DIST += \ | |
f47781d8 | 4377 | src/vconsole/90-vconsole.rules.in \ |
663996b3 MS |
4378 | units/systemd-vconsole-setup.service.in |
4379 | ||
663996b3 MS |
4380 | # ------------------------------------------------------------------------------ |
4381 | if ENABLE_BOOTCHART | |
4382 | systemd_bootchart_SOURCES = \ | |
4383 | src/bootchart/bootchart.c \ | |
4384 | src/bootchart/bootchart.h \ | |
4385 | src/bootchart/store.c \ | |
4386 | src/bootchart/store.h \ | |
4387 | src/bootchart/svg.c \ | |
4388 | src/bootchart/svg.h | |
4389 | ||
4390 | systemd_bootchart_LDADD = \ | |
86f210e9 | 4391 | libshared.la |
663996b3 MS |
4392 | |
4393 | rootlibexec_PROGRAMS += \ | |
4394 | systemd-bootchart | |
4395 | ||
4396 | dist_pkgsysconf_DATA += \ | |
4397 | src/bootchart/bootchart.conf | |
f47781d8 MP |
4398 | |
4399 | nodist_systemunit_DATA += \ | |
4400 | units/systemd-bootchart.service | |
86f210e9 | 4401 | endif |
f47781d8 MP |
4402 | |
4403 | EXTRA_DIST += \ | |
4404 | units/systemd-bootchart.service.in | |
663996b3 MS |
4405 | |
4406 | # ------------------------------------------------------------------------------ | |
4407 | if ENABLE_QUOTACHECK | |
4408 | rootlibexec_PROGRAMS += \ | |
4409 | systemd-quotacheck | |
4410 | ||
4411 | nodist_systemunit_DATA += \ | |
4412 | units/systemd-quotacheck.service | |
4413 | ||
4414 | systemd_quotacheck_SOURCES = \ | |
4415 | src/quotacheck/quotacheck.c | |
4416 | ||
4417 | systemd_quotacheck_LDADD = \ | |
86f210e9 | 4418 | libshared.la |
663996b3 MS |
4419 | endif |
4420 | ||
4421 | EXTRA_DIST += \ | |
4422 | units/systemd-quotacheck.service.in | |
4423 | ||
4424 | nodist_systemunit_DATA += \ | |
4425 | units/quotaon.service | |
4426 | ||
4427 | # ------------------------------------------------------------------------------ | |
4428 | if ENABLE_RANDOMSEED | |
4429 | rootlibexec_PROGRAMS += \ | |
4430 | systemd-random-seed | |
4431 | ||
4432 | nodist_systemunit_DATA += \ | |
14228c0d | 4433 | units/systemd-random-seed.service |
663996b3 MS |
4434 | |
4435 | systemd_random_seed_SOURCES = \ | |
4436 | src/random-seed/random-seed.c | |
4437 | ||
4438 | systemd_random_seed_LDADD = \ | |
86f210e9 | 4439 | libshared.la |
663996b3 | 4440 | |
663996b3 | 4441 | SYSINIT_TARGET_WANTS += \ |
14228c0d MB |
4442 | systemd-random-seed.service |
4443 | ||
4444 | endif | |
4445 | ||
4446 | EXTRA_DIST += \ | |
4447 | units/systemd-random-seed.service.in | |
663996b3 | 4448 | |
14228c0d MB |
4449 | # ------------------------------------------------------------------------------ |
4450 | if ENABLE_BACKLIGHT | |
4451 | rootlibexec_PROGRAMS += \ | |
4452 | systemd-backlight | |
4453 | ||
4454 | nodist_systemunit_DATA += \ | |
4455 | units/systemd-backlight@.service | |
4456 | ||
4457 | systemd_backlight_SOURCES = \ | |
4458 | src/backlight/backlight.c | |
4459 | ||
4460 | systemd_backlight_LDADD = \ | |
86f210e9 | 4461 | libshared.la |
663996b3 MS |
4462 | endif |
4463 | ||
4464 | EXTRA_DIST += \ | |
14228c0d | 4465 | units/systemd-backlight@.service.in |
663996b3 | 4466 | |
60f067b4 JS |
4467 | # ------------------------------------------------------------------------------ |
4468 | if ENABLE_RFKILL | |
4469 | rootlibexec_PROGRAMS += \ | |
4470 | systemd-rfkill | |
4471 | ||
4472 | nodist_systemunit_DATA += \ | |
6300502b MP |
4473 | units/systemd-rfkill.service |
4474 | ||
4475 | dist_systemunit_DATA += \ | |
4476 | units/systemd-rfkill.socket | |
60f067b4 JS |
4477 | |
4478 | systemd_rfkill_SOURCES = \ | |
4479 | src/rfkill/rfkill.c | |
4480 | ||
4481 | systemd_rfkill_LDADD = \ | |
86f210e9 | 4482 | libshared.la |
60f067b4 JS |
4483 | endif |
4484 | ||
4485 | EXTRA_DIST += \ | |
6300502b | 4486 | units/systemd-rfkill.service.in |
60f067b4 | 4487 | |
663996b3 MS |
4488 | # ------------------------------------------------------------------------------ |
4489 | if HAVE_LIBCRYPTSETUP | |
4490 | rootlibexec_PROGRAMS += \ | |
4491 | systemd-cryptsetup | |
4492 | ||
4493 | systemgenerator_PROGRAMS += \ | |
4494 | systemd-cryptsetup-generator | |
4495 | ||
4496 | dist_systemunit_DATA += \ | |
e842803a MB |
4497 | units/cryptsetup.target \ |
4498 | units/cryptsetup-pre.target | |
663996b3 MS |
4499 | |
4500 | systemd_cryptsetup_SOURCES = \ | |
4501 | src/cryptsetup/cryptsetup.c | |
4502 | ||
4503 | systemd_cryptsetup_CFLAGS = \ | |
4504 | $(AM_CFLAGS) \ | |
4505 | $(LIBCRYPTSETUP_CFLAGS) | |
4506 | ||
4507 | systemd_cryptsetup_LDADD = \ | |
86f210e9 | 4508 | libshared.la \ |
663996b3 MS |
4509 | $(LIBCRYPTSETUP_LIBS) |
4510 | ||
4511 | systemd_cryptsetup_generator_SOURCES = \ | |
4512 | src/cryptsetup/cryptsetup-generator.c | |
4513 | ||
4514 | systemd_cryptsetup_generator_LDADD = \ | |
86f210e9 | 4515 | libshared.la |
663996b3 MS |
4516 | |
4517 | SYSINIT_TARGET_WANTS += \ | |
4518 | cryptsetup.target | |
4519 | ||
4520 | endif | |
4521 | ||
4522 | # ------------------------------------------------------------------------------ | |
4523 | if ENABLE_HOSTNAMED | |
4524 | systemd_hostnamed_SOURCES = \ | |
4525 | src/hostname/hostnamed.c | |
4526 | ||
663996b3 | 4527 | systemd_hostnamed_LDADD = \ |
86f210e9 | 4528 | libshared.la |
663996b3 MS |
4529 | |
4530 | rootlibexec_PROGRAMS += \ | |
4531 | systemd-hostnamed | |
4532 | ||
4533 | nodist_systemunit_DATA += \ | |
4534 | units/systemd-hostnamed.service | |
4535 | ||
5eef597e | 4536 | dist_systemunit_DATA_busnames += \ |
60f067b4 JS |
4537 | units/org.freedesktop.hostname1.busname |
4538 | ||
663996b3 MS |
4539 | dist_dbuspolicy_DATA += \ |
4540 | src/hostname/org.freedesktop.hostname1.conf | |
4541 | ||
4542 | dist_dbussystemservice_DATA += \ | |
4543 | src/hostname/org.freedesktop.hostname1.service | |
4544 | ||
4545 | polkitpolicy_files += \ | |
4546 | src/hostname/org.freedesktop.hostname1.policy | |
4547 | ||
663996b3 MS |
4548 | SYSTEM_UNIT_ALIASES += \ |
4549 | systemd-hostnamed.service dbus-org.freedesktop.hostname1.service | |
4550 | ||
60f067b4 JS |
4551 | BUSNAMES_TARGET_WANTS += \ |
4552 | org.freedesktop.hostname1.busname | |
4553 | ||
663996b3 MS |
4554 | hostnamectl_SOURCES = \ |
4555 | src/hostname/hostnamectl.c | |
4556 | ||
663996b3 | 4557 | hostnamectl_LDADD = \ |
86f210e9 | 4558 | libshared.la |
663996b3 MS |
4559 | |
4560 | bin_PROGRAMS += \ | |
4561 | hostnamectl | |
4562 | ||
13d276d0 | 4563 | if ENABLE_BASH_COMPLETION |
663996b3 MS |
4564 | dist_bashcompletion_DATA += \ |
4565 | shell-completion/bash/hostnamectl | |
13d276d0 | 4566 | endif |
663996b3 | 4567 | |
13d276d0 | 4568 | if ENABLE_ZSH_COMPLETION |
14228c0d MB |
4569 | dist_zshcompletion_DATA += \ |
4570 | shell-completion/zsh/_hostnamectl | |
13d276d0 | 4571 | endif |
663996b3 MS |
4572 | endif |
4573 | ||
4574 | polkitpolicy_in_files += \ | |
4575 | src/hostname/org.freedesktop.hostname1.policy.in | |
4576 | ||
4577 | EXTRA_DIST += \ | |
4578 | units/systemd-hostnamed.service.in | |
4579 | ||
60f067b4 | 4580 | # ------------------------------------------------------------------------------ |
5eef597e | 4581 | dist_systemunit_DATA_busnames += \ |
60f067b4 JS |
4582 | units/org.freedesktop.systemd1.busname |
4583 | ||
4584 | BUSNAMES_TARGET_WANTS += \ | |
4585 | org.freedesktop.systemd1.busname | |
60f067b4 | 4586 | |
663996b3 MS |
4587 | # ------------------------------------------------------------------------------ |
4588 | if ENABLE_LOCALED | |
4589 | systemd_localed_SOURCES = \ | |
4590 | src/locale/localed.c | |
4591 | ||
663996b3 | 4592 | systemd_localed_LDADD = \ |
86f210e9 | 4593 | libshared.la \ |
f47781d8 MP |
4594 | $(XKBCOMMON_LIBS) |
4595 | ||
4596 | systemd_localed_CFLAGS = \ | |
4597 | $(AM_CFLAGS) \ | |
4598 | $(XKBCOMMON_CFLAGS) | |
663996b3 MS |
4599 | |
4600 | nodist_systemunit_DATA += \ | |
4601 | units/systemd-localed.service | |
4602 | ||
5eef597e | 4603 | dist_systemunit_DATA_busnames += \ |
60f067b4 JS |
4604 | units/org.freedesktop.locale1.busname |
4605 | ||
663996b3 MS |
4606 | rootlibexec_PROGRAMS += \ |
4607 | systemd-localed | |
4608 | ||
4609 | dist_dbuspolicy_DATA += \ | |
4610 | src/locale/org.freedesktop.locale1.conf | |
4611 | ||
4612 | dist_dbussystemservice_DATA += \ | |
4613 | src/locale/org.freedesktop.locale1.service | |
4614 | ||
4615 | polkitpolicy_files += \ | |
4616 | src/locale/org.freedesktop.locale1.policy | |
4617 | ||
663996b3 MS |
4618 | SYSTEM_UNIT_ALIASES += \ |
4619 | systemd-localed.service dbus-org.freedesktop.locale1.service | |
4620 | ||
60f067b4 JS |
4621 | BUSNAMES_TARGET_WANTS += \ |
4622 | org.freedesktop.locale1.busname | |
4623 | ||
fb183854 | 4624 | dist_pkgdata_DATA = \ |
e735f4d4 MP |
4625 | src/locale/kbd-model-map \ |
4626 | src/locale/language-fallback-map | |
663996b3 | 4627 | |
663996b3 MS |
4628 | localectl_SOURCES = \ |
4629 | src/locale/localectl.c | |
4630 | ||
663996b3 | 4631 | localectl_LDADD = \ |
86f210e9 | 4632 | libshared.la |
663996b3 MS |
4633 | |
4634 | bin_PROGRAMS += \ | |
4635 | localectl | |
4636 | ||
13d276d0 | 4637 | if ENABLE_BASH_COMPLETION |
663996b3 MS |
4638 | dist_bashcompletion_DATA += \ |
4639 | shell-completion/bash/localectl | |
13d276d0 | 4640 | endif |
663996b3 | 4641 | |
13d276d0 | 4642 | if ENABLE_ZSH_COMPLETION |
14228c0d MB |
4643 | dist_zshcompletion_DATA += \ |
4644 | shell-completion/zsh/_localectl | |
13d276d0 | 4645 | endif |
663996b3 MS |
4646 | endif |
4647 | ||
60f067b4 JS |
4648 | .PHONY: update-kbd-model-map |
4649 | ||
663996b3 MS |
4650 | polkitpolicy_in_files += \ |
4651 | src/locale/org.freedesktop.locale1.policy.in | |
4652 | ||
4653 | EXTRA_DIST += \ | |
4654 | units/systemd-localed.service.in | |
4655 | ||
4656 | # ------------------------------------------------------------------------------ | |
4657 | if ENABLE_TIMEDATED | |
4658 | systemd_timedated_SOURCES = \ | |
4659 | src/timedate/timedated.c | |
4660 | ||
663996b3 | 4661 | systemd_timedated_LDADD = \ |
86f210e9 | 4662 | libshared.la |
663996b3 MS |
4663 | |
4664 | rootlibexec_PROGRAMS += \ | |
4665 | systemd-timedated | |
4666 | ||
4667 | dist_dbussystemservice_DATA += \ | |
4668 | src/timedate/org.freedesktop.timedate1.service | |
4669 | ||
4670 | dist_dbuspolicy_DATA += \ | |
4671 | src/timedate/org.freedesktop.timedate1.conf | |
4672 | ||
4673 | nodist_systemunit_DATA += \ | |
4674 | units/systemd-timedated.service | |
4675 | ||
5eef597e | 4676 | dist_systemunit_DATA_busnames += \ |
60f067b4 JS |
4677 | units/org.freedesktop.timedate1.busname |
4678 | ||
663996b3 MS |
4679 | polkitpolicy_files += \ |
4680 | src/timedate/org.freedesktop.timedate1.policy | |
4681 | ||
663996b3 MS |
4682 | SYSTEM_UNIT_ALIASES += \ |
4683 | systemd-timedated.service dbus-org.freedesktop.timedate1.service | |
4684 | ||
60f067b4 JS |
4685 | BUSNAMES_TARGET_WANTS += \ |
4686 | org.freedesktop.timedate1.busname | |
4687 | ||
663996b3 MS |
4688 | timedatectl_SOURCES = \ |
4689 | src/timedate/timedatectl.c | |
4690 | ||
663996b3 | 4691 | timedatectl_LDADD = \ |
86f210e9 | 4692 | libshared.la |
663996b3 MS |
4693 | |
4694 | bin_PROGRAMS += \ | |
4695 | timedatectl | |
4696 | ||
13d276d0 | 4697 | if ENABLE_BASH_COMPLETION |
663996b3 MS |
4698 | dist_bashcompletion_DATA += \ |
4699 | shell-completion/bash/timedatectl | |
13d276d0 | 4700 | endif |
14228c0d | 4701 | |
13d276d0 | 4702 | if ENABLE_ZSH_COMPLETION |
14228c0d MB |
4703 | dist_zshcompletion_DATA += \ |
4704 | shell-completion/zsh/_timedatectl | |
663996b3 | 4705 | endif |
13d276d0 | 4706 | endif |
663996b3 MS |
4707 | |
4708 | polkitpolicy_in_files += \ | |
4709 | src/timedate/org.freedesktop.timedate1.policy.in | |
4710 | ||
4711 | EXTRA_DIST += \ | |
4712 | units/systemd-timedated.service.in | |
4713 | ||
60f067b4 JS |
4714 | # ------------------------------------------------------------------------------ |
4715 | if ENABLE_TIMESYNCD | |
4716 | systemd_timesyncd_SOURCES = \ | |
4717 | src/timesync/timesyncd.c \ | |
5eef597e MP |
4718 | src/timesync/timesyncd-manager.c \ |
4719 | src/timesync/timesyncd-manager.h \ | |
4720 | src/timesync/timesyncd-conf.c \ | |
4721 | src/timesync/timesyncd-conf.h \ | |
4722 | src/timesync/timesyncd-server.c \ | |
4723 | src/timesync/timesyncd-server.h | |
60f067b4 JS |
4724 | |
4725 | nodist_systemd_timesyncd_SOURCES = \ | |
4726 | src/timesync/timesyncd-gperf.c | |
4727 | ||
e3bff60a | 4728 | gperf_gperf_sources += \ |
60f067b4 JS |
4729 | src/timesync/timesyncd-gperf.gperf |
4730 | ||
60f067b4 | 4731 | systemd_timesyncd_LDADD = \ |
60f067b4 | 4732 | libsystemd-network.la \ |
86f210e9 | 4733 | libshared.la |
60f067b4 JS |
4734 | |
4735 | rootlibexec_PROGRAMS += \ | |
4736 | systemd-timesyncd | |
4737 | ||
4738 | nodist_systemunit_DATA += \ | |
4739 | units/systemd-timesyncd.service | |
4740 | ||
e842803a | 4741 | GENERAL_ALIASES += \ |
5eef597e | 4742 | $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/sysinit.target.wants/systemd-timesyncd.service |
e842803a | 4743 | |
60f067b4 JS |
4744 | EXTRA_DIST += \ |
4745 | units/systemd-timesyncd.service.in | |
4746 | ||
4747 | nodist_pkgsysconf_DATA += \ | |
4748 | src/timesync/timesyncd.conf | |
4749 | ||
4750 | EXTRA_DIST += \ | |
4751 | src/timesync/timesyncd.conf.in | |
60f067b4 JS |
4752 | endif |
4753 | ||
663996b3 MS |
4754 | # ------------------------------------------------------------------------------ |
4755 | if HAVE_MYHOSTNAME | |
4756 | libnss_myhostname_la_SOURCES = \ | |
5eef597e MP |
4757 | src/nss-myhostname/nss-myhostname.sym \ |
4758 | src/nss-myhostname/nss-myhostname.c | |
663996b3 | 4759 | |
663996b3 MS |
4760 | libnss_myhostname_la_LDFLAGS = \ |
4761 | $(AM_LDFLAGS) \ | |
4762 | -module \ | |
4763 | -export-dynamic \ | |
4764 | -avoid-version \ | |
4765 | -shared \ | |
5eef597e MP |
4766 | -shrext .so.2 \ |
4767 | -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym | |
663996b3 | 4768 | |
60f067b4 | 4769 | libnss_myhostname_la_LIBADD = \ |
86f210e9 | 4770 | libshared.la |
60f067b4 | 4771 | |
663996b3 MS |
4772 | lib_LTLIBRARIES += \ |
4773 | libnss_myhostname.la | |
4774 | endif | |
4775 | ||
14228c0d MB |
4776 | # ------------------------------------------------------------------------------ |
4777 | if ENABLE_MACHINED | |
4778 | systemd_machined_SOURCES = \ | |
4779 | src/machine/machined.c \ | |
4780 | src/machine/machined.h | |
4781 | ||
14228c0d | 4782 | systemd_machined_LDADD = \ |
86f210e9 | 4783 | libmachine-core.la |
14228c0d MB |
4784 | |
4785 | rootlibexec_PROGRAMS += \ | |
4786 | systemd-machined | |
4787 | ||
86f210e9 | 4788 | libmachine_core_la_SOURCES = \ |
14228c0d MB |
4789 | src/machine/machine.c \ |
4790 | src/machine/machine.h \ | |
e735f4d4 MP |
4791 | src/machine/machined-dbus.c \ |
4792 | src/machine/machine-dbus.c \ | |
4793 | src/machine/machine-dbus.h \ | |
4794 | src/machine/image-dbus.c \ | |
4795 | src/machine/image-dbus.h | |
14228c0d | 4796 | |
86f210e9 MP |
4797 | libmachine_core_la_LIBADD = \ |
4798 | libshared.la | |
14228c0d MB |
4799 | |
4800 | noinst_LTLIBRARIES += \ | |
86f210e9 | 4801 | libmachine-core.la |
14228c0d MB |
4802 | |
4803 | machinectl_SOURCES = \ | |
4804 | src/machine/machinectl.c | |
4805 | ||
14228c0d | 4806 | machinectl_LDADD = \ |
86f210e9 | 4807 | libshared.la |
14228c0d MB |
4808 | |
4809 | rootbin_PROGRAMS += \ | |
4810 | machinectl | |
4811 | ||
13d276d0 | 4812 | if ENABLE_BASH_COMPLETION |
60f067b4 JS |
4813 | dist_bashcompletion_DATA += \ |
4814 | shell-completion/bash/machinectl | |
13d276d0 | 4815 | endif |
60f067b4 | 4816 | |
14228c0d MB |
4817 | test_machine_tables_SOURCES = \ |
4818 | src/machine/test-machine-tables.c | |
4819 | ||
14228c0d | 4820 | test_machine_tables_LDADD = \ |
86f210e9 | 4821 | libmachine-core.la |
14228c0d MB |
4822 | |
4823 | tests += \ | |
4824 | test-machine-tables | |
4825 | ||
4826 | nodist_systemunit_DATA += \ | |
4827 | units/systemd-machined.service | |
4828 | ||
4829 | dist_systemunit_DATA += \ | |
5eef597e MP |
4830 | units/machine.slice |
4831 | ||
4832 | dist_systemunit_DATA_busnames += \ | |
60f067b4 | 4833 | units/org.freedesktop.machine1.busname |
14228c0d MB |
4834 | |
4835 | dist_dbussystemservice_DATA += \ | |
4836 | src/machine/org.freedesktop.machine1.service | |
4837 | ||
4838 | dist_dbuspolicy_DATA += \ | |
4839 | src/machine/org.freedesktop.machine1.conf | |
4840 | ||
e735f4d4 MP |
4841 | polkitpolicy_files += \ |
4842 | src/machine/org.freedesktop.machine1.policy | |
4843 | ||
13d276d0 | 4844 | if ENABLE_ZSH_COMPLETION |
14228c0d | 4845 | dist_zshcompletion_DATA += \ |
60f067b4 JS |
4846 | shell-completion/zsh/_machinectl \ |
4847 | shell-completion/zsh/_sd_machines | |
13d276d0 | 4848 | endif |
14228c0d MB |
4849 | |
4850 | SYSTEM_UNIT_ALIASES += \ | |
4851 | systemd-machined.service dbus-org.freedesktop.machine1.service | |
4852 | ||
60f067b4 JS |
4853 | BUSNAMES_TARGET_WANTS += \ |
4854 | org.freedesktop.machine1.busname | |
4855 | ||
5eef597e MP |
4856 | libnss_mymachines_la_SOURCES = \ |
4857 | src/nss-mymachines/nss-mymachines.sym \ | |
4858 | src/nss-mymachines/nss-mymachines.c | |
4859 | ||
4860 | libnss_mymachines_la_LDFLAGS = \ | |
4861 | $(AM_LDFLAGS) \ | |
4862 | -module \ | |
4863 | -export-dynamic \ | |
4864 | -avoid-version \ | |
4865 | -shared \ | |
4866 | -shrext .so.2 \ | |
4867 | -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym | |
4868 | ||
4869 | libnss_mymachines_la_LIBADD = \ | |
86f210e9 | 4870 | libshared.la |
5eef597e MP |
4871 | |
4872 | lib_LTLIBRARIES += \ | |
4873 | libnss_mymachines.la | |
e735f4d4 MP |
4874 | |
4875 | endif | |
4876 | ||
86f210e9 MP |
4877 | polkitpolicy_in_files += \ |
4878 | src/machine/org.freedesktop.machine1.policy.in | |
4879 | ||
4880 | EXTRA_DIST += \ | |
4881 | units/systemd-machined.service.in | |
4882 | ||
e735f4d4 MP |
4883 | # ------------------------------------------------------------------------------ |
4884 | if ENABLE_IMPORTD | |
4885 | ||
4886 | if HAVE_LIBCURL | |
4887 | if HAVE_XZ | |
4888 | if HAVE_ZLIB | |
4889 | if HAVE_BZIP2 | |
4890 | if HAVE_GCRYPT | |
4891 | ||
4892 | rootlibexec_PROGRAMS += \ | |
4893 | systemd-importd \ | |
e3bff60a MP |
4894 | systemd-pull \ |
4895 | systemd-import \ | |
4896 | systemd-export | |
e735f4d4 MP |
4897 | |
4898 | systemd_importd_SOURCES = \ | |
4899 | src/import/importd.c | |
4900 | ||
4901 | systemd_importd_CFLAGS = \ | |
4902 | $(AM_CFLAGS) \ | |
e3bff60a MP |
4903 | -D SYSTEMD_PULL_PATH=\"$(rootlibexecdir)/systemd-pull\" \ |
4904 | -D SYSTEMD_IMPORT_PATH=\"$(rootlibexecdir)/systemd-import\" \ | |
4905 | -D SYSTEMD_EXPORT_PATH=\"$(rootlibexecdir)/systemd-export\" | |
e735f4d4 MP |
4906 | |
4907 | systemd_importd_LDADD = \ | |
86f210e9 | 4908 | libshared.la |
e735f4d4 MP |
4909 | |
4910 | systemd_pull_SOURCES = \ | |
4911 | src/import/pull.c \ | |
e3bff60a MP |
4912 | src/import/pull-raw.c \ |
4913 | src/import/pull-raw.h \ | |
4914 | src/import/pull-tar.c \ | |
4915 | src/import/pull-tar.h \ | |
4916 | src/import/pull-dkr.c \ | |
4917 | src/import/pull-dkr.h \ | |
4918 | src/import/pull-job.c \ | |
4919 | src/import/pull-job.h \ | |
4920 | src/import/pull-common.c \ | |
4921 | src/import/pull-common.h \ | |
e735f4d4 MP |
4922 | src/import/import-common.c \ |
4923 | src/import/import-common.h \ | |
e3bff60a MP |
4924 | src/import/import-compress.c \ |
4925 | src/import/import-compress.h \ | |
e735f4d4 MP |
4926 | src/import/curl-util.c \ |
4927 | src/import/curl-util.h \ | |
4928 | src/import/aufs-util.c \ | |
4929 | src/import/aufs-util.h \ | |
4930 | src/import/qcow2-util.c \ | |
4931 | src/import/qcow2-util.h | |
4932 | ||
4933 | systemd_pull_CFLAGS = \ | |
4934 | $(AM_CFLAGS) \ | |
4935 | $(LIBCURL_CFLAGS) \ | |
4936 | $(XZ_CFLAGS) \ | |
4937 | $(ZLIB_CFLAGS) \ | |
4938 | $(GCRYPT_CFLAGS) \ | |
4939 | -D VENDOR_KEYRING_PATH=\"$(rootlibexecdir)/import-pubring.gpg\" \ | |
4940 | -D USER_KEYRING_PATH=\"$(pkgsysconfdir)/import-pubring.gpg\" | |
4941 | ||
4942 | systemd_pull_LDADD = \ | |
86f210e9 | 4943 | libshared.la \ |
e735f4d4 MP |
4944 | $(LIBCURL_LIBS) \ |
4945 | $(XZ_LIBS) \ | |
4946 | $(ZLIB_LIBS) \ | |
4947 | -lbz2 \ | |
4948 | $(GCRYPT_LIBS) | |
4949 | ||
e3bff60a MP |
4950 | systemd_import_SOURCES = \ |
4951 | src/import/import.c \ | |
4952 | src/import/import-raw.c \ | |
4953 | src/import/import-raw.h \ | |
4954 | src/import/import-tar.c \ | |
4955 | src/import/import-tar.h \ | |
4956 | src/import/import-common.c \ | |
4957 | src/import/import-common.h \ | |
4958 | src/import/import-compress.c \ | |
4959 | src/import/import-compress.h \ | |
4960 | src/import/qcow2-util.c \ | |
4961 | src/import/qcow2-util.h | |
4962 | ||
4963 | systemd_import_CFLAGS = \ | |
4964 | $(AM_CFLAGS) \ | |
4965 | $(XZ_CFLAGS) \ | |
4966 | $(ZLIB_CFLAGS) | |
4967 | ||
4968 | systemd_import_LDADD = \ | |
86f210e9 | 4969 | libshared.la \ |
e3bff60a MP |
4970 | $(XZ_LIBS) \ |
4971 | $(ZLIB_LIBS) \ | |
4972 | -lbz2 | |
4973 | ||
4974 | systemd_export_SOURCES = \ | |
4975 | src/import/export.c \ | |
4976 | src/import/export-tar.c \ | |
4977 | src/import/export-tar.h \ | |
4978 | src/import/export-raw.c \ | |
4979 | src/import/export-raw.h \ | |
4980 | src/import/import-common.c \ | |
4981 | src/import/import-common.h \ | |
4982 | src/import/import-compress.c \ | |
4983 | src/import/import-compress.h | |
4984 | ||
4985 | systemd_export_CFLAGS = \ | |
4986 | $(AM_CFLAGS) \ | |
4987 | $(XZ_CFLAGS) \ | |
4988 | $(ZLIB_CFLAGS) | |
4989 | ||
4990 | systemd_export_LDADD = \ | |
86f210e9 | 4991 | libshared.la \ |
e3bff60a MP |
4992 | $(XZ_LIBS) \ |
4993 | $(ZLIB_LIBS) \ | |
4994 | -lbz2 | |
4995 | ||
e735f4d4 MP |
4996 | dist_rootlibexec_DATA = \ |
4997 | src/import/import-pubring.gpg | |
4998 | ||
4999 | nodist_systemunit_DATA += \ | |
5000 | units/systemd-importd.service | |
5001 | ||
e735f4d4 MP |
5002 | dist_systemunit_DATA_busnames += \ |
5003 | units/org.freedesktop.import1.busname | |
5004 | ||
5005 | BUSNAMES_TARGET_WANTS += \ | |
5006 | org.freedesktop.import1.busname | |
5007 | ||
5008 | SYSTEM_UNIT_ALIASES += \ | |
5009 | systemd-importd.service dbus-org.freedesktop.import1.service | |
5010 | ||
5011 | dist_dbussystemservice_DATA += \ | |
5012 | src/import/org.freedesktop.import1.service | |
5013 | ||
5014 | dist_dbuspolicy_DATA += \ | |
5015 | src/import/org.freedesktop.import1.conf | |
5016 | ||
5017 | polkitpolicy_files += \ | |
5018 | src/import/org.freedesktop.import1.policy | |
5019 | ||
e735f4d4 MP |
5020 | manual_tests += \ |
5021 | test-qcow2 | |
5022 | ||
5023 | test_qcow2_SOURCES = \ | |
5024 | src/import/test-qcow2.c \ | |
5025 | src/import/qcow2-util.c \ | |
5026 | src/import/qcow2-util.h | |
5027 | ||
5028 | test_qcow2_CFLAGS = \ | |
5029 | $(AM_CFLAGS) \ | |
5030 | $(ZLIB_CFLAGS) | |
5031 | ||
5032 | test_qcow2_LDADD = \ | |
86f210e9 | 5033 | libshared.la \ |
e735f4d4 MP |
5034 | $(ZLIB_LIBS) |
5035 | ||
5036 | endif | |
5037 | endif | |
5038 | endif | |
5039 | endif | |
5040 | endif | |
5041 | ||
14228c0d MB |
5042 | endif |
5043 | ||
86f210e9 MP |
5044 | polkitpolicy_in_files += \ |
5045 | src/import/org.freedesktop.import1.policy.in | |
5046 | ||
5047 | EXTRA_DIST += \ | |
5048 | units/systemd-importd.service.in \ | |
5049 | src/resolve/resolved.conf.in | |
5050 | ||
5051 | ||
60f067b4 JS |
5052 | # ------------------------------------------------------------------------------ |
5053 | if ENABLE_RESOLVED | |
5054 | systemd_resolved_SOURCES = \ | |
60f067b4 | 5055 | src/resolve/resolved.c \ |
5eef597e MP |
5056 | src/resolve/resolved-manager.c \ |
5057 | src/resolve/resolved-manager.h \ | |
5058 | src/resolve/resolved-conf.c \ | |
5059 | src/resolve/resolved-conf.h \ | |
5060 | src/resolve/resolved-bus.c \ | |
5061 | src/resolve/resolved-bus.h \ | |
5062 | src/resolve/resolved-link.h \ | |
5063 | src/resolve/resolved-link.c \ | |
7035cd9e MP |
5064 | src/resolve/resolved-llmnr.h \ |
5065 | src/resolve/resolved-llmnr.c \ | |
5eef597e | 5066 | src/resolve/resolved-def.h \ |
5eef597e MP |
5067 | src/resolve/resolved-dns-rr.h \ |
5068 | src/resolve/resolved-dns-rr.c \ | |
5069 | src/resolve/resolved-dns-question.h \ | |
5070 | src/resolve/resolved-dns-question.c \ | |
5071 | src/resolve/resolved-dns-answer.h \ | |
5072 | src/resolve/resolved-dns-answer.c \ | |
5073 | src/resolve/resolved-dns-packet.h \ | |
5074 | src/resolve/resolved-dns-packet.c \ | |
5075 | src/resolve/resolved-dns-query.h \ | |
5076 | src/resolve/resolved-dns-query.c \ | |
5077 | src/resolve/resolved-dns-transaction.h \ | |
5078 | src/resolve/resolved-dns-transaction.c \ | |
5079 | src/resolve/resolved-dns-scope.h \ | |
5080 | src/resolve/resolved-dns-scope.c \ | |
5081 | src/resolve/resolved-dns-server.h \ | |
5082 | src/resolve/resolved-dns-server.c \ | |
5083 | src/resolve/resolved-dns-cache.h \ | |
5084 | src/resolve/resolved-dns-cache.c \ | |
5085 | src/resolve/resolved-dns-zone.h \ | |
5086 | src/resolve/resolved-dns-zone.c \ | |
5087 | src/resolve/resolved-dns-stream.h \ | |
5088 | src/resolve/resolved-dns-stream.c \ | |
5089 | src/resolve/dns-type.c \ | |
86f210e9 | 5090 | src/resolve/dns-type.h |
60f067b4 JS |
5091 | |
5092 | nodist_systemd_resolved_SOURCES = \ | |
86f210e9 MP |
5093 | src/resolve/dns_type-from-name.h \ |
5094 | src/resolve/dns_type-to-name.h \ | |
60f067b4 JS |
5095 | src/resolve/resolved-gperf.c |
5096 | ||
e3bff60a MP |
5097 | gperf_gperf_sources += \ |
5098 | src/resolve/resolved-gperf.gperf | |
60f067b4 | 5099 | |
e3bff60a MP |
5100 | gperf_txt_sources += \ |
5101 | src/resolve/dns_type-list.txt | |
60f067b4 JS |
5102 | |
5103 | systemd_resolved_LDADD = \ | |
60f067b4 | 5104 | libsystemd-network.la \ |
86f210e9 | 5105 | libshared.la |
60f067b4 JS |
5106 | |
5107 | rootlibexec_PROGRAMS += \ | |
5108 | systemd-resolved | |
5109 | ||
5110 | nodist_systemunit_DATA += \ | |
5111 | units/systemd-resolved.service | |
5112 | ||
5eef597e MP |
5113 | dist_systemunit_DATA_busnames += \ |
5114 | units/org.freedesktop.resolve1.busname | |
5115 | ||
5116 | dist_dbuspolicy_DATA += \ | |
5117 | src/resolve/org.freedesktop.resolve1.conf | |
5118 | ||
5119 | dist_dbussystemservice_DATA += \ | |
5120 | src/resolve/org.freedesktop.resolve1.service | |
5121 | ||
5eef597e MP |
5122 | SYSTEM_UNIT_ALIASES += \ |
5123 | systemd-resolved.service dbus-org.freedesktop.resolve1.service | |
5124 | ||
5125 | BUSNAMES_TARGET_WANTS += \ | |
5126 | org.freedesktop.resolve1.busname | |
5127 | ||
60f067b4 JS |
5128 | GENERAL_ALIASES += \ |
5129 | $(systemunitdir)/systemd-resolved.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-resolved.service | |
5130 | ||
5131 | nodist_pkgsysconf_DATA += \ | |
5132 | src/resolve/resolved.conf | |
5133 | ||
5eef597e MP |
5134 | tests += \ |
5135 | test-dns-domain | |
5136 | ||
5eef597e MP |
5137 | libnss_resolve_la_SOURCES = \ |
5138 | src/nss-resolve/nss-resolve.sym \ | |
5139 | src/nss-resolve/nss-resolve.c | |
5140 | ||
5141 | libnss_resolve_la_LDFLAGS = \ | |
5142 | $(AM_LDFLAGS) \ | |
5143 | -module \ | |
5144 | -export-dynamic \ | |
5145 | -avoid-version \ | |
5146 | -shared \ | |
5147 | -shrext .so.2 \ | |
5148 | -Wl,--version-script=$(top_srcdir)/src/nss-resolve/nss-resolve.sym | |
5149 | ||
5150 | libnss_resolve_la_LIBADD = \ | |
86f210e9 | 5151 | libshared.la |
5eef597e MP |
5152 | |
5153 | lib_LTLIBRARIES += \ | |
5154 | libnss_resolve.la | |
5155 | ||
5156 | systemd_resolve_host_SOURCES = \ | |
5157 | src/resolve-host/resolve-host.c \ | |
5158 | src/resolve/resolved-dns-packet.c \ | |
5159 | src/resolve/resolved-dns-packet.h \ | |
5160 | src/resolve/resolved-dns-rr.c \ | |
5161 | src/resolve/resolved-dns-rr.h \ | |
5162 | src/resolve/resolved-dns-answer.c \ | |
5163 | src/resolve/resolved-dns-answer.h \ | |
5164 | src/resolve/resolved-dns-question.c \ | |
5165 | src/resolve/resolved-dns-question.h \ | |
5eef597e | 5166 | src/resolve/dns-type.c \ |
86f210e9 MP |
5167 | src/resolve/dns-type.h |
5168 | ||
5169 | nodist_systemd_resolve_host_SOURCES = \ | |
5eef597e MP |
5170 | src/resolve/dns_type-from-name.h \ |
5171 | src/resolve/dns_type-to-name.h | |
5172 | ||
5173 | systemd_resolve_host_LDADD = \ | |
86f210e9 | 5174 | libshared.la |
5eef597e MP |
5175 | |
5176 | rootlibexec_PROGRAMS += \ | |
5177 | systemd-resolve-host | |
5178 | ||
60f067b4 JS |
5179 | endif |
5180 | ||
86f210e9 MP |
5181 | EXTRA_DIST += \ |
5182 | units/systemd-resolved.service.m4.in | |
5183 | ||
60f067b4 JS |
5184 | # ------------------------------------------------------------------------------ |
5185 | if ENABLE_NETWORKD | |
5186 | rootlibexec_PROGRAMS += \ | |
5187 | systemd-networkd | |
5188 | ||
5189 | systemd_networkd_SOURCES = \ | |
5190 | src/network/networkd.c | |
5191 | ||
5192 | systemd_networkd_LDADD = \ | |
86f210e9 | 5193 | libnetworkd-core.la |
60f067b4 | 5194 | |
e735f4d4 MP |
5195 | if HAVE_LIBIPTC |
5196 | systemd_networkd_LDADD += \ | |
86f210e9 | 5197 | libfirewall.la |
e735f4d4 MP |
5198 | endif |
5199 | ||
60f067b4 | 5200 | noinst_LTLIBRARIES += \ |
86f210e9 | 5201 | libnetworkd-core.la |
60f067b4 | 5202 | |
86f210e9 | 5203 | libnetworkd_core_la_CFLAGS = \ |
60f067b4 JS |
5204 | $(AM_CFLAGS) |
5205 | ||
86f210e9 | 5206 | libnetworkd_core_la_SOURCES = \ |
60f067b4 JS |
5207 | src/libsystemd-network/network-internal.h \ |
5208 | src/network/networkd.h \ | |
5eef597e | 5209 | src/network/networkd-link.h \ |
d9dfd233 | 5210 | src/network/networkd-link.c \ |
5eef597e | 5211 | src/network/networkd-netdev.h \ |
60f067b4 | 5212 | src/network/networkd-netdev.c \ |
d9dfd233 | 5213 | src/network/networkd-netdev-tunnel.h \ |
5eef597e | 5214 | src/network/networkd-netdev-tunnel.c \ |
d9dfd233 | 5215 | src/network/networkd-netdev-veth.h \ |
5eef597e | 5216 | src/network/networkd-netdev-veth.c \ |
d9dfd233 | 5217 | src/network/networkd-netdev-vxlan.h \ |
5eef597e | 5218 | src/network/networkd-netdev-vxlan.c \ |
d9dfd233 | 5219 | src/network/networkd-netdev-vlan.h \ |
5eef597e | 5220 | src/network/networkd-netdev-vlan.c \ |
d9dfd233 | 5221 | src/network/networkd-netdev-macvlan.h \ |
5eef597e | 5222 | src/network/networkd-netdev-macvlan.c \ |
d9dfd233 | 5223 | src/network/networkd-netdev-ipvlan.h \ |
e735f4d4 | 5224 | src/network/networkd-netdev-ipvlan.c \ |
d9dfd233 | 5225 | src/network/networkd-netdev-dummy.h \ |
5eef597e | 5226 | src/network/networkd-netdev-dummy.c \ |
d9dfd233 | 5227 | src/network/networkd-netdev-tuntap.h \ |
5eef597e | 5228 | src/network/networkd-netdev-tuntap.c \ |
d9dfd233 | 5229 | src/network/networkd-netdev-bond.h \ |
5eef597e | 5230 | src/network/networkd-netdev-bond.c \ |
d9dfd233 | 5231 | src/network/networkd-netdev-bridge.h \ |
5eef597e | 5232 | src/network/networkd-netdev-bridge.c \ |
e735f4d4 | 5233 | src/network/networkd-link-bus.c \ |
5eef597e MP |
5234 | src/network/networkd-ipv4ll.c \ |
5235 | src/network/networkd-dhcp4.c \ | |
f47781d8 | 5236 | src/network/networkd-dhcp6.c \ |
d9dfd233 | 5237 | src/network/networkd-network.h \ |
60f067b4 | 5238 | src/network/networkd-network.c \ |
e735f4d4 | 5239 | src/network/networkd-network-bus.c \ |
d9dfd233 | 5240 | src/network/networkd-address.h \ |
60f067b4 | 5241 | src/network/networkd-address.c \ |
d9dfd233 | 5242 | src/network/networkd-route.h \ |
60f067b4 | 5243 | src/network/networkd-route.c \ |
e842803a | 5244 | src/network/networkd-manager.c \ |
e735f4d4 | 5245 | src/network/networkd-manager-bus.c \ |
d9dfd233 | 5246 | src/network/networkd-fdb.h \ |
e735f4d4 | 5247 | src/network/networkd-fdb.c \ |
d9dfd233 MP |
5248 | src/network/networkd-address-pool.h \ |
5249 | src/network/networkd-address-pool.c \ | |
5250 | src/network/networkd-util.h \ | |
5251 | src/network/networkd-util.c | |
60f067b4 | 5252 | |
86f210e9 | 5253 | nodist_libnetworkd_core_la_SOURCES = \ |
60f067b4 JS |
5254 | src/network/networkd-network-gperf.c \ |
5255 | src/network/networkd-netdev-gperf.c | |
5256 | ||
86f210e9 | 5257 | libnetworkd_core_la_LIBADD = \ |
60f067b4 | 5258 | libsystemd-network.la \ |
86f210e9 | 5259 | libshared.la |
60f067b4 JS |
5260 | |
5261 | rootlibexec_PROGRAMS += \ | |
5262 | systemd-networkd-wait-online | |
5263 | ||
5264 | systemd_networkd_wait_online_CFLAGS = \ | |
5265 | $(AM_CFLAGS) | |
5266 | ||
5267 | systemd_networkd_wait_online_SOURCES = \ | |
5268 | src/libsystemd-network/network-internal.h \ | |
5eef597e MP |
5269 | src/network/networkd-wait-online.h \ |
5270 | src/network/networkd-wait-online-link.h \ | |
60f067b4 | 5271 | src/network/networkd-wait-online.c \ |
5eef597e MP |
5272 | src/network/networkd-wait-online-manager.c \ |
5273 | src/network/networkd-wait-online-link.c | |
60f067b4 JS |
5274 | |
5275 | systemd_networkd_wait_online_LDADD = \ | |
5276 | libsystemd-network.la \ | |
86f210e9 | 5277 | libshared.la |
60f067b4 | 5278 | |
5eef597e MP |
5279 | rootbin_PROGRAMS += \ |
5280 | networkctl | |
5281 | ||
5282 | networkctl_SOURCES = \ | |
5283 | src/network/networkctl.c | |
5284 | ||
5285 | networkctl_LDADD = \ | |
86f210e9 | 5286 | libshared.la \ |
5eef597e MP |
5287 | libsystemd-network.la |
5288 | ||
60f067b4 JS |
5289 | test_network_SOURCES = \ |
5290 | src/network/test-network.c | |
5291 | ||
60f067b4 | 5292 | test_network_LDADD = \ |
86f210e9 | 5293 | libnetworkd-core.la |
60f067b4 | 5294 | |
e735f4d4 MP |
5295 | if HAVE_LIBIPTC |
5296 | test_network_LDADD += \ | |
86f210e9 | 5297 | libfirewall.la |
e735f4d4 MP |
5298 | endif |
5299 | ||
5eef597e MP |
5300 | test_network_tables_SOURCES = \ |
5301 | src/network/test-network-tables.c \ | |
5302 | src/shared/test-tables.h | |
5303 | ||
5304 | test_network_tables_LDADD = \ | |
86f210e9 | 5305 | libnetworkd-core.la \ |
5eef597e MP |
5306 | libudev-core.la |
5307 | ||
e735f4d4 MP |
5308 | if HAVE_LIBIPTC |
5309 | test_network_tables_LDADD += \ | |
86f210e9 | 5310 | libfirewall.la |
e735f4d4 MP |
5311 | endif |
5312 | ||
60f067b4 | 5313 | tests += \ |
5eef597e MP |
5314 | test-network \ |
5315 | test-network-tables | |
60f067b4 | 5316 | |
e735f4d4 MP |
5317 | dist_systemunit_DATA += \ |
5318 | units/systemd-networkd.socket | |
5319 | ||
60f067b4 JS |
5320 | nodist_systemunit_DATA += \ |
5321 | units/systemd-networkd.service \ | |
5322 | units/systemd-networkd-wait-online.service | |
5323 | ||
e735f4d4 MP |
5324 | dist_systemunit_DATA_busnames += \ |
5325 | units/org.freedesktop.network1.busname | |
5326 | ||
5327 | dist_dbussystemservice_DATA += \ | |
5328 | src/network/org.freedesktop.network1.service | |
5329 | ||
5330 | dist_dbuspolicy_DATA += \ | |
5331 | src/network/org.freedesktop.network1.conf | |
5332 | ||
60f067b4 | 5333 | GENERAL_ALIASES += \ |
e735f4d4 | 5334 | $(systemunitdir)/systemd-networkd.socket $(pkgsysconfdir)/system/sockets.target.wants/systemd-networkd.socket \ |
60f067b4 JS |
5335 | $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service \ |
5336 | $(systemunitdir)/systemd-networkd-wait-online.service $(pkgsysconfdir)/system/network-online.target.wants/systemd-networkd-wait-online.service | |
5337 | ||
e735f4d4 MP |
5338 | SYSTEM_UNIT_ALIASES += \ |
5339 | systemd-networkd.service dbus-org.freedesktop.network1.service | |
5340 | ||
5341 | BUSNAMES_TARGET_WANTS += \ | |
5342 | org.freedesktop.network1.busname | |
5343 | ||
e3bff60a | 5344 | gperf_gperf_sources += \ |
60f067b4 | 5345 | src/network/networkd-network-gperf.gperf \ |
e3bff60a | 5346 | src/network/networkd-netdev-gperf.gperf |
86f210e9 | 5347 | endif |
e3bff60a MP |
5348 | |
5349 | EXTRA_DIST += \ | |
5350 | units/systemd-networkd.service.m4.in \ | |
60f067b4 JS |
5351 | units/systemd-networkd-wait-online.service.in |
5352 | ||
663996b3 MS |
5353 | # ------------------------------------------------------------------------------ |
5354 | if ENABLE_LOGIND | |
5355 | systemd_logind_SOURCES = \ | |
5356 | src/login/logind.c \ | |
14228c0d MB |
5357 | src/login/logind.h |
5358 | ||
5359 | nodist_systemd_logind_SOURCES = \ | |
5360 | src/login/logind-gperf.c | |
5361 | ||
14228c0d | 5362 | systemd_logind_LDADD = \ |
86f210e9 | 5363 | liblogind-core.la |
14228c0d | 5364 | |
86f210e9 | 5365 | liblogind_core_la_SOURCES = \ |
14228c0d | 5366 | src/login/logind-core.c \ |
663996b3 MS |
5367 | src/login/logind-device.c \ |
5368 | src/login/logind-device.h \ | |
5369 | src/login/logind-button.c \ | |
5370 | src/login/logind-button.h \ | |
5371 | src/login/logind-action.c \ | |
5372 | src/login/logind-action.h \ | |
5373 | src/login/logind-seat.c \ | |
5374 | src/login/logind-seat.h \ | |
5375 | src/login/logind-session.c \ | |
5376 | src/login/logind-session.h \ | |
14228c0d MB |
5377 | src/login/logind-session-device.c \ |
5378 | src/login/logind-session-device.h \ | |
663996b3 MS |
5379 | src/login/logind-user.c \ |
5380 | src/login/logind-user.h \ | |
5381 | src/login/logind-inhibit.c \ | |
5382 | src/login/logind-inhibit.h \ | |
60f067b4 | 5383 | src/login/logind-dbus.c \ |
663996b3 MS |
5384 | src/login/logind-session-dbus.c \ |
5385 | src/login/logind-seat-dbus.c \ | |
5386 | src/login/logind-user-dbus.c \ | |
e3bff60a | 5387 | src/login/logind-utmp.c \ |
60f067b4 | 5388 | src/login/logind-acl.h |
663996b3 | 5389 | |
86f210e9 MP |
5390 | liblogind_core_la_LIBADD = \ |
5391 | libshared.la | |
663996b3 MS |
5392 | |
5393 | if HAVE_ACL | |
86f210e9 | 5394 | liblogind_core_la_SOURCES += \ |
663996b3 | 5395 | src/login/logind-acl.c |
663996b3 MS |
5396 | endif |
5397 | ||
14228c0d | 5398 | noinst_LTLIBRARIES += \ |
86f210e9 | 5399 | liblogind-core.la |
14228c0d | 5400 | |
663996b3 | 5401 | rootlibexec_PROGRAMS += \ |
e3bff60a | 5402 | systemd-logind |
663996b3 MS |
5403 | |
5404 | loginctl_SOURCES = \ | |
5405 | src/login/loginctl.c \ | |
e735f4d4 | 5406 | src/login/sysfs-show.h \ |
663996b3 MS |
5407 | src/login/sysfs-show.c |
5408 | ||
663996b3 | 5409 | loginctl_LDADD = \ |
86f210e9 | 5410 | libshared.la |
663996b3 MS |
5411 | |
5412 | rootbin_PROGRAMS += \ | |
5413 | loginctl | |
5414 | ||
13d276d0 | 5415 | if ENABLE_BASH_COMPLETION |
663996b3 MS |
5416 | dist_bashcompletion_DATA += \ |
5417 | shell-completion/bash/loginctl | |
13d276d0 | 5418 | endif |
663996b3 | 5419 | |
13d276d0 | 5420 | if ENABLE_ZSH_COMPLETION |
14228c0d MB |
5421 | dist_zshcompletion_DATA += \ |
5422 | shell-completion/zsh/_loginctl \ | |
5423 | shell-completion/zsh/_systemd-inhibit | |
13d276d0 | 5424 | endif |
14228c0d | 5425 | |
663996b3 MS |
5426 | systemd_inhibit_SOURCES = \ |
5427 | src/login/inhibit.c | |
5428 | ||
663996b3 | 5429 | systemd_inhibit_LDADD = \ |
86f210e9 | 5430 | libshared.la |
663996b3 MS |
5431 | |
5432 | rootbin_PROGRAMS += \ | |
5433 | systemd-inhibit | |
5434 | ||
5435 | test_login_SOURCES = \ | |
60f067b4 | 5436 | src/libsystemd/sd-login/test-login.c |
663996b3 MS |
5437 | |
5438 | test_login_LDADD = \ | |
86f210e9 | 5439 | libshared.la |
663996b3 | 5440 | |
14228c0d MB |
5441 | test_login_shared_SOURCES = \ |
5442 | src/login/test-login-shared.c | |
5443 | ||
5444 | test_login_shared_LDADD = \ | |
86f210e9 | 5445 | libshared.la |
14228c0d | 5446 | |
663996b3 MS |
5447 | test_inhibit_SOURCES = \ |
5448 | src/login/test-inhibit.c | |
5449 | ||
5450 | test_inhibit_LDADD = \ | |
86f210e9 | 5451 | libshared.la |
663996b3 | 5452 | |
14228c0d MB |
5453 | test_login_tables_SOURCES = \ |
5454 | src/login/test-login-tables.c | |
5455 | ||
14228c0d | 5456 | test_login_tables_LDADD = \ |
86f210e9 | 5457 | liblogind-core.la |
14228c0d | 5458 | |
663996b3 MS |
5459 | manual_tests += \ |
5460 | test-login \ | |
5461 | test-inhibit | |
5462 | ||
14228c0d MB |
5463 | tests += \ |
5464 | test-login-tables \ | |
5465 | test-login-shared | |
5466 | ||
663996b3 MS |
5467 | if HAVE_PAM |
5468 | pam_systemd_la_SOURCES = \ | |
e842803a MB |
5469 | src/login/pam_systemd.sym \ |
5470 | src/login/pam_systemd.c | |
663996b3 MS |
5471 | |
5472 | pam_systemd_la_CFLAGS = \ | |
5473 | $(AM_CFLAGS) \ | |
86f210e9 | 5474 | $(PAM_CFLAGS) |
663996b3 MS |
5475 | |
5476 | pam_systemd_la_LDFLAGS = \ | |
5477 | $(AM_LDFLAGS) \ | |
5478 | -module \ | |
5479 | -export-dynamic \ | |
5480 | -avoid-version \ | |
5481 | -shared \ | |
e842803a | 5482 | -Wl,--version-script=$(top_srcdir)/src/login/pam_systemd.sym |
663996b3 MS |
5483 | |
5484 | pam_systemd_la_LIBADD = \ | |
86f210e9 | 5485 | libshared.la \ |
663996b3 MS |
5486 | $(PAM_LIBS) |
5487 | ||
5488 | pamlib_LTLIBRARIES = \ | |
5489 | pam_systemd.la | |
14228c0d MB |
5490 | |
5491 | dist_pamconf_DATA = \ | |
5492 | src/login/systemd-user | |
e3bff60a | 5493 | |
6300502b MP |
5494 | EXTRA_DIST += \ |
5495 | src/login/systemd-user.m4 | |
663996b3 MS |
5496 | endif |
5497 | ||
663996b3 | 5498 | nodist_systemunit_DATA += \ |
e3bff60a | 5499 | units/systemd-logind.service |
663996b3 | 5500 | |
14228c0d | 5501 | dist_systemunit_DATA += \ |
5eef597e MP |
5502 | units/user.slice |
5503 | ||
5504 | dist_systemunit_DATA_busnames += \ | |
60f067b4 | 5505 | units/org.freedesktop.login1.busname |
14228c0d | 5506 | |
663996b3 MS |
5507 | dist_dbussystemservice_DATA += \ |
5508 | src/login/org.freedesktop.login1.service | |
5509 | ||
5510 | dist_dbuspolicy_DATA += \ | |
5511 | src/login/org.freedesktop.login1.conf | |
5512 | ||
5513 | dist_pkgsysconf_DATA += \ | |
5514 | src/login/logind.conf | |
5515 | ||
663996b3 MS |
5516 | polkitpolicy_files += \ |
5517 | src/login/org.freedesktop.login1.policy | |
5518 | ||
5519 | INSTALL_DIRS += \ | |
5520 | $(systemdstatedir) | |
5521 | ||
5522 | MULTI_USER_TARGET_WANTS += \ | |
e3bff60a | 5523 | systemd-logind.service |
663996b3 MS |
5524 | |
5525 | SYSTEM_UNIT_ALIASES += \ | |
5526 | systemd-logind.service dbus-org.freedesktop.login1.service | |
5527 | ||
60f067b4 JS |
5528 | BUSNAMES_TARGET_WANTS += \ |
5529 | org.freedesktop.login1.busname | |
5530 | ||
663996b3 MS |
5531 | dist_udevrules_DATA += \ |
5532 | src/login/70-uaccess.rules \ | |
5533 | src/login/70-power-switch.rules | |
5534 | ||
5535 | nodist_udevrules_DATA += \ | |
5536 | src/login/71-seat.rules \ | |
5537 | src/login/73-seat-late.rules | |
5538 | ||
663996b3 MS |
5539 | endif |
5540 | ||
5541 | polkitpolicy_in_files += \ | |
5542 | src/login/org.freedesktop.login1.policy.in | |
5543 | ||
e3bff60a MP |
5544 | gperf_gperf_sources += \ |
5545 | src/login/logind-gperf.gperf | |
5546 | ||
663996b3 | 5547 | EXTRA_DIST += \ |
663996b3 MS |
5548 | src/login/71-seat.rules.in \ |
5549 | src/login/73-seat-late.rules.in \ | |
e3bff60a MP |
5550 | units/systemd-logind.service.in |
5551 | ||
5552 | # ------------------------------------------------------------------------------ | |
5553 | if HAVE_PAM | |
5554 | ||
5555 | systemd_user_sessions_SOURCES = \ | |
5556 | src/user-sessions/user-sessions.c | |
5557 | ||
5558 | systemd_user_sessions_LDADD = \ | |
86f210e9 | 5559 | libshared.la |
e3bff60a MP |
5560 | |
5561 | rootlibexec_PROGRAMS += \ | |
5562 | systemd-user-sessions | |
5563 | ||
5564 | nodist_systemunit_DATA += \ | |
5565 | units/systemd-user-sessions.service | |
5566 | ||
e3bff60a MP |
5567 | MULTI_USER_TARGET_WANTS += \ |
5568 | systemd-user-sessions.service | |
5569 | ||
5570 | endif | |
5571 | ||
86f210e9 MP |
5572 | EXTRA_DIST += \ |
5573 | units/systemd-user-sessions.service.in | |
5574 | ||
663996b3 | 5575 | # ------------------------------------------------------------------------------ |
fb183854 MP |
5576 | EXTRA_DIST += \ |
5577 | test/Makefile \ | |
5578 | test/README.testsuite \ | |
5579 | test/TEST-01-BASIC \ | |
5580 | test/TEST-01-BASIC/Makefile \ | |
5581 | test/TEST-01-BASIC/test.sh \ | |
5582 | test/TEST-02-CRYPTSETUP \ | |
5583 | test/TEST-02-CRYPTSETUP/Makefile \ | |
5584 | test/TEST-02-CRYPTSETUP/test.sh \ | |
5585 | test/TEST-03-JOBS \ | |
5586 | test/TEST-03-JOBS/Makefile \ | |
5587 | test/TEST-03-JOBS/test-jobs.sh \ | |
5588 | test/TEST-03-JOBS/test.sh \ | |
5589 | test/test-functions | |
5590 | ||
5591 | EXTRA_DIST += \ | |
5592 | test/loopy2.service \ | |
5593 | test/loopy3.service \ | |
5594 | test/loopy4.service \ | |
5595 | test/loopy.service \ | |
5596 | test/loopy.service.d \ | |
5597 | test/loopy.service.d/compat.conf | |
e3bff60a | 5598 | |
60f067b4 JS |
5599 | # ------------------------------------------------------------------------------ |
5600 | if ENABLE_COMPAT_LIBS | |
60f067b4 JS |
5601 | libsystemd-%.c: src/compat-libs/libsystemd-%.sym |
5602 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
5603 | $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@ | |
5604 | ||
5605 | BUILT_SOURCES += \ | |
5606 | libsystemd-journal.c \ | |
5607 | libsystemd-login.c \ | |
5608 | libsystemd-id128.c \ | |
5609 | libsystemd-daemon.c | |
5610 | ||
fb183854 MP |
5611 | nodist_libsystemd_journal_la_SOURCES = \ |
5612 | libsystemd-journal.c | |
5613 | ||
60f067b4 | 5614 | libsystemd_journal_la_SOURCES = \ |
60f067b4 JS |
5615 | src/compat-libs/libsystemd-journal.sym |
5616 | ||
5617 | libsystemd_journal_la_CPPFLAGS = \ | |
e3bff60a | 5618 | $(AM_CPPFLAGS) \ |
60f067b4 JS |
5619 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
5620 | ||
5621 | libsystemd_journal_la_LDFLAGS = \ | |
5622 | $(AM_LDFLAGS) \ | |
5623 | -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \ | |
5624 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym | |
5625 | ||
5626 | libsystemd_journal_la_LIBADD = \ | |
5627 | libsystemd-journal-internal.la \ | |
86f210e9 | 5628 | libsystemd-internal.la |
60f067b4 | 5629 | |
fb183854 MP |
5630 | nodist_libsystemd_login_la_SOURCES = \ |
5631 | libsystemd-login.c | |
5632 | ||
60f067b4 | 5633 | libsystemd_login_la_SOURCES = \ |
60f067b4 JS |
5634 | src/compat-libs/libsystemd-login.sym |
5635 | ||
5636 | libsystemd_login_la_CPPFLAGS = \ | |
e3bff60a | 5637 | $(AM_CPPFLAGS) \ |
60f067b4 JS |
5638 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
5639 | ||
5640 | libsystemd_login_la_LDFLAGS = \ | |
5641 | $(AM_LDFLAGS) \ | |
5642 | -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \ | |
5643 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-login.sym | |
5644 | ||
5645 | libsystemd_login_la_LIBADD = \ | |
86f210e9 | 5646 | libsystemd-internal.la |
60f067b4 | 5647 | |
fb183854 MP |
5648 | nodist_libsystemd_id128_la_SOURCES = \ |
5649 | libsystemd-id128.c | |
5650 | ||
60f067b4 | 5651 | libsystemd_id128_la_SOURCES = \ |
60f067b4 JS |
5652 | src/compat-libs/libsystemd-id128.sym |
5653 | ||
5654 | libsystemd_id128_la_CPPFLAGS = \ | |
e3bff60a | 5655 | $(AM_CPPFLAGS) \ |
60f067b4 JS |
5656 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
5657 | ||
5658 | libsystemd_id128_la_LDFLAGS = \ | |
5659 | $(AM_LDFLAGS) \ | |
5660 | -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \ | |
5661 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-id128.sym | |
5662 | ||
5663 | libsystemd_id128_la_LIBADD = \ | |
86f210e9 | 5664 | libsystemd-internal.la |
60f067b4 | 5665 | |
fb183854 MP |
5666 | nodist_libsystemd_daemon_la_SOURCES = \ |
5667 | libsystemd-daemon.c | |
5668 | ||
60f067b4 | 5669 | libsystemd_daemon_la_SOURCES = \ |
60f067b4 JS |
5670 | src/compat-libs/libsystemd-daemon.sym |
5671 | ||
5672 | libsystemd_daemon_la_CPPFLAGS = \ | |
e3bff60a | 5673 | $(AM_CPPFLAGS) \ |
60f067b4 JS |
5674 | -imacros$(top_srcdir)/src/compat-libs/linkwarning.h |
5675 | ||
5676 | libsystemd_daemon_la_LDFLAGS = \ | |
5677 | $(AM_LDFLAGS) \ | |
5678 | -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \ | |
5679 | -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym | |
5680 | ||
5681 | libsystemd_daemon_la_LIBADD = \ | |
86f210e9 | 5682 | libsystemd-internal.la |
60f067b4 JS |
5683 | |
5684 | lib_LTLIBRARIES += \ | |
5685 | libsystemd-journal.la \ | |
5686 | libsystemd-login.la \ | |
5687 | libsystemd-id128.la \ | |
5688 | libsystemd-daemon.la | |
5689 | ||
5690 | pkgconfiglib_DATA += \ | |
5691 | src/compat-libs/libsystemd-journal.pc \ | |
5692 | src/compat-libs/libsystemd-login.pc \ | |
5693 | src/compat-libs/libsystemd-id128.pc \ | |
5694 | src/compat-libs/libsystemd-daemon.pc | |
5695 | ||
5696 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
5697 | compat-lib-install-hook: | |
5698 | libname=libsystemd-login.so && $(move-to-rootlibdir) | |
5699 | libname=libsystemd-journal.so && $(move-to-rootlibdir) | |
5700 | libname=libsystemd-id128.so && $(move-to-rootlibdir) | |
5701 | libname=libsystemd-daemon.so && $(move-to-rootlibdir) | |
5702 | ||
5703 | compat-lib-uninstall-hook: | |
5704 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so* | |
5705 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so* | |
5706 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so* | |
5707 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so* | |
5708 | ||
5709 | INSTALL_EXEC_HOOKS += compat-lib-install-hook | |
5710 | UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook | |
5711 | endif | |
5712 | ||
5713 | EXTRA_DIST += \ | |
86f210e9 | 5714 | src/compat-libs/linkwarning.h \ |
60f067b4 JS |
5715 | src/compat-libs/libsystemd-journal.pc.in \ |
5716 | src/compat-libs/libsystemd-login.pc.in \ | |
5717 | src/compat-libs/libsystemd-id128.pc.in \ | |
5718 | src/compat-libs/libsystemd-daemon.pc.in | |
5719 | ||
663996b3 MS |
5720 | # ------------------------------------------------------------------------------ |
5721 | substitutions = \ | |
5722 | '|rootlibexecdir=$(rootlibexecdir)|' \ | |
5723 | '|rootbindir=$(rootbindir)|' \ | |
5724 | '|bindir=$(bindir)|' \ | |
5725 | '|SYSTEMCTL=$(rootbindir)/systemctl|' \ | |
5726 | '|SYSTEMD_NOTIFY=$(rootbindir)/systemd-notify|' \ | |
5727 | '|pkgsysconfdir=$(pkgsysconfdir)|' \ | |
5728 | '|SYSTEM_CONFIG_UNIT_PATH=$(pkgsysconfdir)/system|' \ | |
5729 | '|USER_CONFIG_UNIT_PATH=$(pkgsysconfdir)/user|' \ | |
5730 | '|pkgdatadir=$(pkgdatadir)|' \ | |
5731 | '|systemunitdir=$(systemunitdir)|' \ | |
5732 | '|userunitdir=$(userunitdir)|' \ | |
5733 | '|systempresetdir=$(systempresetdir)|' \ | |
5734 | '|userpresetdir=$(userpresetdir)|' \ | |
5735 | '|udevhwdbdir=$(udevhwdbdir)|' \ | |
5736 | '|udevrulesdir=$(udevrulesdir)|' \ | |
5737 | '|catalogdir=$(catalogdir)|' \ | |
5738 | '|tmpfilesdir=$(tmpfilesdir)|' \ | |
e842803a | 5739 | '|sysusersdir=$(sysusersdir)|' \ |
663996b3 | 5740 | '|sysctldir=$(sysctldir)|' \ |
14228c0d MB |
5741 | '|systemgeneratordir=$(systemgeneratordir)|' \ |
5742 | '|usergeneratordir=$(usergeneratordir)|' \ | |
5eef597e | 5743 | '|CERTIFICATEROOT=$(CERTIFICATEROOT)|' \ |
663996b3 MS |
5744 | '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \ |
5745 | '|PACKAGE_NAME=$(PACKAGE_NAME)|' \ | |
5746 | '|PACKAGE_URL=$(PACKAGE_URL)|' \ | |
60f067b4 | 5747 | '|RANDOM_SEED_DIR=$(localstatedir)/lib/systemd/|' \ |
14228c0d | 5748 | '|RANDOM_SEED=$(localstatedir)/lib/systemd/random-seed|' \ |
663996b3 MS |
5749 | '|prefix=$(prefix)|' \ |
5750 | '|exec_prefix=$(exec_prefix)|' \ | |
5751 | '|libdir=$(libdir)|' \ | |
5752 | '|includedir=$(includedir)|' \ | |
5753 | '|VERSION=$(VERSION)|' \ | |
5754 | '|rootprefix=$(rootprefix)|' \ | |
5755 | '|udevlibexecdir=$(udevlibexecdir)|' \ | |
5756 | '|SUSHELL=$(SUSHELL)|' \ | |
e735f4d4 | 5757 | '|SULOGIN=$(SULOGIN)|' \ |
663996b3 MS |
5758 | '|DEBUGTTY=$(DEBUGTTY)|' \ |
5759 | '|KILL=$(KILL)|' \ | |
14228c0d | 5760 | '|KMOD=$(KMOD)|' \ |
86f210e9 MP |
5761 | '|MOUNT_PATH=$(MOUNT_PATH)|' \ |
5762 | '|UMOUNT_PATH=$(UMOUNT_PATH)|' \ | |
14228c0d | 5763 | '|MKDIR_P=$(MKDIR_P)|' \ |
663996b3 MS |
5764 | '|QUOTAON=$(QUOTAON)|' \ |
5765 | '|QUOTACHECK=$(QUOTACHECK)|' \ | |
5766 | '|SYSTEM_SYSVINIT_PATH=$(sysvinitdir)|' \ | |
5767 | '|VARLOGDIR=$(varlogdir)|' \ | |
5768 | '|RC_LOCAL_SCRIPT_PATH_START=$(RC_LOCAL_SCRIPT_PATH_START)|' \ | |
5769 | '|RC_LOCAL_SCRIPT_PATH_STOP=$(RC_LOCAL_SCRIPT_PATH_STOP)|' \ | |
5770 | '|PYTHON=$(PYTHON)|' \ | |
60f067b4 JS |
5771 | '|NTP_SERVERS=$(NTP_SERVERS)|' \ |
5772 | '|DNS_SERVERS=$(DNS_SERVERS)|' \ | |
5773 | '|systemuidmax=$(SYSTEM_UID_MAX)|' \ | |
e842803a MB |
5774 | '|systemgidmax=$(SYSTEM_GID_MAX)|' \ |
5775 | '|TTY_GID=$(TTY_GID)|' \ | |
5776 | '|systemsleepdir=$(systemsleepdir)|' \ | |
86f210e9 | 5777 | '|systemshutdowndir=$(systemshutdowndir)|' \ |
e842803a MB |
5778 | '|binfmtdir=$(binfmtdir)|' \ |
5779 | '|modulesloaddir=$(modulesloaddir)|' | |
663996b3 MS |
5780 | |
5781 | SED_PROCESS = \ | |
5782 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
5783 | $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \ | |
5784 | < $< > $@ | |
5785 | ||
60f067b4 JS |
5786 | units/%: units/%.in |
5787 | $(SED_PROCESS) | |
5788 | ||
5789 | man/%: man/%.in | |
663996b3 MS |
5790 | $(SED_PROCESS) |
5791 | ||
60f067b4 | 5792 | sysctl.d/%: sysctl.d/%.in |
663996b3 MS |
5793 | $(SED_PROCESS) |
5794 | ||
60f067b4 | 5795 | %.pc: %.pc.in |
663996b3 MS |
5796 | $(SED_PROCESS) |
5797 | ||
5eef597e MP |
5798 | %.conf: %.conf.in |
5799 | $(SED_PROCESS) | |
5800 | ||
60f067b4 | 5801 | src/core/macros.%: src/core/macros.%.in |
663996b3 MS |
5802 | $(SED_PROCESS) |
5803 | ||
60f067b4 | 5804 | src/%.policy.in: src/%.policy.in.in |
663996b3 MS |
5805 | $(SED_PROCESS) |
5806 | ||
5eef597e MP |
5807 | shell-completion/%: shell-completion/%.in |
5808 | $(SED_PROCESS) | |
5809 | ||
60f067b4 | 5810 | %.rules: %.rules.in |
663996b3 MS |
5811 | $(SED_PROCESS) |
5812 | ||
60f067b4 | 5813 | %.conf: %.conf.in |
663996b3 MS |
5814 | $(SED_PROCESS) |
5815 | ||
60f067b4 | 5816 | %.sh: %.sh.in |
663996b3 MS |
5817 | $(SED_PROCESS) |
5818 | $(AM_V_GEN)chmod +x $@ | |
5819 | ||
5820 | src/%.c: src/%.gperf | |
5821 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
5822 | $(AM_V_GPERF)$(GPERF) < $< > $@ | |
5823 | ||
5824 | src/%: src/%.m4 | |
5825 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
5826 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ | |
5827 | ||
f47781d8 MP |
5828 | sysusers.d/%: sysusers.d/%.m4 |
5829 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
5830 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ | |
5831 | ||
5eef597e MP |
5832 | tmpfiles.d/%: tmpfiles.d/%.m4 |
5833 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
5834 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ | |
5835 | ||
5836 | ||
60f067b4 JS |
5837 | units/%: units/%.m4 |
5838 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
663996b3 MS |
5839 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ |
5840 | ||
e735f4d4 | 5841 | units/user/%: units/user/%.m4 |
60f067b4 | 5842 | $(AM_V_at)$(MKDIR_P) $(dir $@) |
663996b3 MS |
5843 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ |
5844 | ||
5845 | if ENABLE_POLKIT | |
5eef597e | 5846 | nodist_polkitpolicy_DATA = \ |
663996b3 MS |
5847 | $(polkitpolicy_files) \ |
5848 | $(polkitpolicy_in_in_files:.policy.in.in=.policy) | |
5849 | endif | |
5850 | ||
5851 | EXTRA_DIST += \ | |
5852 | $(polkitpolicy_in_files) \ | |
5853 | $(polkitpolicy_in_in_files) | |
5854 | ||
663996b3 MS |
5855 | # ------------------------------------------------------------------------------ |
5856 | if ENABLE_MANPAGES | |
60f067b4 | 5857 | man/custom-entities.ent: configure.ac |
663996b3 MS |
5858 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) |
5859 | $(AM_V_GEN)(echo '<?xml version="1.0" encoding="utf-8" ?>' && \ | |
60f067b4 | 5860 | printf '$(subst '|,<!ENTITY ,$(subst =, ",$(subst |',">\n,$(substitutions))))') \ |
663996b3 MS |
5861 | > $@ # ' |
5862 | ||
86f210e9 | 5863 | CLEANFILES += \ |
663996b3 MS |
5864 | man/custom-entities.ent |
5865 | ||
5866 | XSLTPROC_FLAGS = \ | |
5867 | --nonet \ | |
60f067b4 | 5868 | --xinclude \ |
663996b3 MS |
5869 | --stringparam man.output.quietly 1 \ |
5870 | --stringparam funcsynopsis.style ansi \ | |
5871 | --stringparam man.authors.section.enabled 0 \ | |
5872 | --stringparam man.copyright.section.enabled 0 \ | |
5873 | --stringparam systemd.version $(VERSION) \ | |
5874 | --path '$(builddir)/man:$(srcdir)/man' | |
5875 | ||
5876 | XSLTPROC_PROCESS_MAN = \ | |
5877 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $< | |
5878 | ||
5879 | XSLTPROC_PROCESS_HTML = \ | |
5880 | $(AM_V_XSLT)$(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< | |
5881 | ||
5882 | man/%.1: man/%.xml man/custom-man.xsl man/custom-entities.ent | |
5883 | $(XSLTPROC_PROCESS_MAN) | |
5884 | ||
5885 | man/%.3: man/%.xml man/custom-man.xsl man/custom-entities.ent | |
5886 | $(XSLTPROC_PROCESS_MAN) | |
5887 | ||
5888 | man/%.5: man/%.xml man/custom-man.xsl man/custom-entities.ent | |
5889 | $(XSLTPROC_PROCESS_MAN) | |
5890 | ||
5891 | man/%.7: man/%.xml man/custom-man.xsl man/custom-entities.ent | |
5892 | $(XSLTPROC_PROCESS_MAN) | |
5893 | ||
5894 | man/%.8: man/%.xml man/custom-man.xsl man/custom-entities.ent | |
5895 | $(XSLTPROC_PROCESS_MAN) | |
5896 | ||
5897 | man/%.html: man/%.xml man/custom-html.xsl man/custom-entities.ent | |
5898 | $(XSLTPROC_PROCESS_HTML) | |
5899 | ||
5900 | define html-alias | |
5901 | $(AM_V_LN)$(LN_S) -f $(notdir $<) $@ | |
5902 | endef | |
5903 | ||
5904 | endif | |
5905 | ||
5906 | EXTRA_DIST += \ | |
5907 | man/custom-html.xsl \ | |
5908 | man/custom-man.xsl | |
5909 | ||
5910 | # ------------------------------------------------------------------------------ | |
663996b3 MS |
5911 | if HAVE_SYSV_COMPAT |
5912 | sysvinit_DATA = \ | |
5913 | docs/sysvinit/README | |
5914 | ||
5915 | varlog_DATA = \ | |
5916 | docs/var-log/README | |
5917 | ||
5918 | docs/sysvinit/README: docs/sysvinit/README.in | |
5919 | $(SED_PROCESS) | |
5920 | ||
5921 | docs/var-log/README: docs/var-log/README.in | |
5922 | $(SED_PROCESS) | |
5923 | ||
5924 | CLEANFILES += \ | |
5925 | docs/sysvinit/README \ | |
5926 | docs/var-log/README | |
5927 | endif | |
5928 | ||
5929 | EXTRA_DIST += \ | |
5930 | docs/sysvinit/README.in \ | |
5931 | docs/var-log/README.in | |
5932 | ||
663996b3 | 5933 | SOCKETS_TARGET_WANTS += \ |
e3bff60a | 5934 | systemd-initctl.socket |
663996b3 | 5935 | |
5eef597e | 5936 | if HAVE_UTMP |
663996b3 | 5937 | if HAVE_SYSV_COMPAT |
e3bff60a | 5938 | MULTI_USER_TARGET_WANTS += \ |
663996b3 | 5939 | systemd-update-utmp-runlevel.service |
e3bff60a | 5940 | GRAPHICAL_TARGET_WANTS += \ |
663996b3 | 5941 | systemd-update-utmp-runlevel.service |
e3bff60a | 5942 | RESCUE_TARGET_WANTS += \ |
663996b3 MS |
5943 | systemd-update-utmp-runlevel.service |
5944 | endif | |
e842803a | 5945 | |
14228c0d | 5946 | SYSINIT_TARGET_WANTS += \ |
5eef597e MP |
5947 | systemd-update-utmp.service |
5948 | endif | |
5949 | ||
5950 | SYSINIT_TARGET_WANTS += \ | |
5951 | systemd-update-done.service | |
e842803a | 5952 | |
663996b3 MS |
5953 | LOCAL_FS_TARGET_WANTS += \ |
5954 | systemd-remount-fs.service \ | |
e3bff60a MP |
5955 | tmp.mount \ |
5956 | var-lib-machines.mount | |
e842803a | 5957 | |
663996b3 MS |
5958 | MULTI_USER_TARGET_WANTS += \ |
5959 | getty.target \ | |
5960 | systemd-ask-password-wall.path | |
e842803a | 5961 | |
663996b3 MS |
5962 | SYSINIT_TARGET_WANTS += \ |
5963 | dev-hugepages.mount \ | |
5964 | dev-mqueue.mount \ | |
5965 | sys-kernel-config.mount \ | |
5966 | sys-kernel-debug.mount \ | |
5967 | sys-fs-fuse-connections.mount \ | |
663996b3 MS |
5968 | systemd-sysctl.service \ |
5969 | systemd-ask-password-console.path | |
663996b3 MS |
5970 | |
5971 | if HAVE_SYSV_COMPAT | |
5972 | SYSTEM_UNIT_ALIASES += \ | |
5973 | poweroff.target runlevel0.target \ | |
5974 | rescue.target runlevel1.target \ | |
5975 | multi-user.target runlevel2.target \ | |
5976 | multi-user.target runlevel3.target \ | |
5977 | multi-user.target runlevel4.target \ | |
5978 | graphical.target runlevel5.target \ | |
5979 | reboot.target runlevel6.target | |
5980 | endif | |
5981 | ||
5982 | SYSTEM_UNIT_ALIASES += \ | |
5983 | graphical.target default.target \ | |
5984 | reboot.target ctrl-alt-del.target \ | |
5985 | getty@.service autovt@.service | |
5986 | ||
5987 | USER_UNIT_ALIASES += \ | |
5988 | $(systemunitdir)/shutdown.target shutdown.target \ | |
5989 | $(systemunitdir)/sockets.target sockets.target \ | |
5990 | $(systemunitdir)/timers.target timers.target \ | |
5991 | $(systemunitdir)/paths.target paths.target \ | |
5992 | $(systemunitdir)/bluetooth.target bluetooth.target \ | |
5993 | $(systemunitdir)/printer.target printer.target \ | |
5994 | $(systemunitdir)/sound.target sound.target \ | |
5995 | $(systemunitdir)/smartcard.target smartcard.target | |
5996 | ||
5eef597e MP |
5997 | USER_UNIT_ALIASES += \ |
5998 | $(systemunitdir)/busnames.target busnames.target | |
5eef597e | 5999 | |
663996b3 MS |
6000 | GENERAL_ALIASES += \ |
6001 | $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \ | |
6002 | $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \ | |
6003 | $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \ | |
60f067b4 | 6004 | $(dbussystemservicedir)/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service |
663996b3 MS |
6005 | |
6006 | if HAVE_SYSV_COMPAT | |
6007 | INSTALL_DIRS += \ | |
6008 | $(systemunitdir)/runlevel1.target.wants \ | |
6009 | $(systemunitdir)/runlevel2.target.wants \ | |
6010 | $(systemunitdir)/runlevel3.target.wants \ | |
6011 | $(systemunitdir)/runlevel4.target.wants \ | |
6012 | $(systemunitdir)/runlevel5.target.wants | |
6013 | endif | |
6014 | ||
6015 | INSTALL_DIRS += \ | |
663996b3 MS |
6016 | $(prefix)/lib/modules-load.d \ |
6017 | $(sysconfdir)/modules-load.d \ | |
60f067b4 JS |
6018 | $(prefix)/lib/systemd/network \ |
6019 | $(sysconfdir)/systemd/network \ | |
663996b3 MS |
6020 | $(prefix)/lib/sysctl.d \ |
6021 | $(sysconfdir)/sysctl.d \ | |
6022 | $(prefix)/lib/kernel/install.d \ | |
6023 | $(sysconfdir)/kernel/install.d \ | |
6024 | $(systemshutdowndir) \ | |
6025 | $(systemsleepdir) \ | |
6026 | $(systemgeneratordir) \ | |
6027 | $(usergeneratordir) \ | |
6028 | \ | |
6029 | $(userunitdir) \ | |
6030 | $(pkgsysconfdir)/system \ | |
6031 | $(pkgsysconfdir)/system/multi-user.target.wants \ | |
6032 | $(pkgsysconfdir)/system/getty.target.wants \ | |
6033 | $(pkgsysconfdir)/user \ | |
6034 | $(dbussessionservicedir) \ | |
6035 | $(sysconfdir)/xdg/systemd | |
6036 | ||
6037 | install-exec-hook: $(INSTALL_EXEC_HOOKS) | |
6038 | ||
6039 | uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS) | |
6040 | ||
6041 | install-data-hook: $(INSTALL_DATA_HOOKS) | |
6042 | ||
6043 | distclean-local: $(DISTCLEAN_LOCAL_HOOKS) | |
6044 | ||
6045 | clean-local: $(CLEAN_LOCAL_HOOKS) | |
6046 | rm -rf $(abs_srcdir)/install-tree | |
6047 | rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \ | |
6048 | $(abs_srcdir)/hwdb/iab.txt | |
6049 | ||
6050 | DISTCHECK_CONFIGURE_FLAGS = \ | |
6051 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ | |
6052 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
6053 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
663996b3 | 6054 | --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \ |
14228c0d | 6055 | --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \ |
663996b3 | 6056 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ |
14228c0d | 6057 | --with-pamconfdir=$$dc_install_base/$(pamconfdir) \ |
663996b3 | 6058 | --with-rootprefix=$$dc_install_base \ |
60f067b4 | 6059 | --enable-compat-libs |
663996b3 MS |
6060 | |
6061 | if HAVE_SYSV_COMPAT | |
6062 | DISTCHECK_CONFIGURE_FLAGS += \ | |
6063 | --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \ | |
6064 | --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir) | |
6065 | else | |
6066 | DISTCHECK_CONFIGURE_FLAGS += \ | |
6067 | --with-sysvinit-path= \ | |
6068 | --with-sysvrcnd-path= | |
6069 | endif | |
6070 | ||
86f210e9 | 6071 | if ENABLE_SPLIT_USR |
663996b3 | 6072 | DISTCHECK_CONFIGURE_FLAGS += \ |
86f210e9 MP |
6073 | --enable-split-usr |
6074 | else | |
6075 | DISTCHECK_CONFIGURE_FLAGS += \ | |
6076 | --disable-split-usr | |
663996b3 MS |
6077 | endif |
6078 | ||
e842803a MB |
6079 | # |
6080 | # Require python when making dist | |
6081 | # | |
e735f4d4 | 6082 | .PHONY: dist-check-python dist-check-compat-libs dist-check-help |
e842803a MB |
6083 | dist-check-python: |
6084 | if !HAVE_PYTHON | |
6085 | @echo "*** python and python-lxml module must be installed and enabled in order to make dist" | |
6086 | @false | |
6087 | endif | |
6088 | ||
6089 | dist-check-compat-libs: | |
6090 | if !ENABLE_COMPAT_LIBS | |
6091 | @echo "*** compat-libs must be enabled in order to make dist" | |
6092 | @false | |
6093 | endif | |
6094 | ||
e735f4d4 MP |
6095 | dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS) |
6096 | for i in $(abspath $^); do \ | |
6097 | if $$i --help | grep -v 'default:' | grep -E -q '.{80}.' ; then \ | |
6098 | echo "$(basename $$i) --help output is too wide:"; \ | |
6099 | $$i --help | awk 'length > 80' | grep -E --color=yes '.{80}'; \ | |
6100 | exit 1; \ | |
6101 | fi; done | |
6102 | ||
e842803a MB |
6103 | dist: dist-check-python dist-check-compat-libs |
6104 | ||
60f067b4 | 6105 | .PHONY: hwdb-update |
663996b3 MS |
6106 | hwdb-update: |
6107 | ( cd $(top_srcdir)/hwdb && \ | |
13d276d0 MP |
6108 | wget -O usb.ids 'http://www.linux-usb.org/usb.ids' && \ |
6109 | wget -O pci.ids 'http://pci-ids.ucw.cz/v2.2/pci.ids' && \ | |
6110 | wget -O ma-large.txt 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-L&format=txt' && \ | |
6111 | wget -O ma-medium.txt 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-M&format=txt' && \ | |
6112 | wget -O ma-small.txt 'https://services13.ieee.org/RST/standards-ra-web/rest/assignments/download/?registry=MA-S&format=txt' && \ | |
663996b3 MS |
6113 | ./ids-update.pl ) |
6114 | ||
7035cd9e MP |
6115 | .PHONY: built-sources |
6116 | built-sources: $(BUILT_SOURCES) | |
6117 | ||
60f067b4 JS |
6118 | .PHONY: git-tag |
6119 | git-tag: | |
6120 | git tag -s "v$(VERSION)" -m "systemd $(VERSION)" | |
663996b3 | 6121 | |
fb183854 MP |
6122 | .PHONY: git-tar |
6123 | git-tar: | |
5fd56512 | 6124 | git archive --format=tar --prefix=systemd-$(VERSION)/ HEAD | gzip > systemd-$(VERSION).tar.gz |
fb183854 | 6125 | |
663996b3 | 6126 | www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd |
60f067b4 JS |
6127 | |
6128 | .PHONY: doc-sync | |
5fd56512 | 6129 | doc-sync: all |
663996b3 | 6130 | rsync -rlv --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/ |
663996b3 | 6131 | |
f47781d8 | 6132 | .PHONY: gardel |
6300502b | 6133 | gardel: |
f47781d8 MP |
6134 | scp man/*.html gardel:public/systemd-man/ |
6135 | ||
6136 | .PHONY: lennart-fedora | |
6137 | lennart-fedora: | |
60f067b4 | 6138 | cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/ |
663996b3 | 6139 | |
60f067b4 | 6140 | .PHONY: install-tree |
663996b3 MS |
6141 | install-tree: all |
6142 | rm -rf $(abs_srcdir)/install-tree | |
6143 | $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree | |
6144 | tree $(abs_srcdir)/install-tree | |
60f067b4 JS |
6145 | |
6146 | # Let's run all tests of the test suite, but under valgrind. Let's | |
6147 | # exclude the one perl script we have in there | |
6148 | .PHONY: valgrind-tests | |
6149 | valgrind-tests: $(TESTS) | |
6150 | $(AM_V_GEN)for f in $(filter-out %.pl, $^); do \ | |
6151 | if file $$f | grep -q shell; then \ | |
6152 | echo -e "$${x}Skipping non-binary $$f"; else \ | |
6153 | echo -e "$${x}Running $$f"; \ | |
6154 | libtool --mode=execute valgrind -q --leak-check=full --max-stackframe=5242880 --error-exitcode=55 $(builddir)/$$f ; fi; \ | |
6155 | x="\n\n"; \ | |
6156 | done | |
6157 | ||
6158 | exported-%: % | |
e842803a | 6159 | $(AM_V_GEN)$(NM) -g --defined-only $(builddir)/.libs/$(<:.la=.so) 2>&1 /dev/null | grep " T " | cut -d" " -f3 > $@ |
60f067b4 JS |
6160 | |
6161 | exported: $(addprefix exported-, $(lib_LTLIBRARIES)) | |
fb183854 | 6162 | $(AM_V_GEN)sort -u $^ > $@ |
60f067b4 JS |
6163 | |
6164 | .PHONY: check-api-docs | |
6165 | check-api-docs: exported man | |
6166 | $(AM_V_GEN)for symbol in `cat exported` ; do \ | |
6167 | if test -f $(builddir)/man/$$symbol.html ; then \ | |
6168 | echo " Symbol $$symbol() is documented." ; \ | |
6169 | else \ | |
6170 | echo "‣ Symbol $$symbol() lacks documentation." ; \ | |
6171 | fi ; \ | |
6172 | done | |
6173 | ||
6174 | OBJECT_VARIABLES:=$(filter %_OBJECTS,$(.VARIABLES)) | |
6175 | ALL_OBJECTS:=$(foreach v,$(OBJECT_VARIABLES),$($(v))) | |
6176 | ||
6177 | undefined defined: $(ALL_OBJECTS) | |
6178 | $(AM_V_GEN)for f in $(ALL_OBJECTS) ; do \ | |
e842803a | 6179 | $(NM) -g --$@-only `echo $(builddir)/"$$f" | sed -e 's,\([^/]*\).lo$$,.libs/\1.o,'` ; \ |
60f067b4 JS |
6180 | done | cut -c 20- | cut -d @ -f 1 | sort -u > $@ |
6181 | ||
6182 | CLEANFILES += \ | |
6183 | defined \ | |
6184 | undefined | |
6185 | ||
6186 | .PHONY: check-api-unused | |
6187 | check-api-unused: defined undefined exported | |
6188 | ( cat exported undefined ) | sort -u | diff -u - defined | grep ^+ | grep -v ^+++ | cut -c2- | |
6189 | ||
6190 | .PHONY: check-includes | |
6191 | check-includes: $(top_srcdir)/tools/check-includes.pl | |
6192 | $(AM_V_GEN) find * -name '*.[hcS]' -type f -print | sort -u \ | |
6193 | | xargs $(top_srcdir)/tools/check-includes.pl | |
6194 | ||
6195 | EXTRA_DIST += \ | |
6196 | $(top_srcdir)/tools/check-includes.pl | |
6197 | ||
6198 | # Stupid test that everything purported to be exported really is | |
6199 | define generate-sym-test | |
6200 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
6201 | $(AM_V_at)printf '#include <stdio.h>\n' > $@ | |
6202 | $(AM_V_at)printf '#include "%s"\n' $(notdir $(filter %.h, $^)) >> $@ | |
6203 | $(AM_V_at)printf 'void* functions[] = {\n' >> $@ | |
6204 | $(AM_V_GEN)sed -r -n 's/^ +([a-zA-Z0-9_]+);/\1,/p' $< >> $@ | |
6205 | $(AM_V_at)printf '};\nint main(void) {\n' >> $@ | |
6206 | $(AM_V_at)printf 'unsigned i; for (i=0;i<sizeof(functions)/sizeof(void*);i++) printf("%%p\\n", functions[i]);\n' >> $@ | |
6207 | $(AM_V_at)printf 'return 0; }\n' >> $@ | |
6208 | endef | |
6209 | ||
6210 | test-libsystemd-sym.c: \ | |
6211 | $(top_builddir)/src/libsystemd/libsystemd.sym \ | |
6212 | src/systemd/sd-journal.h \ | |
6213 | src/systemd/sd-daemon.h \ | |
6214 | src/systemd/sd-login.h \ | |
6215 | src/systemd/sd-bus.h \ | |
6216 | src/systemd/sd-utf8.h \ | |
5eef597e | 6217 | src/systemd/sd-resolve.h \ |
86f210e9 MP |
6218 | src/systemd/sd-path.h \ |
6219 | src/systemd/sd-event.h | |
60f067b4 JS |
6220 | $(generate-sym-test) |
6221 | ||
6222 | test-libudev-sym.c: \ | |
6223 | src/libudev/libudev.sym \ | |
6224 | src/udev/udev.h | |
6225 | $(generate-sym-test) | |
6226 | ||
fb183854 | 6227 | nodist_test_libsystemd_sym_SOURCES = \ |
60f067b4 JS |
6228 | test-libsystemd-sym.c |
6229 | test_libsystemd_sym_LDADD = \ | |
6230 | libsystemd.la | |
6231 | ||
fb183854 | 6232 | nodist_test_libudev_sym_SOURCES = \ |
60f067b4 JS |
6233 | test-libudev-sym.c |
6234 | test_libudev_sym_CFLAGS = \ | |
6235 | $(AM_CFLAGS) \ | |
6236 | -Wno-deprecated-declarations | |
6237 | test_libudev_sym_LDADD = \ | |
6238 | libudev.la | |
6239 | ||
6240 | BUILT_SOURCES += \ | |
fb183854 MP |
6241 | test-libsystemd-sym.c \ |
6242 | test-libudev-sym.c | |
6243 | ||
6244 | CLEANFILES += \ | |
6245 | test-libsystemd-sym.c \ | |
6246 | test-libudev-sym.c | |
60f067b4 JS |
6247 | |
6248 | tests += \ | |
6249 | test-libsystemd-sym \ | |
6250 | test-libudev-sym | |
6251 | ||
6252 | .PHONY: cppcheck | |
6253 | cppcheck: | |
6254 | cppcheck --enable=all -q $(top_srcdir) | |
6255 | ||
6256 | # Used to extract compile flags for YCM. | |
6257 | print-%: | |
6258 | @echo $($*) | |
6259 | ||
6260 | git-contrib: | |
6261 | @git shortlog -s `git describe --abbrev=0`.. | cut -c8- | awk '{ print $$0 "," }' | sort -u | |
f47781d8 MP |
6262 | |
6263 | EXTRA_DIST += \ | |
6264 | tools/gdb-sd_dump_hashmaps.py | |
e735f4d4 MP |
6265 | |
6266 | list-keys: | |
6267 | gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --list-keys | |
6268 | ||
6269 | add-key: | |
6270 | gpg --verbose --no-options --no-default-keyring --no-auto-key-locate --batch --trust-model=always --keyring=$(srcdir)/src/import/import-pubring.gpg --import - |