]>
Commit | Line | Data |
---|---|---|
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 | |
8 | # | |
9 | # systemd is free software; you can redistribute it and/or modify it | |
10 | # under the terms of the GNU Lesser General Public License as published by | |
11 | # the Free Software Foundation; either version 2.1 of the License, or | |
12 | # (at your option) any later version. | |
13 | # | |
14 | # systemd is distributed in the hope that it will be useful, but | |
15 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 | # Lesser General Public License for more details. | |
18 | # | |
19 | # You should have received a copy of the GNU Lesser General Public License | |
20 | # along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
21 | ||
22 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | |
23 | AM_MAKEFLAGS = --no-print-directory | |
24 | AUTOMAKE_OPTIONS = color-tests parallel-tests | |
25 | ||
26 | SUBDIRS = . po | |
27 | ||
28 | # remove targets if the command fails | |
29 | .DELETE_ON_ERROR: | |
30 | ||
31 | # keep intermediate files | |
32 | .SECONDARY: | |
33 | ||
34 | LIBUDEV_CURRENT=3 | |
35 | LIBUDEV_REVISION=2 | |
36 | LIBUDEV_AGE=2 | |
37 | ||
38 | LIBGUDEV_CURRENT=1 | |
39 | LIBGUDEV_REVISION=3 | |
40 | LIBGUDEV_AGE=1 | |
41 | ||
42 | LIBSYSTEMD_LOGIN_CURRENT=4 | |
43 | LIBSYSTEMD_LOGIN_REVISION=0 | |
44 | LIBSYSTEMD_LOGIN_AGE=4 | |
45 | ||
46 | LIBSYSTEMD_DAEMON_CURRENT=0 | |
47 | LIBSYSTEMD_DAEMON_REVISION=7 | |
48 | LIBSYSTEMD_DAEMON_AGE=0 | |
49 | ||
50 | LIBSYSTEMD_ID128_CURRENT=0 | |
51 | LIBSYSTEMD_ID128_REVISION=17 | |
52 | LIBSYSTEMD_ID128_AGE=0 | |
53 | ||
54 | LIBSYSTEMD_JOURNAL_CURRENT=8 | |
55 | LIBSYSTEMD_JOURNAL_REVISION=0 | |
56 | LIBSYSTEMD_JOURNAL_AGE=8 | |
57 | ||
58 | # Dirs of external packages | |
59 | dbuspolicydir=@dbuspolicydir@ | |
60 | dbussessionservicedir=@dbussessionservicedir@ | |
61 | dbussystemservicedir=@dbussystemservicedir@ | |
62 | dbusinterfacedir=@dbusinterfacedir@ | |
63 | pamlibdir=@pamlibdir@ | |
64 | pkgconfigdatadir=$(datadir)/pkgconfig | |
65 | pkgconfiglibdir=$(libdir)/pkgconfig | |
66 | polkitpolicydir=$(datadir)/polkit-1/actions | |
67 | bashcompletiondir=@bashcompletiondir@ | |
68 | rpmmacrosdir=$(sysconfdir)/rpm | |
69 | sysvinitdir=$(SYSTEM_SYSVINIT_PATH) | |
70 | sysvrcnddir=$(SYSTEM_SYSVRCND_PATH) | |
71 | varlogdir=$(localstatedir)/log | |
72 | systemdstatedir=$(localstatedir)/lib/systemd | |
73 | catalogstatedir=$(systemdstatedir)/catalog | |
74 | ||
75 | # Our own, non-special dirs | |
76 | pkgsysconfdir=$(sysconfdir)/systemd | |
77 | userunitdir=$(prefix)/lib/systemd/user | |
78 | userpresetdir=$(prefix)/lib/systemd/user-preset | |
79 | tmpfilesdir=$(prefix)/lib/tmpfiles.d | |
80 | sysctldir=$(prefix)/lib/sysctl.d | |
81 | usergeneratordir=$(prefix)/lib/systemd/user-generators | |
82 | pkgincludedir=$(includedir)/systemd | |
83 | systemgeneratordir=$(rootlibexecdir)/system-generators | |
84 | systemshutdowndir=$(rootlibexecdir)/system-shutdown | |
85 | systemsleepdir=$(rootlibexecdir)/system-sleep | |
86 | systemunitdir=$(rootprefix)/lib/systemd/system | |
87 | systempresetdir=$(rootprefix)/lib/systemd/system-preset | |
88 | udevlibexecdir=$(rootprefix)/lib/udev | |
89 | udevhomedir=$(udevlibexecdir) | |
90 | udevrulesdir=$(udevlibexecdir)/rules.d | |
91 | udevhwdbdir=$(udevlibexecdir)/hwdb.d | |
92 | catalogdir=$(prefix)/lib/systemd/catalog | |
93 | ||
94 | # And these are the special ones for / | |
95 | rootprefix=@rootprefix@ | |
96 | rootbindir=$(rootprefix)/bin | |
97 | rootlibexecdir=$(rootprefix)/lib/systemd | |
98 | ||
99 | CLEANFILES = $(BUILT_SOURCES) | |
100 | EXTRA_DIST = | |
101 | BUILT_SOURCES = | |
102 | INSTALL_EXEC_HOOKS = | |
103 | UNINSTALL_EXEC_HOOKS = | |
104 | INSTALL_DATA_HOOKS = | |
105 | UNINSTALL_DATA_HOOKS = | |
106 | DISTCLEAN_LOCAL_HOOKS = | |
107 | CLEAN_LOCAL_HOOKS = | |
108 | pkginclude_HEADERS = | |
109 | noinst_LTLIBRARIES = | |
110 | lib_LTLIBRARIES = | |
111 | include_HEADERS = | |
112 | noinst_DATA = | |
113 | pkgconfiglib_DATA = | |
114 | polkitpolicy_in_in_files = | |
115 | polkitpolicy_in_files = | |
116 | polkitpolicy_files = | |
117 | dist_udevrules_DATA = | |
118 | nodist_udevrules_DATA = | |
119 | dist_pkgsysconf_DATA = | |
120 | dist_pkgdata_DATA = | |
121 | dist_dbuspolicy_DATA = | |
122 | dbusinterface_DATA = | |
123 | dist_dbussystemservice_DATA = | |
124 | check_PROGRAMS = | |
125 | check_DATA = | |
126 | noinst_tests= | |
127 | noinst_PROGRAMS = $(noinst_tests) | |
128 | TESTS = $(noinst_tests) | |
129 | udevlibexec_PROGRAMS = | |
130 | ||
131 | AM_CPPFLAGS = \ | |
132 | -include $(top_builddir)/config.h \ | |
133 | -DSYSTEM_CONFIG_FILE=\"$(pkgsysconfdir)/system.conf\" \ | |
134 | -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \ | |
135 | -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \ | |
136 | -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \ | |
137 | -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \ | |
138 | -DUSER_CONFIG_FILE=\"$(pkgsysconfdir)/user.conf\" \ | |
139 | -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \ | |
140 | -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \ | |
141 | -DCATALOG_PATH=\"$(catalogstatedir)\" \ | |
142 | -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \ | |
143 | -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \ | |
144 | -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \ | |
145 | -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \ | |
146 | -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \ | |
147 | -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \ | |
148 | -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \ | |
149 | -DROOTPREFIX=\"$(rootprefix)\" \ | |
150 | -DRANDOM_SEED=\"$(localstatedir)/lib/random-seed\" \ | |
151 | -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \ | |
152 | -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \ | |
153 | -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \ | |
154 | -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \ | |
155 | -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \ | |
156 | -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \ | |
157 | -DX_SERVER=\"$(bindir)/X\" \ | |
158 | -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \ | |
159 | -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \ | |
160 | -I $(top_srcdir)/src \ | |
161 | -I $(top_srcdir)/src/shared \ | |
162 | -I $(top_srcdir)/src/login \ | |
163 | -I $(top_srcdir)/src/journal \ | |
164 | -I $(top_srcdir)/src/systemd \ | |
165 | -I $(top_builddir)/src/core \ | |
166 | -I $(top_srcdir)/src/core \ | |
167 | -I $(top_srcdir)/src/libudev \ | |
168 | -I $(top_srcdir)/src/udev \ | |
169 | $(OUR_CPPFLAGS) | |
170 | ||
171 | AM_CFLAGS = $(OUR_CFLAGS) | |
172 | AM_LDFLAGS = $(OUR_LDFLAGS) | |
173 | ||
174 | # ------------------------------------------------------------------------------ | |
175 | define move-to-rootlibdir | |
176 | if test "$(libdir)" != "$(rootlibdir)"; then \ | |
177 | $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \ | |
178 | so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \ | |
179 | so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ | |
180 | $(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \ | |
181 | mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \ | |
182 | fi | |
183 | endef | |
184 | ||
185 | INSTALL_DIRS = | |
186 | ||
187 | RUNLEVEL1_TARGET_WANTS = | |
188 | RUNLEVEL2_TARGET_WANTS = | |
189 | RUNLEVEL3_TARGET_WANTS = | |
190 | RUNLEVEL4_TARGET_WANTS = | |
191 | RUNLEVEL5_TARGET_WANTS = | |
192 | SHUTDOWN_TARGET_WANTS = | |
193 | LOCAL_FS_TARGET_WANTS = | |
194 | MULTI_USER_TARGET_WANTS = | |
195 | SYSINIT_TARGET_WANTS = | |
196 | BASIC_TARGET_WANTS = | |
197 | SOCKETS_TARGET_WANTS = | |
198 | ||
199 | SYSTEM_UNIT_ALIASES = | |
200 | USER_UNIT_ALIASES = | |
201 | ||
202 | GENERAL_ALIASES = | |
203 | ||
204 | install-target-wants-hook: | |
205 | what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && $(add-wants) | |
206 | what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && $(add-wants) | |
207 | what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && $(add-wants) | |
208 | what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && $(add-wants) | |
209 | what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && $(add-wants) | |
210 | what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && $(add-wants) | |
211 | what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && $(add-wants) | |
212 | what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && $(add-wants) | |
213 | what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && $(add-wants) | |
214 | what="$(BASIC_TARGET_WANTS)" && wants=basic.target && $(add-wants) | |
215 | what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && $(add-wants) | |
216 | ||
217 | define add-wants | |
218 | [ -z "$$what" ] || ( \ | |
219 | dir=$(DESTDIR)$(systemunitdir)/$$wants.wants && \ | |
220 | $(MKDIR_P) -m 0755 $$dir && \ | |
221 | cd $$dir && \ | |
222 | rm -f $$what && \ | |
223 | for i in $$what; do ln -s ../$$i . || exit $$? ; done ) | |
224 | endef | |
225 | ||
226 | install-directories-hook: | |
227 | $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS)) | |
228 | ||
229 | install-aliases-hook: | |
230 | set -- $(SYSTEM_UNIT_ALIASES) && \ | |
231 | dir=$(systemunitdir) && $(install-aliases) | |
232 | set -- $(USER_UNIT_ALIASES) && \ | |
233 | dir=$(userunitdir) && $(install-aliases) | |
234 | set -- $(GENERAL_ALIASES) && \ | |
235 | dir= && $(install-aliases) | |
236 | ||
237 | define install-aliases | |
238 | $(MKDIR_P) /$(DESTDIR)$$dir && \ | |
239 | while [ -n "$$1" ]; do \ | |
240 | rm -f $(DESTDIR)$$dir/$$2 && \ | |
241 | ln -s $$1 $(DESTDIR)$$dir/$$2 && \ | |
242 | shift 2 || exit $$?; \ | |
243 | done | |
244 | endef | |
245 | ||
246 | INSTALL_EXEC_HOOKS += \ | |
247 | install-target-wants-hook \ | |
248 | install-directories-hook \ | |
249 | install-aliases-hook | |
250 | ||
251 | # ------------------------------------------------------------------------------ | |
252 | AM_V_M4 = $(AM_V_M4_$(V)) | |
253 | AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY)) | |
254 | AM_V_M4_0 = @echo " M4 " $@; | |
255 | ||
256 | AM_V_XSLT = $(AM_V_XSLT_$(V)) | |
257 | AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY)) | |
258 | AM_V_XSLT_0 = @echo " XSLT " $@; | |
259 | ||
260 | AM_V_GPERF = $(AM_V_GPERF_$(V)) | |
261 | AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY)) | |
262 | AM_V_GPERF_0 = @echo " GPERF " $@; | |
263 | ||
264 | AM_V_LN = $(AM_V_LN_$(V)) | |
265 | AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY)) | |
266 | AM_V_LN_0 = @echo " LN " $@; | |
267 | ||
268 | # ------------------------------------------------------------------------------ | |
269 | rootbin_PROGRAMS = \ | |
270 | systemctl \ | |
271 | systemd-notify \ | |
272 | systemd-ask-password \ | |
273 | systemd-tty-ask-password-agent \ | |
274 | systemd-tmpfiles \ | |
275 | systemd-machine-id-setup | |
276 | ||
277 | bin_PROGRAMS = \ | |
278 | systemd-cgls \ | |
279 | systemd-cgtop \ | |
280 | systemd-stdio-bridge \ | |
281 | systemd-nspawn \ | |
282 | systemd-detect-virt \ | |
283 | systemd-delta \ | |
284 | systemd-analyze | |
285 | ||
286 | bin_SCRIPTS = \ | |
287 | src/kernel-install/kernel-install | |
288 | ||
289 | EXTRA_DIST += \ | |
290 | src/kernel-install/kernel-install | |
291 | ||
292 | rootlibexec_PROGRAMS = \ | |
293 | systemd \ | |
294 | systemd-cgroups-agent \ | |
295 | systemd-initctl \ | |
296 | systemd-update-utmp \ | |
297 | systemd-shutdownd \ | |
298 | systemd-shutdown \ | |
299 | systemd-remount-fs \ | |
300 | systemd-reply-password \ | |
301 | systemd-fsck \ | |
302 | systemd-timestamp \ | |
303 | systemd-ac-power \ | |
304 | systemd-sysctl \ | |
305 | systemd-sleep | |
306 | ||
307 | systemgenerator_PROGRAMS = \ | |
308 | systemd-getty-generator \ | |
309 | systemd-fstab-generator \ | |
310 | systemd-system-update-generator | |
311 | ||
312 | systemd_analyze_SOURCES = \ | |
313 | src/analyze/systemd-analyze.c | |
314 | ||
315 | systemd_analyze_CFLAGS = \ | |
316 | $(AM_CFLAGS) \ | |
317 | $(DBUS_CFLAGS) | |
318 | ||
319 | systemd_analyze_LDADD = \ | |
320 | libsystemd-shared.la \ | |
321 | libsystemd-dbus.la | |
322 | ||
323 | dist_bashcompletion_DATA = \ | |
324 | shell-completion/bash/journalctl \ | |
325 | shell-completion/bash/systemctl \ | |
326 | shell-completion/bash/udevadm | |
327 | ||
328 | dist_tmpfiles_DATA = \ | |
329 | tmpfiles.d/systemd.conf \ | |
330 | tmpfiles.d/tmp.conf \ | |
331 | tmpfiles.d/x11.conf | |
332 | ||
333 | if HAVE_SYSV_COMPAT | |
334 | dist_tmpfiles_DATA += \ | |
335 | tmpfiles.d/legacy.conf | |
336 | endif | |
337 | ||
338 | dist_systemunit_DATA = \ | |
339 | units/graphical.target \ | |
340 | units/multi-user.target \ | |
341 | units/emergency.service \ | |
342 | units/emergency.target \ | |
343 | units/sysinit.target \ | |
344 | units/basic.target \ | |
345 | units/getty.target \ | |
346 | units/halt.target \ | |
347 | units/kexec.target \ | |
348 | units/local-fs.target \ | |
349 | units/local-fs-pre.target \ | |
350 | units/initrd-fs.target \ | |
351 | units/root-fs.target \ | |
352 | units/remote-fs.target \ | |
353 | units/remote-fs-pre.target \ | |
354 | units/network.target \ | |
355 | units/nss-lookup.target \ | |
356 | units/nss-user-lookup.target \ | |
357 | units/hibernate.target \ | |
358 | units/hybrid-sleep.target \ | |
359 | units/poweroff.target \ | |
360 | units/reboot.target \ | |
361 | units/rescue.target \ | |
362 | units/rpcbind.target \ | |
363 | units/time-sync.target \ | |
364 | units/shutdown.target \ | |
365 | units/final.target \ | |
366 | units/umount.target \ | |
367 | units/sigpwr.target \ | |
368 | units/sleep.target \ | |
369 | units/sockets.target \ | |
370 | units/suspend.target \ | |
371 | units/swap.target \ | |
372 | units/systemd-initctl.socket \ | |
373 | units/systemd-shutdownd.socket \ | |
374 | units/syslog.socket \ | |
375 | units/dev-hugepages.mount \ | |
376 | units/dev-mqueue.mount \ | |
377 | units/sys-kernel-config.mount \ | |
378 | units/sys-kernel-debug.mount \ | |
379 | units/sys-fs-fuse-connections.mount \ | |
380 | units/tmp.mount \ | |
381 | units/printer.target \ | |
382 | units/sound.target \ | |
383 | units/bluetooth.target \ | |
384 | units/smartcard.target \ | |
385 | units/systemd-tmpfiles-clean.timer \ | |
386 | units/quotaon.service \ | |
387 | units/systemd-ask-password-wall.path \ | |
388 | units/systemd-ask-password-console.path \ | |
389 | units/systemd-udevd-control.socket \ | |
390 | units/systemd-udevd-kernel.socket \ | |
391 | units/system-update.target \ | |
392 | units/initrd-switch-root.target | |
393 | ||
394 | nodist_systemunit_DATA = \ | |
395 | units/getty@.service \ | |
396 | units/serial-getty@.service \ | |
397 | units/console-shell.service \ | |
398 | units/console-getty.service \ | |
399 | units/systemd-initctl.service \ | |
400 | units/systemd-shutdownd.service \ | |
401 | units/systemd-remount-fs.service \ | |
402 | units/systemd-update-utmp-runlevel.service \ | |
403 | units/systemd-update-utmp-shutdown.service \ | |
404 | units/systemd-tmpfiles-setup.service \ | |
405 | units/systemd-tmpfiles-clean.service \ | |
406 | units/systemd-ask-password-wall.service \ | |
407 | units/systemd-ask-password-console.service \ | |
408 | units/systemd-sysctl.service \ | |
409 | units/emergency.service \ | |
410 | units/rescue.service \ | |
411 | units/user@.service \ | |
412 | units/systemd-hibernate.service \ | |
413 | units/systemd-hybrid-sleep.service \ | |
414 | units/systemd-suspend.service \ | |
415 | units/systemd-halt.service \ | |
416 | units/systemd-poweroff.service \ | |
417 | units/systemd-reboot.service \ | |
418 | units/systemd-kexec.service \ | |
419 | units/systemd-fsck@.service \ | |
420 | units/systemd-fsck-root.service \ | |
421 | units/systemd-udevd.service \ | |
422 | units/systemd-udev-trigger.service \ | |
423 | units/systemd-udev-settle.service \ | |
424 | units/debug-shell.service \ | |
425 | units/initrd-parse-etc.service \ | |
426 | units/initrd-cleanup.service \ | |
427 | units/initrd-udevadm-cleanup-db.service \ | |
428 | units/initrd-switch-root.service | |
429 | ||
430 | dist_userunit_DATA = \ | |
431 | units/user/default.target \ | |
432 | units/user/exit.target | |
433 | ||
434 | nodist_userunit_DATA = \ | |
435 | units/user/systemd-exit.service | |
436 | ||
437 | EXTRA_DIST += \ | |
438 | units/getty@.service.m4 \ | |
439 | units/serial-getty@.service.m4 \ | |
440 | units/console-shell.service.m4.in \ | |
441 | units/console-getty.service.m4.in \ | |
442 | units/rescue.service.m4.in \ | |
443 | units/systemd-initctl.service.in \ | |
444 | units/systemd-shutdownd.service.in \ | |
445 | units/systemd-remount-fs.service.in \ | |
446 | units/systemd-update-utmp-runlevel.service.in \ | |
447 | units/systemd-update-utmp-shutdown.service.in \ | |
448 | units/systemd-tmpfiles-setup.service.in \ | |
449 | units/systemd-tmpfiles-clean.service.in \ | |
450 | units/systemd-ask-password-wall.service.in \ | |
451 | units/systemd-ask-password-console.service.in \ | |
452 | units/systemd-sysctl.service.in \ | |
453 | units/emergency.service.in \ | |
454 | units/systemd-halt.service.in \ | |
455 | units/systemd-poweroff.service.in \ | |
456 | units/systemd-reboot.service.in \ | |
457 | units/systemd-kexec.service.in \ | |
458 | units/user/systemd-exit.service.in \ | |
459 | units/systemd-fsck@.service.in \ | |
460 | units/systemd-fsck-root.service.in \ | |
461 | units/user@.service.in \ | |
462 | units/systemd-udevd.service \ | |
463 | units/systemd-udev-trigger.service \ | |
464 | units/systemd-udev-settle.service \ | |
465 | units/debug-shell.service.in \ | |
466 | units/systemd-hibernate.service.in \ | |
467 | units/systemd-hybrid-sleep.service.in \ | |
468 | units/systemd-suspend.service.in \ | |
469 | units/quotaon.service.in \ | |
470 | units/initrd-parse-etc.service.in \ | |
471 | units/initrd-cleanup.service.in \ | |
472 | units/initrd-udevadm-cleanup-db.service.in \ | |
473 | units/initrd-switch-root.service.in \ | |
474 | introspect.awk \ | |
475 | man/custom-html.xsl | |
476 | ||
477 | CLEANFILES += \ | |
478 | units/console-shell.service.m4 \ | |
479 | units/console-getty.service.m4 \ | |
480 | units/rescue.service.m4 | |
481 | ||
482 | if HAVE_SYSV_COMPAT | |
483 | nodist_systemunit_DATA += \ | |
484 | units/rc-local.service \ | |
485 | units/halt-local.service | |
486 | ||
487 | systemgenerator_PROGRAMS += \ | |
488 | systemd-rc-local-generator | |
489 | endif | |
490 | ||
491 | EXTRA_DIST += \ | |
492 | units/rc-local.service.in \ | |
493 | units/halt-local.service.in | |
494 | ||
495 | dist_doc_DATA = \ | |
496 | README \ | |
497 | NEWS \ | |
498 | LICENSE.LGPL2.1 \ | |
499 | LICENSE.GPL2 \ | |
500 | LICENSE.MIT \ | |
501 | DISTRO_PORTING | |
502 | ||
503 | @INTLTOOL_POLICY_RULE@ | |
504 | ||
505 | # ------------------------------------------------------------------------------ | |
506 | ||
507 | MANPAGES = | |
508 | MANPAGES_ALIAS = | |
509 | ||
510 | include Makefile-man.am | |
511 | ||
512 | XML_FILES = \ | |
513 | ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}} | |
514 | HTML_FILES = \ | |
515 | ${XML_FILES:.xml=.html} | |
516 | HTML_ALIAS = \ | |
517 | ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}} | |
518 | ||
519 | if ENABLE_MANPAGES | |
520 | man_MANS = \ | |
521 | $(MANPAGES) \ | |
522 | $(MANPAGES_ALIAS) | |
523 | ||
524 | noinst_DATA += \ | |
525 | $(HTML_FILES) \ | |
526 | $(HTML_ALIAS) | |
527 | ||
528 | CLEANFILES += \ | |
529 | $(man_MANS) \ | |
530 | $(HTML_FILES) \ | |
531 | $(HTML_ALIAS) | |
532 | ||
533 | docs/html/man: | |
534 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
535 | $(AM_V_LN)$(LN_S) -f ../../man $@ | |
536 | ||
537 | noinst_DATA += \ | |
538 | docs/html/man | |
539 | ||
540 | CLEANFILES += \ | |
541 | docs/html/man | |
542 | ||
543 | if HAVE_PYTHON | |
544 | man/index.html: man/systemd.index.html | |
545 | $(AM_V_LN)$(LN_S) -f systemd.index.html $@ | |
546 | ||
547 | noinst_DATA += \ | |
548 | man/index.html | |
549 | ||
550 | CLEANFILES += \ | |
551 | man/index.html | |
552 | ||
553 | NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES)) | |
554 | ||
555 | XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_srcdir)/man/*.xml.in $(top_builddir)/man/*.xml) | |
556 | update-man-list: make-man-rules.py $(XML_GLOB) | |
557 | $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp | |
558 | $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am | |
559 | @echo "Makefile-man.am has been regenerated" | |
560 | ||
561 | man/systemd.index.xml: make-man-index.py $(NON_INDEX_XML_FILES) | |
562 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
563 | $(AM_V_GEN)$(PYTHON) $^ > $@ | |
564 | ||
565 | man/systemd.directives.xml: make-directive-index.py $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES)) | |
566 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
567 | $(AM_V_GEN)$(PYTHON) $^ > $@ | |
568 | ||
569 | EXTRA_DIST += \ | |
570 | man/systemd.index.xml \ | |
571 | man/index.html \ | |
572 | man/systemd.directives.xml | |
573 | ||
574 | CLEANFILES += \ | |
575 | man/systemd.index.xml \ | |
576 | man/systemd.directives.xml | |
577 | ||
578 | endif | |
579 | ||
580 | endif | |
581 | ||
582 | EXTRA_DIST += \ | |
583 | $(XML_FILES) \ | |
584 | $(HTML_FILES) \ | |
585 | $(HTML_ALIAS) \ | |
586 | $(dist_MANS) \ | |
587 | make-man-index.py \ | |
588 | make-directive-index.py | |
589 | ||
590 | # ------------------------------------------------------------------------------ | |
591 | noinst_LTLIBRARIES += \ | |
592 | libsystemd-shared.la | |
593 | ||
594 | libsystemd_shared_la_SOURCES = \ | |
595 | src/shared/linux/auto_dev-ioctl.h \ | |
596 | src/shared/linux/fanotify.h \ | |
597 | src/shared/linux/seccomp.h \ | |
598 | src/shared/linux/seccomp-bpf.h \ | |
599 | src/shared/missing.h \ | |
600 | src/shared/list.h \ | |
601 | src/shared/macro.h \ | |
602 | src/shared/def.h \ | |
603 | src/shared/sparse-endian.h \ | |
604 | src/shared/util.c \ | |
605 | src/shared/util.h \ | |
606 | src/shared/virt.c \ | |
607 | src/shared/virt.h \ | |
608 | src/shared/efivars.c \ | |
609 | src/shared/efivars.h \ | |
610 | src/shared/path-util.c \ | |
611 | src/shared/path-util.h \ | |
612 | src/shared/time-util.c \ | |
613 | src/shared/time-util.h \ | |
614 | src/shared/hashmap.c \ | |
615 | src/shared/hashmap.h \ | |
616 | src/shared/set.c \ | |
617 | src/shared/set.h \ | |
618 | src/shared/fdset.c \ | |
619 | src/shared/fdset.h \ | |
620 | src/shared/strv.c \ | |
621 | src/shared/strv.h \ | |
622 | src/shared/env-util.c \ | |
623 | src/shared/env-util.h \ | |
624 | src/shared/strbuf.c \ | |
625 | src/shared/strbuf.h \ | |
626 | src/shared/strxcpyx.c \ | |
627 | src/shared/strxcpyx.h \ | |
628 | src/shared/conf-parser.c \ | |
629 | src/shared/conf-parser.h \ | |
630 | src/shared/log.c \ | |
631 | src/shared/log.h \ | |
632 | src/shared/ratelimit.h \ | |
633 | src/shared/ratelimit.c \ | |
634 | src/shared/exit-status.c \ | |
635 | src/shared/exit-status.h \ | |
636 | src/shared/utf8.c \ | |
637 | src/shared/utf8.h \ | |
638 | src/shared/pager.c \ | |
639 | src/shared/pager.h \ | |
640 | src/shared/ioprio.h \ | |
641 | src/shared/socket-util.c \ | |
642 | src/shared/socket-util.h \ | |
643 | src/shared/conf-files.c \ | |
644 | src/shared/conf-files.h \ | |
645 | src/shared/cgroup-util.c \ | |
646 | src/shared/cgroup-util.h \ | |
647 | src/shared/cgroup-show.c \ | |
648 | src/shared/cgroup-show.h \ | |
649 | src/shared/unit-name.c \ | |
650 | src/shared/unit-name.h \ | |
651 | src/shared/utmp-wtmp.c \ | |
652 | src/shared/utmp-wtmp.h \ | |
653 | src/shared/watchdog.c \ | |
654 | src/shared/watchdog.h \ | |
655 | src/shared/spawn-ask-password-agent.c \ | |
656 | src/shared/spawn-ask-password-agent.h \ | |
657 | src/shared/replace-var.c \ | |
658 | src/shared/replace-var.h \ | |
659 | src/shared/spawn-polkit-agent.c \ | |
660 | src/shared/spawn-polkit-agent.h \ | |
661 | src/shared/hwclock.c \ | |
662 | src/shared/hwclock.h \ | |
663 | src/shared/time-dst.c \ | |
664 | src/shared/time-dst.h \ | |
665 | src/shared/calendarspec.c \ | |
666 | src/shared/calendarspec.h \ | |
667 | src/shared/fileio.c \ | |
668 | src/shared/fileio.h \ | |
669 | src/shared/output-mode.h | |
670 | ||
671 | #------------------------------------------------------------------------------- | |
672 | noinst_LTLIBRARIES += \ | |
673 | libsystemd-dbus.la | |
674 | ||
675 | libsystemd_dbus_la_SOURCES = \ | |
676 | src/shared/dbus-common.c \ | |
677 | src/shared/dbus-common.h \ | |
678 | src/shared/dbus-loop.c \ | |
679 | src/shared/dbus-loop.h \ | |
680 | src/shared/polkit.c \ | |
681 | src/shared/polkit.h | |
682 | ||
683 | libsystemd_dbus_la_CFLAGS = \ | |
684 | $(AM_CFLAGS) \ | |
685 | $(DBUS_CFLAGS) | |
686 | ||
687 | libsystemd_dbus_la_LIBADD = \ | |
688 | $(DBUS_LIBS) | |
689 | ||
690 | # ------------------------------------------------------------------------------ | |
691 | noinst_LTLIBRARIES += \ | |
692 | libsystemd-units.la | |
693 | ||
694 | libsystemd_units_la_SOURCES = \ | |
695 | src/shared/install.c \ | |
696 | src/shared/install.h \ | |
697 | src/shared/install-printf.c \ | |
698 | src/shared/install-printf.h \ | |
699 | src/shared/path-lookup.c \ | |
700 | src/shared/path-lookup.h \ | |
701 | src/shared/specifier.c \ | |
702 | src/shared/specifier.h | |
703 | ||
704 | libsystemd_units_la_CFLAGS = \ | |
705 | $(AM_CFLAGS) \ | |
706 | $(DBUS_CFLAGS) | |
707 | ||
708 | # ------------------------------------------------------------------------------ | |
709 | noinst_LTLIBRARIES += \ | |
710 | libsystemd-label.la | |
711 | ||
712 | libsystemd_label_la_SOURCES = \ | |
713 | src/shared/cgroup-label.c \ | |
714 | src/shared/socket-label.c \ | |
715 | src/shared/label.c \ | |
716 | src/shared/label.h \ | |
717 | src/shared/selinux-util.c \ | |
718 | src/shared/selinux-util.h \ | |
719 | src/shared/mkdir.c \ | |
720 | src/shared/mkdir.h \ | |
721 | src/shared/ask-password-api.c \ | |
722 | src/shared/ask-password-api.h \ | |
723 | src/shared/fileio-label.c \ | |
724 | src/shared/fileio-label.h \ | |
725 | src/shared/dev-setup.c \ | |
726 | src/shared/dev-setup.h | |
727 | ||
728 | libsystemd_label_la_CFLAGS = \ | |
729 | $(AM_CFLAGS) \ | |
730 | $(SELINUX_CFLAGS) | |
731 | ||
732 | libsystemd_label_la_LIBADD = \ | |
733 | $(SELINUX_LIBS) | |
734 | ||
735 | # ------------------------------------------------------------------------------ | |
736 | noinst_LTLIBRARIES += \ | |
737 | libsystemd-logs.la | |
738 | ||
739 | libsystemd_logs_la_SOURCES = \ | |
740 | src/shared/logs-show.c \ | |
741 | src/shared/logs-show.h | |
742 | ||
743 | libsystemd_logs_la_CFLAGS = \ | |
744 | $(AM_CFLAGS) | |
745 | ||
746 | libsystemd_logs_la_LIBADD = \ | |
747 | libsystemd-journal-internal.la \ | |
748 | libsystemd-id128-internal.la \ | |
749 | libsystemd-shared.la | |
750 | ||
751 | # ------------------------------------------------------------------------------ | |
752 | noinst_LTLIBRARIES += \ | |
753 | libsystemd-capability.la | |
754 | ||
755 | libsystemd_capability_la_SOURCES = \ | |
756 | src/shared/capability.c \ | |
757 | src/shared/capability.h | |
758 | ||
759 | libsystemd_capability_la_CFLAGS = \ | |
760 | $(AM_CFLAGS) \ | |
761 | $(CAP_CFLAGS) | |
762 | ||
763 | libsystemd_capability_la_LIBADD = \ | |
764 | $(CAP_LIBS) | |
765 | ||
766 | # ------------------------------------------------------------------------------ | |
767 | noinst_LTLIBRARIES += \ | |
768 | libsystemd-audit.la | |
769 | ||
770 | libsystemd_audit_la_SOURCES = \ | |
771 | src/shared/audit.c \ | |
772 | src/shared/audit.h | |
773 | ||
774 | libsystemd_audit_la_LIBADD = \ | |
775 | libsystemd-capability.la | |
776 | ||
777 | # ------------------------------------------------------------------------------ | |
778 | if HAVE_ACL | |
779 | noinst_LTLIBRARIES += \ | |
780 | libsystemd-acl.la | |
781 | ||
782 | libsystemd_acl_la_SOURCES = \ | |
783 | src/shared/acl-util.c \ | |
784 | src/shared/acl-util.h | |
785 | ||
786 | libsystemd_acl_la_CFLAGS = \ | |
787 | $(AM_CFLAGS) \ | |
788 | $(ACL_CFLAGS) | |
789 | ||
790 | libsystemd_acl_la_LIBADD = \ | |
791 | $(ACL_LIBS) | |
792 | endif | |
793 | ||
794 | # ------------------------------------------------------------------------------ | |
795 | noinst_LTLIBRARIES += \ | |
796 | libsystemd-core.la | |
797 | ||
798 | libsystemd_core_la_SOURCES = \ | |
799 | src/core/unit.c \ | |
800 | src/core/unit.h \ | |
801 | src/core/unit-printf.c \ | |
802 | src/core/unit-printf.h \ | |
803 | src/core/job.c \ | |
804 | src/core/job.h \ | |
805 | src/core/manager.c \ | |
806 | src/core/manager.h \ | |
807 | src/core/transaction.c \ | |
808 | src/core/transaction.h \ | |
809 | src/core/load-fragment.c \ | |
810 | src/core/load-fragment.h \ | |
811 | src/core/service.c \ | |
812 | src/core/service.h \ | |
813 | src/core/automount.c \ | |
814 | src/core/automount.h \ | |
815 | src/core/mount.c \ | |
816 | src/core/mount.h \ | |
817 | src/core/swap.c \ | |
818 | src/core/swap.h \ | |
819 | src/core/device.c \ | |
820 | src/core/device.h \ | |
821 | src/core/target.c \ | |
822 | src/core/target.h \ | |
823 | src/core/snapshot.c \ | |
824 | src/core/snapshot.h \ | |
825 | src/core/socket.c \ | |
826 | src/core/socket.h \ | |
827 | src/core/timer.c \ | |
828 | src/core/timer.h \ | |
829 | src/core/path.c \ | |
830 | src/core/path.h \ | |
831 | src/core/load-dropin.c \ | |
832 | src/core/load-dropin.h \ | |
833 | src/core/execute.c \ | |
834 | src/core/execute.h \ | |
835 | src/core/kill.c \ | |
836 | src/core/kill.h \ | |
837 | src/core/dbus.c \ | |
838 | src/core/dbus.h \ | |
839 | src/core/dbus-manager.c \ | |
840 | src/core/dbus-manager.h \ | |
841 | src/core/dbus-unit.c \ | |
842 | src/core/dbus-unit.h \ | |
843 | src/core/dbus-job.c \ | |
844 | src/core/dbus-job.h \ | |
845 | src/core/dbus-service.c \ | |
846 | src/core/dbus-service.h \ | |
847 | src/core/dbus-socket.c \ | |
848 | src/core/dbus-socket.h \ | |
849 | src/core/dbus-timer.c \ | |
850 | src/core/dbus-timer.h \ | |
851 | src/core/dbus-target.c \ | |
852 | src/core/dbus-target.h \ | |
853 | src/core/dbus-mount.c \ | |
854 | src/core/dbus-mount.h \ | |
855 | src/core/dbus-automount.c \ | |
856 | src/core/dbus-automount.h \ | |
857 | src/core/dbus-swap.c \ | |
858 | src/core/dbus-swap.h \ | |
859 | src/core/dbus-snapshot.c \ | |
860 | src/core/dbus-snapshot.h \ | |
861 | src/core/dbus-device.c \ | |
862 | src/core/dbus-device.h \ | |
863 | src/core/dbus-execute.c \ | |
864 | src/core/dbus-execute.h \ | |
865 | src/core/dbus-kill.c \ | |
866 | src/core/dbus-kill.h \ | |
867 | src/core/dbus-path.c \ | |
868 | src/core/dbus-path.h \ | |
869 | src/core/cgroup.c \ | |
870 | src/core/cgroup.h \ | |
871 | src/core/selinux-access.c \ | |
872 | src/core/selinux-access.h \ | |
873 | src/core/selinux-setup.c \ | |
874 | src/core/selinux-setup.h \ | |
875 | src/core/smack-setup.c \ | |
876 | src/core/smack-setup.h \ | |
877 | src/core/ima-setup.c \ | |
878 | src/core/ima-setup.h \ | |
879 | src/core/locale-setup.h \ | |
880 | src/core/locale-setup.c \ | |
881 | src/core/hostname-setup.c \ | |
882 | src/core/hostname-setup.h \ | |
883 | src/core/machine-id-setup.c \ | |
884 | src/core/machine-id-setup.h \ | |
885 | src/core/mount-setup.c \ | |
886 | src/core/mount-setup.h \ | |
887 | src/core/loopback-setup.h \ | |
888 | src/core/loopback-setup.c \ | |
889 | src/core/condition.c \ | |
890 | src/core/condition.h \ | |
891 | src/core/namespace.c \ | |
892 | src/core/namespace.h \ | |
893 | src/core/tcpwrap.c \ | |
894 | src/core/tcpwrap.h \ | |
895 | src/core/cgroup-attr.c \ | |
896 | src/core/cgroup-attr.h \ | |
897 | src/core/cgroup-semantics.c \ | |
898 | src/core/cgroup-semantics.h \ | |
899 | src/core/securebits.h \ | |
900 | src/core/initreq.h \ | |
901 | src/core/special.h \ | |
902 | src/core/bus-errors.h \ | |
903 | src/core/build.h \ | |
904 | src/core/sysfs-show.h \ | |
905 | src/core/switch-root.h \ | |
906 | src/core/switch-root.c \ | |
907 | src/core/killall.h \ | |
908 | src/core/killall.c \ | |
909 | src/core/syscall-list.c \ | |
910 | src/core/syscall-list.h \ | |
911 | src/core/audit-fd.c \ | |
912 | src/core/audit-fd.h \ | |
913 | src/core/sync.c \ | |
914 | src/core/sync.h | |
915 | ||
916 | if HAVE_KMOD | |
917 | libsystemd_core_la_SOURCES += \ | |
918 | src/core/kmod-setup.c \ | |
919 | src/core/kmod-setup.h | |
920 | endif | |
921 | ||
922 | nodist_libsystemd_core_la_SOURCES = \ | |
923 | src/core/load-fragment-gperf.c \ | |
924 | src/core/load-fragment-gperf-nulstr.c \ | |
925 | src/core/syscall-from-name.h \ | |
926 | src/core/syscall-to-name.h | |
927 | ||
928 | libsystemd_core_la_CFLAGS = \ | |
929 | $(AM_CFLAGS) \ | |
930 | $(DBUS_CFLAGS) \ | |
931 | $(LIBWRAP_CFLAGS) \ | |
932 | $(PAM_CFLAGS) \ | |
933 | $(AUDIT_CFLAGS) \ | |
934 | $(KMOD_CFLAGS) \ | |
935 | -pthread | |
936 | ||
937 | libsystemd_core_la_LIBADD = \ | |
938 | libsystemd-capability.la \ | |
939 | libsystemd-units.la \ | |
940 | libsystemd-label.la \ | |
941 | libsystemd-shared.la \ | |
942 | libsystemd-dbus.la \ | |
943 | libsystemd-audit.la \ | |
944 | libsystemd-id128-internal.la \ | |
945 | libsystemd-daemon.la \ | |
946 | libudev.la \ | |
947 | $(LIBWRAP_LIBS) \ | |
948 | $(PAM_LIBS) \ | |
949 | $(AUDIT_LIBS) \ | |
950 | $(CAP_LIBS) \ | |
951 | $(KMOD_LIBS) | |
952 | ||
953 | src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf | |
954 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
955 | $(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 ";" }' < $< > $@ | |
956 | ||
957 | EXTRA_DIST += \ | |
958 | src/core/load-fragment-gperf.gperf.m4 | |
959 | ||
960 | CLEANFILES += \ | |
961 | src/core/load-fragment-gperf.gperf \ | |
962 | src/core/load-fragment-gperf.c \ | |
963 | src/core/load-fragment-gperf-nulstr.c \ | |
964 | src/core/syscall-list.txt \ | |
965 | src/core/syscall-from-name.gperf | |
966 | ||
967 | BUILT_SOURCES += \ | |
968 | src/core/syscall-from-name.h \ | |
969 | src/core/syscall-to-name.h | |
970 | ||
971 | src/core/syscall-list.txt: Makefile | |
972 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
973 | $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/syscall.h - < /dev/null | $(AWK) '/^#define[ \t]+__NR_[^ ]+[ \t]+[0-9(]/ { sub(/__NR_/, "", $$2); print $$2; }' > $@ | |
974 | ||
975 | src/core/syscall-from-name.gperf: src/core/syscall-list.txt Makefile | |
976 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
977 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct syscall_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, __NR_%s\n", $$1, $$1 }' < $< > $@ | |
978 | ||
979 | src/core/syscall-from-name.h: src/core/syscall-from-name.gperf Makefile | |
980 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
981 | $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_syscall -H hash_syscall_name -p -C < $< > $@ | |
982 | ||
983 | src/core/syscall-to-name.h: src/core/syscall-list.txt Makefile | |
984 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
985 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const syscall_names[] = { "} { printf "[SYSCALL_TO_INDEX(__NR_%s)] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@ | |
986 | ||
987 | # ------------------------------------------------------------------------------ | |
988 | systemd_SOURCES = \ | |
989 | src/core/main.c | |
990 | ||
991 | systemd_CFLAGS = \ | |
992 | $(AM_CFLAGS) \ | |
993 | $(DBUS_CFLAGS) | |
994 | ||
995 | systemd_LDADD = \ | |
996 | libsystemd-core.la \ | |
997 | libsystemd-daemon.la \ | |
998 | libsystemd-id128-internal.la \ | |
999 | libsystemd-dbus.la | |
1000 | ||
1001 | dist_pkgsysconf_DATA += \ | |
1002 | src/core/system.conf \ | |
1003 | src/core/user.conf | |
1004 | ||
1005 | dist_dbuspolicy_DATA += \ | |
1006 | src/core/org.freedesktop.systemd1.conf | |
1007 | ||
1008 | dist_dbussystemservice_DATA += \ | |
1009 | src/core/org.freedesktop.systemd1.service | |
1010 | ||
1011 | dbusinterface_DATA += \ | |
1012 | org.freedesktop.systemd1.Manager.xml \ | |
1013 | org.freedesktop.systemd1.Job.xml \ | |
1014 | org.freedesktop.systemd1.Unit.xml \ | |
1015 | org.freedesktop.systemd1.Service.xml \ | |
1016 | org.freedesktop.systemd1.Socket.xml \ | |
1017 | org.freedesktop.systemd1.Timer.xml \ | |
1018 | org.freedesktop.systemd1.Target.xml \ | |
1019 | org.freedesktop.systemd1.Device.xml \ | |
1020 | org.freedesktop.systemd1.Mount.xml \ | |
1021 | org.freedesktop.systemd1.Automount.xml \ | |
1022 | org.freedesktop.systemd1.Snapshot.xml \ | |
1023 | org.freedesktop.systemd1.Swap.xml \ | |
1024 | org.freedesktop.systemd1.Path.xml | |
1025 | ||
1026 | polkitpolicy_in_in_files += \ | |
1027 | src/core/org.freedesktop.systemd1.policy.in.in | |
1028 | ||
1029 | org.freedesktop.systemd1.%.xml: systemd | |
1030 | $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \ | |
1031 | $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ | |
1032 | $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp | |
1033 | ||
1034 | pkgconfigdata_DATA = \ | |
1035 | src/core/systemd.pc | |
1036 | ||
1037 | nodist_rpmmacros_DATA = \ | |
1038 | src/core/macros.systemd | |
1039 | ||
1040 | EXTRA_DIST += \ | |
1041 | src/core/systemd.pc.in \ | |
1042 | src/core/macros.systemd.in | |
1043 | ||
1044 | CLEANFILES += \ | |
1045 | src/core/macros.systemd \ | |
1046 | src/core/org.freedesktop.systemd1.policy.in | |
1047 | ||
1048 | # ------------------------------------------------------------------------------ | |
1049 | noinst_PROGRAMS += \ | |
1050 | test-engine \ | |
1051 | test-ns \ | |
1052 | test-loopback \ | |
1053 | test-hostname \ | |
1054 | test-daemon \ | |
1055 | test-cgroup \ | |
1056 | test-install \ | |
1057 | test-watchdog \ | |
1058 | test-log | |
1059 | ||
1060 | noinst_tests += \ | |
1061 | test-job-type \ | |
1062 | test-env-replace \ | |
1063 | test-strbuf \ | |
1064 | test-strv \ | |
1065 | test-strxcpyx \ | |
1066 | test-unit-name \ | |
1067 | test-unit-file \ | |
1068 | test-util \ | |
1069 | test-date \ | |
1070 | test-sleep \ | |
1071 | test-replace-var \ | |
1072 | test-sched-prio \ | |
1073 | test-calendarspec \ | |
1074 | test-strip-tab-ansi \ | |
1075 | test-cgroup-util | |
1076 | ||
1077 | EXTRA_DIST += \ | |
1078 | test/sched_idle_bad.service \ | |
1079 | test/sched_idle_ok.service \ | |
1080 | test/sched_rr_bad.service \ | |
1081 | test/sched_rr_ok.service \ | |
1082 | test/sched_rr_change.service | |
1083 | ||
1084 | test_engine_SOURCES = \ | |
1085 | src/test/test-engine.c | |
1086 | ||
1087 | test_engine_CFLAGS = \ | |
1088 | $(AM_CFLAGS) \ | |
1089 | $(DBUS_CFLAGS) | |
1090 | ||
1091 | test_engine_LDADD = \ | |
1092 | libsystemd-core.la \ | |
1093 | libsystemd-daemon.la \ | |
1094 | libsystemd-dbus.la | |
1095 | ||
1096 | test_job_type_SOURCES = \ | |
1097 | src/test/test-job-type.c | |
1098 | ||
1099 | test_job_type_CFLAGS = \ | |
1100 | $(AM_CFLAGS) \ | |
1101 | $(DBUS_CFLAGS) | |
1102 | ||
1103 | test_job_type_LDADD = \ | |
1104 | libsystemd-core.la \ | |
1105 | libsystemd-daemon.la | |
1106 | ||
1107 | test_ns_SOURCES = \ | |
1108 | src/test/test-ns.c | |
1109 | ||
1110 | test_ns_LDADD = \ | |
1111 | libsystemd-core.la | |
1112 | ||
1113 | test_loopback_SOURCES = \ | |
1114 | src/test/test-loopback.c | |
1115 | ||
1116 | test_loopback_LDADD = \ | |
1117 | libsystemd-shared.la \ | |
1118 | libsystemd-core.la | |
1119 | ||
1120 | test_hostname_SOURCES = \ | |
1121 | src/test/test-hostname.c | |
1122 | ||
1123 | test_hostname_LDADD = \ | |
1124 | libsystemd-core.la | |
1125 | ||
1126 | if ENABLE_EFI | |
1127 | noinst_PROGRAMS += \ | |
1128 | test-efivars | |
1129 | ||
1130 | test_efivars_SOURCES = \ | |
1131 | src/test/test-efivars.c | |
1132 | ||
1133 | test_efivars_LDADD = \ | |
1134 | libsystemd-shared.la | |
1135 | endif | |
1136 | ||
1137 | test_unit_name_SOURCES = \ | |
1138 | src/test/test-unit-name.c | |
1139 | ||
1140 | test_unit_name_CFLAGS = \ | |
1141 | $(AM_CFLAGS) \ | |
1142 | $(DBUS_CFLAGS) | |
1143 | ||
1144 | test_unit_name_LDADD = \ | |
1145 | libsystemd-core.la | |
1146 | ||
1147 | test_unit_file_SOURCES = \ | |
1148 | src/test/test-unit-file.c | |
1149 | ||
1150 | test_unit_file_CFLAGS = \ | |
1151 | $(AM_CFLAGS) \ | |
1152 | $(DBUS_CFLAGS) | |
1153 | ||
1154 | test_unit_file_LDADD = \ | |
1155 | libsystemd-core.la | |
1156 | ||
1157 | test_util_SOURCES = \ | |
1158 | src/test/test-util.c | |
1159 | ||
1160 | test_util_CFLAGS = \ | |
1161 | $(AM_CFLAGS) | |
1162 | ||
1163 | test_util_LDADD = \ | |
1164 | libsystemd-core.la | |
1165 | ||
1166 | test_log_SOURCES = \ | |
1167 | src/test/test-log.c | |
1168 | ||
1169 | test_log_LDADD = \ | |
1170 | libsystemd-core.la | |
1171 | ||
1172 | test_date_SOURCES = \ | |
1173 | src/test/test-date.c | |
1174 | ||
1175 | test_date_LDADD = \ | |
1176 | libsystemd-core.la | |
1177 | ||
1178 | test_sleep_SOURCES = \ | |
1179 | src/test/test-sleep.c | |
1180 | ||
1181 | test_sleep_LDADD = \ | |
1182 | libsystemd-core.la | |
1183 | ||
1184 | test_replace_var_SOURCES = \ | |
1185 | src/test/test-replace-var.c | |
1186 | ||
1187 | test_replace_var_LDADD = \ | |
1188 | libsystemd-shared.la | |
1189 | ||
1190 | test_calendarspec_SOURCES = \ | |
1191 | src/test/test-calendarspec.c | |
1192 | ||
1193 | test_calendarspec_LDADD = \ | |
1194 | libsystemd-shared.la | |
1195 | ||
1196 | test_strip_tab_ansi_SOURCES = \ | |
1197 | src/test/test-strip-tab-ansi.c | |
1198 | ||
1199 | test_strip_tab_ansi_LDADD = \ | |
1200 | libsystemd-shared.la | |
1201 | ||
1202 | test_daemon_SOURCES = \ | |
1203 | src/test/test-daemon.c | |
1204 | ||
1205 | test_daemon_LDADD = \ | |
1206 | libsystemd-shared.la \ | |
1207 | libsystemd-daemon.la | |
1208 | ||
1209 | test_cgroup_SOURCES = \ | |
1210 | src/test/test-cgroup.c | |
1211 | ||
1212 | test_cgroup_LDADD = \ | |
1213 | libsystemd-label.la \ | |
1214 | libsystemd-shared.la | |
1215 | ||
1216 | test_cgroup_util_SOURCES = \ | |
1217 | src/test/test-cgroup-util.c | |
1218 | ||
1219 | test_cgroup_util_LDADD = \ | |
1220 | libsystemd-label.la \ | |
1221 | libsystemd-shared.la | |
1222 | ||
1223 | test_env_replace_SOURCES = \ | |
1224 | src/test/test-env-replace.c | |
1225 | ||
1226 | test_env_replace_LDADD = \ | |
1227 | libsystemd-shared.la | |
1228 | ||
1229 | test_strbuf_SOURCES = \ | |
1230 | src/test/test-strbuf.c | |
1231 | ||
1232 | test_strbuf_LDADD = \ | |
1233 | libsystemd-shared.la | |
1234 | ||
1235 | test_strv_SOURCES = \ | |
1236 | src/test/test-strv.c | |
1237 | ||
1238 | test_strv_LDADD = \ | |
1239 | libsystemd-shared.la \ | |
1240 | libsystemd-units.la \ | |
1241 | libsystemd-id128-internal.la | |
1242 | ||
1243 | test_strxcpyx_SOURCES = \ | |
1244 | src/test/test-strxcpyx.c | |
1245 | ||
1246 | test_strxcpyx_LDADD = \ | |
1247 | libsystemd-shared.la | |
1248 | ||
1249 | test_install_SOURCES = \ | |
1250 | src/test/test-install.c | |
1251 | ||
1252 | test_install_CFLAGS = \ | |
1253 | $(AM_CFLAGS) \ | |
1254 | $(DBUS_CFLAGS) | |
1255 | ||
1256 | test_install_LDADD = \ | |
1257 | libsystemd-units.la \ | |
1258 | libsystemd-label.la \ | |
1259 | libsystemd-shared.la \ | |
1260 | libsystemd-id128-internal.la | |
1261 | ||
1262 | test_watchdog_SOURCES = \ | |
1263 | src/test/test-watchdog.c | |
1264 | ||
1265 | test_watchdog_LDADD = \ | |
1266 | libsystemd-shared.la | |
1267 | ||
1268 | test_sched_prio_SOURCES = \ | |
1269 | src/test/test-sched-prio.c | |
1270 | ||
1271 | test_sched_prio_CFLAGS = \ | |
1272 | $(AM_CFLAGS) \ | |
1273 | $(DBUS_CFLAGS) \ | |
1274 | -D"STR(s)=\#s" -D"TEST_DIR=STR($(abs_top_srcdir)/test/)" | |
1275 | ||
1276 | test_sched_prio_LDADD = \ | |
1277 | libsystemd-core.la \ | |
1278 | libsystemd-daemon.la | |
1279 | ||
1280 | # ------------------------------------------------------------------------------ | |
1281 | systemd_initctl_SOURCES = \ | |
1282 | src/initctl/initctl.c | |
1283 | ||
1284 | systemd_initctl_CFLAGS = \ | |
1285 | $(AM_CFLAGS) \ | |
1286 | $(DBUS_CFLAGS) | |
1287 | ||
1288 | systemd_initctl_LDADD = \ | |
1289 | libsystemd-shared.la \ | |
1290 | libsystemd-daemon.la \ | |
1291 | libsystemd-dbus.la | |
1292 | ||
1293 | # ------------------------------------------------------------------------------ | |
1294 | systemd_update_utmp_SOURCES = \ | |
1295 | src/update-utmp/update-utmp.c | |
1296 | ||
1297 | systemd_update_utmp_CFLAGS = \ | |
1298 | $(AM_CFLAGS) \ | |
1299 | $(DBUS_CFLAGS) \ | |
1300 | $(AUDIT_CFLAGS) | |
1301 | ||
1302 | systemd_update_utmp_LDADD = \ | |
1303 | libsystemd-shared.la \ | |
1304 | libsystemd-dbus.la \ | |
1305 | $(AUDIT_LIBS) | |
1306 | ||
1307 | # ------------------------------------------------------------------------------ | |
1308 | systemd_shutdownd_SOURCES = \ | |
1309 | src/shutdownd/shutdownd.c | |
1310 | ||
1311 | systemd_shutdownd_LDADD = \ | |
1312 | libsystemd-label.la \ | |
1313 | libsystemd-shared.la \ | |
1314 | libsystemd-daemon.la | |
1315 | ||
1316 | pkginclude_HEADERS += \ | |
1317 | src/systemd/sd-shutdown.h | |
1318 | ||
1319 | # ------------------------------------------------------------------------------ | |
1320 | systemd_shutdown_SOURCES = \ | |
1321 | src/core/umount.c \ | |
1322 | src/core/umount.h \ | |
1323 | src/core/shutdown.c \ | |
1324 | src/core/mount-setup.c \ | |
1325 | src/core/mount-setup.h \ | |
1326 | src/core/killall.h \ | |
1327 | src/core/killall.c | |
1328 | ||
1329 | systemd_shutdown_LDADD = \ | |
1330 | libsystemd-label.la \ | |
1331 | libsystemd-shared.la \ | |
1332 | libudev.la | |
1333 | ||
1334 | # ------------------------------------------------------------------------------ | |
1335 | if HAVE_KMOD | |
1336 | systemd_modules_load_SOURCES = \ | |
1337 | src/modules-load/modules-load.c | |
1338 | ||
1339 | systemd_modules_load_CFLAGS = \ | |
1340 | $(AM_CFLAGS) \ | |
1341 | $(KMOD_CFLAGS) | |
1342 | ||
1343 | systemd_modules_load_LDADD = \ | |
1344 | libsystemd-shared.la \ | |
1345 | $(KMOD_LIBS) | |
1346 | ||
1347 | rootlibexec_PROGRAMS += \ | |
1348 | systemd-modules-load | |
1349 | ||
1350 | nodist_systemunit_DATA += \ | |
1351 | units/systemd-modules-load.service | |
1352 | SYSINIT_TARGET_WANTS += \ | |
1353 | systemd-modules-load.service | |
1354 | ||
1355 | dist_udevrules_DATA += \ | |
1356 | rules/80-drivers.rules | |
1357 | ||
1358 | endif | |
1359 | ||
1360 | EXTRA_DIST += \ | |
1361 | units/systemd-modules-load.service.in | |
1362 | ||
1363 | # ------------------------------------------------------------------------------ | |
1364 | systemd_tmpfiles_SOURCES = \ | |
1365 | src/tmpfiles/tmpfiles.c | |
1366 | ||
1367 | systemd_tmpfiles_LDADD = \ | |
1368 | libsystemd-label.la \ | |
1369 | libsystemd-shared.la \ | |
1370 | libsystemd-capability.la | |
1371 | ||
1372 | # ------------------------------------------------------------------------------ | |
1373 | systemd_machine_id_setup_SOURCES = \ | |
1374 | src/machine-id-setup/machine-id-setup-main.c \ | |
1375 | src/core/machine-id-setup.c \ | |
1376 | src/core/machine-id-setup.h | |
1377 | ||
1378 | systemd_machine_id_setup_LDADD = \ | |
1379 | libsystemd-label.la \ | |
1380 | libsystemd-shared.la \ | |
1381 | libsystemd-id128-internal.la | |
1382 | ||
1383 | # ------------------------------------------------------------------------------ | |
1384 | systemd_sysctl_SOURCES = \ | |
1385 | src/sysctl/sysctl.c | |
1386 | ||
1387 | systemd_sysctl_LDADD = \ | |
1388 | libsystemd-shared.la | |
1389 | ||
1390 | # ------------------------------------------------------------------------------ | |
1391 | systemd_sleep_SOURCES = \ | |
1392 | src/sleep/sleep.c | |
1393 | ||
1394 | systemd_sleep_LDADD = \ | |
1395 | libsystemd-shared.la | |
1396 | ||
1397 | # ------------------------------------------------------------------------------ | |
1398 | systemd_fsck_SOURCES = \ | |
1399 | src/fsck/fsck.c | |
1400 | ||
1401 | systemd_fsck_CFLAGS = \ | |
1402 | $(AM_CFLAGS) \ | |
1403 | $(DBUS_CFLAGS) | |
1404 | ||
1405 | systemd_fsck_LDADD = \ | |
1406 | libsystemd-shared.la \ | |
1407 | libsystemd-dbus.la \ | |
1408 | libudev.la | |
1409 | ||
1410 | # ------------------------------------------------------------------------------ | |
1411 | systemd_timestamp_SOURCES = \ | |
1412 | src/timestamp/timestamp.c | |
1413 | ||
1414 | systemd_timestamp_LDADD = \ | |
1415 | libsystemd-shared.la | |
1416 | ||
1417 | # ------------------------------------------------------------------------------ | |
1418 | systemd_ac_power_SOURCES = \ | |
1419 | src/ac-power/ac-power.c | |
1420 | ||
1421 | systemd_ac_power_LDADD = \ | |
1422 | libsystemd-shared.la \ | |
1423 | libudev.la | |
1424 | ||
1425 | # ------------------------------------------------------------------------------ | |
1426 | systemd_detect_virt_SOURCES = \ | |
1427 | src/detect-virt/detect-virt.c | |
1428 | ||
1429 | systemd_detect_virt_LDADD = \ | |
1430 | libsystemd-shared.la | |
1431 | ||
1432 | systemd-detect-virt-install-hook: | |
1433 | -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt | |
1434 | ||
1435 | INSTALL_EXEC_HOOKS += \ | |
1436 | systemd-detect-virt-install-hook | |
1437 | ||
1438 | # ------------------------------------------------------------------------------ | |
1439 | systemd_delta_SOURCES = \ | |
1440 | src/delta/delta.c | |
1441 | ||
1442 | systemd_delta_LDADD = \ | |
1443 | libsystemd-shared.la | |
1444 | ||
1445 | # ------------------------------------------------------------------------------ | |
1446 | systemd_getty_generator_SOURCES = \ | |
1447 | src/getty-generator/getty-generator.c | |
1448 | ||
1449 | systemd_getty_generator_LDADD = \ | |
1450 | libsystemd-label.la \ | |
1451 | libsystemd-shared.la | |
1452 | ||
1453 | # ------------------------------------------------------------------------------ | |
1454 | systemd_fstab_generator_SOURCES = \ | |
1455 | src/fstab-generator/fstab-generator.c \ | |
1456 | src/core/mount-setup.c | |
1457 | ||
1458 | systemd_fstab_generator_LDADD = \ | |
1459 | libsystemd-label.la \ | |
1460 | libsystemd-shared.la | |
1461 | ||
1462 | # ------------------------------------------------------------------------------ | |
1463 | systemd_system_update_generator_SOURCES = \ | |
1464 | src/system-update-generator/system-update-generator.c | |
1465 | ||
1466 | systemd_system_update_generator_LDADD = \ | |
1467 | libsystemd-label.la \ | |
1468 | libsystemd-shared.la | |
1469 | ||
1470 | # ------------------------------------------------------------------------------ | |
1471 | if ENABLE_EFI | |
1472 | systemgenerator_PROGRAMS += \ | |
1473 | systemd-efi-boot-generator | |
1474 | ||
1475 | systemd_efi_boot_generator_SOURCES = \ | |
1476 | src/efi-boot-generator/efi-boot-generator.c | |
1477 | ||
1478 | systemd_efi_boot_generator_LDADD = \ | |
1479 | libsystemd-label.la \ | |
1480 | libsystemd-shared.la | |
1481 | endif | |
1482 | ||
1483 | # ------------------------------------------------------------------------------ | |
1484 | systemd_rc_local_generator_SOURCES = \ | |
1485 | src/rc-local-generator/rc-local-generator.c | |
1486 | ||
1487 | systemd_rc_local_generator_LDADD = \ | |
1488 | libsystemd-label.la \ | |
1489 | libsystemd-shared.la | |
1490 | ||
1491 | # ------------------------------------------------------------------------------ | |
1492 | systemd_remount_fs_SOURCES = \ | |
1493 | src/remount-fs/remount-fs.c \ | |
1494 | src/core/mount-setup.c \ | |
1495 | src/core/mount-setup.h | |
1496 | ||
1497 | systemd_remount_fs_LDADD = \ | |
1498 | libsystemd-label.la \ | |
1499 | libsystemd-shared.la | |
1500 | ||
1501 | # ------------------------------------------------------------------------------ | |
1502 | systemd_cgroups_agent_SOURCES = \ | |
1503 | src/cgroups-agent/cgroups-agent.c | |
1504 | ||
1505 | systemd_cgroups_agent_CFLAGS = \ | |
1506 | $(AM_CFLAGS) \ | |
1507 | $(DBUS_CFLAGS) | |
1508 | ||
1509 | systemd_cgroups_agent_LDADD = \ | |
1510 | libsystemd-shared.la \ | |
1511 | libsystemd-dbus.la | |
1512 | ||
1513 | # ------------------------------------------------------------------------------ | |
1514 | systemctl_SOURCES = \ | |
1515 | src/systemctl/systemctl.c | |
1516 | ||
1517 | systemctl_CFLAGS = \ | |
1518 | $(AM_CFLAGS) \ | |
1519 | $(DBUS_CFLAGS) | |
1520 | ||
1521 | systemctl_LDADD = \ | |
1522 | libsystemd-units.la \ | |
1523 | libsystemd-label.la \ | |
1524 | libsystemd-shared.la \ | |
1525 | libsystemd-daemon.la \ | |
1526 | libsystemd-dbus.la \ | |
1527 | libsystemd-logs.la | |
1528 | ||
1529 | # ------------------------------------------------------------------------------ | |
1530 | systemd_notify_SOURCES = \ | |
1531 | src/notify/notify.c \ | |
1532 | src/readahead/sd-readahead.c | |
1533 | ||
1534 | systemd_notify_LDADD = \ | |
1535 | libsystemd-shared.la \ | |
1536 | libsystemd-daemon.la | |
1537 | ||
1538 | # ------------------------------------------------------------------------------ | |
1539 | systemd_ask_password_SOURCES = \ | |
1540 | src/ask-password/ask-password.c | |
1541 | ||
1542 | systemd_ask_password_LDADD = \ | |
1543 | libsystemd-label.la \ | |
1544 | libsystemd-shared.la | |
1545 | ||
1546 | # ------------------------------------------------------------------------------ | |
1547 | systemd_reply_password_SOURCES = \ | |
1548 | src/reply-password/reply-password.c | |
1549 | ||
1550 | systemd_reply_password_LDADD = \ | |
1551 | libsystemd-shared.la | |
1552 | ||
1553 | # ------------------------------------------------------------------------------ | |
1554 | systemd_cgls_SOURCES = \ | |
1555 | src/cgls/cgls.c | |
1556 | ||
1557 | systemd_cgls_LDADD = \ | |
1558 | libsystemd-shared.la | |
1559 | ||
1560 | # ------------------------------------------------------------------------------ | |
1561 | systemd_cgtop_SOURCES = \ | |
1562 | src/cgtop/cgtop.c | |
1563 | ||
1564 | systemd_cgtop_LDADD = \ | |
1565 | libsystemd-shared.la | |
1566 | ||
1567 | # ------------------------------------------------------------------------------ | |
1568 | systemd_nspawn_SOURCES = \ | |
1569 | src/nspawn/nspawn.c \ | |
1570 | src/core/mount-setup.c \ | |
1571 | src/core/mount-setup.h \ | |
1572 | src/core/loopback-setup.c \ | |
1573 | src/core/loopback-setup.h | |
1574 | ||
1575 | systemd_nspawn_LDADD = \ | |
1576 | libsystemd-label.la \ | |
1577 | libsystemd-capability.la \ | |
1578 | libsystemd-shared.la \ | |
1579 | libsystemd-daemon.la \ | |
1580 | libsystemd-id128-internal.la | |
1581 | ||
1582 | # ------------------------------------------------------------------------------ | |
1583 | systemd_stdio_bridge_SOURCES = \ | |
1584 | src/stdio-bridge/stdio-bridge.c | |
1585 | ||
1586 | systemd_stdio_bridge_LDADD = \ | |
1587 | libsystemd-shared.la | |
1588 | ||
1589 | # ------------------------------------------------------------------------------ | |
1590 | systemd_tty_ask_password_agent_SOURCES = \ | |
1591 | src/tty-ask-password-agent/tty-ask-password-agent.c | |
1592 | ||
1593 | systemd_tty_ask_password_agent_LDADD = \ | |
1594 | libsystemd-label.la \ | |
1595 | libsystemd-shared.la | |
1596 | ||
1597 | # ------------------------------------------------------------------------------ | |
1598 | libsystemd_daemon_la_SOURCES = \ | |
1599 | src/libsystemd-daemon/sd-daemon.c | |
1600 | ||
1601 | libsystemd_daemon_internal_la_SOURCES = \ | |
1602 | $(libsystemd_daemon_la_SOURCES) | |
1603 | ||
1604 | libsystemd_daemon_la_CFLAGS = \ | |
1605 | $(AM_CFLAGS) \ | |
1606 | -fvisibility=hidden \ | |
1607 | -DSD_EXPORT_SYMBOLS | |
1608 | ||
1609 | libsystemd_daemon_la_LDFLAGS = \ | |
1610 | $(AM_LDFLAGS) \ | |
1611 | -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \ | |
1612 | -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym | |
1613 | ||
1614 | pkginclude_HEADERS += \ | |
1615 | src/systemd/sd-daemon.h | |
1616 | ||
1617 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
1618 | libsystemd-daemon-install-hook: | |
1619 | libname=libsystemd-daemon.so && $(move-to-rootlibdir) | |
1620 | ||
1621 | libsystemd-daemon-uninstall-hook: | |
1622 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so* | |
1623 | ||
1624 | INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook | |
1625 | UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook | |
1626 | ||
1627 | lib_LTLIBRARIES += \ | |
1628 | libsystemd-daemon.la | |
1629 | ||
1630 | noinst_LTLIBRARIES += \ | |
1631 | libsystemd-daemon-internal.la | |
1632 | ||
1633 | pkgconfiglib_DATA += \ | |
1634 | src/libsystemd-daemon/libsystemd-daemon.pc | |
1635 | ||
1636 | EXTRA_DIST += \ | |
1637 | src/libsystemd-daemon/libsystemd-daemon.pc.in \ | |
1638 | src/libsystemd-daemon/libsystemd-daemon.sym | |
1639 | ||
1640 | # ------------------------------------------------------------------------------ | |
1641 | if ENABLE_GTK_DOC | |
1642 | SUBDIRS += \ | |
1643 | docs/libudev | |
1644 | ||
1645 | noinst_DATA += \ | |
1646 | docs/html/libudev \ | |
1647 | docs/html/gudev | |
1648 | endif | |
1649 | ||
1650 | include_HEADERS += \ | |
1651 | src/libudev/libudev.h | |
1652 | ||
1653 | lib_LTLIBRARIES += \ | |
1654 | libudev.la | |
1655 | ||
1656 | libudev_la_SOURCES =\ | |
1657 | src/libudev/libudev-private.h \ | |
1658 | src/libudev/libudev.c \ | |
1659 | src/libudev/libudev-list.c \ | |
1660 | src/libudev/libudev-util.c \ | |
1661 | src/libudev/libudev-device.c \ | |
1662 | src/libudev/libudev-enumerate.c \ | |
1663 | src/libudev/libudev-monitor.c \ | |
1664 | src/libudev/libudev-queue.c \ | |
1665 | src/libudev/libudev-hwdb-def.h \ | |
1666 | src/libudev/libudev-hwdb.c | |
1667 | ||
1668 | libudev_la_CFLAGS = \ | |
1669 | $(AM_CFLAGS) \ | |
1670 | -fvisibility=hidden | |
1671 | ||
1672 | libudev_la_LDFLAGS = \ | |
1673 | $(AM_LDFLAGS) \ | |
1674 | -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \ | |
1675 | -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym | |
1676 | ||
1677 | libudev_la_LIBADD = \ | |
1678 | libsystemd-shared.la \ | |
1679 | libsystemd-daemon-internal.la \ | |
1680 | libsystemd-id128-internal.la | |
1681 | ||
1682 | pkgconfiglib_DATA += \ | |
1683 | src/libudev/libudev.pc | |
1684 | ||
1685 | EXTRA_DIST += \ | |
1686 | src/libudev/libudev.pc.in \ | |
1687 | src/libudev/libudev.sym | |
1688 | ||
1689 | CLEANFILES += \ | |
1690 | src/libudev/libudev.pc \ | |
1691 | docs/html/libudev \ | |
1692 | docs/html/gudev | |
1693 | ||
1694 | docs/html/libudev: | |
1695 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1696 | $(AM_V_LN)$(LN_S) -f ../libudev/html $@ | |
1697 | ||
1698 | docs/html/gudev: | |
1699 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1700 | $(AM_V_LN)$(LN_S) -f ../gudev/html $@ | |
1701 | ||
1702 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
1703 | libudev-install-hook: | |
1704 | libname=libudev.so && $(move-to-rootlibdir) | |
1705 | ||
1706 | libudev-uninstall-hook: | |
1707 | rm -f $(DESTDIR)$(rootlibdir)/libudev.so* | |
1708 | ||
1709 | INSTALL_EXEC_HOOKS += libudev-install-hook | |
1710 | UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook | |
1711 | ||
1712 | # ------------------------------------------------------------------------------ | |
1713 | noinst_LTLIBRARIES += \ | |
1714 | libudev-private.la | |
1715 | ||
1716 | libudev_private_la_SOURCES =\ | |
1717 | $(libudev_la_SOURCES) \ | |
1718 | src/libudev/libudev-device-private.c \ | |
1719 | src/libudev/libudev-queue-private.c | |
1720 | ||
1721 | libudev_private_la_CFLAGS = \ | |
1722 | $(AM_CFLAGS) \ | |
1723 | -fvisibility=default | |
1724 | ||
1725 | libudev_private_la_LIBADD = \ | |
1726 | libsystemd-shared.la | |
1727 | ||
1728 | # ------------------------------------------------------------------------------ | |
1729 | INSTALL_DIRS += \ | |
1730 | $(sysconfdir)/udev/rules.d \ | |
1731 | $(sysconfdir)/udev/hwdb.d | |
1732 | ||
1733 | dist_udevrules_DATA += \ | |
1734 | rules/99-systemd.rules \ | |
1735 | rules/42-usb-hid-pm.rules \ | |
1736 | rules/50-udev-default.rules \ | |
1737 | rules/60-persistent-storage-tape.rules \ | |
1738 | rules/60-persistent-serial.rules \ | |
1739 | rules/60-persistent-input.rules \ | |
1740 | rules/60-persistent-alsa.rules \ | |
1741 | rules/60-persistent-storage.rules \ | |
1742 | rules/64-btrfs.rules \ | |
1743 | rules/75-net-description.rules \ | |
1744 | rules/75-tty-description.rules \ | |
1745 | rules/78-sound-card.rules \ | |
1746 | rules/80-net-name-slot.rules \ | |
1747 | rules/95-udev-late.rules | |
1748 | ||
1749 | dist_udevhwdb_DATA = \ | |
1750 | hwdb/20-pci-vendor-product.hwdb \ | |
1751 | hwdb/20-pci-classes.hwdb \ | |
1752 | hwdb/20-usb-vendor-product.hwdb \ | |
1753 | hwdb/20-usb-classes.hwdb \ | |
1754 | hwdb/20-bluetooth-vendor-product.hwdb \ | |
1755 | hwdb/20-acpi-vendor.hwdb \ | |
1756 | hwdb/20-OUI.hwdb | |
1757 | ||
1758 | udevconfdir = $(sysconfdir)/udev | |
1759 | dist_udevconf_DATA = \ | |
1760 | src/udev/udev.conf | |
1761 | ||
1762 | sharepkgconfigdir = $(datadir)/pkgconfig | |
1763 | sharepkgconfig_DATA = \ | |
1764 | src/udev/udev.pc | |
1765 | ||
1766 | EXTRA_DIST += \ | |
1767 | rules/99-systemd.rules.in \ | |
1768 | src/udev/udev.pc.in | |
1769 | ||
1770 | CLEANFILES += \ | |
1771 | rules/99-systemd.rules \ | |
1772 | src/udev/udev.pc | |
1773 | ||
1774 | EXTRA_DIST += \ | |
1775 | units/systemd-udevd.service.in \ | |
1776 | units/systemd-udev-trigger.service.in \ | |
1777 | units/systemd-udev-settle.service.in | |
1778 | ||
1779 | CLEANFILES += \ | |
1780 | units/systemd-udevd.service \ | |
1781 | units/systemd-udev-trigger.service \ | |
1782 | units/systemd-udev-settle.service | |
1783 | ||
1784 | SOCKETS_TARGET_WANTS += \ | |
1785 | systemd-udevd-control.socket \ | |
1786 | systemd-udevd-kernel.socket | |
1787 | SYSINIT_TARGET_WANTS += \ | |
1788 | systemd-udevd.service \ | |
1789 | systemd-udev-trigger.service | |
1790 | ||
1791 | rootbin_PROGRAMS += \ | |
1792 | udevadm | |
1793 | ||
1794 | rootlibexec_PROGRAMS += \ | |
1795 | systemd-udevd | |
1796 | ||
1797 | noinst_LTLIBRARIES += \ | |
1798 | libudev-core.la | |
1799 | ||
1800 | libudev_core_la_SOURCES = \ | |
1801 | src/udev/udev.h \ | |
1802 | src/udev/udev-event.c \ | |
1803 | src/udev/udev-watch.c \ | |
1804 | src/udev/udev-node.c \ | |
1805 | src/udev/udev-rules.c \ | |
1806 | src/udev/udev-ctrl.c \ | |
1807 | src/udev/udev-builtin.c \ | |
1808 | src/udev/udev-builtin-btrfs.c \ | |
1809 | src/udev/udev-builtin-firmware.c \ | |
1810 | src/udev/udev-builtin-hwdb.c \ | |
1811 | src/udev/udev-builtin-input_id.c \ | |
1812 | src/udev/udev-builtin-net_id.c \ | |
1813 | src/udev/udev-builtin-path_id.c \ | |
1814 | src/udev/udev-builtin-usb_id.c | |
1815 | ||
1816 | libudev_core_la_CFLAGS = \ | |
1817 | $(AM_CFLAGS) \ | |
1818 | $(BLKID_CFLAGS) \ | |
1819 | $(KMOD_CFLAGS) | |
1820 | ||
1821 | libudev_core_la_LIBADD = \ | |
1822 | libudev-private.la \ | |
1823 | libsystemd-label.la \ | |
1824 | libsystemd-daemon-internal.la \ | |
1825 | libsystemd-shared.la \ | |
1826 | $(BLKID_LIBS) \ | |
1827 | $(KMOD_LIBS) | |
1828 | ||
1829 | libudev_core_la_CPPFLAGS = \ | |
1830 | $(AM_CPPFLAGS) \ | |
1831 | -DFIRMWARE_PATH="$(FIRMWARE_PATH)" | |
1832 | ||
1833 | if HAVE_KMOD | |
1834 | libudev_core_la_SOURCES += \ | |
1835 | src/udev/udev-builtin-kmod.c | |
1836 | endif | |
1837 | ||
1838 | if HAVE_BLKID | |
1839 | libudev_core_la_SOURCES += \ | |
1840 | src/udev/udev-builtin-blkid.c | |
1841 | endif | |
1842 | ||
1843 | if HAVE_ACL | |
1844 | libudev_core_la_SOURCES += \ | |
1845 | src/udev/udev-builtin-uaccess.c \ | |
1846 | src/login/logind-acl.c \ | |
1847 | src/login/sd-login.c | |
1848 | ||
1849 | libudev_core_la_LIBADD += \ | |
1850 | libsystemd-acl.la | |
1851 | endif | |
1852 | ||
1853 | systemd_udevd_SOURCES = \ | |
1854 | src/udev/udevd.c | |
1855 | ||
1856 | systemd_udevd_LDADD = \ | |
1857 | libudev-core.la | |
1858 | ||
1859 | udevadm_SOURCES = \ | |
1860 | src/udev/udevadm.c \ | |
1861 | src/udev/udevadm-info.c \ | |
1862 | src/udev/udevadm-control.c \ | |
1863 | src/udev/udevadm-monitor.c \ | |
1864 | src/udev/udevadm-hwdb.c \ | |
1865 | src/udev/udevadm-settle.c \ | |
1866 | src/udev/udevadm-trigger.c \ | |
1867 | src/udev/udevadm-test.c \ | |
1868 | src/udev/udevadm-test-builtin.c | |
1869 | ||
1870 | udevadm_LDADD = \ | |
1871 | libudev-core.la \ | |
1872 | libsystemd-shared.la | |
1873 | ||
1874 | # Update hwdb on installation. Do not bother if installing | |
1875 | # in DESTDIR, since this is likely for packaging purposes. | |
1876 | hwdb-update-hook: | |
1877 | -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update | |
1878 | ||
1879 | INSTALL_DATA_HOOKS += \ | |
1880 | hwdb-update-hook | |
1881 | ||
1882 | hwdb-remove-hook: | |
1883 | -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin | |
1884 | ||
1885 | # ------------------------------------------------------------------------------ | |
1886 | TESTS += \ | |
1887 | test/udev-test.pl \ | |
1888 | test/rules-test.sh | |
1889 | ||
1890 | noinst_PROGRAMS += \ | |
1891 | test-libudev \ | |
1892 | test-udev | |
1893 | ||
1894 | test_libudev_SOURCES = \ | |
1895 | src/test/test-libudev.c | |
1896 | ||
1897 | test_libudev_LDADD = \ | |
1898 | libsystemd-label.la \ | |
1899 | libsystemd-shared.la \ | |
1900 | libudev.la | |
1901 | ||
1902 | test_udev_SOURCES = \ | |
1903 | src/test/test-udev.c | |
1904 | ||
1905 | test_udev_LDADD = \ | |
1906 | libudev-core.la \ | |
1907 | libsystemd-shared.la \ | |
1908 | $(BLKID_LIBS) \ | |
1909 | $(KMOD_LIBS) \ | |
1910 | $(SELINUX_LIBS) | |
1911 | ||
1912 | if HAVE_ACL | |
1913 | test_udev_LDADD += \ | |
1914 | libsystemd-acl.la | |
1915 | endif | |
1916 | ||
1917 | check_DATA += \ | |
1918 | test/sys | |
1919 | ||
1920 | # packed sysfs test tree | |
1921 | test/sys: | |
1922 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
1923 | $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz | |
1924 | ||
1925 | test-sys-distclean: | |
1926 | -rm -rf test/sys | |
1927 | DISTCLEAN_LOCAL_HOOKS += test-sys-distclean | |
1928 | ||
1929 | EXTRA_DIST += \ | |
1930 | test/sys.tar.xz \ | |
1931 | test/udev-test.pl \ | |
1932 | test/rules-test.sh \ | |
1933 | test/rule-syntax-check.py | |
1934 | ||
1935 | # ------------------------------------------------------------------------------ | |
1936 | ata_id_SOURCES = \ | |
1937 | src/udev/ata_id/ata_id.c | |
1938 | ||
1939 | ata_id_LDADD = \ | |
1940 | libudev-private.la \ | |
1941 | libsystemd-shared.la | |
1942 | ||
1943 | udevlibexec_PROGRAMS += \ | |
1944 | ata_id | |
1945 | ||
1946 | # ------------------------------------------------------------------------------ | |
1947 | cdrom_id_SOURCES = \ | |
1948 | src/udev/cdrom_id/cdrom_id.c | |
1949 | ||
1950 | cdrom_id_LDADD = \ | |
1951 | libudev.la \ | |
1952 | libsystemd-shared.la | |
1953 | ||
1954 | udevlibexec_PROGRAMS += \ | |
1955 | cdrom_id | |
1956 | ||
1957 | dist_udevrules_DATA += \ | |
1958 | rules/60-cdrom_id.rules | |
1959 | ||
1960 | # ------------------------------------------------------------------------------ | |
1961 | collect_SOURCES = \ | |
1962 | src/udev/collect/collect.c | |
1963 | ||
1964 | collect_LDADD = \ | |
1965 | libudev-private.la | |
1966 | ||
1967 | udevlibexec_PROGRAMS += \ | |
1968 | collect | |
1969 | ||
1970 | # ------------------------------------------------------------------------------ | |
1971 | scsi_id_SOURCES =\ | |
1972 | src/udev/scsi_id/scsi_id.c \ | |
1973 | src/udev/scsi_id/scsi_serial.c \ | |
1974 | src/udev/scsi_id/scsi.h \ | |
1975 | src/udev/scsi_id/scsi_id.h | |
1976 | ||
1977 | scsi_id_LDADD = \ | |
1978 | libudev-private.la \ | |
1979 | libsystemd-shared.la | |
1980 | ||
1981 | udevlibexec_PROGRAMS += \ | |
1982 | scsi_id | |
1983 | ||
1984 | EXTRA_DIST += \ | |
1985 | src/udev/scsi_id/README | |
1986 | ||
1987 | # ------------------------------------------------------------------------------ | |
1988 | v4l_id_SOURCES = \ | |
1989 | src/udev/v4l_id/v4l_id.c | |
1990 | ||
1991 | v4l_id_LDADD = \ | |
1992 | libudev.la | |
1993 | ||
1994 | udevlibexec_PROGRAMS += \ | |
1995 | v4l_id | |
1996 | ||
1997 | dist_udevrules_DATA += \ | |
1998 | rules/60-persistent-v4l.rules | |
1999 | ||
2000 | # ------------------------------------------------------------------------------ | |
2001 | accelerometer_SOURCES = \ | |
2002 | src/udev/accelerometer/accelerometer.c | |
2003 | ||
2004 | accelerometer_LDADD = \ | |
2005 | libudev.la -lm \ | |
2006 | libsystemd-shared.la | |
2007 | ||
2008 | udevlibexec_PROGRAMS += \ | |
2009 | accelerometer | |
2010 | ||
2011 | dist_udevrules_DATA += \ | |
2012 | rules/61-accelerometer.rules | |
2013 | ||
2014 | # ------------------------------------------------------------------------------ | |
2015 | if ENABLE_GUDEV | |
2016 | if ENABLE_GTK_DOC | |
2017 | SUBDIRS += \ | |
2018 | docs/gudev | |
2019 | endif | |
2020 | ||
2021 | libgudev_includedir = \ | |
2022 | $(includedir)/gudev-1.0/gudev | |
2023 | ||
2024 | libgudev_include_HEADERS = \ | |
2025 | src/gudev/gudev.h \ | |
2026 | src/gudev/gudevenums.h \ | |
2027 | src/gudev/gudevenumtypes.h \ | |
2028 | src/gudev/gudevtypes.h \ | |
2029 | src/gudev/gudevclient.h \ | |
2030 | src/gudev/gudevdevice.h \ | |
2031 | src/gudev/gudevenumerator.h | |
2032 | ||
2033 | lib_LTLIBRARIES += libgudev-1.0.la | |
2034 | ||
2035 | pkgconfiglib_DATA += \ | |
2036 | src/gudev/gudev-1.0.pc | |
2037 | ||
2038 | CLEANFILES += \ | |
2039 | src/gudev/gudev-1.0.pc | |
2040 | ||
2041 | libgudev_1_0_la_SOURCES = \ | |
2042 | src/gudev/gudevenums.h \ | |
2043 | src/gudev/gudevenumtypes.h \ | |
2044 | src/gudev/gudevenumtypes.h\ | |
2045 | src/gudev/gudevtypes.h \ | |
2046 | src/gudev/gudevclient.h \ | |
2047 | src/gudev/gudevclient.c \ | |
2048 | src/gudev/gudevdevice.h \ | |
2049 | src/gudev/gudevdevice.c \ | |
2050 | src/gudev/gudevenumerator.h \ | |
2051 | src/gudev/gudevenumerator.c \ | |
2052 | src/gudev/gudevprivate.h | |
2053 | ||
2054 | nodist_libgudev_1_0_la_SOURCES = \ | |
2055 | src/gudev/gudevmarshal.h \ | |
2056 | src/gudev/gudevmarshal.c \ | |
2057 | src/gudev/gudevenumtypes.h \ | |
2058 | src/gudev/gudevenumtypes.c | |
2059 | ||
2060 | BUILT_SOURCES += \ | |
2061 | $(nodist_libgudev_1_0_la_SOURCES) | |
2062 | ||
2063 | libgudev_1_0_la_CPPFLAGS = \ | |
2064 | $(AM_CPPFLAGS) \ | |
2065 | -I$(top_builddir)/src\ | |
2066 | -I$(top_srcdir)/src\ | |
2067 | -I$(top_builddir)/src/gudev \ | |
2068 | -I$(top_srcdir)/src/gudev \ | |
2069 | -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \ | |
2070 | -D_GUDEV_COMPILATION \ | |
2071 | -DG_LOG_DOMAIN=\"GUdev\" | |
2072 | ||
2073 | libgudev_1_0_la_CFLAGS = \ | |
2074 | $(AM_CFLAGS) \ | |
2075 | -fvisibility=default \ | |
2076 | $(GLIB_CFLAGS) | |
2077 | ||
2078 | libgudev_1_0_la_LIBADD = \ | |
2079 | libudev.la \ | |
2080 | $(GLIB_LIBS) | |
2081 | ||
2082 | libgudev_1_0_la_LDFLAGS = \ | |
2083 | $(AM_LDFLAGS) \ | |
2084 | -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \ | |
2085 | -export-dynamic -no-undefined \ | |
2086 | -export-symbols-regex '^g_udev_.*' | |
2087 | ||
2088 | src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list | |
2089 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
2090 | $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@ | |
2091 | ||
2092 | src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list | |
2093 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
2094 | $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \ | |
2095 | glib-genmarshal $< --prefix=g_udev_marshal --body >> $@ | |
2096 | ||
2097 | src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h | |
2098 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
2099 | $(AM_V_GEN)glib-mkenums --template $^ > $@ | |
2100 | ||
2101 | if HAVE_INTROSPECTION | |
2102 | -include $(INTROSPECTION_MAKEFILE) | |
2103 | ||
2104 | src/gudev/GUdev-1.0.gir: libgudev-1.0.la | |
2105 | ||
2106 | src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0 | |
2107 | ||
2108 | src_gudev_GUdev_1_0_gir_CFLAGS = \ | |
2109 | $(INCLUDES) \ | |
2110 | -D_GUDEV_COMPILATION \ | |
2111 | -D_GUDEV_WORK_AROUND_DEV_T_BUG \ | |
2112 | -I$(top_srcdir)/src \ | |
2113 | -I$(top_builddir)/src \ | |
2114 | -I$(top_srcdir)/src/gdev \ | |
2115 | -I$(top_builddir)/src/gdev | |
2116 | ||
2117 | src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la | |
2118 | ||
2119 | src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \ | |
2120 | --pkg-export=gudev-1.0 \ | |
2121 | --warn-all | |
2122 | ||
2123 | src_gudev_GUdev_1_0_gir_FILES = \ | |
2124 | src/gudev/gudev.h \ | |
2125 | src/gudev/gudevtypes.h \ | |
2126 | src/gudev/gudevenums.h \ | |
2127 | src/gudev/gudevenumtypes.h \ | |
2128 | src/gudev/gudevclient.h \ | |
2129 | src/gudev/gudevdevice.h \ | |
2130 | src/gudev/gudevenumerator.h \ | |
2131 | src/gudev/gudevclient.c \ | |
2132 | src/gudev/gudevdevice.c \ | |
2133 | src/gudev/gudevenumerator.c | |
2134 | ||
2135 | INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir | |
2136 | INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h | |
2137 | ||
2138 | girdir = $(datadir)/gir-1.0 | |
2139 | gir_DATA = \ | |
2140 | src/gudev/GUdev-1.0.gir | |
2141 | ||
2142 | typelibsdir = $(libdir)/girepository-1.0 | |
2143 | typelibs_DATA = \ | |
2144 | src/gudev/GUdev-1.0.typelib | |
2145 | ||
2146 | CLEANFILES += $(gir_DATA) $(typelibs_DATA) | |
2147 | endif # HAVE_INTROSPECTION | |
2148 | ||
2149 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
2150 | libgudev-install-hook: | |
2151 | libname=libgudev-1.0.so && $(move-to-rootlibdir) | |
2152 | ||
2153 | libgudev-uninstall-hook: | |
2154 | rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so* | |
2155 | ||
2156 | INSTALL_EXEC_HOOKS += libgudev-install-hook | |
2157 | UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook | |
2158 | endif | |
2159 | ||
2160 | EXTRA_DIST += \ | |
2161 | src/gudev/gudev-1.0.pc.in \ | |
2162 | src/gudev/gudevmarshal.list \ | |
2163 | src/gudev/gudevenumtypes.h.template \ | |
2164 | src/gudev/gudevenumtypes.c.template \ | |
2165 | src/gudev/gjs-example.js \ | |
2166 | src/gudev/seed-example-enum.js \ | |
2167 | src/gudev/seed-example.js | |
2168 | ||
2169 | # ------------------------------------------------------------------------------ | |
2170 | if ENABLE_KEYMAP | |
2171 | keymap_SOURCES = \ | |
2172 | src/udev/keymap/keymap.c | |
2173 | ||
2174 | keymap_CPPFLAGS = \ | |
2175 | $(AM_CPPFLAGS) -I src/udev/keymap | |
2176 | ||
2177 | keymap_LDADD = \ | |
2178 | libsystemd-shared.la | |
2179 | ||
2180 | nodist_keymap_SOURCES = \ | |
2181 | src/udev/keymap/keys-from-name.h \ | |
2182 | src/udev/keymap/keys-to-name.h | |
2183 | ||
2184 | BUILT_SOURCES += \ | |
2185 | $(nodist_keymap_SOURCES) | |
2186 | ||
2187 | udevlibexec_PROGRAMS += \ | |
2188 | keymap | |
2189 | ||
2190 | dist_doc_DATA += \ | |
2191 | src/udev/keymap/README.keymap.txt | |
2192 | ||
2193 | dist_udevrules_DATA += \ | |
2194 | src/udev/keymap/95-keymap.rules \ | |
2195 | src/udev/keymap/95-keyboard-force-release.rules | |
2196 | ||
2197 | dist_udevhome_SCRIPTS = \ | |
2198 | src/udev/keymap/findkeyboards \ | |
2199 | src/udev/keymap/keyboard-force-release.sh | |
2200 | ||
2201 | TESTS += \ | |
2202 | src/udev/keymap/check-keymaps.sh | |
2203 | ||
2204 | CLEANFILES += \ | |
2205 | src/udev/keymap/keys.txt \ | |
2206 | src/udev/keymap/keys-from-name.gperf \ | |
2207 | src/udev/keymap/keyboard-force-release.sh | |
2208 | ||
2209 | udevkeymapdir = $(udevlibexecdir)/keymaps | |
2210 | dist_udevkeymap_DATA = \ | |
2211 | keymaps/acer \ | |
2212 | keymaps/acer-aspire_5720 \ | |
2213 | keymaps/acer-aspire_8930 \ | |
2214 | keymaps/acer-aspire_5920g \ | |
2215 | keymaps/acer-aspire_6920 \ | |
2216 | keymaps/acer-travelmate_c300 \ | |
2217 | keymaps/asus \ | |
2218 | keymaps/compaq-e_evo \ | |
2219 | keymaps/dell \ | |
2220 | keymaps/dell-latitude-xt2 \ | |
2221 | keymaps/everex-xt5000 \ | |
2222 | keymaps/fujitsu-amilo_li_2732 \ | |
2223 | keymaps/fujitsu-amilo_pa_2548 \ | |
2224 | keymaps/fujitsu-amilo_pro_edition_v3505 \ | |
2225 | keymaps/fujitsu-amilo_pro_v3205 \ | |
2226 | keymaps/fujitsu-amilo_si_1520 \ | |
2227 | keymaps/fujitsu-esprimo_mobile_v5 \ | |
2228 | keymaps/fujitsu-esprimo_mobile_v6 \ | |
2229 | keymaps/genius-slimstar-320 \ | |
2230 | keymaps/hewlett-packard \ | |
2231 | keymaps/hewlett-packard-2510p_2530p \ | |
2232 | keymaps/hewlett-packard-compaq_elitebook \ | |
2233 | keymaps/hewlett-packard-pavilion \ | |
2234 | keymaps/hewlett-packard-presario-2100 \ | |
2235 | keymaps/hewlett-packard-tablet \ | |
2236 | keymaps/hewlett-packard-tx2 \ | |
2237 | keymaps/hewlett-packard_elitebook-8440p \ | |
2238 | keymaps/hewlett-packard-hdx9494nr \ | |
2239 | keymaps/ibm-thinkpad-usb-keyboard-trackpoint \ | |
2240 | keymaps/inventec-symphony_6.0_7.0 \ | |
2241 | keymaps/lenovo-3000 \ | |
2242 | keymaps/lenovo-ideapad \ | |
2243 | keymaps/lenovo-thinkpad-usb-keyboard-trackpoint \ | |
2244 | keymaps/lenovo-thinkpad_x6_tablet \ | |
2245 | keymaps/lenovo-thinkpad_x200_tablet \ | |
2246 | keymaps/lg-x110 \ | |
2247 | keymaps/logitech-wave \ | |
2248 | keymaps/logitech-wave-cordless \ | |
2249 | keymaps/logitech-wave-pro-cordless \ | |
2250 | keymaps/maxdata-pro_7000 \ | |
2251 | keymaps/medion-fid2060 \ | |
2252 | keymaps/medionnb-a555 \ | |
2253 | keymaps/micro-star \ | |
2254 | keymaps/module-asus-w3j \ | |
2255 | keymaps/module-ibm \ | |
2256 | keymaps/module-lenovo \ | |
2257 | keymaps/module-sony \ | |
2258 | keymaps/module-sony-old \ | |
2259 | keymaps/module-sony-vgn \ | |
2260 | keymaps/module-sony-vpc \ | |
2261 | keymaps/olpc-xo \ | |
2262 | keymaps/onkyo \ | |
2263 | keymaps/oqo-model2 \ | |
2264 | keymaps/samsung-other \ | |
2265 | keymaps/samsung-series-9 \ | |
2266 | keymaps/samsung-sq1us \ | |
2267 | keymaps/samsung-sx20s \ | |
2268 | keymaps/toshiba-satellite_a100 \ | |
2269 | keymaps/toshiba-satellite_a110 \ | |
2270 | keymaps/toshiba-satellite_m30x \ | |
2271 | keymaps/zepto-znote | |
2272 | ||
2273 | udevkeymapforcereldir = $(udevlibexecdir)/keymaps/force-release | |
2274 | dist_udevkeymapforcerel_DATA = \ | |
2275 | keymaps-force-release/dell-touchpad \ | |
2276 | keymaps-force-release/dell-xps \ | |
2277 | keymaps-force-release/hp-other \ | |
2278 | keymaps-force-release/samsung-other \ | |
2279 | keymaps-force-release/samsung-series-9 \ | |
2280 | keymaps-force-release/common-volume-keys | |
2281 | ||
2282 | src/udev/keymap/keys.txt: Makefile | |
2283 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
2284 | $(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/' > $@ | |
2285 | ||
2286 | src/udev/keymap/keys-from-name.gperf: src/udev/keymap/keys.txt Makefile | |
2287 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print $$1 ", " $$1 }' < $< > $@ | |
2288 | ||
2289 | src/udev/keymap/keys-from-name.h: src/udev/keymap/keys-from-name.gperf Makefile | |
2290 | $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_key -H hash_key_name -p -C < $< > $@ | |
2291 | ||
2292 | src/udev/keymap/keys-to-name.h: src/udev/keymap/keys.txt Makefile | |
2293 | $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@ | |
2294 | endif | |
2295 | ||
2296 | EXTRA_DIST += \ | |
2297 | src/udev/keymap/check-keymaps.sh \ | |
2298 | src/udev/keymap/keyboard-force-release.sh.in | |
2299 | ||
2300 | # ------------------------------------------------------------------------------ | |
2301 | mtd_probe_SOURCES = \ | |
2302 | src/udev/mtd_probe/mtd_probe.c \ | |
2303 | src/udev/mtd_probe/mtd_probe.h \ | |
2304 | src/udev/mtd_probe/probe_smartmedia.c | |
2305 | ||
2306 | mtd_probe_CPPFLAGS = \ | |
2307 | $(AM_CPPFLAGS) | |
2308 | ||
2309 | dist_udevrules_DATA += \ | |
2310 | rules/75-probe_mtd.rules | |
2311 | ||
2312 | udevlibexec_PROGRAMS += \ | |
2313 | mtd_probe | |
2314 | ||
2315 | # ------------------------------------------------------------------------------ | |
2316 | libsystemd_id128_la_SOURCES = \ | |
2317 | src/libsystemd-id128/sd-id128.c | |
2318 | ||
2319 | libsystemd_id128_la_CFLAGS = \ | |
2320 | $(AM_CFLAGS) \ | |
2321 | -fvisibility=hidden | |
2322 | ||
2323 | libsystemd_id128_la_LDFLAGS = \ | |
2324 | $(AM_LDFLAGS) \ | |
2325 | -version-info $(LIBSYSTEMD_ID128_CURRENT):$(LIBSYSTEMD_ID128_REVISION):$(LIBSYSTEMD_ID128_AGE) \ | |
2326 | -Wl,--version-script=$(top_srcdir)/src/libsystemd-id128/libsystemd-id128.sym | |
2327 | ||
2328 | libsystemd_id128_la_LIBADD = \ | |
2329 | libsystemd-shared.la | |
2330 | ||
2331 | libsystemd_id128_internal_la_SOURCES = \ | |
2332 | $(libsystemd_id128_la_SOURCES) | |
2333 | ||
2334 | test_id128_SOURCES = \ | |
2335 | src/test/test-id128.c | |
2336 | ||
2337 | test_id128_LDADD = \ | |
2338 | libsystemd-shared.la \ | |
2339 | libsystemd-id128-internal.la | |
2340 | ||
2341 | noinst_tests += \ | |
2342 | test-id128 | |
2343 | ||
2344 | pkginclude_HEADERS += \ | |
2345 | src/systemd/sd-id128.h | |
2346 | ||
2347 | lib_LTLIBRARIES += \ | |
2348 | libsystemd-id128.la | |
2349 | ||
2350 | noinst_LTLIBRARIES += \ | |
2351 | libsystemd-id128-internal.la | |
2352 | ||
2353 | pkgconfiglib_DATA += \ | |
2354 | src/libsystemd-id128/libsystemd-id128.pc | |
2355 | ||
2356 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
2357 | libsystemd-id128-install-hook: | |
2358 | libname=libsystemd-id128.so && $(move-to-rootlibdir) | |
2359 | ||
2360 | libsystemd-id128-uninstall-hook: | |
2361 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so* | |
2362 | ||
2363 | INSTALL_EXEC_HOOKS += libsystemd-id128-install-hook | |
2364 | UNINSTALL_EXEC_HOOKS += libsystemd-id128-uninstall-hook | |
2365 | ||
2366 | EXTRA_DIST += \ | |
2367 | src/libsystemd-id128/libsystemd-id128.pc.in \ | |
2368 | src/libsystemd-id128/libsystemd-id128.sym | |
2369 | ||
2370 | # ------------------------------------------------------------------------------ | |
2371 | ||
2372 | rootlibexec_PROGRAMS += \ | |
2373 | systemd-activate | |
2374 | ||
2375 | systemd_activate_SOURCES = \ | |
2376 | src/activate/activate.c | |
2377 | ||
2378 | systemd_activate_LDADD = \ | |
2379 | libsystemd-shared.la \ | |
2380 | libsystemd-daemon.la | |
2381 | ||
2382 | # ------------------------------------------------------------------------------ | |
2383 | systemd_journald_SOURCES = \ | |
2384 | src/journal/journald.c \ | |
2385 | src/journal/journald-server.h | |
2386 | ||
2387 | systemd_journald_LDADD = \ | |
2388 | libsystemd-journal-internal.la \ | |
2389 | libsystemd-shared.la \ | |
2390 | libsystemd-id128-internal.la | |
2391 | ||
2392 | systemd_cat_SOURCES = \ | |
2393 | src/journal/cat.c | |
2394 | ||
2395 | systemd_cat_LDADD = \ | |
2396 | libsystemd-shared.la \ | |
2397 | libsystemd-journal-internal.la | |
2398 | ||
2399 | journalctl_SOURCES = \ | |
2400 | src/journal/journalctl.c | |
2401 | ||
2402 | journalctl_CFLAGS = \ | |
2403 | $(AM_CFLAGS) | |
2404 | ||
2405 | journalctl_LDADD = \ | |
2406 | libsystemd-shared.la \ | |
2407 | libsystemd-journal-internal.la \ | |
2408 | libsystemd-id128-internal.la \ | |
2409 | libsystemd-logs.la | |
2410 | ||
2411 | if HAVE_QRENCODE | |
2412 | journalctl_SOURCES += \ | |
2413 | src/journal/journal-qrcode.c \ | |
2414 | src/journal/journal-qrcode.h | |
2415 | ||
2416 | journalctl_CFLAGS += \ | |
2417 | $(QRENCODE_CFLAGS) | |
2418 | ||
2419 | journalctl_LDADD += \ | |
2420 | $(QRENCODE_LIBS) | |
2421 | endif | |
2422 | ||
2423 | test_journal_SOURCES = \ | |
2424 | src/journal/test-journal.c | |
2425 | ||
2426 | test_journal_LDADD = \ | |
2427 | libsystemd-shared.la \ | |
2428 | libsystemd-journal-internal.la \ | |
2429 | libsystemd-id128-internal.la | |
2430 | ||
2431 | test_journal_send_SOURCES = \ | |
2432 | src/journal/test-journal-send.c | |
2433 | ||
2434 | test_journal_send_LDADD = \ | |
2435 | libsystemd-shared.la \ | |
2436 | libsystemd-journal-internal.la \ | |
2437 | libsystemd-id128-internal.la | |
2438 | ||
2439 | test_journal_syslog_SOURCES = \ | |
2440 | src/journal/test-journal-syslog.c | |
2441 | ||
2442 | test_journal_syslog_LDADD = \ | |
2443 | libsystemd-journal-internal.la \ | |
2444 | libsystemd-shared.la \ | |
2445 | libsystemd-id128-internal.la | |
2446 | ||
2447 | test_journal_match_SOURCES = \ | |
2448 | src/journal/test-journal-match.c | |
2449 | ||
2450 | test_journal_match_LDADD = \ | |
2451 | libsystemd-shared.la \ | |
2452 | libsystemd-journal-internal.la \ | |
2453 | libsystemd-id128-internal.la | |
2454 | ||
2455 | test_journal_enum_SOURCES = \ | |
2456 | src/journal/test-journal-enum.c | |
2457 | ||
2458 | test_journal_enum_LDADD = \ | |
2459 | libsystemd-shared.la \ | |
2460 | libsystemd-journal-internal.la \ | |
2461 | libsystemd-id128-internal.la | |
2462 | ||
2463 | test_journal_stream_SOURCES = \ | |
2464 | src/journal/test-journal-stream.c | |
2465 | ||
2466 | test_journal_stream_LDADD = \ | |
2467 | libsystemd-shared.la \ | |
2468 | libsystemd-journal-internal.la \ | |
2469 | libsystemd-id128-internal.la | |
2470 | ||
2471 | test_journal_verify_SOURCES = \ | |
2472 | src/journal/test-journal-verify.c | |
2473 | ||
2474 | test_journal_verify_LDADD = \ | |
2475 | libsystemd-shared.la \ | |
2476 | libsystemd-journal-internal.la \ | |
2477 | libsystemd-id128-internal.la | |
2478 | ||
2479 | test_mmap_cache_SOURCES = \ | |
2480 | src/journal/test-mmap-cache.c | |
2481 | ||
2482 | test_mmap_cache_LDADD = \ | |
2483 | libsystemd-shared.la \ | |
2484 | libsystemd-journal-internal.la | |
2485 | ||
2486 | test_catalog_SOURCES = \ | |
2487 | src/journal/test-catalog.c | |
2488 | ||
2489 | test_catalog_LDADD = \ | |
2490 | libsystemd-shared.la \ | |
2491 | libsystemd-label.la \ | |
2492 | libsystemd-journal-internal.la \ | |
2493 | libsystemd-id128-internal.la | |
2494 | ||
2495 | libsystemd_journal_la_SOURCES = \ | |
2496 | src/journal/sd-journal.c \ | |
2497 | src/systemd/sd-journal.h \ | |
2498 | src/journal/journal-file.c \ | |
2499 | src/journal/journal-file.h \ | |
2500 | src/journal/journal-vacuum.c \ | |
2501 | src/journal/journal-vacuum.h \ | |
2502 | src/journal/journal-verify.c \ | |
2503 | src/journal/journal-verify.h \ | |
2504 | src/journal/lookup3.c \ | |
2505 | src/journal/lookup3.h \ | |
2506 | src/journal/journal-send.c \ | |
2507 | src/journal/journal-def.h \ | |
2508 | src/journal/compress.h \ | |
2509 | src/journal/catalog.c \ | |
2510 | src/journal/catalog.h \ | |
2511 | src/journal/mmap-cache.c \ | |
2512 | src/journal/mmap-cache.h | |
2513 | ||
2514 | libsystemd_journal_la_CFLAGS = \ | |
2515 | $(AM_CFLAGS) \ | |
2516 | -fvisibility=hidden | |
2517 | ||
2518 | libsystemd_journal_la_LDFLAGS = \ | |
2519 | $(AM_LDFLAGS) \ | |
2520 | -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \ | |
2521 | -Wl,--version-script=$(top_srcdir)/src/journal/libsystemd-journal.sym | |
2522 | ||
2523 | libsystemd_journal_la_LIBADD = \ | |
2524 | libsystemd-shared.la \ | |
2525 | libsystemd-label.la \ | |
2526 | libsystemd-daemon-internal.la \ | |
2527 | libsystemd-id128-internal.la | |
2528 | ||
2529 | libsystemd_journal_internal_la_SOURCES = \ | |
2530 | $(libsystemd_journal_la_SOURCES) \ | |
2531 | src/journal/journald-kmsg.c \ | |
2532 | src/journal/journald-kmsg.h \ | |
2533 | src/journal/journald-syslog.c \ | |
2534 | src/journal/journald-syslog.h \ | |
2535 | src/journal/journald-stream.c \ | |
2536 | src/journal/journald-stream.h \ | |
2537 | src/journal/journald-server.c \ | |
2538 | src/journal/journald-server.h \ | |
2539 | src/journal/journald-console.c \ | |
2540 | src/journal/journald-console.h \ | |
2541 | src/journal/journald-native.c \ | |
2542 | src/journal/journald-native.h \ | |
2543 | src/journal/journald-rate-limit.c \ | |
2544 | src/journal/journald-rate-limit.h \ | |
2545 | src/journal/journal-internal.h | |
2546 | ||
2547 | libsystemd_journal_internal_la_CFLAGS = \ | |
2548 | $(AM_CFLAGS) | |
2549 | ||
2550 | libsystemd_journal_internal_la_LIBADD = \ | |
2551 | libsystemd-label.la \ | |
2552 | libsystemd-audit.la \ | |
2553 | libsystemd-daemon.la \ | |
2554 | libudev.la \ | |
2555 | libsystemd-shared.la \ | |
2556 | libsystemd-label.la | |
2557 | ||
2558 | nodist_libsystemd_journal_internal_la_SOURCES = \ | |
2559 | src/journal/journald-gperf.c | |
2560 | ||
2561 | if ENABLE_LOGIND | |
2562 | libsystemd_journal_internal_la_LIBADD += \ | |
2563 | libsystemd-login-internal.la | |
2564 | endif | |
2565 | ||
2566 | if HAVE_ACL | |
2567 | libsystemd_journal_internal_la_LIBADD += \ | |
2568 | libsystemd-acl.la | |
2569 | endif | |
2570 | ||
2571 | if HAVE_XZ | |
2572 | libsystemd_journal_la_SOURCES += \ | |
2573 | src/journal/compress.c | |
2574 | ||
2575 | libsystemd_journal_la_CFLAGS += \ | |
2576 | $(XZ_CFLAGS) | |
2577 | ||
2578 | libsystemd_journal_la_LIBADD += \ | |
2579 | $(XZ_LIBS) | |
2580 | ||
2581 | libsystemd_journal_internal_la_CFLAGS += \ | |
2582 | $(XZ_CFLAGS) | |
2583 | ||
2584 | libsystemd_journal_internal_la_LIBADD += \ | |
2585 | $(XZ_LIBS) | |
2586 | ||
2587 | endif | |
2588 | ||
2589 | if HAVE_GCRYPT | |
2590 | libsystemd_journal_la_SOURCES += \ | |
2591 | src/journal/journal-authenticate.c \ | |
2592 | src/journal/journal-authenticate.h \ | |
2593 | src/journal/fsprg.c \ | |
2594 | src/journal/fsprg.h | |
2595 | ||
2596 | libsystemd_journal_la_CFLAGS += \ | |
2597 | $(GCRYPT_CFLAGS) \ | |
2598 | -Wno-pointer-arith | |
2599 | ||
2600 | libsystemd_journal_la_LIBADD += \ | |
2601 | $(GCRYPT_LIBS) | |
2602 | ||
2603 | libsystemd_journal_internal_la_CFLAGS += \ | |
2604 | $(GCRYPT_CFLAGS) \ | |
2605 | -Wno-pointer-arith | |
2606 | ||
2607 | libsystemd_journal_internal_la_LIBADD += \ | |
2608 | $(GCRYPT_LIBS) | |
2609 | endif | |
2610 | ||
2611 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if | |
2612 | # needed. Also, grant read access to new journal files to members of | |
2613 | # "adm" and "wheel". | |
2614 | libsystemd-journal-install-hook: | |
2615 | libname=libsystemd-journal.so && $(move-to-rootlibdir) | |
2616 | -$(MKDIR_P) $(DESTDIR)/var/log/journal | |
2617 | -chown 0:0 $(DESTDIR)/var/log/journal | |
2618 | -chmod 755 $(DESTDIR)/var/log/journal | |
2619 | -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/ | |
2620 | -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/ | |
2621 | ||
2622 | libsystemd-journal-uninstall-hook: | |
2623 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-journal.so* | |
2624 | ||
2625 | INSTALL_EXEC_HOOKS += libsystemd-journal-install-hook | |
2626 | UNINSTALL_EXEC_HOOKS += libsystemd-journal-uninstall-hook | |
2627 | ||
2628 | # ------------------------------------------------------------------------------ | |
2629 | ||
2630 | # Update catalog on installation. Do not bother if installing | |
2631 | # in DESTDIR, since this is likely for packaging purposes. | |
2632 | catalog-update-hook: | |
2633 | -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog | |
2634 | ||
2635 | INSTALL_DATA_HOOKS += \ | |
2636 | catalog-update-hook | |
2637 | ||
2638 | catalog-remove-hook: | |
2639 | -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database | |
2640 | ||
2641 | UNINSTALL_DATA_HOOKS += \ | |
2642 | catalog-remove-hook | |
2643 | ||
2644 | noinst_PROGRAMS += \ | |
2645 | test-journal-enum \ | |
2646 | test-catalog | |
2647 | ||
2648 | noinst_tests += \ | |
2649 | test-journal \ | |
2650 | test-journal-send \ | |
2651 | test-journal-syslog \ | |
2652 | test-journal-match \ | |
2653 | test-journal-stream \ | |
2654 | test-journal-verify \ | |
2655 | test-mmap-cache | |
2656 | ||
2657 | pkginclude_HEADERS += \ | |
2658 | src/systemd/sd-journal.h \ | |
2659 | src/systemd/sd-messages.h | |
2660 | ||
2661 | lib_LTLIBRARIES += \ | |
2662 | libsystemd-journal.la | |
2663 | ||
2664 | noinst_LTLIBRARIES += \ | |
2665 | libsystemd-journal-internal.la | |
2666 | ||
2667 | rootlibexec_PROGRAMS += \ | |
2668 | systemd-journald | |
2669 | ||
2670 | rootbin_PROGRAMS += \ | |
2671 | journalctl | |
2672 | ||
2673 | bin_PROGRAMS += \ | |
2674 | systemd-cat | |
2675 | ||
2676 | dist_systemunit_DATA += \ | |
2677 | units/systemd-journald.socket | |
2678 | ||
2679 | nodist_systemunit_DATA += \ | |
2680 | units/systemd-journald.service \ | |
2681 | units/systemd-journal-flush.service | |
2682 | ||
2683 | dist_pkgsysconf_DATA += \ | |
2684 | src/journal/journald.conf | |
2685 | ||
2686 | pkgconfiglib_DATA += \ | |
2687 | src/journal/libsystemd-journal.pc | |
2688 | ||
2689 | dist_catalog_DATA = \ | |
2690 | catalog/systemd.catalog | |
2691 | ||
2692 | SOCKETS_TARGET_WANTS += \ | |
2693 | systemd-journald.socket | |
2694 | SYSINIT_TARGET_WANTS += \ | |
2695 | systemd-journald.service \ | |
2696 | systemd-journal-flush.service | |
2697 | ||
2698 | EXTRA_DIST += \ | |
2699 | src/journal/libsystemd-journal.pc.in \ | |
2700 | src/journal/libsystemd-journal.sym \ | |
2701 | units/systemd-journald.service.in \ | |
2702 | units/systemd-journal-flush.service.in \ | |
2703 | src/journal/journald-gperf.gperf | |
2704 | ||
2705 | CLEANFILES += \ | |
2706 | src/journal/journald-gperf.c | |
2707 | ||
2708 | # ------------------------------------------------------------------------------ | |
2709 | if HAVE_MICROHTTPD | |
2710 | gatewayddocumentrootdir=$(pkgdatadir)/gatewayd | |
2711 | ||
2712 | rootlibexec_PROGRAMS += \ | |
2713 | systemd-journal-gatewayd | |
2714 | ||
2715 | systemd_journal_gatewayd_SOURCES = \ | |
2716 | src/journal/journal-gatewayd.c \ | |
2717 | src/journal/microhttpd-util.h \ | |
2718 | src/journal/microhttpd-util.c | |
2719 | ||
2720 | systemd_journal_gatewayd_LDADD = \ | |
2721 | libsystemd-shared.la \ | |
2722 | libsystemd-logs.la \ | |
2723 | libsystemd-journal-internal.la \ | |
2724 | libsystemd-id128-internal.la \ | |
2725 | libsystemd-daemon.la \ | |
2726 | $(MICROHTTPD_LIBS) | |
2727 | ||
2728 | systemd_journal_gatewayd_CFLAGS = \ | |
2729 | -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \ | |
2730 | $(AM_CFLAGS) \ | |
2731 | $(MICROHTTPD_CFLAGS) | |
2732 | ||
2733 | dist_systemunit_DATA += \ | |
2734 | units/systemd-journal-gatewayd.socket | |
2735 | ||
2736 | nodist_systemunit_DATA += \ | |
2737 | units/systemd-journal-gatewayd.service | |
2738 | ||
2739 | dist_gatewayddocumentroot_DATA = \ | |
2740 | src/journal/browse.html | |
2741 | ||
2742 | endif | |
2743 | ||
2744 | EXTRA_DIST += \ | |
2745 | units/systemd-journal-gatewayd.service.in | |
2746 | ||
2747 | # ------------------------------------------------------------------------------ | |
2748 | if ENABLE_COREDUMP | |
2749 | systemd_coredump_SOURCES = \ | |
2750 | src/journal/coredump.c | |
2751 | ||
2752 | systemd_coredump_LDADD = \ | |
2753 | libsystemd-journal-internal.la \ | |
2754 | libsystemd-label.la \ | |
2755 | libsystemd-shared.la | |
2756 | ||
2757 | if ENABLE_LOGIND | |
2758 | systemd_coredump_LDADD += \ | |
2759 | libsystemd-login-internal.la | |
2760 | endif | |
2761 | ||
2762 | rootlibexec_PROGRAMS += \ | |
2763 | systemd-coredump | |
2764 | ||
2765 | systemd_coredumpctl_SOURCES = \ | |
2766 | src/journal/coredumpctl.c | |
2767 | ||
2768 | systemd_coredumpctl_LDADD = \ | |
2769 | libsystemd-shared.la \ | |
2770 | libsystemd-journal.la | |
2771 | ||
2772 | bin_PROGRAMS += \ | |
2773 | systemd-coredumpctl | |
2774 | ||
2775 | dist_bashcompletion_DATA += \ | |
2776 | shell-completion/bash/systemd-coredumpctl | |
2777 | ||
2778 | sysctl_DATA = \ | |
2779 | sysctl.d/coredump.conf | |
2780 | ||
2781 | CLEANFILES += \ | |
2782 | sysctl.d/coredump.conf | |
2783 | endif | |
2784 | ||
2785 | EXTRA_DIST += \ | |
2786 | sysctl.d/coredump.conf.in | |
2787 | ||
2788 | # ------------------------------------------------------------------------------ | |
2789 | if ENABLE_BINFMT | |
2790 | systemd_binfmt_SOURCES = \ | |
2791 | src/binfmt/binfmt.c | |
2792 | ||
2793 | systemd_binfmt_LDADD = \ | |
2794 | libsystemd-shared.la | |
2795 | ||
2796 | rootlibexec_PROGRAMS += \ | |
2797 | systemd-binfmt | |
2798 | ||
2799 | dist_systemunit_DATA += \ | |
2800 | units/proc-sys-fs-binfmt_misc.automount \ | |
2801 | units/proc-sys-fs-binfmt_misc.mount | |
2802 | ||
2803 | nodist_systemunit_DATA += \ | |
2804 | units/systemd-binfmt.service | |
2805 | ||
2806 | INSTALL_DIRS += \ | |
2807 | $(prefix)/lib/binfmt.d \ | |
2808 | $(sysconfdir)/binfmt.d | |
2809 | ||
2810 | SYSINIT_TARGET_WANTS += \ | |
2811 | systemd-binfmt.service \ | |
2812 | proc-sys-fs-binfmt_misc.automount | |
2813 | ||
2814 | endif | |
2815 | ||
2816 | EXTRA_DIST += \ | |
2817 | units/systemd-binfmt.service.in | |
2818 | ||
2819 | # ------------------------------------------------------------------------------ | |
2820 | if ENABLE_VCONSOLE | |
2821 | systemd_vconsole_setup_SOURCES = \ | |
2822 | src/vconsole/vconsole-setup.c | |
2823 | ||
2824 | systemd_vconsole_setup_LDADD = \ | |
2825 | libsystemd-shared.la | |
2826 | ||
2827 | rootlibexec_PROGRAMS += \ | |
2828 | systemd-vconsole-setup | |
2829 | ||
2830 | nodist_systemunit_DATA += \ | |
2831 | units/systemd-vconsole-setup.service | |
2832 | ||
2833 | SYSINIT_TARGET_WANTS += \ | |
2834 | systemd-vconsole-setup.service | |
2835 | endif | |
2836 | ||
2837 | EXTRA_DIST += \ | |
2838 | units/systemd-vconsole-setup.service.in | |
2839 | ||
2840 | # ------------------------------------------------------------------------------ | |
2841 | if ENABLE_READAHEAD | |
2842 | systemd_readahead_SOURCES = \ | |
2843 | src/readahead/readahead.c \ | |
2844 | src/readahead/readahead-collect.c \ | |
2845 | src/readahead/readahead-replay.c \ | |
2846 | src/readahead/readahead-analyze.c \ | |
2847 | src/readahead/readahead-common.c \ | |
2848 | src/readahead/readahead-common.h | |
2849 | ||
2850 | systemd_readahead_LDADD = \ | |
2851 | libsystemd-shared.la \ | |
2852 | libsystemd-daemon.la \ | |
2853 | libudev.la | |
2854 | ||
2855 | dist_doc_DATA += \ | |
2856 | src/readahead/sd-readahead.c \ | |
2857 | src/systemd/sd-readahead.h | |
2858 | ||
2859 | rootlibexec_PROGRAMS += \ | |
2860 | systemd-readahead | |
2861 | ||
2862 | dist_systemunit_DATA += \ | |
2863 | units/systemd-readahead-drop.service \ | |
2864 | units/systemd-readahead-done.timer | |
2865 | ||
2866 | nodist_systemunit_DATA += \ | |
2867 | units/systemd-readahead-collect.service \ | |
2868 | units/systemd-readahead-replay.service \ | |
2869 | units/systemd-readahead-done.service | |
2870 | ||
2871 | endif | |
2872 | ||
2873 | EXTRA_DIST += \ | |
2874 | units/systemd-readahead-collect.service.in \ | |
2875 | units/systemd-readahead-replay.service.in \ | |
2876 | units/systemd-readahead-done.service.in | |
2877 | ||
2878 | # ------------------------------------------------------------------------------ | |
2879 | if ENABLE_BOOTCHART | |
2880 | systemd_bootchart_SOURCES = \ | |
2881 | src/bootchart/bootchart.c \ | |
2882 | src/bootchart/bootchart.h \ | |
2883 | src/bootchart/store.c \ | |
2884 | src/bootchart/store.h \ | |
2885 | src/bootchart/svg.c | |
2886 | ||
2887 | systemd_bootchart_LDADD = \ | |
2888 | libsystemd-shared.la | |
2889 | ||
2890 | rootlibexec_PROGRAMS += \ | |
2891 | systemd-bootchart | |
2892 | ||
2893 | dist_pkgsysconf_DATA += \ | |
2894 | src/bootchart/bootchart.conf | |
2895 | endif | |
2896 | ||
2897 | # ------------------------------------------------------------------------------ | |
2898 | if ENABLE_QUOTACHECK | |
2899 | rootlibexec_PROGRAMS += \ | |
2900 | systemd-quotacheck | |
2901 | ||
2902 | nodist_systemunit_DATA += \ | |
2903 | units/systemd-quotacheck.service | |
2904 | ||
2905 | systemd_quotacheck_SOURCES = \ | |
2906 | src/quotacheck/quotacheck.c | |
2907 | ||
2908 | systemd_quotacheck_LDADD = \ | |
2909 | libsystemd-shared.la | |
2910 | endif | |
2911 | ||
2912 | EXTRA_DIST += \ | |
2913 | units/systemd-quotacheck.service.in | |
2914 | ||
2915 | nodist_systemunit_DATA += \ | |
2916 | units/quotaon.service | |
2917 | ||
2918 | # ------------------------------------------------------------------------------ | |
2919 | if ENABLE_RANDOMSEED | |
2920 | rootlibexec_PROGRAMS += \ | |
2921 | systemd-random-seed | |
2922 | ||
2923 | nodist_systemunit_DATA += \ | |
2924 | units/systemd-random-seed-save.service \ | |
2925 | units/systemd-random-seed-load.service | |
2926 | ||
2927 | systemd_random_seed_SOURCES = \ | |
2928 | src/random-seed/random-seed.c | |
2929 | ||
2930 | systemd_random_seed_LDADD = \ | |
2931 | libsystemd-label.la \ | |
2932 | libsystemd-shared.la | |
2933 | ||
2934 | SHUTDOWN_TARGET_WANTS += \ | |
2935 | systemd-random-seed-save.service | |
2936 | SYSINIT_TARGET_WANTS += \ | |
2937 | systemd-random-seed-load.service | |
2938 | ||
2939 | endif | |
2940 | ||
2941 | EXTRA_DIST += \ | |
2942 | units/systemd-random-seed-save.service.in \ | |
2943 | units/systemd-random-seed-load.service.in | |
2944 | ||
2945 | # ------------------------------------------------------------------------------ | |
2946 | if HAVE_LIBCRYPTSETUP | |
2947 | rootlibexec_PROGRAMS += \ | |
2948 | systemd-cryptsetup | |
2949 | ||
2950 | systemgenerator_PROGRAMS += \ | |
2951 | systemd-cryptsetup-generator | |
2952 | ||
2953 | dist_systemunit_DATA += \ | |
2954 | units/cryptsetup.target | |
2955 | ||
2956 | systemd_cryptsetup_SOURCES = \ | |
2957 | src/cryptsetup/cryptsetup.c | |
2958 | ||
2959 | systemd_cryptsetup_CFLAGS = \ | |
2960 | $(AM_CFLAGS) \ | |
2961 | $(LIBCRYPTSETUP_CFLAGS) | |
2962 | ||
2963 | systemd_cryptsetup_LDADD = \ | |
2964 | libsystemd-label.la \ | |
2965 | libsystemd-shared.la \ | |
2966 | libudev.la \ | |
2967 | $(LIBCRYPTSETUP_LIBS) | |
2968 | ||
2969 | systemd_cryptsetup_generator_SOURCES = \ | |
2970 | src/cryptsetup/cryptsetup-generator.c | |
2971 | ||
2972 | systemd_cryptsetup_generator_LDADD = \ | |
2973 | libsystemd-label.la \ | |
2974 | libsystemd-shared.la | |
2975 | ||
2976 | SYSINIT_TARGET_WANTS += \ | |
2977 | cryptsetup.target | |
2978 | ||
2979 | endif | |
2980 | ||
2981 | # ------------------------------------------------------------------------------ | |
2982 | if ENABLE_HOSTNAMED | |
2983 | systemd_hostnamed_SOURCES = \ | |
2984 | src/hostname/hostnamed.c | |
2985 | ||
2986 | systemd_hostnamed_CFLAGS = \ | |
2987 | $(AM_CFLAGS) \ | |
2988 | $(DBUS_CFLAGS) | |
2989 | ||
2990 | systemd_hostnamed_LDADD = \ | |
2991 | libsystemd-label.la \ | |
2992 | libsystemd-shared.la \ | |
2993 | libsystemd-daemon.la \ | |
2994 | libsystemd-dbus.la | |
2995 | ||
2996 | rootlibexec_PROGRAMS += \ | |
2997 | systemd-hostnamed | |
2998 | ||
2999 | nodist_systemunit_DATA += \ | |
3000 | units/systemd-hostnamed.service | |
3001 | ||
3002 | dist_dbuspolicy_DATA += \ | |
3003 | src/hostname/org.freedesktop.hostname1.conf | |
3004 | ||
3005 | dist_dbussystemservice_DATA += \ | |
3006 | src/hostname/org.freedesktop.hostname1.service | |
3007 | ||
3008 | polkitpolicy_files += \ | |
3009 | src/hostname/org.freedesktop.hostname1.policy | |
3010 | ||
3011 | dbusinterface_DATA += \ | |
3012 | org.freedesktop.hostname1.xml | |
3013 | ||
3014 | org.freedesktop.hostname1.xml: systemd-hostnamed | |
3015 | $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \ | |
3016 | $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ | |
3017 | $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp | |
3018 | ||
3019 | SYSTEM_UNIT_ALIASES += \ | |
3020 | systemd-hostnamed.service dbus-org.freedesktop.hostname1.service | |
3021 | ||
3022 | hostnamectl_SOURCES = \ | |
3023 | src/hostname/hostnamectl.c | |
3024 | ||
3025 | hostnamectl_CFLAGS = \ | |
3026 | $(AM_CFLAGS) \ | |
3027 | $(DBUS_CFLAGS) | |
3028 | ||
3029 | hostnamectl_LDADD = \ | |
3030 | libsystemd-shared.la \ | |
3031 | libsystemd-dbus.la \ | |
3032 | libsystemd-id128-internal.la | |
3033 | ||
3034 | bin_PROGRAMS += \ | |
3035 | hostnamectl | |
3036 | ||
3037 | dist_bashcompletion_DATA += \ | |
3038 | shell-completion/bash/hostnamectl | |
3039 | ||
3040 | endif | |
3041 | ||
3042 | polkitpolicy_in_files += \ | |
3043 | src/hostname/org.freedesktop.hostname1.policy.in | |
3044 | ||
3045 | EXTRA_DIST += \ | |
3046 | units/systemd-hostnamed.service.in | |
3047 | ||
3048 | # ------------------------------------------------------------------------------ | |
3049 | if ENABLE_LOCALED | |
3050 | systemd_localed_SOURCES = \ | |
3051 | src/locale/localed.c | |
3052 | ||
3053 | systemd_localed_CFLAGS = \ | |
3054 | $(AM_CFLAGS) \ | |
3055 | $(DBUS_CFLAGS) | |
3056 | ||
3057 | systemd_localed_LDADD = \ | |
3058 | libsystemd-label.la \ | |
3059 | libsystemd-shared.la \ | |
3060 | libsystemd-daemon.la \ | |
3061 | libsystemd-dbus.la | |
3062 | ||
3063 | nodist_systemunit_DATA += \ | |
3064 | units/systemd-localed.service | |
3065 | ||
3066 | rootlibexec_PROGRAMS += \ | |
3067 | systemd-localed | |
3068 | ||
3069 | dist_dbuspolicy_DATA += \ | |
3070 | src/locale/org.freedesktop.locale1.conf | |
3071 | ||
3072 | dist_dbussystemservice_DATA += \ | |
3073 | src/locale/org.freedesktop.locale1.service | |
3074 | ||
3075 | polkitpolicy_files += \ | |
3076 | src/locale/org.freedesktop.locale1.policy | |
3077 | ||
3078 | dbusinterface_DATA += \ | |
3079 | org.freedesktop.locale1.xml | |
3080 | ||
3081 | org.freedesktop.locale1.xml: systemd-localed | |
3082 | $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \ | |
3083 | $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ | |
3084 | $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp | |
3085 | ||
3086 | SYSTEM_UNIT_ALIASES += \ | |
3087 | systemd-localed.service dbus-org.freedesktop.locale1.service | |
3088 | ||
3089 | dist_pkgdata_DATA += \ | |
3090 | src/locale/kbd-model-map | |
3091 | ||
3092 | dist_noinst_SCRIPT = \ | |
3093 | src/locale/generate-kbd-model-map | |
3094 | ||
3095 | update-kbd-model-map: src/locale/generate-kbd-model-map | |
3096 | $PYTHON $< > src/locale/kbd-model-map | |
3097 | ||
3098 | localectl_SOURCES = \ | |
3099 | src/locale/localectl.c | |
3100 | ||
3101 | localectl_CFLAGS = \ | |
3102 | $(AM_CFLAGS) \ | |
3103 | $(DBUS_CFLAGS) | |
3104 | ||
3105 | localectl_LDADD = \ | |
3106 | libsystemd-shared.la \ | |
3107 | libsystemd-dbus.la \ | |
3108 | libsystemd-id128-internal.la | |
3109 | ||
3110 | bin_PROGRAMS += \ | |
3111 | localectl | |
3112 | ||
3113 | dist_bashcompletion_DATA += \ | |
3114 | shell-completion/bash/localectl | |
3115 | ||
3116 | endif | |
3117 | ||
3118 | polkitpolicy_in_files += \ | |
3119 | src/locale/org.freedesktop.locale1.policy.in | |
3120 | ||
3121 | EXTRA_DIST += \ | |
3122 | units/systemd-localed.service.in | |
3123 | ||
3124 | # ------------------------------------------------------------------------------ | |
3125 | if ENABLE_TIMEDATED | |
3126 | systemd_timedated_SOURCES = \ | |
3127 | src/timedate/timedated.c | |
3128 | ||
3129 | systemd_timedated_CFLAGS = \ | |
3130 | $(AM_CFLAGS) \ | |
3131 | $(DBUS_CFLAGS) | |
3132 | ||
3133 | systemd_timedated_LDADD = \ | |
3134 | libsystemd-label.la \ | |
3135 | libsystemd-shared.la \ | |
3136 | libsystemd-daemon.la \ | |
3137 | libsystemd-dbus.la | |
3138 | ||
3139 | rootlibexec_PROGRAMS += \ | |
3140 | systemd-timedated | |
3141 | ||
3142 | dist_dbussystemservice_DATA += \ | |
3143 | src/timedate/org.freedesktop.timedate1.service | |
3144 | ||
3145 | dist_dbuspolicy_DATA += \ | |
3146 | src/timedate/org.freedesktop.timedate1.conf | |
3147 | ||
3148 | nodist_systemunit_DATA += \ | |
3149 | units/systemd-timedated.service | |
3150 | ||
3151 | polkitpolicy_files += \ | |
3152 | src/timedate/org.freedesktop.timedate1.policy | |
3153 | ||
3154 | org.freedesktop.timedate1.xml: systemd-timedated | |
3155 | $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \ | |
3156 | $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \ | |
3157 | $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp | |
3158 | ||
3159 | dbusinterface_DATA += \ | |
3160 | org.freedesktop.timedate1.xml | |
3161 | ||
3162 | INSTALL_DIRS += \ | |
3163 | $(prefix)/lib/systemd/ntp-units.d \ | |
3164 | $(sysconfdir)/systemd/ntp-units.d | |
3165 | ||
3166 | SYSTEM_UNIT_ALIASES += \ | |
3167 | systemd-timedated.service dbus-org.freedesktop.timedate1.service | |
3168 | ||
3169 | timedatectl_SOURCES = \ | |
3170 | src/timedate/timedatectl.c | |
3171 | ||
3172 | timedatectl_CFLAGS = \ | |
3173 | $(AM_CFLAGS) \ | |
3174 | $(DBUS_CFLAGS) | |
3175 | ||
3176 | timedatectl_LDADD = \ | |
3177 | libsystemd-shared.la \ | |
3178 | libsystemd-dbus.la | |
3179 | ||
3180 | bin_PROGRAMS += \ | |
3181 | timedatectl | |
3182 | ||
3183 | dist_bashcompletion_DATA += \ | |
3184 | shell-completion/bash/timedatectl | |
3185 | endif | |
3186 | ||
3187 | polkitpolicy_in_files += \ | |
3188 | src/timedate/org.freedesktop.timedate1.policy.in | |
3189 | ||
3190 | EXTRA_DIST += \ | |
3191 | units/systemd-timedated.service.in | |
3192 | ||
3193 | # ------------------------------------------------------------------------------ | |
3194 | if ENABLE_EFI | |
3195 | bootctl_SOURCES = \ | |
3196 | src/boot/boot.h \ | |
3197 | src/boot/boot-loader.h \ | |
3198 | src/boot/bootctl.c \ | |
3199 | src/boot/boot-loader.c \ | |
3200 | src/boot/boot-efi.c | |
3201 | ||
3202 | bootctl_LDADD = \ | |
3203 | libsystemd-shared.la \ | |
3204 | libsystemd-id128.la \ | |
3205 | libsystemd-daemon.la | |
3206 | ||
3207 | bin_PROGRAMS += \ | |
3208 | bootctl | |
3209 | endif | |
3210 | ||
3211 | # ------------------------------------------------------------------------------ | |
3212 | if HAVE_MYHOSTNAME | |
3213 | libnss_myhostname_la_SOURCES = \ | |
3214 | src/nss-myhostname/nss-myhostname.c \ | |
3215 | src/nss-myhostname/ifconf.h \ | |
3216 | src/nss-myhostname/netlink.c | |
3217 | ||
3218 | libnss_myhostname_la_CFLAGS = \ | |
3219 | $(AM_CFLAGS) | |
3220 | ||
3221 | libnss_myhostname_la_LDFLAGS = \ | |
3222 | $(AM_LDFLAGS) \ | |
3223 | -module \ | |
3224 | -export-dynamic \ | |
3225 | -avoid-version \ | |
3226 | -shared \ | |
3227 | -shrext .so.2 | |
3228 | ||
3229 | lib_LTLIBRARIES += \ | |
3230 | libnss_myhostname.la | |
3231 | endif | |
3232 | ||
3233 | # ------------------------------------------------------------------------------ | |
3234 | if ENABLE_LOGIND | |
3235 | systemd_logind_SOURCES = \ | |
3236 | src/login/logind.c \ | |
3237 | src/login/logind.h \ | |
3238 | src/login/logind-dbus.c \ | |
3239 | src/login/logind-device.c \ | |
3240 | src/login/logind-device.h \ | |
3241 | src/login/logind-button.c \ | |
3242 | src/login/logind-button.h \ | |
3243 | src/login/logind-action.c \ | |
3244 | src/login/logind-action.h \ | |
3245 | src/login/logind-seat.c \ | |
3246 | src/login/logind-seat.h \ | |
3247 | src/login/logind-session.c \ | |
3248 | src/login/logind-session.h \ | |
3249 | src/login/logind-user.c \ | |
3250 | src/login/logind-user.h \ | |
3251 | src/login/logind-inhibit.c \ | |
3252 | src/login/logind-inhibit.h \ | |
3253 | src/login/logind-session-dbus.c \ | |
3254 | src/login/logind-seat-dbus.c \ | |
3255 | src/login/logind-user-dbus.c \ | |
3256 | src/login/logind-acl.h | |
3257 | ||
3258 | nodist_systemd_logind_SOURCES = \ | |
3259 | src/login/logind-gperf.c | |
3260 | ||
3261 | systemd_logind_CFLAGS = \ | |
3262 | $(AM_CFLAGS) \ | |
3263 | $(DBUS_CFLAGS) | |
3264 | ||
3265 | systemd_logind_LDADD = \ | |
3266 | libsystemd-label.la \ | |
3267 | libsystemd-shared.la \ | |
3268 | libsystemd-audit.la \ | |
3269 | libsystemd-daemon.la \ | |
3270 | libsystemd-dbus.la \ | |
3271 | libudev.la | |
3272 | ||
3273 | if HAVE_ACL | |
3274 | systemd_logind_SOURCES += \ | |
3275 | src/login/logind-acl.c | |
3276 | ||
3277 | systemd_logind_LDADD += \ | |
3278 | libsystemd-acl.la | |
3279 | endif | |
3280 | ||
3281 | systemd_user_sessions_SOURCES = \ | |
3282 | src/login/user-sessions.c | |
3283 | ||
3284 | systemd_user_sessions_LDADD = \ | |
3285 | libsystemd-shared.la | |
3286 | ||
3287 | rootlibexec_PROGRAMS += \ | |
3288 | systemd-logind \ | |
3289 | systemd-user-sessions | |
3290 | ||
3291 | loginctl_SOURCES = \ | |
3292 | src/login/loginctl.c \ | |
3293 | src/login/sysfs-show.c | |
3294 | ||
3295 | loginctl_CFLAGS = \ | |
3296 | $(AM_CFLAGS) \ | |
3297 | $(DBUS_CFLAGS) | |
3298 | ||
3299 | loginctl_LDADD = \ | |
3300 | libsystemd-shared.la \ | |
3301 | libsystemd-dbus.la \ | |
3302 | libudev.la | |
3303 | ||
3304 | rootbin_PROGRAMS += \ | |
3305 | loginctl | |
3306 | ||
3307 | dist_bashcompletion_DATA += \ | |
3308 | shell-completion/bash/loginctl | |
3309 | ||
3310 | systemd_inhibit_SOURCES = \ | |
3311 | src/login/inhibit.c | |
3312 | ||
3313 | systemd_inhibit_CFLAGS = \ | |
3314 | $(AM_CFLAGS) \ | |
3315 | $(DBUS_CFLAGS) | |
3316 | ||
3317 | systemd_inhibit_LDADD = \ | |
3318 | libsystemd-shared.la \ | |
3319 | libsystemd-dbus.la | |
3320 | ||
3321 | rootbin_PROGRAMS += \ | |
3322 | systemd-inhibit | |
3323 | ||
3324 | test_login_SOURCES = \ | |
3325 | src/login/test-login.c | |
3326 | ||
3327 | test_login_LDADD = \ | |
3328 | libsystemd-login-internal.la \ | |
3329 | libsystemd-shared.la | |
3330 | ||
3331 | test_inhibit_SOURCES = \ | |
3332 | src/login/test-inhibit.c | |
3333 | ||
3334 | test_inhibit_LDADD = \ | |
3335 | libsystemd-shared.la \ | |
3336 | libsystemd-dbus.la | |
3337 | ||
3338 | test_inhibit_CFLAGS = \ | |
3339 | $(AM_CFLAGS) \ | |
3340 | $(DBUS_CFLAGS) | |
3341 | ||
3342 | noinst_PROGRAMS += \ | |
3343 | test-login \ | |
3344 | test-inhibit | |
3345 | ||
3346 | libsystemd_login_la_SOURCES = \ | |
3347 | src/login/sd-login.c | |
3348 | ||
3349 | libsystemd_login_la_CFLAGS = \ | |
3350 | $(AM_CFLAGS) \ | |
3351 | -fvisibility=hidden | |
3352 | ||
3353 | libsystemd_login_la_LDFLAGS = \ | |
3354 | $(AM_LDFLAGS) \ | |
3355 | -version-info $(LIBSYSTEMD_LOGIN_CURRENT):$(LIBSYSTEMD_LOGIN_REVISION):$(LIBSYSTEMD_LOGIN_AGE) \ | |
3356 | -Wl,--version-script=$(top_srcdir)/src/login/libsystemd-login.sym | |
3357 | ||
3358 | libsystemd_login_la_LIBADD = \ | |
3359 | libsystemd-shared.la | |
3360 | ||
3361 | libsystemd_login_internal_la_SOURCES = \ | |
3362 | $(libsystemd_login_la_SOURCES) | |
3363 | ||
3364 | if HAVE_PAM | |
3365 | pam_systemd_la_SOURCES = \ | |
3366 | src/login/pam-module.c | |
3367 | ||
3368 | pam_systemd_la_CFLAGS = \ | |
3369 | $(AM_CFLAGS) \ | |
3370 | $(PAM_CFLAGS) \ | |
3371 | $(DBUS_CFLAGS) \ | |
3372 | -fvisibility=hidden | |
3373 | ||
3374 | pam_systemd_la_LDFLAGS = \ | |
3375 | $(AM_LDFLAGS) \ | |
3376 | -module \ | |
3377 | -export-dynamic \ | |
3378 | -avoid-version \ | |
3379 | -shared \ | |
3380 | -export-symbols-regex '^pam_sm_.*' | |
3381 | ||
3382 | pam_systemd_la_LIBADD = \ | |
3383 | libsystemd-daemon.la \ | |
3384 | libsystemd-audit.la \ | |
3385 | libsystemd-dbus.la \ | |
3386 | libsystemd-shared.la \ | |
3387 | $(PAM_LIBS) | |
3388 | ||
3389 | pamlib_LTLIBRARIES = \ | |
3390 | pam_systemd.la | |
3391 | endif | |
3392 | ||
3393 | # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed | |
3394 | libsystemd-login-install-hook: | |
3395 | libname=libsystemd-login.so && $(move-to-rootlibdir) | |
3396 | ||
3397 | libsystemd-login-uninstall-hook: | |
3398 | rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so* | |
3399 | ||
3400 | INSTALL_EXEC_HOOKS += libsystemd-login-install-hook | |
3401 | UNINSTALL_EXEC_HOOKS += libsystemd-login-uninstall-hook | |
3402 | ||
3403 | nodist_systemunit_DATA += \ | |
3404 | units/systemd-logind.service \ | |
3405 | units/systemd-user-sessions.service | |
3406 | ||
3407 | dist_dbussystemservice_DATA += \ | |
3408 | src/login/org.freedesktop.login1.service | |
3409 | ||
3410 | dist_dbuspolicy_DATA += \ | |
3411 | src/login/org.freedesktop.login1.conf | |
3412 | ||
3413 | dist_pkgsysconf_DATA += \ | |
3414 | src/login/logind.conf | |
3415 | ||
3416 | pkginclude_HEADERS += \ | |
3417 | src/systemd/sd-login.h | |
3418 | ||
3419 | lib_LTLIBRARIES += \ | |
3420 | libsystemd-login.la | |
3421 | ||
3422 | noinst_LTLIBRARIES += \ | |
3423 | libsystemd-login-internal.la | |
3424 | ||
3425 | pkgconfiglib_DATA += \ | |
3426 | src/login/libsystemd-login.pc | |
3427 | ||
3428 | polkitpolicy_files += \ | |
3429 | src/login/org.freedesktop.login1.policy | |
3430 | ||
3431 | INSTALL_DIRS += \ | |
3432 | $(systemdstatedir) | |
3433 | ||
3434 | MULTI_USER_TARGET_WANTS += \ | |
3435 | systemd-logind.service \ | |
3436 | systemd-user-sessions.service | |
3437 | ||
3438 | SYSTEM_UNIT_ALIASES += \ | |
3439 | systemd-logind.service dbus-org.freedesktop.login1.service | |
3440 | ||
3441 | systemd_multi_seat_x_SOURCES = \ | |
3442 | src/login/multi-seat-x.c | |
3443 | ||
3444 | systemd_multi_seat_x_LDADD = \ | |
3445 | libsystemd-label.la \ | |
3446 | libsystemd-shared.la | |
3447 | ||
3448 | rootlibexec_PROGRAMS += \ | |
3449 | systemd-multi-seat-x | |
3450 | ||
3451 | dist_udevrules_DATA += \ | |
3452 | src/login/70-uaccess.rules \ | |
3453 | src/login/70-power-switch.rules | |
3454 | ||
3455 | nodist_udevrules_DATA += \ | |
3456 | src/login/71-seat.rules \ | |
3457 | src/login/73-seat-late.rules | |
3458 | ||
3459 | CLEANFILES += \ | |
3460 | src/login/logind-gperf.c \ | |
3461 | src/login/71-seat.rules \ | |
3462 | src/login/73-seat-late.rules | |
3463 | endif | |
3464 | ||
3465 | polkitpolicy_in_files += \ | |
3466 | src/login/org.freedesktop.login1.policy.in | |
3467 | ||
3468 | EXTRA_DIST += \ | |
3469 | src/login/logind-gperf.gperf \ | |
3470 | src/login/libsystemd-login.pc.in \ | |
3471 | src/login/libsystemd-login.sym \ | |
3472 | src/login/71-seat.rules.in \ | |
3473 | src/login/73-seat-late.rules.in \ | |
3474 | units/systemd-logind.service.in \ | |
3475 | units/systemd-user-sessions.service.in | |
3476 | ||
3477 | # ------------------------------------------------------------------------------ | |
3478 | if HAVE_PYTHON_DEVEL | |
3479 | pkgpyexec_LTLIBRARIES = \ | |
3480 | _journal.la \ | |
3481 | id128.la \ | |
3482 | _reader.la | |
3483 | ||
3484 | _journal_la_SOURCES = \ | |
3485 | src/python-systemd/_journal.c | |
3486 | ||
3487 | _journal_la_CFLAGS = \ | |
3488 | $(AM_CFLAGS) \ | |
3489 | -fvisibility=default \ | |
3490 | $(PYTHON_CFLAGS) | |
3491 | ||
3492 | _journal_la_LDFLAGS = \ | |
3493 | $(AM_LDFLAGS) \ | |
3494 | -shared \ | |
3495 | -module \ | |
3496 | -avoid-version | |
3497 | ||
3498 | _journal_la_LIBADD = \ | |
3499 | $(PYTHON_LIBS) \ | |
3500 | libsystemd-journal.la | |
3501 | ||
3502 | id128_la_SOURCES = \ | |
3503 | src/python-systemd/id128.c \ | |
3504 | src/python-systemd/id128-constants.h \ | |
3505 | src/python-systemd/pyutil.c \ | |
3506 | src/python-systemd/pyutil.h | |
3507 | ||
3508 | id128_la_CFLAGS = \ | |
3509 | $(AM_CFLAGS) \ | |
3510 | -fvisibility=default \ | |
3511 | $(PYTHON_CFLAGS) \ | |
3512 | -I$(top_builddir)/src/python-systemd | |
3513 | ||
3514 | id128_la_LDFLAGS = \ | |
3515 | $(AM_LDFLAGS) \ | |
3516 | -shared \ | |
3517 | -module \ | |
3518 | -avoid-version | |
3519 | ||
3520 | id128_la_LIBADD = \ | |
3521 | $(PYTHON_LIBS) \ | |
3522 | libsystemd-id128.la | |
3523 | ||
3524 | _reader_la_SOURCES = \ | |
3525 | src/python-systemd/_reader.c \ | |
3526 | src/python-systemd/pyutil.c \ | |
3527 | src/python-systemd/pyutil.h | |
3528 | ||
3529 | _reader_la_CFLAGS = \ | |
3530 | $(AM_CFLAGS) \ | |
3531 | -fvisibility=default \ | |
3532 | $(PYTHON_CFLAGS) | |
3533 | ||
3534 | _reader_la_LDFLAGS = \ | |
3535 | $(AM_LDFLAGS) \ | |
3536 | -shared \ | |
3537 | -module \ | |
3538 | -avoid-version | |
3539 | ||
3540 | _reader_la_LIBADD = \ | |
3541 | $(PYTHON_LIBS) \ | |
3542 | libsystemd-journal.la \ | |
3543 | libsystemd-id128.la \ | |
3544 | libsystemd-shared.la | |
3545 | ||
3546 | dist_pkgpyexec_PYTHON = \ | |
3547 | src/python-systemd/journal.py \ | |
3548 | src/python-systemd/__init__.py | |
3549 | ||
3550 | src/python-systemd/id128-constants.h: src/systemd/sd-messages.h Makefile | |
3551 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
3552 | $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@ | |
3553 | ||
3554 | BUILT_SOURCES += \ | |
3555 | src/python-systemd/id128-constants.h | |
3556 | ||
3557 | PAPER = $(shell cat /etc/papersize 2>/dev/null || echo a4) | |
3558 | SPHINXOPTS = -D latex_paper_size=$(PAPER) -D version=$(VERSION) -D release=$(VERSION) | |
3559 | sphinx-%: | |
3560 | $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; } | |
3561 | $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/ | |
3562 | $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/ | |
3563 | ||
3564 | destdir-sphinx: all | |
3565 | dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \ | |
3566 | $(MAKE) DESTDIR="$$dir" install && \ | |
3567 | $(MAKE) DESTDIR="$$dir" sphinx-html && \ | |
3568 | rm -rf "$$dir" | |
3569 | ||
3570 | endif | |
3571 | ||
3572 | CLEAN_LOCAL_HOOKS += clean-sphinx | |
3573 | ||
3574 | clean-sphinx: | |
3575 | -rm -rf docs/html/python-systemd/ | |
3576 | ||
3577 | # ------------------------------------------------------------------------------ | |
3578 | SED_PROCESS = \ | |
3579 | $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ | |
3580 | $(SED) -e 's,@rootlibexecdir\@,$(rootlibexecdir),g' \ | |
3581 | -e 's,@rootbindir\@,$(rootbindir),g' \ | |
3582 | -e 's,@bindir\@,$(bindir),g' \ | |
3583 | -e 's,@SYSTEMCTL\@,$(rootbindir)/systemctl,g' \ | |
3584 | -e 's,@SYSTEMD_NOTIFY\@,$(rootbindir)/systemd-notify,g' \ | |
3585 | -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ | |
3586 | -e 's,@SYSTEM_CONFIG_UNIT_PATH\@,$(pkgsysconfdir)/system,g' \ | |
3587 | -e 's,@USER_CONFIG_UNIT_PATH\@,$(pkgsysconfdir)/user,g' \ | |
3588 | -e 's,@pkgdatadir\@,$(pkgdatadir),g' \ | |
3589 | -e 's,@systemunitdir\@,$(systemunitdir),g' \ | |
3590 | -e 's,@userunitdir\@,$(userunitdir),g' \ | |
3591 | -e 's,@systempresetdir\@,$(systempresetdir),g' \ | |
3592 | -e 's,@userpresetdir\@,$(userpresetdir),g' \ | |
3593 | -e 's,@udevhwdbdir\@,$(udevhwdbdir),g' \ | |
3594 | -e 's,@udevrulesdir\@,$(udevrulesdir),g' \ | |
3595 | -e 's,@catalogdir\@,$(catalogdir),g' \ | |
3596 | -e 's,@tmpfilesdir\@,$(tmpfilesdir),g' \ | |
3597 | -e 's,@sysctldir\@,$(sysctldir),g' \ | |
3598 | -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ | |
3599 | -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \ | |
3600 | -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' \ | |
3601 | -e 's,@RANDOM_SEED\@,$(localstatedir)/lib/random-seed,g' \ | |
3602 | -e 's,@prefix\@,$(prefix),g' \ | |
3603 | -e 's,@exec_prefix\@,$(exec_prefix),g' \ | |
3604 | -e 's,@libdir\@,$(libdir),g' \ | |
3605 | -e 's,@includedir\@,$(includedir),g' \ | |
3606 | -e 's,@VERSION\@,$(VERSION),g' \ | |
3607 | -e 's,@rootprefix\@,$(rootprefix),g' \ | |
3608 | -e 's,@udevlibexecdir\@,$(udevlibexecdir),g' \ | |
3609 | -e 's,@sushell\@,$(sushell),g' \ | |
3610 | -e 's,@KILL\@,$(KILL),g' \ | |
3611 | -e 's,@QUOTAON\@,$(QUOTAON),g' \ | |
3612 | -e 's,@QUOTACHECK\@,$(QUOTACHECK),g' \ | |
3613 | -e 's,@SYSTEM_SYSVINIT_PATH\@,$(sysvinitdir),g' \ | |
3614 | -e 's,@VARLOGDIR\@,$(varlogdir),g' \ | |
3615 | -e 's,@RC_LOCAL_SCRIPT_PATH_START\@,$(RC_LOCAL_SCRIPT_PATH_START),g' \ | |
3616 | -e 's,@RC_LOCAL_SCRIPT_PATH_STOP\@,$(RC_LOCAL_SCRIPT_PATH_STOP),g' \ | |
3617 | -e 's,@PYTHON\@,$(PYTHON),g' \ | |
3618 | -e 's,@PYTHON_BINARY\@,$(PYTHON_BINARY),g' \ | |
3619 | < $< > $@ | |
3620 | ||
3621 | units/%: units/%.in Makefile | |
3622 | $(SED_PROCESS) | |
3623 | ||
3624 | man/%: man/%.in Makefile | |
3625 | $(SED_PROCESS) | |
3626 | ||
3627 | sysctl.d/%: sysctl.d/%.in Makefile | |
3628 | $(SED_PROCESS) | |
3629 | ||
3630 | %.pc: %.pc.in Makefile | |
3631 | $(SED_PROCESS) | |
3632 | ||
3633 | src/core/macros.%: src/core/macros.%.in Makefile | |
3634 | $(SED_PROCESS) | |
3635 | ||
3636 | src/%.policy.in: src/%.policy.in.in Makefile | |
3637 | $(SED_PROCESS) | |
3638 | ||
3639 | %.rules: %.rules.in Makefile | |
3640 | $(SED_PROCESS) | |
3641 | ||
3642 | %.sh: %.sh.in Makefile | |
3643 | $(SED_PROCESS) | |
3644 | $(AM_V_GEN)chmod +x $@ | |
3645 | ||
3646 | src/%.c: src/%.gperf | |
3647 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
3648 | $(AM_V_GPERF)$(GPERF) < $< > $@ | |
3649 | ||
3650 | src/%: src/%.m4 | |
3651 | $(AM_V_at)$(MKDIR_P) $(dir $@) | |
3652 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) < $< > $@ | |
3653 | ||
3654 | units/%: units/%.m4 Makefile | |
3655 | $(AM_V_M4)$(MKDIR_P) $(dir $@) | |
3656 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_SYSTEM=1 < $< > $@ | |
3657 | ||
3658 | units/user/%: units/%.m4 Makefile | |
3659 | $(AM_V_M4)$(MKDIR_P) $(dir $@) | |
3660 | $(AM_V_M4)$(M4) -P $(M4_DEFINES) -DFOR_USER=1 < $< > $@ | |
3661 | ||
3662 | if ENABLE_POLKIT | |
3663 | nodist_polkitpolicy_DATA = \ | |
3664 | $(polkitpolicy_files) \ | |
3665 | $(polkitpolicy_in_in_files:.policy.in.in=.policy) | |
3666 | endif | |
3667 | ||
3668 | EXTRA_DIST += \ | |
3669 | $(polkitpolicy_in_files) \ | |
3670 | $(polkitpolicy_in_in_files) | |
3671 | ||
3672 | CLEANFILES += \ | |
3673 | $(nodist_systemunit_DATA) \ | |
3674 | $(nodist_userunit_DATA) \ | |
3675 | $(pkgconfigdata_DATA) \ | |
3676 | $(pkgconfiglib_DATA) \ | |
3677 | $(nodist_polkitpolicy_DATA) | |
3678 | ||
3679 | # ------------------------------------------------------------------------------ | |
3680 | if ENABLE_MANPAGES | |
3681 | XSLTPROC_FLAGS = \ | |
3682 | --nonet \ | |
3683 | --stringparam man.output.quietly 1 \ | |
3684 | --stringparam funcsynopsis.style ansi \ | |
3685 | --stringparam man.authors.section.enabled 0 \ | |
3686 | --stringparam man.copyright.section.enabled 0 \ | |
3687 | --stringparam systemd.version $(VERSION) | |
3688 | ||
3689 | XSLTPROC_PROCESS_MAN = \ | |
3690 | $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \ | |
3691 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-man.xsl $< | |
3692 | ||
3693 | XSLTPROC_PROCESS_HTML = \ | |
3694 | $(AM_V_XSLT)$(MKDIR_P) $(dir $@) && \ | |
3695 | $(XSLTPROC) -o $@ $(XSLTPROC_FLAGS) $(srcdir)/man/custom-html.xsl $< | |
3696 | ||
3697 | man/%.1: man/%.xml man/custom-man.xsl | |
3698 | $(XSLTPROC_PROCESS_MAN) | |
3699 | ||
3700 | man/%.3: man/%.xml man/custom-man.xsl | |
3701 | $(XSLTPROC_PROCESS_MAN) | |
3702 | ||
3703 | man/%.5: man/%.xml man/custom-man.xsl | |
3704 | $(XSLTPROC_PROCESS_MAN) | |
3705 | ||
3706 | man/%.7: man/%.xml man/custom-man.xsl | |
3707 | $(XSLTPROC_PROCESS_MAN) | |
3708 | ||
3709 | man/%.8: man/%.xml man/custom-man.xsl | |
3710 | $(XSLTPROC_PROCESS_MAN) | |
3711 | ||
3712 | man/%.html: man/%.xml man/custom-html.xsl | |
3713 | $(XSLTPROC_PROCESS_HTML) | |
3714 | ||
3715 | define html-alias | |
3716 | $(AM_V_LN)$(LN_S) -f $(notdir $<) $@ | |
3717 | endef | |
3718 | ||
3719 | endif | |
3720 | ||
3721 | # ------------------------------------------------------------------------------ | |
3722 | DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h | |
3723 | ||
3724 | CLEANFILES += \ | |
3725 | $(dbusinterface_DATA) | |
3726 | ||
3727 | if HAVE_SYSV_COMPAT | |
3728 | sysvinit_DATA = \ | |
3729 | docs/sysvinit/README | |
3730 | ||
3731 | varlog_DATA = \ | |
3732 | docs/var-log/README | |
3733 | ||
3734 | docs/sysvinit/README: docs/sysvinit/README.in | |
3735 | $(SED_PROCESS) | |
3736 | ||
3737 | docs/var-log/README: docs/var-log/README.in | |
3738 | $(SED_PROCESS) | |
3739 | ||
3740 | CLEANFILES += \ | |
3741 | docs/sysvinit/README \ | |
3742 | docs/var-log/README | |
3743 | endif | |
3744 | ||
3745 | EXTRA_DIST += \ | |
3746 | docs/sysvinit/README.in \ | |
3747 | docs/var-log/README.in | |
3748 | ||
3749 | EXTRA_DIST += \ | |
3750 | shell-completion/systemd-zsh-completion.zsh | |
3751 | ||
3752 | SOCKETS_TARGET_WANTS += \ | |
3753 | systemd-initctl.socket \ | |
3754 | systemd-shutdownd.socket | |
3755 | ||
3756 | if HAVE_SYSV_COMPAT | |
3757 | RUNLEVEL1_TARGET_WANTS += \ | |
3758 | systemd-update-utmp-runlevel.service | |
3759 | RUNLEVEL2_TARGET_WANTS += \ | |
3760 | systemd-update-utmp-runlevel.service | |
3761 | RUNLEVEL3_TARGET_WANTS += \ | |
3762 | systemd-update-utmp-runlevel.service | |
3763 | RUNLEVEL4_TARGET_WANTS += \ | |
3764 | systemd-update-utmp-runlevel.service | |
3765 | RUNLEVEL5_TARGET_WANTS += \ | |
3766 | systemd-update-utmp-runlevel.service | |
3767 | endif | |
3768 | SHUTDOWN_TARGET_WANTS += \ | |
3769 | systemd-update-utmp-shutdown.service | |
3770 | LOCAL_FS_TARGET_WANTS += \ | |
3771 | systemd-remount-fs.service \ | |
3772 | systemd-fsck-root.service \ | |
3773 | tmp.mount | |
3774 | MULTI_USER_TARGET_WANTS += \ | |
3775 | getty.target \ | |
3776 | systemd-ask-password-wall.path | |
3777 | SYSINIT_TARGET_WANTS += \ | |
3778 | dev-hugepages.mount \ | |
3779 | dev-mqueue.mount \ | |
3780 | sys-kernel-config.mount \ | |
3781 | sys-kernel-debug.mount \ | |
3782 | sys-fs-fuse-connections.mount \ | |
3783 | systemd-tmpfiles-setup.service \ | |
3784 | systemd-sysctl.service \ | |
3785 | systemd-ask-password-console.path | |
3786 | BASIC_TARGET_WANTS += \ | |
3787 | systemd-tmpfiles-clean.timer | |
3788 | ||
3789 | if HAVE_SYSV_COMPAT | |
3790 | SYSTEM_UNIT_ALIASES += \ | |
3791 | poweroff.target runlevel0.target \ | |
3792 | rescue.target runlevel1.target \ | |
3793 | multi-user.target runlevel2.target \ | |
3794 | multi-user.target runlevel3.target \ | |
3795 | multi-user.target runlevel4.target \ | |
3796 | graphical.target runlevel5.target \ | |
3797 | reboot.target runlevel6.target | |
3798 | endif | |
3799 | ||
3800 | SYSTEM_UNIT_ALIASES += \ | |
3801 | graphical.target default.target \ | |
3802 | reboot.target ctrl-alt-del.target \ | |
3803 | getty@.service autovt@.service | |
3804 | ||
3805 | USER_UNIT_ALIASES += \ | |
3806 | $(systemunitdir)/shutdown.target shutdown.target \ | |
3807 | $(systemunitdir)/sockets.target sockets.target \ | |
3808 | $(systemunitdir)/bluetooth.target bluetooth.target \ | |
3809 | $(systemunitdir)/printer.target printer.target \ | |
3810 | $(systemunitdir)/sound.target sound.target | |
3811 | ||
3812 | GENERAL_ALIASES += \ | |
3813 | $(systemunitdir)/remote-fs.target $(pkgsysconfdir)/system/multi-user.target.wants/remote-fs.target \ | |
3814 | $(systemunitdir)/getty@.service $(pkgsysconfdir)/system/getty.target.wants/getty@tty1.service \ | |
3815 | $(pkgsysconfdir)/user $(sysconfdir)/xdg/systemd/user \ | |
3816 | ../system-services/org.freedesktop.systemd1.service $(dbussessionservicedir)/org.freedesktop.systemd1.service | |
3817 | ||
3818 | if HAVE_SYSV_COMPAT | |
3819 | INSTALL_DIRS += \ | |
3820 | $(systemunitdir)/runlevel1.target.wants \ | |
3821 | $(systemunitdir)/runlevel2.target.wants \ | |
3822 | $(systemunitdir)/runlevel3.target.wants \ | |
3823 | $(systemunitdir)/runlevel4.target.wants \ | |
3824 | $(systemunitdir)/runlevel5.target.wants | |
3825 | endif | |
3826 | ||
3827 | INSTALL_DIRS += \ | |
3828 | $(tmpfilesdir) \ | |
3829 | $(sysconfdir)/tmpfiles.d \ | |
3830 | $(prefix)/lib/modules-load.d \ | |
3831 | $(sysconfdir)/modules-load.d \ | |
3832 | $(prefix)/lib/sysctl.d \ | |
3833 | $(sysconfdir)/sysctl.d \ | |
3834 | $(systemshutdowndir) \ | |
3835 | $(systemsleepdir) \ | |
3836 | $(systemgeneratordir) \ | |
3837 | $(usergeneratordir) \ | |
3838 | \ | |
3839 | $(userunitdir) \ | |
3840 | $(pkgsysconfdir)/system \ | |
3841 | $(pkgsysconfdir)/system/multi-user.target.wants \ | |
3842 | $(pkgsysconfdir)/system/getty.target.wants \ | |
3843 | $(pkgsysconfdir)/user \ | |
3844 | $(dbussessionservicedir) \ | |
3845 | $(sysconfdir)/xdg/systemd | |
3846 | ||
3847 | install-exec-hook: $(INSTALL_EXEC_HOOKS) | |
3848 | ||
3849 | uninstall-hook: $(UNINSTALL_DATA_HOOKS) $(UNINSTALL_EXEC_HOOKS) | |
3850 | ||
3851 | install-data-hook: $(INSTALL_DATA_HOOKS) | |
3852 | ||
3853 | distclean-local: $(DISTCLEAN_LOCAL_HOOKS) | |
3854 | ||
3855 | clean-local: $(CLEAN_LOCAL_HOOKS) | |
3856 | rm -rf $(abs_srcdir)/install-tree | |
3857 | rm -f $(abs_srcdir)/hwdb/usb.ids $(abs_srcdir)/hwdb/pci.ids $(abs_srcdir)/hwdb/oui.txt \ | |
3858 | $(abs_srcdir)/hwdb/iab.txt | |
3859 | ||
3860 | DISTCHECK_CONFIGURE_FLAGS = \ | |
3861 | --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \ | |
3862 | --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \ | |
3863 | --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \ | |
3864 | --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \ | |
3865 | --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \ | |
3866 | --with-pamlibdir=$$dc_install_base/$(pamlibdir) \ | |
3867 | --with-rootprefix=$$dc_install_base \ | |
3868 | --disable-split-usr | |
3869 | ||
3870 | if HAVE_SYSV_COMPAT | |
3871 | DISTCHECK_CONFIGURE_FLAGS += \ | |
3872 | --with-sysvinit-path=$$dc_install_base/$(sysvinitdir) \ | |
3873 | --with-sysvrcnd-path=$$dc_install_base/$(sysvrcnddir) | |
3874 | else | |
3875 | DISTCHECK_CONFIGURE_FLAGS += \ | |
3876 | --with-sysvinit-path= \ | |
3877 | --with-sysvrcnd-path= | |
3878 | endif | |
3879 | ||
3880 | if ENABLE_GTK_DOC | |
3881 | DISTCHECK_CONFIGURE_FLAGS += \ | |
3882 | --enable-gtk-doc | |
3883 | endif | |
3884 | ||
3885 | hwdb-update: | |
3886 | ( cd $(top_srcdir)/hwdb && \ | |
3887 | wget -N http://www.linux-usb.org/usb.ids \ | |
3888 | http://pci-ids.ucw.cz/v2.2/pci.ids \ | |
3889 | http://standards.ieee.org/develop/regauth/oui/oui.txt \ | |
3890 | http://standards.ieee.org/develop/regauth/iab/iab.txt && \ | |
3891 | ./ids-update.pl ) | |
3892 | ||
3893 | upload: all distcheck | |
3894 | cp -v systemd-$(VERSION).tar.xz /home/lennart/git.fedora/systemd/ | |
3895 | scp systemd-$(VERSION).tar.xz fdo:/srv/www.freedesktop.org/www/software/systemd/ | |
3896 | scp man/*.html tango:public/systemd-man/ | |
3897 | ||
3898 | www_target = www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd | |
3899 | doc-sync: all destdir-sphinx | |
3900 | gtkdoc-rebase --html-dir=docs/libudev/html --online | |
3901 | rsync -av --delete docs/libudev/html/ --omit-dir-times $(www_target)/libudev/ | |
3902 | gtkdoc-rebase --html-dir=docs/gudev/html --online | |
3903 | rsync -av --delete docs/gudev/html/ --omit-dir-times $(www_target)/gudev/ | |
3904 | rsync -av --delete-excluded --include="*.html" --exclude="*" --omit-dir-times man/ $(www_target)/man/ | |
3905 | rsync -av --delete --omit-dir-times docs/html/python-systemd/ $(www_target)/python-systemd/ | |
3906 | ||
3907 | git-tag: | |
3908 | git tag "v$(VERSION)" -m "systemd $(VERSION)" | |
3909 | ||
3910 | install-tree: all | |
3911 | rm -rf $(abs_srcdir)/install-tree | |
3912 | $(MAKE) install DESTDIR=$(abs_srcdir)/install-tree | |
3913 | tree $(abs_srcdir)/install-tree |