chiark / gitweb /
db846ad42634a933ebe02069bbf5934b01408b02
[elogind.git] / Makefile.am
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 #  Copyright 2013 David Strauss
9 #
10 #  systemd is free software; you can redistribute it and/or modify it
11 #  under the terms of the GNU Lesser General Public License as published by
12 #  the Free Software Foundation; either version 2.1 of the License, or
13 #  (at your option) any later version.
14 #
15 #  systemd is distributed in the hope that it will be useful, but
16 #  WITHOUT ANY WARRANTY; without even the implied warranty of
17 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 #  Lesser General Public License for more details.
19 #
20 #  You should have received a copy of the GNU Lesser General Public License
21 #  along with systemd; If not, see <http://www.gnu.org/licenses/>.
22
23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24 AM_MAKEFLAGS = --no-print-directory
25 AUTOMAKE_OPTIONS = color-tests parallel-tests
26
27 SUBDIRS = . po
28
29 # remove targets if the command fails
30 .DELETE_ON_ERROR:
31
32 # keep intermediate files
33 .SECONDARY:
34
35 # Keep the test-suite.log
36 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
37
38 LIBUDEV_CURRENT=6
39 LIBUDEV_REVISION=0
40 LIBUDEV_AGE=5
41
42 LIBGUDEV_CURRENT=2
43 LIBGUDEV_REVISION=0
44 LIBGUDEV_AGE=2
45
46 LIBSYSTEMD_CURRENT=3
47 LIBSYSTEMD_REVISION=1
48 LIBSYSTEMD_AGE=3
49
50 # The following four libraries only exist for compatibility reasons,
51 # their version info should not be bumped anymore
52 LIBSYSTEMD_LOGIN_CURRENT=9
53 LIBSYSTEMD_LOGIN_REVISION=3
54 LIBSYSTEMD_LOGIN_AGE=9
55
56 LIBSYSTEMD_DAEMON_CURRENT=0
57 LIBSYSTEMD_DAEMON_REVISION=12
58 LIBSYSTEMD_DAEMON_AGE=0
59
60 LIBSYSTEMD_ID128_CURRENT=0
61 LIBSYSTEMD_ID128_REVISION=28
62 LIBSYSTEMD_ID128_AGE=0
63
64 LIBSYSTEMD_JOURNAL_CURRENT=11
65 LIBSYSTEMD_JOURNAL_REVISION=5
66 LIBSYSTEMD_JOURNAL_AGE=11
67
68 # Dirs of external packages
69 dbuspolicydir=@dbuspolicydir@
70 dbussessionservicedir=@dbussessionservicedir@
71 dbussystemservicedir=@dbussystemservicedir@
72 pamlibdir=@pamlibdir@
73 pamconfdir=@pamconfdir@
74 pkgconfigdatadir=$(datadir)/pkgconfig
75 pkgconfiglibdir=$(libdir)/pkgconfig
76 polkitpolicydir=$(datadir)/polkit-1/actions
77 bashcompletiondir=@bashcompletiondir@
78 zshcompletiondir=@zshcompletiondir@
79 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
80 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
81 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
82 varlogdir=$(localstatedir)/log
83 systemdstatedir=$(localstatedir)/lib/systemd
84 catalogstatedir=$(systemdstatedir)/catalog
85
86 # Our own, non-special dirs
87 pkgsysconfdir=$(sysconfdir)/systemd
88 userunitdir=$(prefix)/lib/systemd/user
89 userpresetdir=$(prefix)/lib/systemd/user-preset
90 tmpfilesdir=$(prefix)/lib/tmpfiles.d
91 sysusersdir=$(prefix)/lib/sysusers.d
92 sysctldir=$(prefix)/lib/sysctl.d
93 binfmtdir=$(prefix)/lib/binfmt.d
94 modulesloaddir=$(prefix)/lib/modules-load.d
95 networkdir=$(rootprefix)/lib/systemd/network
96 pkgincludedir=$(includedir)/systemd
97 systemgeneratordir=$(rootlibexecdir)/system-generators
98 usergeneratordir=$(prefix)/lib/systemd/user-generators
99 systemshutdowndir=$(rootlibexecdir)/system-shutdown
100 systemsleepdir=$(rootlibexecdir)/system-sleep
101 systemunitdir=$(rootprefix)/lib/systemd/system
102 systempresetdir=$(rootprefix)/lib/systemd/system-preset
103 udevlibexecdir=$(rootprefix)/lib/udev
104 udevhomedir=$(udevlibexecdir)
105 udevrulesdir=$(udevlibexecdir)/rules.d
106 udevhwdbdir=$(udevlibexecdir)/hwdb.d
107 catalogdir=$(prefix)/lib/systemd/catalog
108 kernelinstalldir = $(prefix)/lib/kernel/install.d
109
110 # And these are the special ones for /
111 rootprefix=@rootprefix@
112 rootbindir=$(rootprefix)/bin
113 rootlibexecdir=$(rootprefix)/lib/systemd
114
115 CLEANFILES = $(BUILT_SOURCES)
116 DISTCLEANFILES =
117 EXTRA_DIST =
118 BUILT_SOURCES =
119 INSTALL_EXEC_HOOKS =
120 UNINSTALL_EXEC_HOOKS =
121 INSTALL_DATA_HOOKS =
122 UNINSTALL_DATA_HOOKS =
123 DISTCLEAN_LOCAL_HOOKS =
124 CLEAN_LOCAL_HOOKS =
125 pkginclude_HEADERS =
126 noinst_LTLIBRARIES =
127 lib_LTLIBRARIES =
128 include_HEADERS =
129 noinst_DATA =
130 pkgconfiglib_DATA =
131 polkitpolicy_in_in_files =
132 polkitpolicy_in_files =
133 polkitpolicy_files =
134 dist_udevrules_DATA =
135 nodist_udevrules_DATA =
136 dist_pkgsysconf_DATA =
137 nodist_pkgsysconf_DATA =
138 dist_pkgdata_DATA =
139 dist_dbuspolicy_DATA =
140 dist_dbussystemservice_DATA =
141 check_PROGRAMS =
142 check_DATA =
143 tests=
144 manual_tests =
145 if ENABLE_TESTS
146 noinst_PROGRAMS = $(manual_tests) $(tests)
147 TESTS = $(tests)
148 else
149 noinst_PROGRAMS =
150 TESTS =
151 endif
152 udevlibexec_PROGRAMS =
153
154 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
155         $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
156         $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
157
158 AM_CPPFLAGS = \
159         -include $(top_builddir)/config.h \
160         -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
161         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
162         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
163         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
164         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
165         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
166         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
167         -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
168         -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
169         -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
170         -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
171         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
172         -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
173         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
174         -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
175         -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
176         -DROOTPREFIX=\"$(rootprefix)\" \
177         -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
178         -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
179         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
180         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
181         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
182         -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
183         -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
184         -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
185         -DX_SERVER=\"$(bindir)/X\" \
186         -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
187         -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
188         -DQUOTACHECK=\"$(QUOTACHECK)\" \
189         -DKEXEC=\"$(KEXEC)\" \
190         -DLIBDIR=\"$(libdir)\" \
191         -DROOTLIBDIR=\"$(rootlibdir)\" \
192         -I $(top_srcdir)/src \
193         -I $(top_builddir)/src/shared \
194         -I $(top_srcdir)/src/shared \
195         -I $(top_srcdir)/src/network \
196         -I $(top_srcdir)/src/login \
197         -I $(top_srcdir)/src/journal \
198         -I $(top_srcdir)/src/timedate \
199         -I $(top_srcdir)/src/timesync \
200         -I $(top_srcdir)/src/resolve \
201         -I $(top_srcdir)/src/systemd \
202         -I $(top_builddir)/src/core \
203         -I $(top_srcdir)/src/core \
204         -I $(top_srcdir)/src/libudev \
205         -I $(top_srcdir)/src/udev \
206         -I $(top_srcdir)/src/udev/net \
207         -I $(top_builddir)/src/udev \
208         -I $(top_srcdir)/src/libsystemd/sd-bus \
209         -I $(top_srcdir)/src/libsystemd/sd-event \
210         -I $(top_srcdir)/src/libsystemd/sd-rtnl \
211         -I $(top_srcdir)/src/libsystemd-network \
212         -I $(top_srcdir)/src/libsystemd-terminal \
213         $(OUR_CPPFLAGS)
214
215 AM_CFLAGS = $(OUR_CFLAGS)
216 AM_LDFLAGS = $(OUR_LDFLAGS)
217
218 # ------------------------------------------------------------------------------
219 define move-to-rootlibdir
220         if test "$(libdir)" != "$(rootlibdir)"; then \
221                 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
222                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
223                 rm -f $(DESTDIR)$(libdir)/$$libname && \
224                 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
225                 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
226         fi
227 endef
228
229 INSTALL_DIRS =
230
231 RUNLEVEL1_TARGET_WANTS =
232 RUNLEVEL2_TARGET_WANTS =
233 RUNLEVEL3_TARGET_WANTS =
234 RUNLEVEL4_TARGET_WANTS =
235 RUNLEVEL5_TARGET_WANTS =
236 SHUTDOWN_TARGET_WANTS =
237 LOCAL_FS_TARGET_WANTS =
238 MULTI_USER_TARGET_WANTS =
239 SYSINIT_TARGET_WANTS =
240 SOCKETS_TARGET_WANTS =
241 BUSNAMES_TARGET_WANTS =
242 TIMERS_TARGET_WANTS =
243 USER_SOCKETS_TARGET_WANTS =
244 USER_BUSNAMES_TARGET_WANTS =
245
246 SYSTEM_UNIT_ALIASES =
247 USER_UNIT_ALIASES =
248 GENERAL_ALIASES =
249
250 install-target-wants-hook:
251         what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
252         what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
253         what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
254         what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
255         what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
256         what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
257         what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
258         what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
259         what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
260         what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
261         what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
262         what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
263         what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
264         what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
265         what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
266
267 define add-wants
268         [ -z "$$what" ] || ( \
269           dir=$(DESTDIR)$$dir/$$wants.wants && \
270           $(MKDIR_P) -m 0755 $$dir && \
271           cd $$dir && \
272           rm -f $$what && \
273           for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
274 endef
275
276 install-directories-hook:
277         $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
278
279 install-aliases-hook:
280         set -- $(SYSTEM_UNIT_ALIASES) && \
281                 dir=$(systemunitdir) && $(install-aliases)
282         set -- $(USER_UNIT_ALIASES) && \
283                 dir=$(userunitdir) && $(install-relative-aliases)
284         set -- $(GENERAL_ALIASES) && \
285                 dir= && $(install-relative-aliases)
286
287 define install-aliases
288         while [ -n "$$1" ]; do \
289                 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
290                 rm -f $(DESTDIR)$$dir/$$2 && \
291                 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
292                 shift 2 || exit $$?; \
293         done
294 endef
295
296 define install-relative-aliases
297         while [ -n "$$1" ]; do \
298                 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
299                 rm -f $(DESTDIR)$$dir/$$2 && \
300                 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
301                 shift 2 || exit $$?; \
302         done
303 endef
304
305 install-touch-usr-hook:
306         touch -c $(DESTDIR)/$(prefix)
307
308 INSTALL_EXEC_HOOKS += \
309         install-target-wants-hook \
310         install-directories-hook \
311         install-aliases-hook \
312         install-touch-usr-hook
313
314 # ------------------------------------------------------------------------------
315 AM_V_M4 = $(AM_V_M4_$(V))
316 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
317 AM_V_M4_0 = @echo "  M4      " $@;
318
319 AM_V_XSLT = $(AM_V_XSLT_$(V))
320 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
321 AM_V_XSLT_0 = @echo "  XSLT    " $@;
322
323 AM_V_GPERF = $(AM_V_GPERF_$(V))
324 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
325 AM_V_GPERF_0 = @echo "  GPERF   " $@;
326
327 AM_V_LN = $(AM_V_LN_$(V))
328 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
329 AM_V_LN_0 = @echo "  LN      " $@;
330
331 AM_V_RM = $(AM_V_RM_$(V))
332 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
333 AM_V_RM_0 = @echo "  RM      " $@;
334
335 # ------------------------------------------------------------------------------
336 rootbin_PROGRAMS = \
337         systemctl \
338         systemd-notify \
339         systemd-ask-password \
340         systemd-tty-ask-password-agent \
341         systemd-machine-id-setup \
342         systemd-escape
343
344 bin_PROGRAMS = \
345         systemd-cgls \
346         systemd-cgtop \
347         systemd-nspawn \
348         systemd-detect-virt \
349         systemd-delta \
350         systemd-analyze \
351         systemd-run \
352         systemd-path
353
354 dist_bin_SCRIPTS = \
355         src/kernel-install/kernel-install
356
357 dist_kernelinstall_SCRIPTS = \
358         src/kernel-install/50-depmod.install \
359         src/kernel-install/90-loaderentry.install
360
361 rootlibexec_PROGRAMS = \
362         systemd \
363         systemd-cgroups-agent \
364         systemd-initctl \
365         systemd-update-utmp \
366         systemd-shutdownd \
367         systemd-shutdown \
368         systemd-remount-fs \
369         systemd-reply-password \
370         systemd-fsck \
371         systemd-ac-power \
372         systemd-sysctl \
373         systemd-sleep \
374         systemd-bus-proxyd \
375         systemd-socket-proxyd \
376         systemd-update-done
377
378 systemgenerator_PROGRAMS = \
379         systemd-getty-generator \
380         systemd-fstab-generator \
381         systemd-system-update-generator \
382         systemd-debug-generator
383
384 dist_bashcompletion_DATA = \
385         shell-completion/bash/busctl \
386         shell-completion/bash/journalctl \
387         shell-completion/bash/systemd-analyze \
388         shell-completion/bash/systemd-cat \
389         shell-completion/bash/systemd-cgls \
390         shell-completion/bash/systemd-cgtop \
391         shell-completion/bash/systemd-delta \
392         shell-completion/bash/systemd-detect-virt \
393         shell-completion/bash/systemd-nspawn \
394         shell-completion/bash/systemd-run \
395         shell-completion/bash/udevadm \
396         shell-completion/bash/kernel-install
397
398 nodist_bashcompletion_DATA = \
399         shell-completion/bash/systemctl
400
401 dist_zshcompletion_DATA = \
402         shell-completion/zsh/_journalctl \
403         shell-completion/zsh/_udevadm \
404         shell-completion/zsh/_kernel-install \
405         shell-completion/zsh/_systemd-nspawn \
406         shell-completion/zsh/_systemd-analyze \
407         shell-completion/zsh/_systemd-run \
408         shell-completion/zsh/_sd_hosts_or_user_at_host \
409         shell-completion/zsh/_systemd-delta \
410         shell-completion/zsh/_systemd
411
412 nodist_zshcompletion_DATA = \
413         shell-completion/zsh/_systemctl
414
415 EXTRA_DIST += \
416         shell-completion/bash/systemctl.in \
417         shell-completion/zsh/_systemctl.in
418
419 CLEANFILES += \
420         $(nodist_bashcompletion_DATA) \
421         $(nodist_zshcompletion_DATA)
422
423 dist_sysctl_DATA = \
424         sysctl.d/50-default.conf
425
426 dist_systemunit_DATA = \
427         units/graphical.target \
428         units/multi-user.target \
429         units/emergency.target \
430         units/sysinit.target \
431         units/basic.target \
432         units/getty.target \
433         units/halt.target \
434         units/kexec.target \
435         units/local-fs.target \
436         units/local-fs-pre.target \
437         units/initrd.target \
438         units/initrd-fs.target \
439         units/initrd-root-fs.target \
440         units/remote-fs.target \
441         units/remote-fs-pre.target \
442         units/network.target \
443         units/network-pre.target \
444         units/network-online.target \
445         units/nss-lookup.target \
446         units/nss-user-lookup.target \
447         units/hibernate.target \
448         units/hybrid-sleep.target \
449         units/poweroff.target \
450         units/reboot.target \
451         units/rescue.target \
452         units/rpcbind.target \
453         units/time-sync.target \
454         units/shutdown.target \
455         units/final.target \
456         units/umount.target \
457         units/sigpwr.target \
458         units/sleep.target \
459         units/sockets.target \
460         units/busnames.target \
461         units/timers.target \
462         units/paths.target \
463         units/suspend.target \
464         units/swap.target \
465         units/slices.target \
466         units/system.slice \
467         units/x-.slice \
468         units/systemd-initctl.socket \
469         units/systemd-shutdownd.socket \
470         units/syslog.socket \
471         units/dev-hugepages.mount \
472         units/dev-mqueue.mount \
473         units/sys-kernel-config.mount \
474         units/sys-kernel-debug.mount \
475         units/sys-fs-fuse-connections.mount \
476         units/tmp.mount \
477         units/printer.target \
478         units/sound.target \
479         units/bluetooth.target \
480         units/smartcard.target \
481         units/systemd-ask-password-wall.path \
482         units/systemd-ask-password-console.path \
483         units/systemd-udevd-control.socket \
484         units/systemd-udevd-kernel.socket \
485         units/system-update.target \
486         units/initrd-switch-root.target \
487         units/ldconfig.service
488
489 nodist_systemunit_DATA = \
490         units/getty@.service \
491         units/serial-getty@.service \
492         units/console-shell.service \
493         units/console-getty.service \
494         units/container-getty@.service \
495         units/systemd-initctl.service \
496         units/systemd-shutdownd.service \
497         units/systemd-remount-fs.service \
498         units/systemd-update-utmp.service \
499         units/systemd-update-utmp-runlevel.service \
500         units/systemd-ask-password-wall.service \
501         units/systemd-ask-password-console.service \
502         units/systemd-sysctl.service \
503         units/emergency.service \
504         units/rescue.service \
505         units/user@.service \
506         units/systemd-hibernate.service \
507         units/systemd-hybrid-sleep.service \
508         units/systemd-suspend.service \
509         units/systemd-halt.service \
510         units/systemd-poweroff.service \
511         units/systemd-reboot.service \
512         units/systemd-kexec.service \
513         units/systemd-fsck@.service \
514         units/systemd-fsck-root.service \
515         units/systemd-udevd.service \
516         units/systemd-udev-trigger.service \
517         units/systemd-udev-settle.service \
518         units/systemd-udev-hwdb-update.service \
519         units/debug-shell.service \
520         units/initrd-parse-etc.service \
521         units/initrd-cleanup.service \
522         units/initrd-udevadm-cleanup-db.service \
523         units/initrd-switch-root.service \
524         units/systemd-nspawn@.service \
525         units/systemd-update-done.service
526
527 dist_userunit_DATA = \
528         units/user/basic.target \
529         units/user/default.target \
530         units/user/exit.target
531
532 nodist_userunit_DATA = \
533         units/user/systemd-exit.service
534
535 dist_systempreset_DATA = \
536         system-preset/90-systemd.preset
537
538 EXTRA_DIST += \
539         units/getty@.service.m4 \
540         units/serial-getty@.service.m4 \
541         units/console-shell.service.m4.in \
542         units/console-getty.service.m4.in \
543         units/container-getty@.service.m4.in \
544         units/rescue.service.m4.in \
545         units/systemd-initctl.service.in \
546         units/systemd-shutdownd.service.in \
547         units/systemd-remount-fs.service.in \
548         units/systemd-update-utmp.service.in \
549         units/systemd-update-utmp-runlevel.service.in \
550         units/systemd-ask-password-wall.service.in \
551         units/systemd-ask-password-console.service.in \
552         units/systemd-sysctl.service.in \
553         units/emergency.service.in \
554         units/systemd-halt.service.in \
555         units/systemd-poweroff.service.in \
556         units/systemd-reboot.service.in \
557         units/systemd-kexec.service.in \
558         units/user/systemd-exit.service.in \
559         units/systemd-fsck@.service.in \
560         units/systemd-fsck-root.service.in \
561         units/user@.service.in \
562         units/debug-shell.service.in \
563         units/systemd-hibernate.service.in \
564         units/systemd-hybrid-sleep.service.in \
565         units/systemd-suspend.service.in \
566         units/quotaon.service.in \
567         units/initrd-parse-etc.service.in \
568         units/initrd-cleanup.service.in \
569         units/initrd-udevadm-cleanup-db.service.in \
570         units/initrd-switch-root.service.in \
571         units/systemd-nspawn@.service.in \
572         units/systemd-update-done.service.in
573
574 CLEANFILES += \
575         units/console-shell.service.m4 \
576         units/console-getty.service.m4 \
577         units/container-getty@.service.m4 \
578         units/rescue.service.m4 \
579         units/user@.service.m4
580
581 if HAVE_SYSV_COMPAT
582 nodist_systemunit_DATA += \
583         units/rc-local.service \
584         units/halt-local.service
585
586 systemgenerator_PROGRAMS += \
587         systemd-sysv-generator \
588         systemd-rc-local-generator
589 endif
590
591 EXTRA_DIST += \
592         units/rc-local.service.in \
593         units/halt-local.service.in
594
595 # automake is broken and can't handle files with a dash in front
596 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
597 units-install-hook:
598         mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
599
600 units-uninstall-hook:
601         rm -f $(DESTDIR)/$(systemunitdir)/-.slice
602
603 INSTALL_DATA_HOOKS += units-install-hook
604 UNINSTALL_DATA_HOOKS += units-uninstall-hook
605
606 dist_doc_DATA = \
607         README \
608         NEWS \
609         LICENSE.LGPL2.1 \
610         LICENSE.GPL2 \
611         LICENSE.MIT \
612         DISTRO_PORTING \
613         src/libsystemd/sd-bus/PORTING-DBUS1 \
614         src/libsystemd/sd-bus/DIFFERENCES \
615         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
616
617 @INTLTOOL_POLICY_RULE@
618
619 # ------------------------------------------------------------------------------
620
621 MANPAGES =
622 MANPAGES_ALIAS =
623
624 include Makefile-man.am
625
626 .PHONY: man update-man-list
627 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
628
629 XML_FILES = \
630         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
631 HTML_FILES = \
632         ${XML_FILES:.xml=.html}
633 HTML_ALIAS = \
634         ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
635
636 if ENABLE_MANPAGES
637 man_MANS = \
638         $(MANPAGES) \
639         $(MANPAGES_ALIAS)
640
641 noinst_DATA += \
642         $(HTML_FILES) \
643         $(HTML_ALIAS)
644
645 CLEANFILES += \
646         $(man_MANS) \
647         $(HTML_FILES) \
648         $(HTML_ALIAS)
649
650 docs/html/man:
651         $(AM_V_at)$(MKDIR_P) $(dir $@)
652         $(AM_V_LN)$(LN_S) -f ../../man $@
653
654 noinst_DATA += \
655         docs/html/man
656
657 CLEANFILES += \
658         docs/html/man
659
660 if HAVE_PYTHON
661 man/index.html: man/systemd.index.html
662         $(AM_V_LN)$(LN_S) -f systemd.index.html $@
663
664 noinst_DATA += \
665         man/index.html
666
667 CLEANFILES += \
668         man/index.html
669
670 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
671 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
672 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
673
674 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
675         $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
676         $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
677         @echo "Makefile-man.am has been regenerated"
678
679 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
680         $(AM_V_at)$(MKDIR_P) $(dir $@)
681         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
682
683 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
684         $(AM_V_at)$(MKDIR_P) $(dir $@)
685         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
686
687 EXTRA_DIST += \
688         man/systemd.index.xml \
689         man/index.html \
690         man/systemd.directives.xml
691
692 CLEANFILES += \
693         man/systemd.index.xml \
694         man/systemd.directives.xml
695
696 endif
697
698 endif
699
700 EXTRA_DIST += \
701         $(XML_FILES) \
702         $(HTML_FILES) \
703         $(HTML_ALIAS) \
704         $(man_MANS) \
705         tools/make-man-index.py \
706         tools/make-directive-index.py \
707         tools/make-man-rules.py \
708         tools/xml_helper.py
709
710 # ------------------------------------------------------------------------------
711 noinst_LTLIBRARIES += \
712         libsystemd-shared.la
713
714 libsystemd_shared_la_SOURCES = \
715         src/shared/linux/auto_dev-ioctl.h \
716         src/shared/linux/fanotify.h \
717         src/shared/ioprio.h \
718         src/shared/missing.h \
719         src/shared/initreq.h \
720         src/shared/securebits.h \
721         src/shared/special.h \
722         src/shared/list.h \
723         src/shared/macro.h \
724         src/shared/def.h \
725         src/shared/sparse-endian.h \
726         src/shared/refcnt.h \
727         src/shared/udev-util.h \
728         src/shared/bus-errors.h \
729         src/shared/device-nodes.c \
730         src/shared/device-nodes.h \
731         src/shared/util.c \
732         src/shared/util.h \
733         src/shared/virt.c \
734         src/shared/virt.h \
735         src/shared/architecture.c \
736         src/shared/architecture.h \
737         src/shared/efivars.c \
738         src/shared/efivars.h \
739         src/shared/path-util.c \
740         src/shared/path-util.h \
741         src/shared/time-util.c \
742         src/shared/time-util.h \
743         src/shared/locale-util.c \
744         src/shared/locale-util.h \
745         src/shared/hashmap.c \
746         src/shared/hashmap.h \
747         src/shared/siphash24.c \
748         src/shared/siphash24.h \
749         src/shared/set.c \
750         src/shared/set.h \
751         src/shared/fdset.c \
752         src/shared/fdset.h \
753         src/shared/prioq.c \
754         src/shared/prioq.h \
755         src/shared/sleep-config.c \
756         src/shared/sleep-config.h \
757         src/shared/strv.c \
758         src/shared/strv.h \
759         src/shared/env-util.c \
760         src/shared/env-util.h \
761         src/shared/strbuf.c \
762         src/shared/strbuf.h \
763         src/shared/strxcpyx.c \
764         src/shared/strxcpyx.h \
765         src/shared/conf-parser.c \
766         src/shared/conf-parser.h \
767         src/shared/log.c \
768         src/shared/log.h \
769         src/shared/ratelimit.h \
770         src/shared/ratelimit.c \
771         src/shared/exit-status.c \
772         src/shared/exit-status.h \
773         src/shared/utf8.c \
774         src/shared/utf8.h \
775         src/shared/gunicode.c \
776         src/shared/gunicode.h \
777         src/shared/pager.c \
778         src/shared/pager.h \
779         src/shared/socket-util.c \
780         src/shared/socket-util.h \
781         src/shared/in-addr-util.c \
782         src/shared/in-addr-util.h \
783         src/shared/conf-files.c \
784         src/shared/conf-files.h \
785         src/shared/cgroup-util.c \
786         src/shared/cgroup-util.h \
787         src/shared/cgroup-show.c \
788         src/shared/cgroup-show.h \
789         src/shared/unit-name.c \
790         src/shared/unit-name.h \
791         src/shared/utmp-wtmp.c \
792         src/shared/utmp-wtmp.h \
793         src/shared/watchdog.c \
794         src/shared/watchdog.h \
795         src/shared/spawn-ask-password-agent.c \
796         src/shared/spawn-ask-password-agent.h \
797         src/shared/replace-var.c \
798         src/shared/replace-var.h \
799         src/shared/spawn-polkit-agent.c \
800         src/shared/spawn-polkit-agent.h \
801         src/shared/clock-util.c \
802         src/shared/clock-util.h \
803         src/shared/time-dst.c \
804         src/shared/time-dst.h \
805         src/shared/calendarspec.c \
806         src/shared/calendarspec.h \
807         src/shared/fileio.c \
808         src/shared/fileio.h \
809         src/shared/output-mode.h \
810         src/shared/MurmurHash2.c \
811         src/shared/MurmurHash2.h \
812         src/shared/acpi-fpdt.h \
813         src/shared/acpi-fpdt.c \
814         src/shared/boot-timestamps.h \
815         src/shared/boot-timestamps.c \
816         src/shared/mkdir.c \
817         src/shared/mkdir.h \
818         src/shared/smack-util.c \
819         src/shared/smack-util.h \
820         src/shared/apparmor-util.c \
821         src/shared/apparmor-util.h \
822         src/shared/ima-util.c \
823         src/shared/ima-util.h \
824         src/shared/ptyfwd.c \
825         src/shared/ptyfwd.h \
826         src/shared/errno-list.c \
827         src/shared/errno-list.h \
828         src/shared/af-list.c \
829         src/shared/af-list.h \
830         src/shared/audit.c \
831         src/shared/audit.h \
832         src/shared/xml.c \
833         src/shared/xml.h \
834         src/shared/condition-util.c \
835         src/shared/condition-util.h \
836         src/shared/bus-label.c \
837         src/shared/bus-label.h \
838         src/shared/gpt.h \
839         src/shared/clean-ipc.h \
840         src/shared/clean-ipc.c \
841         src/shared/login-shared.c \
842         src/shared/login-shared.h \
843         src/shared/ring.c \
844         src/shared/ring.h \
845         src/shared/barrier.c \
846         src/shared/barrier.h \
847         src/shared/pty.c \
848         src/shared/pty.h \
849         src/shared/async.c \
850         src/shared/async.h \
851         src/shared/copy.c \
852         src/shared/copy.h \
853         src/shared/base-filesystem.c \
854         src/shared/base-filesystem.h \
855         src/shared/nss-util.h
856
857 nodist_libsystemd_shared_la_SOURCES = \
858         src/shared/errno-from-name.h \
859         src/shared/errno-to-name.h \
860         src/shared/af-from-name.h \
861         src/shared/af-to-name.h
862
863 libsystemd_shared_la_CFLAGS = \
864         $(AM_CFLAGS) \
865         $(SECCOMP_CFLAGS) \
866         -pthread
867
868 # ------------------------------------------------------------------------------
869 noinst_LTLIBRARIES += \
870         libsystemd-units.la
871
872 libsystemd_units_la_SOURCES = \
873         src/shared/install.c \
874         src/shared/install.h \
875         src/shared/install-printf.c \
876         src/shared/install-printf.h \
877         src/shared/path-lookup.c \
878         src/shared/path-lookup.h \
879         src/shared/specifier.c \
880         src/shared/specifier.h
881
882 # ------------------------------------------------------------------------------
883 noinst_LTLIBRARIES += \
884         libsystemd-label.la
885
886 libsystemd_label_la_SOURCES = \
887         src/shared/socket-label.c \
888         src/shared/label.c \
889         src/shared/label.h \
890         src/shared/selinux-util.c \
891         src/shared/selinux-util.h \
892         src/shared/mkdir-label.c \
893         src/shared/ask-password-api.c \
894         src/shared/ask-password-api.h \
895         src/shared/fileio-label.c \
896         src/shared/fileio-label.h \
897         src/shared/dev-setup.c \
898         src/shared/dev-setup.h \
899         src/shared/dropin.c \
900         src/shared/dropin.h \
901         src/shared/generator.h \
902         src/shared/generator.c
903
904 libsystemd_label_la_CFLAGS = \
905         $(AM_CFLAGS) \
906         $(SELINUX_CFLAGS)
907
908 libsystemd_label_la_LIBADD = \
909         $(SELINUX_LIBS)
910
911 # ------------------------------------------------------------------------------
912
913 if HAVE_SECCOMP
914 noinst_LTLIBRARIES += \
915         libsystemd-seccomp.la
916
917 libsystemd_seccomp_la_SOURCES = \
918         src/shared/seccomp-util.h \
919         src/shared/seccomp-util.c
920
921 libsystemd_seccomp_la_CFLAGS = \
922         $(AM_CFLAGS) \
923         $(SECCOMP_CFLAGS)
924
925 libsystemd_seccomp_la_LIBADD = \
926         $(SECCOMP_LIBS)
927 endif
928
929 # ------------------------------------------------------------------------------
930 noinst_LTLIBRARIES += \
931         libsystemd-logs.la
932
933 libsystemd_logs_la_SOURCES = \
934         src/shared/logs-show.c \
935         src/shared/logs-show.h
936
937 # ------------------------------------------------------------------------------
938 noinst_LTLIBRARIES += \
939         libsystemd-capability.la
940
941 libsystemd_capability_la_SOURCES = \
942         src/shared/capability.c \
943         src/shared/capability.h
944
945 libsystemd_capability_la_CFLAGS = \
946         $(AM_CFLAGS) \
947         $(CAP_CFLAGS)
948
949 libsystemd_capability_la_LIBADD = \
950         $(CAP_LIBS)
951
952 # ------------------------------------------------------------------------------
953 if HAVE_ACL
954 noinst_LTLIBRARIES += \
955         libsystemd-acl.la
956
957 libsystemd_acl_la_SOURCES = \
958         src/shared/acl-util.c \
959         src/shared/acl-util.h
960
961 libsystemd_acl_la_CFLAGS = \
962         $(AM_CFLAGS) \
963         $(ACL_CFLAGS)
964
965 libsystemd_acl_la_LIBADD = \
966         $(ACL_LIBS)
967 endif
968
969 # ------------------------------------------------------------------------------
970 noinst_LTLIBRARIES += \
971         libsystemd-core.la
972
973 libsystemd_core_la_SOURCES = \
974         src/core/unit.c \
975         src/core/unit.h \
976         src/core/unit-printf.c \
977         src/core/unit-printf.h \
978         src/core/job.c \
979         src/core/job.h \
980         src/core/manager.c \
981         src/core/manager.h \
982         src/core/transaction.c \
983         src/core/transaction.h \
984         src/core/load-fragment.c \
985         src/core/load-fragment.h \
986         src/core/service.c \
987         src/core/service.h \
988         src/core/socket.c \
989         src/core/socket.h \
990         src/core/busname.c \
991         src/core/busname.h \
992         src/core/target.c \
993         src/core/target.h \
994         src/core/snapshot.c \
995         src/core/snapshot.h \
996         src/core/device.c \
997         src/core/device.h \
998         src/core/mount.c \
999         src/core/mount.h \
1000         src/core/automount.c \
1001         src/core/automount.h \
1002         src/core/swap.c \
1003         src/core/swap.h \
1004         src/core/timer.c \
1005         src/core/timer.h \
1006         src/core/path.c \
1007         src/core/path.h \
1008         src/core/slice.c \
1009         src/core/slice.h \
1010         src/core/scope.c \
1011         src/core/scope.h \
1012         src/core/load-dropin.c \
1013         src/core/load-dropin.h \
1014         src/core/execute.c \
1015         src/core/execute.h \
1016         src/core/kill.c \
1017         src/core/kill.h \
1018         src/core/dbus.c \
1019         src/core/dbus.h \
1020         src/core/dbus-manager.c \
1021         src/core/dbus-manager.h \
1022         src/core/dbus-unit.c \
1023         src/core/dbus-unit.h \
1024         src/core/dbus-job.c \
1025         src/core/dbus-job.h \
1026         src/core/dbus-service.c \
1027         src/core/dbus-service.h \
1028         src/core/dbus-socket.c \
1029         src/core/dbus-socket.h \
1030         src/core/dbus-busname.c \
1031         src/core/dbus-busname.h \
1032         src/core/dbus-target.c \
1033         src/core/dbus-target.h \
1034         src/core/dbus-snapshot.c \
1035         src/core/dbus-snapshot.h \
1036         src/core/dbus-device.c \
1037         src/core/dbus-device.h \
1038         src/core/dbus-mount.c \
1039         src/core/dbus-mount.h \
1040         src/core/dbus-automount.c \
1041         src/core/dbus-automount.h \
1042         src/core/dbus-swap.c \
1043         src/core/dbus-swap.h \
1044         src/core/dbus-timer.c \
1045         src/core/dbus-timer.h \
1046         src/core/dbus-path.c \
1047         src/core/dbus-path.h \
1048         src/core/dbus-slice.c \
1049         src/core/dbus-slice.h \
1050         src/core/dbus-scope.c \
1051         src/core/dbus-scope.h \
1052         src/core/dbus-execute.c \
1053         src/core/dbus-execute.h \
1054         src/core/dbus-kill.c \
1055         src/core/dbus-kill.h \
1056         src/core/dbus-cgroup.c \
1057         src/core/dbus-cgroup.h \
1058         src/core/cgroup.c \
1059         src/core/cgroup.h \
1060         src/core/selinux-access.c \
1061         src/core/selinux-access.h \
1062         src/core/selinux-setup.c \
1063         src/core/selinux-setup.h \
1064         src/core/smack-setup.c \
1065         src/core/smack-setup.h \
1066         src/core/ima-setup.c \
1067         src/core/ima-setup.h \
1068         src/core/locale-setup.h \
1069         src/core/locale-setup.c \
1070         src/core/hostname-setup.c \
1071         src/core/hostname-setup.h \
1072         src/core/machine-id-setup.c \
1073         src/core/machine-id-setup.h \
1074         src/core/mount-setup.c \
1075         src/core/mount-setup.h \
1076         src/core/loopback-setup.h \
1077         src/core/loopback-setup.c \
1078         src/core/condition.c \
1079         src/core/condition.h \
1080         src/core/namespace.c \
1081         src/core/namespace.h \
1082         src/core/build.h \
1083         src/core/sysfs-show.h \
1084         src/core/switch-root.h \
1085         src/core/switch-root.c \
1086         src/core/killall.h \
1087         src/core/killall.c \
1088         src/core/audit-fd.c \
1089         src/core/audit-fd.h \
1090         src/core/show-status.c \
1091         src/core/show-status.h
1092
1093 if HAVE_KMOD
1094 libsystemd_core_la_SOURCES += \
1095         src/core/kmod-setup.c \
1096         src/core/kmod-setup.h
1097 endif
1098
1099 nodist_libsystemd_core_la_SOURCES = \
1100         src/core/load-fragment-gperf.c \
1101         src/core/load-fragment-gperf-nulstr.c
1102
1103 libsystemd_core_la_CFLAGS = \
1104         $(AM_CFLAGS) \
1105         $(PAM_CFLAGS) \
1106         $(AUDIT_CFLAGS) \
1107         $(CAP_CFLAGS) \
1108         $(KMOD_CFLAGS) \
1109         $(APPARMOR_CFLAGS) \
1110         $(SECCOMP_CFLAGS) \
1111         -pthread
1112
1113 libsystemd_core_la_LIBADD = \
1114         libsystemd-capability.la \
1115         libsystemd-units.la \
1116         libsystemd-label.la \
1117         libudev-internal.la \
1118         libsystemd-shared.la \
1119         libsystemd-internal.la \
1120         $(PAM_LIBS) \
1121         $(AUDIT_LIBS) \
1122         $(CAP_LIBS) \
1123         $(KMOD_LIBS) \
1124         $(APPARMOR_LIBS) \
1125         $(SECCOMP_LIBS)
1126
1127 if HAVE_SECCOMP
1128 libsystemd_core_la_LIBADD += \
1129         libsystemd-seccomp.la
1130 endif
1131
1132 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1133         $(AM_V_at)$(MKDIR_P) $(dir $@)
1134         $(AM_V_GEN)$(AWK) 'BEGIN{ keywords=0 ; FS="," ; print "extern const char load_fragment_gperf_nulstr[];" ; print "const char load_fragment_gperf_nulstr[] ="} ; keyword==1 { print "\"" $$1 "\\0\"" } ; /%%/ { keyword=1} ; END { print ";" }' < $< > $@
1135
1136 EXTRA_DIST += \
1137         src/core/load-fragment-gperf.gperf.m4
1138
1139 CLEANFILES += \
1140         src/core/load-fragment-gperf.gperf \
1141         src/core/load-fragment-gperf.c \
1142         src/core/load-fragment-gperf-nulstr.c \
1143         src/shared/errno-list.txt \
1144         src/shared/errno-from-name.gperf \
1145         src/shared/af-list.txt \
1146         src/shared/af-from-name.gperf
1147
1148 BUILT_SOURCES += \
1149         src/shared/errno-from-name.h \
1150         src/shared/errno-to-name.h \
1151         src/shared/af-from-name.h \
1152         src/shared/af-to-name.h
1153
1154 src/shared/errno-list.txt:
1155         $(AM_V_at)$(MKDIR_P) $(dir $@)
1156         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }'  > $@
1157
1158 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1159         $(AM_V_at)$(MKDIR_P) $(dir $@)
1160         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1161
1162 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1163         $(AM_V_at)$(MKDIR_P) $(dir $@)
1164         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1165
1166 src/shared/errno-to-name.h: src/shared/errno-list.txt
1167         $(AM_V_at)$(MKDIR_P) $(dir $@)
1168         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1169
1170 src/shared/af-list.txt:
1171         $(AM_V_at)$(MKDIR_P) $(dir $@)
1172         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include sys/socket.h - < /dev/null | grep -v AF_UNSPEC | grep -v AF_MAX | $(AWK) '/^#define[ \t]+AF_[^ \t]+[ \t]+PF_[^ \t]/ { print $$2; }'  > $@
1173
1174 src/shared/af-from-name.gperf: src/shared/af-list.txt
1175         $(AM_V_at)$(MKDIR_P) $(dir $@)
1176         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1177
1178 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1179         $(AM_V_at)$(MKDIR_P) $(dir $@)
1180         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1181
1182 src/shared/af-to-name.h: src/shared/af-list.txt
1183         $(AM_V_at)$(MKDIR_P) $(dir $@)
1184         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const af_names[] = { "} !/AF_FILE/ && !/AF_ROUTE/ && !/AF_LOCAL/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1185
1186 # ------------------------------------------------------------------------------
1187 systemd_SOURCES = \
1188         src/core/main.c
1189
1190 systemd_CFLAGS = \
1191         $(AM_CFLAGS) \
1192         $(SECCOMP_CFLAGS)
1193
1194 systemd_LDADD = \
1195         libsystemd-core.la \
1196         $(RT_LIBS)
1197
1198 dist_pkgsysconf_DATA += \
1199         src/core/system.conf \
1200         src/core/user.conf
1201
1202 dist_dbuspolicy_DATA += \
1203         src/core/org.freedesktop.systemd1.conf
1204
1205 dist_dbussystemservice_DATA += \
1206         src/core/org.freedesktop.systemd1.service
1207
1208 polkitpolicy_in_in_files += \
1209         src/core/org.freedesktop.systemd1.policy.in.in
1210
1211 pkgconfigdata_DATA = \
1212         src/core/systemd.pc
1213
1214 nodist_rpmmacros_DATA = \
1215         src/core/macros.systemd
1216
1217 EXTRA_DIST += \
1218         src/core/systemd.pc.in \
1219         src/core/macros.systemd.in
1220
1221 CLEANFILES += \
1222         src/core/macros.systemd \
1223         src/core/org.freedesktop.systemd1.policy.in
1224
1225 # ------------------------------------------------------------------------------
1226 manual_tests += \
1227         test-engine \
1228         test-ns \
1229         test-loopback \
1230         test-hostname \
1231         test-daemon \
1232         test-cgroup \
1233         test-cgroup-mask \
1234         test-install \
1235         test-watchdog \
1236         test-log \
1237         test-ipcrm
1238
1239 if HAVE_KMOD
1240 manual_tests += \
1241         test-rtnl-manual
1242 endif
1243
1244 tests += \
1245         test-job-type \
1246         test-env-replace \
1247         test-strbuf \
1248         test-strv \
1249         test-path-util \
1250         test-strxcpyx \
1251         test-unit-name \
1252         test-unit-file \
1253         test-utf8 \
1254         test-ellipsize \
1255         test-util \
1256         test-ring \
1257         test-barrier \
1258         test-pty \
1259         test-tmpfiles \
1260         test-namespace \
1261         test-date \
1262         test-sleep \
1263         test-replace-var \
1264         test-sched-prio \
1265         test-calendarspec \
1266         test-strip-tab-ansi \
1267         test-cgroup-util \
1268         test-prioq \
1269         test-fileio \
1270         test-time \
1271         test-hashmap \
1272         test-list \
1273         test-tables \
1274         test-device-nodes \
1275         test-xml \
1276         test-architecture \
1277         test-socket-util \
1278         test-fdset \
1279         test-conf-files \
1280         test-capability \
1281         test-async \
1282         test-ratelimit
1283
1284 EXTRA_DIST += \
1285         test/sched_idle_bad.service \
1286         test/sched_idle_ok.service \
1287         test/sched_rr_bad.service \
1288         test/sched_rr_ok.service \
1289         test/sched_rr_change.service \
1290         test/son.service \
1291         test/daughter.service \
1292         test/parent.slice
1293
1294 EXTRA_DIST += \
1295         src/test/test-helper.h
1296
1297 test_device_nodes_SOURCES = \
1298         src/test/test-device-nodes.c
1299
1300 test_device_nodes_LDADD = \
1301         libsystemd-shared.la
1302
1303 test_engine_SOURCES = \
1304         src/test/test-engine.c
1305
1306 test_engine_CFLAGS = \
1307         $(AM_CFLAGS) \
1308         $(SECCOMP_CFLAGS)
1309
1310 test_engine_LDADD = \
1311         libsystemd-core.la \
1312         $(RT_LIBS)
1313
1314 test_job_type_SOURCES = \
1315         src/test/test-job-type.c
1316
1317 test_job_type_CFLAGS = \
1318         $(AM_CFLAGS) \
1319         $(SECCOMP_CFLAGS)
1320
1321 test_job_type_LDADD = \
1322         libsystemd-core.la \
1323         $(RT_LIBS)
1324
1325 test_ns_SOURCES = \
1326         src/test/test-ns.c
1327
1328 test_ns_CFLAGS = \
1329         $(AM_CFLAGS) \
1330         $(SECCOMP_CFLAGS)
1331
1332 test_ns_LDADD = \
1333         libsystemd-core.la
1334
1335 test_loopback_SOURCES = \
1336         src/test/test-loopback.c
1337
1338 test_loopback_LDADD = \
1339         libsystemd-core.la
1340
1341 test_hostname_SOURCES = \
1342         src/test/test-hostname.c
1343
1344 test_hostname_LDADD = \
1345         libsystemd-core.la
1346
1347 if ENABLE_EFI
1348 manual_tests += \
1349         test-boot-timestamp
1350
1351 test_boot_timestamp_SOURCES = \
1352         src/test/test-boot-timestamps.c
1353
1354 test_boot_timestamp_LDADD = \
1355         libsystemd-shared.la
1356 endif
1357
1358 test_unit_name_SOURCES = \
1359         src/test/test-unit-name.c
1360
1361 test_unit_name_CFLAGS = \
1362         $(AM_CFLAGS) \
1363         $(SECCOMP_CFLAGS)
1364
1365 test_unit_name_LDADD = \
1366         libsystemd-core.la \
1367         $(RT_LIBS)
1368
1369 test_unit_file_SOURCES = \
1370         src/test/test-unit-file.c
1371
1372 test_unit_file_CFLAGS = \
1373         $(AM_CFLAGS) \
1374         $(SECCOMP_CFLAGS)
1375
1376 test_unit_file_LDADD = \
1377         libsystemd-core.la \
1378         $(RT_LIBS)
1379
1380 test_utf8_SOURCES = \
1381         src/test/test-utf8.c
1382
1383 test_utf8_LDADD = \
1384         libsystemd-shared.la
1385
1386 test_capability_SOURCES = \
1387         src/test/test-capability.c
1388
1389 test_capability_LDADD = \
1390         libsystemd-shared.la \
1391         libsystemd-capability.la
1392
1393 test_async_SOURCES = \
1394         src/test/test-async.c
1395
1396 test_async_LDADD = \
1397         libsystemd-shared.la
1398
1399 test_fdset_SOURCES = \
1400         src/test/test-fdset.c
1401
1402 test_fdset_LDADD = \
1403         libsystemd-core.la
1404
1405 test_ratelimit_SOURCES = \
1406         src/test/test-ratelimit.c
1407
1408 test_ratelimit_LDADD = \
1409         libsystemd-shared.la
1410
1411 test_util_SOURCES = \
1412         src/test/test-util.c
1413
1414 test_util_LDADD = \
1415         libsystemd-core.la
1416
1417 test_socket_util_SOURCES = \
1418         src/test/test-socket-util.c
1419
1420 test_socket_util_LDADD = \
1421         libsystemd-core.la
1422
1423 test_ring_SOURCES = \
1424         src/test/test-ring.c
1425
1426 test_ring_LDADD = \
1427         libsystemd-core.la
1428
1429 test_barrier_SOURCES = \
1430         src/test/test-barrier.c
1431
1432 test_barrier_LDADD = \
1433         libsystemd-core.la
1434
1435 test_pty_SOURCES = \
1436         src/test/test-pty.c
1437
1438 test_pty_LDADD = \
1439         libsystemd-core.la
1440
1441 test_tmpfiles_SOURCES = \
1442         src/test/test-tmpfiles.c
1443
1444 test_tmpfiles_LDADD = \
1445         libsystemd-shared.la
1446
1447 test_namespace_SOURCES = \
1448         src/test/test-namespace.c
1449
1450 test_namespace_LDADD = \
1451         libsystemd-core.la
1452
1453 test_hashmap_SOURCES = \
1454         src/test/test-hashmap.c
1455
1456 test_hashmap_LDADD = \
1457         libsystemd-core.la
1458
1459 test_xml_SOURCES = \
1460         src/test/test-xml.c
1461
1462 test_xml_LDADD = \
1463         libsystemd-shared.la
1464
1465 test_list_SOURCES = \
1466         src/test/test-list.c
1467
1468 test_list_LDADD = \
1469         libsystemd-core.la
1470
1471 test_tables_SOURCES = \
1472         src/test/test-tables.c \
1473         src/shared/test-tables.h \
1474         src/bus-proxyd/bus-policy.c \
1475         src/bus-proxyd/bus-policy.h \
1476         src/journal/journald-server.c \
1477         src/journal/journald-server.h
1478
1479 test_tables_CPPFLAGS = \
1480         $(AM_CPPFLAGS) \
1481         -I$(top_srcdir)/src/bus-proxyd
1482
1483 test_tables_CFLAGS = \
1484         $(AM_CFLAGS) \
1485         $(SECCOMP_CFLAGS)
1486
1487 test_tables_LDADD = \
1488         libsystemd-logs.la \
1489         libsystemd-journal-internal.la \
1490         libsystemd-core.la \
1491         libudev-core.la \
1492         $(RT_LIBS)
1493
1494 test_prioq_SOURCES = \
1495         src/test/test-prioq.c
1496
1497 test_prioq_LDADD = \
1498         libsystemd-core.la
1499
1500 test_fileio_SOURCES = \
1501         src/test/test-fileio.c
1502
1503 test_fileio_LDADD = \
1504         libsystemd-core.la
1505
1506 test_time_SOURCES = \
1507         src/test/test-time.c
1508
1509 test_time_LDADD = \
1510         libsystemd-core.la
1511
1512 test_architecture_SOURCES = \
1513         src/test/test-architecture.c
1514
1515 test_architecture_LDADD = \
1516         libsystemd-shared.la
1517
1518 test_log_SOURCES = \
1519         src/test/test-log.c
1520
1521 test_log_LDADD = \
1522         libsystemd-core.la
1523
1524 test_ipcrm_SOURCES = \
1525         src/test/test-ipcrm.c
1526
1527 test_ipcrm_LDADD = \
1528         libsystemd-shared.la \
1529         -lrt
1530
1531 test_rtnl_manual_SOURCES = \
1532         src/test/test-rtnl-manual.c
1533
1534 test_rtnl_manual_CFLAGS = \
1535         $(AM_CFLAGS) \
1536         $(KMOD_CFLAGS)
1537
1538 test_rtnl_manual_LDADD = \
1539         libsystemd-internal.la \
1540         libsystemd-shared.la \
1541         $(KMOD_LIBS)
1542
1543 test_ellipsize_SOURCES = \
1544         src/test/test-ellipsize.c
1545
1546 test_ellipsize_LDADD = \
1547         libsystemd-core.la
1548
1549 test_date_SOURCES = \
1550         src/test/test-date.c
1551
1552 test_date_LDADD = \
1553         libsystemd-core.la
1554
1555 test_sleep_SOURCES = \
1556         src/test/test-sleep.c
1557
1558 test_sleep_LDADD = \
1559         libsystemd-core.la
1560
1561 test_replace_var_SOURCES = \
1562         src/test/test-replace-var.c
1563
1564 test_replace_var_LDADD = \
1565         libsystemd-shared.la
1566
1567 test_calendarspec_SOURCES = \
1568         src/test/test-calendarspec.c
1569
1570 test_calendarspec_LDADD = \
1571         libsystemd-shared.la
1572
1573 test_strip_tab_ansi_SOURCES = \
1574         src/test/test-strip-tab-ansi.c
1575
1576 test_strip_tab_ansi_LDADD = \
1577         libsystemd-shared.la
1578
1579 test_daemon_SOURCES = \
1580         src/test/test-daemon.c
1581
1582 test_daemon_LDADD = \
1583         libsystemd-internal.la \
1584         libsystemd-shared.la
1585
1586 test_cgroup_SOURCES = \
1587         src/test/test-cgroup.c
1588
1589 test_cgroup_LDADD = \
1590         libsystemd-label.la \
1591         libsystemd-shared.la \
1592         libsystemd-internal.la
1593
1594 test_cgroup_mask_SOURCES = \
1595         src/test/test-cgroup-mask.c
1596
1597 test_cgroup_mask_CPPFLAGS = \
1598         $(AM_CPPFLAGS) \
1599         -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1600
1601 test_cgroup_mask_CFLAGS = \
1602         $(AM_CFLAGS) \
1603         $(SECCOMP_CFLAGS)
1604
1605 test_cgroup_mask_LDADD = \
1606         libsystemd-core.la \
1607         $(RT_LIBS)
1608
1609 test_cgroup_util_SOURCES = \
1610         src/test/test-cgroup-util.c
1611
1612 test_cgroup_util_LDADD = \
1613         libsystemd-label.la \
1614         libsystemd-internal.la \
1615         libsystemd-shared.la
1616
1617 test_env_replace_SOURCES = \
1618         src/test/test-env-replace.c
1619
1620 test_env_replace_LDADD = \
1621         libsystemd-shared.la
1622
1623 test_strbuf_SOURCES = \
1624         src/test/test-strbuf.c
1625
1626 test_strbuf_LDADD = \
1627         libsystemd-shared.la
1628
1629 test_strv_SOURCES = \
1630         src/test/test-strv.c
1631
1632 test_strv_LDADD = \
1633         libsystemd-units.la \
1634         libsystemd-internal.la \
1635         libsystemd-shared.la
1636
1637 test_path_util_SOURCES = \
1638         src/test/test-path-util.c
1639
1640 test_path_util_LDADD = \
1641         libsystemd-shared.la
1642
1643 test_strxcpyx_SOURCES = \
1644         src/test/test-strxcpyx.c
1645
1646 test_strxcpyx_LDADD = \
1647         libsystemd-shared.la
1648
1649 test_install_SOURCES = \
1650         src/test/test-install.c
1651
1652 test_install_LDADD = \
1653         libsystemd-units.la \
1654         libsystemd-label.la \
1655         libsystemd-shared.la \
1656         libsystemd-internal.la
1657
1658 test_watchdog_SOURCES = \
1659         src/test/test-watchdog.c
1660
1661 test_watchdog_LDADD = \
1662         libsystemd-shared.la
1663
1664 test_sched_prio_SOURCES = \
1665         src/test/test-sched-prio.c
1666
1667 test_sched_prio_CPPFLAGS = \
1668         $(AM_CPPFLAGS) \
1669         -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1670
1671 test_sched_prio_CFLAGS = \
1672         $(AM_CFLAGS) \
1673         $(SECCOMP_CFLAGS)
1674
1675 test_sched_prio_LDADD = \
1676         libsystemd-core.la \
1677         $(RT_LIBS)
1678
1679 test_conf_files_SOURCES = \
1680         src/test/test-conf-files.c
1681
1682 test_conf_files_LDADD = \
1683         libsystemd-shared.la
1684
1685 # ------------------------------------------------------------------------------
1686 ## .PHONY so it always rebuilds it
1687 .PHONY: coverage lcov-run lcov-report coverage-sync
1688
1689 # run lcov from scratch, always
1690 coverage: all
1691         $(MAKE) lcov-run
1692         $(MAKE) lcov-report
1693
1694 coverage_dir = coverage
1695 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1696
1697 if ENABLE_COVERAGE
1698 # reset run coverage tests
1699 lcov-run:
1700         @rm -rf $(coverage_dir)
1701         lcov $(coverage_opts) --zerocounters
1702         -$(MAKE) check
1703
1704 # generate report based on current coverage data
1705 lcov-report:
1706         $(MKDIR_P) $(coverage_dir)
1707         lcov $(coverage_opts) --compat-libtool --capture --no-external \
1708                 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1709         genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1710         @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1711
1712 # lcov doesn't work properly with vpath builds, make sure that bad
1713 # output is not uploaded by mistake.
1714 coverage-sync: coverage
1715         test "$(builddir)" = "$(srcdir)"
1716         rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1717
1718 else
1719 lcov-run lcov-report:
1720         echo "Need to reconfigure with --enable-coverage"
1721 endif
1722
1723 # ------------------------------------------------------------------------------
1724 systemd_analyze_SOURCES = \
1725         src/analyze/analyze.c
1726
1727 systemd_analyze_LDADD = \
1728         libsystemd-internal.la \
1729         libsystemd-shared.la
1730
1731 # ------------------------------------------------------------------------------
1732 systemd_initctl_SOURCES = \
1733         src/initctl/initctl.c
1734
1735 systemd_initctl_LDADD = \
1736         libsystemd-internal.la \
1737         libsystemd-shared.la
1738
1739 # ------------------------------------------------------------------------------
1740 systemd_update_utmp_SOURCES = \
1741         src/update-utmp/update-utmp.c
1742
1743 systemd_update_utmp_CFLAGS = \
1744         $(AM_CFLAGS) \
1745         $(AUDIT_CFLAGS)
1746
1747 systemd_update_utmp_LDADD = \
1748         libsystemd-internal.la \
1749         libsystemd-shared.la \
1750         $(AUDIT_LIBS)
1751
1752 # ------------------------------------------------------------------------------
1753 systemd_update_done_SOURCES = \
1754         src/update-done/update-done.c
1755
1756 systemd_update_done_LDADD = \
1757         libsystemd-internal.la \
1758         libsystemd-shared.la
1759
1760 # ------------------------------------------------------------------------------
1761 systemd_shutdownd_SOURCES = \
1762         src/shutdownd/shutdownd.c
1763
1764 systemd_shutdownd_LDADD = \
1765         libsystemd-label.la \
1766         libsystemd-internal.la \
1767         libsystemd-shared.la
1768
1769 dist_doc_DATA += \
1770         src/systemd/sd-shutdown.h
1771
1772 # ------------------------------------------------------------------------------
1773 systemd_shutdown_SOURCES = \
1774         src/core/umount.c \
1775         src/core/umount.h \
1776         src/core/shutdown.c \
1777         src/core/mount-setup.c \
1778         src/core/mount-setup.h \
1779         src/core/killall.h \
1780         src/core/killall.c
1781
1782 systemd_shutdown_LDADD = \
1783         libsystemd-label.la \
1784         libudev-internal.la \
1785         libsystemd-shared.la
1786
1787 # ------------------------------------------------------------------------------
1788 if HAVE_KMOD
1789 systemd_modules_load_SOURCES = \
1790         src/modules-load/modules-load.c
1791
1792 systemd_modules_load_CFLAGS = \
1793         $(AM_CFLAGS) \
1794         $(KMOD_CFLAGS)
1795
1796 systemd_modules_load_LDADD = \
1797         libsystemd-shared.la \
1798         $(KMOD_LIBS)
1799
1800 rootlibexec_PROGRAMS += \
1801         systemd-modules-load
1802
1803 nodist_systemunit_DATA += \
1804         units/systemd-modules-load.service
1805
1806 SYSINIT_TARGET_WANTS += \
1807         systemd-modules-load.service
1808
1809 if ENABLE_TMPFILES
1810 nodist_systemunit_DATA += \
1811         units/kmod-static-nodes.service
1812
1813 SYSINIT_TARGET_WANTS += \
1814         kmod-static-nodes.service
1815 endif
1816 endif
1817
1818 EXTRA_DIST += \
1819         units/systemd-modules-load.service.in \
1820         units/kmod-static-nodes.service.in
1821
1822 # ------------------------------------------------------------------------------
1823 if ENABLE_TMPFILES
1824 systemd_tmpfiles_SOURCES = \
1825         src/tmpfiles/tmpfiles.c
1826
1827 systemd_tmpfiles_LDADD = \
1828         libsystemd-units.la \
1829         libsystemd-label.la \
1830         libsystemd-capability.la \
1831         libsystemd-internal.la \
1832         libsystemd-shared.la
1833
1834 rootbin_PROGRAMS += \
1835         systemd-tmpfiles
1836
1837 dist_systemunit_DATA += \
1838         units/systemd-tmpfiles-clean.timer
1839
1840 nodist_systemunit_DATA += \
1841         units/systemd-tmpfiles-setup-dev.service \
1842         units/systemd-tmpfiles-setup.service \
1843         units/systemd-tmpfiles-clean.service
1844
1845 dist_tmpfiles_DATA = \
1846         tmpfiles.d/systemd.conf \
1847         tmpfiles.d/systemd-nologin.conf \
1848         tmpfiles.d/systemd-remote.conf \
1849         tmpfiles.d/tmp.conf \
1850         tmpfiles.d/x11.conf \
1851         tmpfiles.d/var.conf \
1852         tmpfiles.d/etc.conf
1853
1854 if HAVE_SYSV_COMPAT
1855 dist_tmpfiles_DATA += \
1856         tmpfiles.d/legacy.conf
1857 endif
1858
1859 SYSINIT_TARGET_WANTS += \
1860         systemd-tmpfiles-setup-dev.service \
1861         systemd-tmpfiles-setup.service
1862
1863 dist_zshcompletion_DATA += \
1864         shell-completion/zsh/_systemd-tmpfiles
1865
1866 TIMERS_TARGET_WANTS += \
1867         systemd-tmpfiles-clean.timer
1868
1869 INSTALL_DIRS += \
1870         $(tmpfilesdir) \
1871         $(sysconfdir)/tmpfiles.d
1872 endif
1873
1874 EXTRA_DIST += \
1875         units/systemd-tmpfiles-setup-dev.service.in \
1876         units/systemd-tmpfiles-setup.service.in \
1877         units/systemd-tmpfiles-clean.service.in
1878
1879 # ------------------------------------------------------------------------------
1880 if ENABLE_SYSUSERS
1881 systemd_sysusers_SOURCES = \
1882         src/sysusers/sysusers.c
1883
1884 systemd_sysusers_LDADD = \
1885         libsystemd-units.la \
1886         libsystemd-label.la \
1887         libsystemd-capability.la \
1888         libsystemd-internal.la \
1889         libsystemd-shared.la
1890
1891 rootbin_PROGRAMS += \
1892         systemd-sysusers
1893
1894 nodist_systemunit_DATA += \
1895         units/systemd-sysusers.service
1896
1897 SYSINIT_TARGET_WANTS += \
1898         systemd-sysusers.service
1899
1900 dist_sysusers_DATA = \
1901         sysusers.d/systemd.conf
1902
1903 nodist_sysusers_DATA = \
1904         sysusers.d/basic.conf
1905
1906 EXTRA_DIST += \
1907         units/systemd-sysusers.service.in \
1908         sysusers.d/basic.conf.in
1909
1910 CLEANFILES += \
1911         sysusers.d/basic.conf
1912
1913 INSTALL_DIRS += \
1914         $(sysusersdir)
1915 endif
1916
1917 # ------------------------------------------------------------------------------
1918 if ENABLE_FIRSTBOOT
1919 systemd_firstboot_SOURCES = \
1920         src/firstboot/firstboot.c
1921
1922 systemd_firstboot_LDADD = \
1923         libsystemd-units.la \
1924         libsystemd-label.la \
1925         libsystemd-capability.la \
1926         libsystemd-internal.la \
1927         libsystemd-shared.la \
1928         -lcrypt
1929
1930 rootbin_PROGRAMS += \
1931         systemd-firstboot
1932
1933 nodist_systemunit_DATA += \
1934         units/systemd-firstboot.service
1935
1936 EXTRA_DIST += \
1937         units/systemd-firstboot.service.in
1938
1939 SYSINIT_TARGET_WANTS += \
1940         systemd-firstboot.service
1941
1942 endif
1943
1944 # ------------------------------------------------------------------------------
1945 systemd_machine_id_setup_SOURCES = \
1946         src/machine-id-setup/machine-id-setup-main.c \
1947         src/core/machine-id-setup.c \
1948         src/core/machine-id-setup.h
1949
1950 systemd_machine_id_setup_LDADD = \
1951         libsystemd-label.la \
1952         libsystemd-internal.la \
1953         libsystemd-shared.la
1954
1955 # ------------------------------------------------------------------------------
1956 systemd_sysctl_SOURCES = \
1957         src/sysctl/sysctl.c
1958
1959 systemd_sysctl_LDADD = \
1960         libsystemd-shared.la
1961
1962 # ------------------------------------------------------------------------------
1963 systemd_sleep_SOURCES = \
1964         src/sleep/sleep.c
1965
1966 systemd_sleep_LDADD = \
1967         libsystemd-shared.la
1968
1969 # ------------------------------------------------------------------------------
1970 systemd_fsck_SOURCES = \
1971         src/fsck/fsck.c
1972
1973 systemd_fsck_LDADD = \
1974         libsystemd-internal.la \
1975         libudev-internal.la \
1976         libsystemd-shared.la
1977
1978 # ------------------------------------------------------------------------------
1979 systemd_ac_power_SOURCES = \
1980         src/ac-power/ac-power.c
1981
1982 systemd_ac_power_LDADD = \
1983         libudev-internal.la \
1984         libsystemd-shared.la
1985
1986 # ------------------------------------------------------------------------------
1987 systemd_detect_virt_SOURCES = \
1988         src/detect-virt/detect-virt.c
1989
1990 systemd_detect_virt_LDADD = \
1991         libsystemd-shared.la
1992
1993 INSTALL_EXEC_HOOKS += \
1994         systemd-detect-virt-install-hook
1995
1996 # ------------------------------------------------------------------------------
1997 systemd_delta_SOURCES = \
1998         src/delta/delta.c
1999
2000 systemd_delta_LDADD = \
2001         libsystemd-shared.la
2002
2003 # ------------------------------------------------------------------------------
2004 systemd_getty_generator_SOURCES = \
2005         src/getty-generator/getty-generator.c
2006
2007 systemd_getty_generator_LDADD = \
2008         libsystemd-label.la \
2009         libsystemd-shared.la
2010
2011 # ------------------------------------------------------------------------------
2012 systemd_debug_generator_SOURCES = \
2013         src/debug-generator/debug-generator.c
2014
2015 systemd_debug_generator_LDADD = \
2016         libsystemd-label.la \
2017         libsystemd-shared.la
2018
2019 # ------------------------------------------------------------------------------
2020 systemd_fstab_generator_SOURCES = \
2021         src/fstab-generator/fstab-generator.c \
2022         src/core/mount-setup.c
2023
2024 systemd_fstab_generator_LDADD = \
2025         libsystemd-label.la \
2026         libsystemd-shared.la
2027
2028 # ------------------------------------------------------------------------------
2029 systemd_system_update_generator_SOURCES = \
2030         src/system-update-generator/system-update-generator.c
2031
2032 systemd_system_update_generator_LDADD = \
2033         libsystemd-label.la \
2034         libsystemd-shared.la
2035
2036 if ENABLE_EFI
2037 # ------------------------------------------------------------------------------
2038 systemgenerator_PROGRAMS +=  \
2039         systemd-efi-boot-generator
2040
2041 systemd_efi_boot_generator_SOURCES = \
2042         src/efi-boot-generator/efi-boot-generator.c
2043
2044 systemd_efi_boot_generator_LDADD = \
2045         libsystemd-label.la \
2046         libsystemd-shared.la
2047
2048 # ------------------------------------------------------------------------------
2049 bootctl_SOURCES = \
2050         src/boot/boot.h \
2051         src/boot/boot-loader.h \
2052         src/boot/bootctl.c \
2053         src/boot/boot-loader.c \
2054         src/boot/boot-efi.c
2055
2056 bootctl_LDADD = \
2057         libsystemd-shared.la \
2058         libsystemd-internal.la
2059
2060 bin_PROGRAMS += \
2061         bootctl
2062
2063 dist_bashcompletion_DATA += \
2064         shell-completion/bash/bootctl
2065
2066 dist_zshcompletion_DATA += \
2067         shell-completion/zsh/_bootctl
2068
2069 endif
2070
2071 # ------------------------------------------------------------------------------
2072 if HAVE_BLKID
2073 systemgenerator_PROGRAMS +=  \
2074         systemd-gpt-auto-generator
2075
2076 systemd_gpt_auto_generator_SOURCES = \
2077         src/gpt-auto-generator/gpt-auto-generator.c \
2078         src/shared/blkid-util.h
2079
2080 systemd_gpt_auto_generator_LDADD = \
2081         libsystemd-label.la \
2082         libsystemd-internal.la \
2083         libudev-internal.la \
2084         libsystemd-shared.la \
2085         $(BLKID_LIBS)
2086
2087 systemd_gpt_auto_generator_CFLAGS = \
2088         $(AM_CFLAGS) \
2089         $(BLKID_CFLAGS)
2090 endif
2091
2092 # ------------------------------------------------------------------------------
2093 if ENABLE_KDBUS
2094 systemgenerator_PROGRAMS +=  \
2095         systemd-dbus1-generator
2096
2097 systemd_dbus1_generator_SOURCES = \
2098         src/dbus1-generator/dbus1-generator.c
2099
2100 systemd_dbus1_generator_LDADD = \
2101         libsystemd-label.la \
2102         libsystemd-shared.la \
2103         libsystemd-internal.la
2104
2105 dbus1-generator-install-hook:
2106         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2107         $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2108         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2109
2110 dbus1-generator-uninstall-hook:
2111         rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2112
2113 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2114 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2115 endif
2116
2117 # ------------------------------------------------------------------------------
2118 systemd_sysv_generator_SOURCES = \
2119         src/sysv-generator/sysv-generator.c
2120
2121 systemd_sysv_generator_LDADD = \
2122         libsystemd-core.la \
2123         libsystemd-label.la \
2124         libsystemd-shared.la
2125
2126 # ------------------------------------------------------------------------------
2127 systemd_rc_local_generator_SOURCES = \
2128         src/rc-local-generator/rc-local-generator.c
2129
2130 systemd_rc_local_generator_LDADD = \
2131         libsystemd-label.la \
2132         libsystemd-shared.la
2133
2134 # ------------------------------------------------------------------------------
2135 systemd_remount_fs_SOURCES = \
2136         src/remount-fs/remount-fs.c \
2137         src/core/mount-setup.c \
2138         src/core/mount-setup.h
2139
2140 systemd_remount_fs_LDADD = \
2141         libsystemd-label.la \
2142         libsystemd-shared.la
2143
2144 # ------------------------------------------------------------------------------
2145 systemd_cgroups_agent_SOURCES = \
2146         src/cgroups-agent/cgroups-agent.c
2147
2148 systemd_cgroups_agent_LDADD = \
2149         libsystemd-internal.la \
2150         libsystemd-shared.la
2151
2152 # ------------------------------------------------------------------------------
2153 systemd_escape_SOURCES = \
2154         src/escape/escape.c
2155
2156 systemd_escape_LDADD = \
2157         libsystemd-shared.la
2158
2159 # -----------------------------------------------------------------------------
2160 systemctl_SOURCES = \
2161         src/systemctl/systemctl.c
2162
2163 systemctl_LDADD = \
2164         libsystemd-units.la \
2165         libsystemd-label.la \
2166         libsystemd-internal.la \
2167         libsystemd-logs.la \
2168         libsystemd-journal-internal.la \
2169         libsystemd-shared.la
2170
2171 # ------------------------------------------------------------------------------
2172 systemd_notify_SOURCES = \
2173         src/notify/notify.c \
2174         src/readahead/sd-readahead.c
2175
2176 systemd_notify_LDADD = \
2177         libsystemd-internal.la \
2178         libsystemd-shared.la
2179
2180 # ------------------------------------------------------------------------------
2181 systemd_path_SOURCES = \
2182         src/path/path.c
2183
2184 systemd_path_LDADD = \
2185         libsystemd-internal.la \
2186         libsystemd-shared.la
2187
2188 # ------------------------------------------------------------------------------
2189 systemd_ask_password_SOURCES = \
2190         src/ask-password/ask-password.c
2191
2192 systemd_ask_password_LDADD = \
2193         libsystemd-label.la \
2194         libsystemd-shared.la
2195
2196 # ------------------------------------------------------------------------------
2197 systemd_reply_password_SOURCES = \
2198         src/reply-password/reply-password.c
2199
2200 systemd_reply_password_LDADD = \
2201         libsystemd-shared.la
2202
2203 # ------------------------------------------------------------------------------
2204 systemd_cgls_SOURCES = \
2205         src/cgls/cgls.c
2206
2207 systemd_cgls_LDADD = \
2208         libsystemd-internal.la \
2209         libsystemd-shared.la
2210
2211 # ------------------------------------------------------------------------------
2212 systemd_cgtop_SOURCES = \
2213         src/cgtop/cgtop.c
2214
2215 systemd_cgtop_LDADD = \
2216         libsystemd-shared.la
2217
2218 # ------------------------------------------------------------------------------
2219 systemd_nspawn_SOURCES = \
2220         src/nspawn/nspawn.c \
2221         src/core/mount-setup.c \
2222         src/core/mount-setup.h \
2223         src/core/loopback-setup.c \
2224         src/core/loopback-setup.h
2225
2226 systemd_nspawn_CFLAGS = \
2227         $(AM_CFLAGS) \
2228         $(SECCOMP_CFLAGS) \
2229         $(BLKID_CFLAGS)
2230
2231 systemd_nspawn_LDADD = \
2232         libsystemd-label.la \
2233         libsystemd-capability.la \
2234         libsystemd-internal.la \
2235         libudev-internal.la \
2236         libsystemd-shared.la \
2237         $(BLKID_LIBS)
2238
2239 if HAVE_SECCOMP
2240 systemd_nspawn_LDADD += \
2241         libsystemd-seccomp.la \
2242         $(SECCOMP_LIBS)
2243 endif
2244
2245 # ------------------------------------------------------------------------------
2246 systemd_run_SOURCES = \
2247         src/run/run.c
2248
2249 systemd_run_LDADD = \
2250         libsystemd-label.la \
2251         libsystemd-capability.la \
2252         libsystemd-internal.la \
2253         libsystemd-shared.la
2254
2255 # ------------------------------------------------------------------------------
2256 systemd_bus_proxyd_SOURCES = \
2257         src/bus-proxyd/bus-proxyd.c \
2258         src/bus-proxyd/bus-policy.c \
2259         src/bus-proxyd/bus-policy.h
2260
2261 systemd_bus_proxyd_LDADD = \
2262         libsystemd-capability.la \
2263         libsystemd-internal.la \
2264         libsystemd-shared.la
2265
2266 bus-proxyd-install-hook:
2267         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2268         $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2269         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2270
2271 bus-proxyd-uninstall-hook:
2272         rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2273
2274 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2275 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2276
2277 if ENABLE_KDBUS
2278 nodist_systemunit_DATA += \
2279         units/systemd-bus-proxyd@.service
2280
2281 dist_systemunit_DATA += \
2282         units/systemd-bus-proxyd.socket
2283
2284 dist_userunit_DATA += \
2285         units/user/systemd-bus-proxyd.socket \
2286         units/user/systemd-bus-proxyd@.service
2287 endif
2288
2289 EXTRA_DIST += \
2290         units/systemd-bus-proxyd@.service.in
2291
2292 # ------------------------------------------------------------------------------
2293 systemd_tty_ask_password_agent_SOURCES = \
2294         src/tty-ask-password-agent/tty-ask-password-agent.c
2295
2296 systemd_tty_ask_password_agent_LDADD = \
2297         libsystemd-label.la \
2298         libsystemd-shared.la
2299
2300 # ------------------------------------------------------------------------------
2301 libsystemd_internal_la_SOURCES = \
2302         src/systemd/sd-bus.h \
2303         src/systemd/sd-bus-protocol.h \
2304         src/systemd/sd-bus-vtable.h \
2305         src/systemd/sd-memfd.h \
2306         src/systemd/sd-utf8.h \
2307         src/systemd/sd-event.h \
2308         src/systemd/sd-rtnl.h \
2309         src/systemd/sd-resolve.h \
2310         src/systemd/sd-login.h \
2311         src/systemd/sd-id128.h \
2312         src/systemd/sd-daemon.h \
2313         src/systemd/sd-path.h \
2314         src/libsystemd/sd-bus/sd-bus.c \
2315         src/libsystemd/sd-bus/bus-control.c \
2316         src/libsystemd/sd-bus/bus-control.h \
2317         src/libsystemd/sd-bus/bus-error.c \
2318         src/libsystemd/sd-bus/bus-error.h \
2319         src/libsystemd/sd-bus/bus-internal.c \
2320         src/libsystemd/sd-bus/bus-internal.h \
2321         src/libsystemd/sd-bus/bus-socket.c \
2322         src/libsystemd/sd-bus/bus-socket.h \
2323         src/libsystemd/sd-bus/bus-kernel.c \
2324         src/libsystemd/sd-bus/bus-kernel.h \
2325         src/libsystemd/sd-bus/bus-container.c \
2326         src/libsystemd/sd-bus/bus-container.h \
2327         src/libsystemd/sd-bus/bus-message.c \
2328         src/libsystemd/sd-bus/bus-message.h \
2329         src/libsystemd/sd-bus/bus-creds.c \
2330         src/libsystemd/sd-bus/bus-creds.h \
2331         src/libsystemd/sd-bus/bus-signature.c \
2332         src/libsystemd/sd-bus/bus-signature.h \
2333         src/libsystemd/sd-bus/bus-type.c \
2334         src/libsystemd/sd-bus/bus-type.h \
2335         src/libsystemd/sd-bus/bus-match.c \
2336         src/libsystemd/sd-bus/bus-match.h \
2337         src/libsystemd/sd-bus/bus-bloom.c \
2338         src/libsystemd/sd-bus/bus-bloom.h \
2339         src/libsystemd/sd-bus/bus-introspect.c \
2340         src/libsystemd/sd-bus/bus-introspect.h \
2341         src/libsystemd/sd-bus/bus-objects.c \
2342         src/libsystemd/sd-bus/bus-objects.h \
2343         src/libsystemd/sd-bus/bus-gvariant.c \
2344         src/libsystemd/sd-bus/bus-gvariant.h \
2345         src/libsystemd/sd-bus/bus-convenience.c \
2346         src/libsystemd/sd-bus/bus-track.c \
2347         src/libsystemd/sd-bus/bus-track.h \
2348         src/libsystemd/sd-bus/bus-util.c \
2349         src/libsystemd/sd-bus/bus-util.h \
2350         src/libsystemd/sd-bus/bus-slot.c \
2351         src/libsystemd/sd-bus/bus-slot.h \
2352         src/libsystemd/sd-bus/bus-protocol.h \
2353         src/libsystemd/sd-bus/kdbus.h \
2354         src/libsystemd/sd-bus/sd-memfd.c \
2355         src/libsystemd/sd-utf8/sd-utf8.c \
2356         src/libsystemd/sd-event/sd-event.c \
2357         src/libsystemd/sd-event/event-util.h \
2358         src/libsystemd/sd-rtnl/sd-rtnl.c \
2359         src/libsystemd/sd-rtnl/rtnl-internal.h \
2360         src/libsystemd/sd-rtnl/rtnl-message.c \
2361         src/libsystemd/sd-rtnl/rtnl-types.h \
2362         src/libsystemd/sd-rtnl/rtnl-types.c \
2363         src/libsystemd/sd-rtnl/rtnl-util.h \
2364         src/libsystemd/sd-rtnl/rtnl-util.c \
2365         src/libsystemd/sd-rtnl/local-addresses.h \
2366         src/libsystemd/sd-rtnl/local-addresses.c \
2367         src/libsystemd/sd-id128/sd-id128.c \
2368         src/libsystemd/sd-daemon/sd-daemon.c \
2369         src/libsystemd/sd-login/sd-login.c \
2370         src/libsystemd/sd-path/sd-path.c
2371
2372 nodist_libsystemd_internal_la_SOURCES = \
2373         src/libsystemd/libsystemd.sym \
2374         src/libsystemd/sd-bus/bus-error-mapping.c
2375
2376 libsystemd_internal_la_CFLAGS = \
2377         $(AM_CFLAGS) \
2378         -pthread
2379
2380 libsystemd_internal_la_LIBADD = \
2381         $(RT_LIBS)
2382
2383 libsystemd_resolve_la_SOURCES = \
2384         src/libsystemd/sd-resolve/sd-resolve.c \
2385         src/libsystemd/sd-resolve/resolve-util.h
2386
2387 libsystemd_resolve_la_CFLAGS = \
2388         $(AM_CFLAGS) \
2389         -pthread
2390
2391 libsystemd_resolve_la_LIBADD = \
2392         -lresolv
2393
2394 noinst_LTLIBRARIES += \
2395         libsystemd-internal.la \
2396         libsystemd-resolve.la
2397
2398 libsystemd_dump_la_SOURCES = \
2399         src/libsystemd/sd-bus/bus-dump.c \
2400         src/libsystemd/sd-bus/bus-dump.h
2401
2402 libsystemd_dump_la_CFLAGS = \
2403         $(AM_CFLAGS) \
2404         $(CAP_CFLAGS)
2405
2406 noinst_LTLIBRARIES += \
2407         libsystemd-dump.la
2408
2409 EXTRA_DIST += \
2410         src/libsystemd/libsystemd.sym.m4 \
2411         src/libsystemd/libsystemd.pc.in \
2412         src/libsystemd/sd-bus/bus-error-mapping.gperf \
2413         src/libsystemd/sd-bus/DIFFERENCES \
2414         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2415
2416 CLEANFILES += \
2417         src/libsystemd/libsystemd.sym \
2418         src/libsystemd/sd-bus/bus-error-mapping.c
2419
2420 BUILT_SOURCES += \
2421         src/libsystemd/libsystemd.sym
2422
2423 libsystemd_la_SOURCES = \
2424         $(libsystemd_internal_la_SOURCES) \
2425         $(libsystemd_resolve_la_SOURCES) \
2426         $(libsystemd_journal_internal_la_SOURCES)
2427
2428 nodist_libsystemd_la_SOURCES = \
2429         $(nodist_libsystemd_internal_la_SOURCES)
2430
2431 libsystemd_la_CFLAGS = \
2432         $(libsystemd_internal_la_CFLAGS) \
2433         $(libsystemd_resolve_la_CFLAGS) \
2434         $(libsystemd_journal_internal_la_CFLAGS)
2435
2436 libsystemd_la_LDFLAGS = \
2437         $(AM_LDFLAGS) \
2438         -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2439         -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2440
2441 libsystemd_la_LIBADD = \
2442         libsystemd-shared.la \
2443         $(libsystemd_internal_la_LIBADD) \
2444         $(libsystemd_journal_internal_la_LIBADD) \
2445         $(libsystemd_resolve_la_LIBADD)
2446
2447 libsystemd-install-hook:
2448         libname=libsystemd.so && $(move-to-rootlibdir)
2449
2450 libsystemd-uninstall-hook:
2451         rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2452
2453 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2454 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2455
2456 pkgconfiglib_DATA += \
2457         src/libsystemd/libsystemd.pc
2458
2459 pkginclude_HEADERS += \
2460         src/systemd/sd-login.h \
2461         src/systemd/sd-id128.h \
2462         src/systemd/sd-daemon.h
2463
2464 if ENABLE_KDBUS
2465 pkginclude_HEADERS += \
2466         src/systemd/sd-bus.h \
2467         src/systemd/sd-bus-protocol.h \
2468         src/systemd/sd-bus-vtable.h \
2469         src/systemd/sd-memfd.h \
2470         src/systemd/sd-utf8.h \
2471         src/systemd/sd-event.h \
2472         src/systemd/sd-rtnl.h \
2473         src/systemd/sd-resolve.h \
2474         src/systemd/sd-path.h
2475 endif
2476
2477 lib_LTLIBRARIES += \
2478         libsystemd.la
2479
2480 tests += \
2481         test-bus-marshal \
2482         test-bus-signature \
2483         test-bus-chat \
2484         test-bus-cleanup \
2485         test-bus-server \
2486         test-bus-match \
2487         test-bus-kernel \
2488         test-bus-kernel-bloom \
2489         test-bus-kernel-benchmark \
2490         test-bus-memfd \
2491         test-bus-zero-copy \
2492         test-bus-introspect \
2493         test-bus-objects \
2494         test-bus-error \
2495         test-bus-creds \
2496         test-bus-gvariant \
2497         test-event \
2498         test-rtnl \
2499         test-resolve
2500
2501 bin_PROGRAMS += \
2502         busctl
2503
2504 test_bus_marshal_SOURCES = \
2505         src/libsystemd/sd-bus/test-bus-marshal.c
2506
2507 test_bus_marshal_LDADD = \
2508         libsystemd-internal.la \
2509         libsystemd-shared.la \
2510         libsystemd-dump.la \
2511         libsystemd-capability.la \
2512         $(GLIB_LIBS) \
2513         $(DBUS_LIBS) \
2514         $(CAP_LIBS)
2515
2516 test_bus_marshal_CFLAGS = \
2517         $(AM_CFLAGS) \
2518         $(GLIB_CFLAGS) \
2519         $(DBUS_CFLAGS) \
2520         $(CAP_CFLAGS)
2521
2522 test_bus_signature_SOURCES = \
2523         src/libsystemd/sd-bus/test-bus-signature.c
2524
2525 test_bus_signature_LDADD = \
2526         libsystemd-shared.la \
2527         libsystemd-internal.la
2528
2529 test_bus_chat_SOURCES = \
2530         src/libsystemd/sd-bus/test-bus-chat.c
2531
2532 test_bus_chat_CFLAGS = \
2533         $(AM_CFLAGS) \
2534         -pthread
2535
2536 test_bus_chat_LDADD = \
2537         libsystemd-internal.la \
2538         libsystemd-shared.la
2539
2540 test_bus_cleanup_SOURCES = \
2541         src/libsystemd/sd-bus/test-bus-cleanup.c
2542
2543 test_bus_cleanup_CFLAGS = \
2544         $(AM_CFLAGS) \
2545         $(SECCOMP_CFLAGS)
2546
2547 test_bus_cleanup_LDADD = \
2548         libsystemd-internal.la \
2549         libsystemd-shared.la
2550
2551 test_bus_server_SOURCES = \
2552         src/libsystemd/sd-bus/test-bus-server.c
2553
2554 test_bus_server_CFLAGS = \
2555         $(AM_CFLAGS) \
2556         -pthread
2557
2558 test_bus_server_LDADD = \
2559         libsystemd-internal.la \
2560         libsystemd-shared.la
2561
2562 test_bus_objects_SOURCES = \
2563         src/libsystemd/sd-bus/test-bus-objects.c
2564
2565 test_bus_objects_CFLAGS = \
2566         $(AM_CFLAGS) \
2567         $(CAP_CFLAGS) \
2568         -pthread
2569
2570 test_bus_objects_LDADD = \
2571         libsystemd-internal.la \
2572         libsystemd-shared.la \
2573         libsystemd-dump.la \
2574         libsystemd-capability.la \
2575         $(CAP_LIBS)
2576
2577 test_bus_error_SOURCES = \
2578         src/libsystemd/sd-bus/test-bus-error.c
2579
2580 test_bus_error_LDADD = \
2581         libsystemd-internal.la \
2582         libsystemd-shared.la
2583
2584 test_bus_gvariant_SOURCES = \
2585         src/libsystemd/sd-bus/test-bus-gvariant.c
2586
2587 test_bus_gvariant_LDADD = \
2588         libsystemd-internal.la \
2589         libsystemd-shared.la \
2590         libsystemd-dump.la \
2591         libsystemd-capability.la \
2592         $(GLIB_LIBS) \
2593         $(CAP_LIBS)
2594
2595 test_bus_gvariant_CFLAGS = \
2596         $(AM_CFLAGS) \
2597         $(GLIB_CFLAGS)
2598         $(CAP_CFLAGS)
2599
2600 test_bus_creds_SOURCES = \
2601         src/libsystemd/sd-bus/test-bus-creds.c
2602
2603 test_bus_creds_LDADD = \
2604         libsystemd-internal.la \
2605         libsystemd-shared.la \
2606         libsystemd-dump.la \
2607         libsystemd-capability.la
2608
2609 test_bus_match_SOURCES = \
2610         src/libsystemd/sd-bus/test-bus-match.c
2611
2612 test_bus_match_LDADD = \
2613         libsystemd-internal.la \
2614         libsystemd-shared.la
2615
2616 test_bus_kernel_SOURCES = \
2617         src/libsystemd/sd-bus/test-bus-kernel.c
2618
2619 test_bus_kernel_LDADD = \
2620         libsystemd-internal.la \
2621         libsystemd-shared.la \
2622         libsystemd-dump.la \
2623         libsystemd-capability.la \
2624         $(CAP_LIBS)
2625
2626 test_bus_kernel_CFLAGS = \
2627         $(AM_CFLAGS) \
2628         $(CAP_CFLAGS)
2629
2630 test_bus_kernel_bloom_SOURCES = \
2631         src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2632
2633 test_bus_kernel_bloom_LDADD = \
2634         libsystemd-internal.la \
2635         libsystemd-shared.la
2636
2637 test_bus_kernel_benchmark_SOURCES = \
2638         src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2639
2640 test_bus_kernel_benchmark_LDADD = \
2641         libsystemd-internal.la \
2642         libsystemd-shared.la
2643
2644 test_bus_memfd_SOURCES = \
2645         src/libsystemd/sd-bus/test-bus-memfd.c
2646
2647 test_bus_memfd_LDADD = \
2648         libsystemd-internal.la \
2649         libsystemd-shared.la
2650
2651 test_bus_zero_copy_SOURCES = \
2652         src/libsystemd/sd-bus/test-bus-zero-copy.c
2653
2654 test_bus_zero_copy_LDADD = \
2655         libsystemd-internal.la \
2656         libsystemd-shared.la \
2657         libsystemd-dump.la \
2658         libsystemd-capability.la \
2659         $(CAP_LIBS)
2660
2661 test_bus_zero_copy_CFLAGS = \
2662         $(AM_CFLAGS) \
2663         $(CAP_CFLAGS)
2664
2665 test_bus_introspect_SOURCES = \
2666         src/libsystemd/sd-bus/test-bus-introspect.c
2667
2668 test_bus_introspect_LDADD = \
2669         libsystemd-internal.la \
2670         libsystemd-shared.la
2671
2672 test_event_SOURCES = \
2673         src/libsystemd/sd-event/test-event.c
2674
2675 test_event_LDADD = \
2676         libsystemd-internal.la \
2677         libsystemd-shared.la
2678
2679 test_rtnl_SOURCES = \
2680         src/libsystemd/sd-rtnl/test-rtnl.c
2681
2682 test_rtnl_LDADD = \
2683         libsystemd-internal.la \
2684         libsystemd-shared.la
2685
2686 test_resolve_SOURCES = \
2687         src/libsystemd/sd-resolve/test-resolve.c
2688
2689 test_resolve_LDADD = \
2690         libsystemd-resolve.la \
2691         libsystemd-internal.la \
2692         libsystemd-shared.la
2693
2694 test_resolve_CFLAGS = \
2695         $(AM_CFLAGS) \
2696         -pthread
2697
2698 busctl_SOURCES = \
2699         src/libsystemd/sd-bus/busctl.c
2700
2701 busctl_LDADD = \
2702         libsystemd-internal.la \
2703         libsystemd-shared.la \
2704         libsystemd-dump.la \
2705         libsystemd-capability.la \
2706         $(CAP_LIBS)
2707
2708 busctl_CFLAGS = \
2709         $(AM_CFLAGS) \
2710         $(CAP_CFLAGS)
2711
2712 # ------------------------------------------------------------------------------
2713 noinst_LTLIBRARIES += \
2714         libsystemd-network.la
2715
2716 libsystemd_network_la_CFLAGS = \
2717         $(AM_CFLAGS) \
2718         $(KMOD_CFLAGS)
2719
2720 libsystemd_network_la_SOURCES = \
2721         src/systemd/sd-network.h \
2722         src/systemd/sd-dhcp-client.h \
2723         src/systemd/sd-dhcp-server.h \
2724         src/systemd/sd-dhcp-lease.h \
2725         src/systemd/sd-ipv4ll.h \
2726         src/network/sd-network.c \
2727         src/network/network-util.h \
2728         src/libsystemd-network/sd-dhcp-client.c \
2729         src/libsystemd-network/sd-dhcp-server.c \
2730         src/libsystemd-network/dhcp-network.c \
2731         src/libsystemd-network/dhcp-option.c \
2732         src/libsystemd-network/dhcp-packet.c \
2733         src/libsystemd-network/dhcp-internal.h \
2734         src/libsystemd-network/dhcp-server-internal.h \
2735         src/libsystemd-network/dhcp-protocol.h \
2736         src/libsystemd-network/dhcp-lease-internal.h \
2737         src/libsystemd-network/sd-dhcp-lease.c \
2738         src/libsystemd-network/sd-ipv4ll.c \
2739         src/libsystemd-network/ipv4ll-network.c \
2740         src/libsystemd-network/ipv4ll-packet.c \
2741         src/libsystemd-network/ipv4ll-internal.h \
2742         src/libsystemd-network/network-internal.c \
2743         src/libsystemd-network/network-internal.h \
2744         src/systemd/sd-icmp6-nd.h \
2745         src/systemd/sd-dhcp6-client.h \
2746         src/systemd/sd-dhcp6-lease.h \
2747         src/libsystemd-network/sd-icmp6-nd.c \
2748         src/libsystemd-network/sd-dhcp6-client.c \
2749         src/libsystemd-network/dhcp6-internal.h \
2750         src/libsystemd-network/dhcp6-protocol.h \
2751         src/libsystemd-network/dhcp6-network.c \
2752         src/libsystemd-network/dhcp6-option.c \
2753         src/libsystemd-network/dhcp6-lease-internal.h \
2754         src/libsystemd-network/sd-dhcp6-lease.c
2755
2756 libsystemd_network_la_LIBADD = \
2757         libudev-internal.la \
2758         libsystemd-label.la \
2759         libsystemd-internal.la \
2760         libsystemd-shared.la \
2761         $(KMOD_LIBS)
2762
2763 test_dhcp_option_SOURCES = \
2764         src/libsystemd-network/dhcp-protocol.h \
2765         src/libsystemd-network/dhcp-internal.h \
2766         src/libsystemd-network/test-dhcp-option.c
2767
2768 test_dhcp_option_LDADD = \
2769         libsystemd-network.la \
2770         libsystemd-internal.la \
2771         libsystemd-shared.la
2772
2773 test_dhcp_client_SOURCES = \
2774         src/systemd/sd-dhcp-client.h \
2775         src/libsystemd-network/dhcp-protocol.h \
2776         src/libsystemd-network/dhcp-internal.h \
2777         src/libsystemd-network/test-dhcp-client.c
2778
2779 test_dhcp_client_LDADD = \
2780         libsystemd-network.la \
2781         libsystemd-label.la \
2782         libsystemd-internal.la \
2783         libsystemd-shared.la
2784
2785 test_dhcp_server_SOURCES = \
2786         src/libsystemd-network/test-dhcp-server.c
2787
2788 test_dhcp_server_LDADD = \
2789         libsystemd-network.la \
2790         libsystemd-internal.la \
2791         libsystemd-shared.la
2792
2793 test_ipv4ll_SOURCES = \
2794         src/systemd/sd-ipv4ll.h \
2795         src/libsystemd-network/ipv4ll-internal.h \
2796         src/libsystemd-network/test-ipv4ll.c
2797
2798 test_ipv4ll_LDADD = \
2799         libsystemd-network.la \
2800         libsystemd-label.la \
2801         libsystemd-internal.la \
2802         libsystemd-shared.la
2803
2804 test_icmp6_rs_SOURCES = \
2805         src/systemd/sd-dhcp6-client.h \
2806         src/systemd/sd-icmp6-nd.h \
2807         src/libsystemd-network/dhcp6-internal.h \
2808         src/libsystemd-network/test-icmp6-rs.c
2809
2810 test_icmp6_rs_LDADD = \
2811         libsystemd-network.la \
2812         libsystemd-internal.la \
2813         libsystemd-shared.la
2814
2815 test_dhcp6_client_SOURCES = \
2816         src/systemd/sd-dhcp6-client.h \
2817         src/libsystemd-network/dhcp6-internal.h \
2818         src/libsystemd-network/test-dhcp6-client.c
2819
2820 test_dhcp6_client_LDADD = \
2821         libsystemd-network.la \
2822         libsystemd-internal.la \
2823         libsystemd-shared.la
2824
2825 tests += \
2826         test-dhcp-option \
2827         test-dhcp-client \
2828         test-dhcp-server \
2829         test-ipv4ll \
2830         test-icmp6-rs \
2831         test-dhcp6-client
2832
2833 # ------------------------------------------------------------------------------
2834 noinst_LTLIBRARIES += \
2835         libsystemd-terminal.la
2836
2837 libsystemd_terminal_la_CFLAGS = \
2838         $(AM_CFLAGS)
2839
2840 libsystemd_terminal_la_SOURCES = \
2841         src/libsystemd-terminal/term-internal.h \
2842         src/libsystemd-terminal/term-page.c \
2843         src/libsystemd-terminal/term-wcwidth.c
2844
2845 libsystemd_terminal_la_LIBADD = \
2846         libsystemd-internal.la \
2847         libsystemd-shared.la
2848
2849 test_term_page_SOURCES = \
2850         src/libsystemd-terminal/test-term-page.c
2851
2852 test_term_page_LDADD = \
2853         libsystemd-terminal.la \
2854         libsystemd-internal.la \
2855         libsystemd-shared.la
2856
2857 tests += \
2858         test-term-page
2859
2860 # ------------------------------------------------------------------------------
2861 if ENABLE_GTK_DOC
2862 SUBDIRS += \
2863         docs/libudev
2864
2865 noinst_DATA += \
2866         docs/html/libudev \
2867         docs/html/gudev
2868 endif
2869
2870 include_HEADERS += \
2871         src/libudev/libudev.h
2872
2873 lib_LTLIBRARIES += \
2874         libudev.la
2875
2876 libudev_la_SOURCES =\
2877         src/libudev/libudev.sym \
2878         src/libudev/libudev-private.h \
2879         src/libudev/libudev.c \
2880         src/libudev/libudev-list.c \
2881         src/libudev/libudev-util.c \
2882         src/libudev/libudev-device.c \
2883         src/libudev/libudev-enumerate.c \
2884         src/libudev/libudev-monitor.c \
2885         src/libudev/libudev-queue.c \
2886         src/libudev/libudev-hwdb-def.h \
2887         src/libudev/libudev-hwdb.c
2888
2889 libudev_la_CFLAGS = \
2890         $(AM_CFLAGS) \
2891         -fvisibility=hidden
2892
2893 libudev_la_LDFLAGS = \
2894         $(AM_LDFLAGS) \
2895         -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2896         -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2897
2898 libudev_la_LIBADD = \
2899         libsystemd-internal.la \
2900         libsystemd-shared.la
2901
2902 pkgconfiglib_DATA += \
2903         src/libudev/libudev.pc
2904
2905 EXTRA_DIST += \
2906         src/libudev/libudev.pc.in
2907
2908 CLEANFILES += \
2909         src/libudev/libudev.pc \
2910         docs/html/libudev \
2911         docs/html/gudev
2912
2913 docs/html/libudev:
2914         $(AM_V_at)$(MKDIR_P) $(dir $@)
2915         $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2916
2917 docs/html/gudev:
2918         $(AM_V_at)$(MKDIR_P) $(dir $@)
2919         $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2920
2921 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2922 libudev-install-hook:
2923         libname=libudev.so && $(move-to-rootlibdir)
2924
2925 libudev-uninstall-hook:
2926         rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2927
2928 INSTALL_EXEC_HOOKS += libudev-install-hook
2929 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2930
2931 # ------------------------------------------------------------------------------
2932 noinst_LTLIBRARIES += \
2933         libudev-internal.la
2934
2935 libudev_internal_la_SOURCES =\
2936         $(libudev_la_SOURCES) \
2937         src/libudev/libudev-device-private.c
2938
2939 libudev_internal_la_CFLAGS = \
2940         $(AM_CFLAGS) \
2941         -fvisibility=default
2942
2943 # ------------------------------------------------------------------------------
2944 INSTALL_DIRS += \
2945         $(sysconfdir)/udev/rules.d \
2946         $(sysconfdir)/udev/hwdb.d
2947
2948 dist_network_DATA = \
2949         network/99-default.link \
2950         network/80-container-host0.network \
2951         network/80-container-ve.network
2952
2953 dist_udevrules_DATA += \
2954         rules/42-usb-hid-pm.rules \
2955         rules/50-udev-default.rules \
2956         rules/60-drm.rules \
2957         rules/60-keyboard.rules \
2958         rules/60-persistent-storage-tape.rules \
2959         rules/60-persistent-serial.rules \
2960         rules/60-persistent-input.rules \
2961         rules/60-persistent-alsa.rules \
2962         rules/60-persistent-storage.rules \
2963         rules/64-btrfs.rules \
2964         rules/75-net-description.rules \
2965         rules/75-tty-description.rules \
2966         rules/78-sound-card.rules \
2967         rules/80-net-setup-link.rules \
2968         rules/95-udev-late.rules
2969
2970 nodist_udevrules_DATA += \
2971         rules/99-systemd.rules
2972
2973 dist_udevhwdb_DATA = \
2974         hwdb/20-pci-vendor-model.hwdb \
2975         hwdb/20-pci-classes.hwdb \
2976         hwdb/20-usb-vendor-model.hwdb \
2977         hwdb/20-usb-classes.hwdb \
2978         hwdb/20-sdio-vendor-model.hwdb \
2979         hwdb/20-sdio-classes.hwdb \
2980         hwdb/20-bluetooth-vendor-product.hwdb \
2981         hwdb/20-acpi-vendor.hwdb \
2982         hwdb/20-OUI.hwdb \
2983         hwdb/20-net-ifname.hwdb \
2984         hwdb/60-keyboard.hwdb
2985
2986 udevconfdir = $(sysconfdir)/udev
2987 dist_udevconf_DATA = \
2988         src/udev/udev.conf
2989
2990 sharepkgconfigdir = $(datadir)/pkgconfig
2991 sharepkgconfig_DATA = \
2992         src/udev/udev.pc
2993
2994 EXTRA_DIST += \
2995         rules/99-systemd.rules.in \
2996         src/udev/udev.pc.in
2997
2998 CLEANFILES += \
2999         rules/99-systemd.rules \
3000         src/udev/udev.pc
3001
3002 EXTRA_DIST += \
3003         units/systemd-udevd.service.in \
3004         units/systemd-udev-trigger.service.in \
3005         units/systemd-udev-settle.service.in \
3006         units/systemd-udev-hwdb-update.service.in
3007
3008 CLEANFILES += \
3009         units/systemd-udevd.service \
3010         units/systemd-udev-trigger.service \
3011         units/systemd-udev-settle.service \
3012         units/systemd-udev-hwdb-update.service
3013
3014 SOCKETS_TARGET_WANTS += \
3015         systemd-udevd-control.socket \
3016         systemd-udevd-kernel.socket
3017
3018 SYSINIT_TARGET_WANTS += \
3019         systemd-udevd.service \
3020         systemd-udev-trigger.service \
3021         systemd-udev-hwdb-update.service
3022
3023 rootbin_PROGRAMS += \
3024         udevadm
3025
3026 rootlibexec_PROGRAMS += \
3027         systemd-udevd
3028
3029 noinst_LTLIBRARIES += \
3030         libudev-core.la
3031
3032 src/udev/keyboard-keys.txt:
3033         $(AM_V_at)$(MKDIR_P) $(dir $@)
3034         $(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/' > $@
3035
3036 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3037         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3038
3039 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3040         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3041
3042 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3043         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3044
3045 libudev_core_la_SOURCES = \
3046         src/udev/udev.h \
3047         src/udev/udev-event.c \
3048         src/udev/udev-watch.c \
3049         src/udev/udev-node.c \
3050         src/udev/udev-rules.c \
3051         src/udev/udev-ctrl.c \
3052         src/udev/udev-builtin.c \
3053         src/udev/udev-builtin-btrfs.c \
3054         src/udev/udev-builtin-hwdb.c \
3055         src/udev/udev-builtin-input_id.c \
3056         src/udev/udev-builtin-keyboard.c \
3057         src/udev/udev-builtin-net_id.c \
3058         src/udev/udev-builtin-net_setup_link.c \
3059         src/udev/udev-builtin-path_id.c \
3060         src/udev/udev-builtin-usb_id.c \
3061         src/udev/net/link-config.h \
3062         src/udev/net/link-config.c \
3063         src/udev/net/ethtool-util.h \
3064         src/udev/net/ethtool-util.c
3065
3066 nodist_libudev_core_la_SOURCES = \
3067         src/udev/keyboard-keys-from-name.h \
3068         src/udev/keyboard-keys-to-name.h \
3069         src/udev/net/link-config-gperf.c
3070
3071 BUILT_SOURCES += \
3072         $(nodist_libudev_core_la_SOURCES)
3073
3074 CLEANFILES += \
3075         src/udev/keyboard-keys-from-name.gperf \
3076         src/udev/keyboard-keys.txt \
3077         src/udev/net/link-config-gperf.c
3078
3079 EXTRA_DIST += \
3080         src/udev/net/link-config-gperf.gperf
3081
3082 libudev_core_la_CFLAGS = \
3083         $(AM_CFLAGS) \
3084         $(BLKID_CFLAGS) \
3085         $(KMOD_CFLAGS)
3086
3087 libudev_core_la_LIBADD = \
3088         libudev-internal.la \
3089         libsystemd-label.la \
3090         libsystemd-internal.la \
3091         libsystemd-network.la \
3092         libsystemd-shared.la \
3093         $(BLKID_LIBS) \
3094         $(KMOD_LIBS)
3095
3096 libudev_core_la_CPPFLAGS = \
3097         $(AM_CPPFLAGS) \
3098         -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
3099
3100 if ENABLE_FIRMWARE
3101 libudev_core_la_SOURCES += \
3102         src/udev/udev-builtin-firmware.c
3103
3104 dist_udevrules_DATA += \
3105         rules/50-firmware.rules
3106 endif
3107
3108 if HAVE_KMOD
3109 libudev_core_la_SOURCES += \
3110         src/udev/udev-builtin-kmod.c
3111
3112 dist_udevrules_DATA += \
3113         rules/80-drivers.rules
3114 endif
3115
3116 if HAVE_BLKID
3117 libudev_core_la_SOURCES += \
3118         src/udev/udev-builtin-blkid.c
3119 endif
3120
3121 if HAVE_ACL
3122 libudev_core_la_SOURCES += \
3123         src/udev/udev-builtin-uaccess.c \
3124         src/login/logind-acl.c \
3125         src/libsystemd/sd-login/sd-login.c \
3126         src/systemd/sd-login.h
3127
3128 libudev_core_la_LIBADD += \
3129         libsystemd-acl.la
3130 endif
3131
3132 systemd_udevd_SOURCES = \
3133         src/udev/udevd.c
3134
3135 systemd_udevd_LDADD = \
3136         libudev-core.la
3137
3138 udevadm_SOURCES = \
3139         src/udev/udevadm.c \
3140         src/udev/udevadm-info.c \
3141         src/udev/udevadm-control.c \
3142         src/udev/udevadm-monitor.c \
3143         src/udev/udevadm-hwdb.c \
3144         src/udev/udevadm-settle.c \
3145         src/udev/udevadm-trigger.c \
3146         src/udev/udevadm-test.c \
3147         src/udev/udevadm-test-builtin.c
3148
3149 udevadm_LDADD = \
3150         libudev-core.la
3151
3152 # Update hwdb on installation. Do not bother if installing
3153 # in DESTDIR, since this is likely for packaging purposes.
3154 hwdb-update-hook:
3155         -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3156
3157 INSTALL_DATA_HOOKS += \
3158         hwdb-update-hook
3159
3160 hwdb-remove-hook:
3161         -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3162
3163 # ------------------------------------------------------------------------------
3164 TESTS += \
3165         test/udev-test.pl \
3166         test/rules-test.sh
3167
3168 manual_tests += \
3169         test-libudev \
3170         test-udev
3171
3172 test_libudev_SOURCES = \
3173         src/test/test-libudev.c
3174
3175 test_libudev_LDADD = \
3176         libsystemd-label.la \
3177         libudev-internal.la \
3178         libsystemd-shared.la
3179
3180 test_udev_SOURCES = \
3181         src/test/test-udev.c
3182
3183 test_udev_LDADD = \
3184         libudev-core.la \
3185         $(BLKID_LIBS) \
3186         $(KMOD_LIBS) \
3187         $(SELINUX_LIBS)
3188
3189 if HAVE_ACL
3190 test_udev_LDADD += \
3191         libsystemd-acl.la
3192 endif
3193
3194 check_DATA += \
3195         test/sys
3196
3197 # packed sysfs test tree
3198 test/sys:
3199         $(AM_V_at)$(MKDIR_P) $(dir $@)
3200         $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3201
3202 test-sys-distclean:
3203         -rm -rf test/sys
3204 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3205
3206 EXTRA_DIST += \
3207         test/sys.tar.xz \
3208         test/udev-test.pl \
3209         test/rules-test.sh \
3210         test/rule-syntax-check.py
3211
3212 # ------------------------------------------------------------------------------
3213 ata_id_SOURCES = \
3214         src/udev/ata_id/ata_id.c
3215
3216 ata_id_LDADD = \
3217         libudev-internal.la \
3218         libsystemd-shared.la
3219
3220 udevlibexec_PROGRAMS += \
3221         ata_id
3222
3223 # ------------------------------------------------------------------------------
3224 cdrom_id_SOURCES = \
3225         src/udev/cdrom_id/cdrom_id.c
3226
3227 cdrom_id_LDADD = \
3228         libudev-internal.la \
3229         libsystemd-shared.la
3230
3231 udevlibexec_PROGRAMS += \
3232         cdrom_id
3233
3234 dist_udevrules_DATA += \
3235         rules/60-cdrom_id.rules
3236
3237 # ------------------------------------------------------------------------------
3238 collect_SOURCES = \
3239         src/udev/collect/collect.c
3240
3241 collect_LDADD = \
3242         libudev-internal.la \
3243         libsystemd-shared.la
3244
3245 udevlibexec_PROGRAMS += \
3246         collect
3247
3248 # ------------------------------------------------------------------------------
3249 scsi_id_SOURCES =\
3250         src/udev/scsi_id/scsi_id.c \
3251         src/udev/scsi_id/scsi_serial.c \
3252         src/udev/scsi_id/scsi.h \
3253         src/udev/scsi_id/scsi_id.h
3254
3255 scsi_id_LDADD = \
3256         libudev-internal.la \
3257         libsystemd-shared.la
3258
3259 udevlibexec_PROGRAMS += \
3260         scsi_id
3261
3262 EXTRA_DIST += \
3263         src/udev/scsi_id/README
3264
3265 # ------------------------------------------------------------------------------
3266 v4l_id_SOURCES = \
3267         src/udev/v4l_id/v4l_id.c
3268
3269 v4l_id_LDADD = \
3270         libudev-internal.la
3271
3272 udevlibexec_PROGRAMS += \
3273         v4l_id
3274
3275 dist_udevrules_DATA += \
3276         rules/60-persistent-v4l.rules
3277
3278 # ------------------------------------------------------------------------------
3279 accelerometer_SOURCES = \
3280         src/udev/accelerometer/accelerometer.c
3281
3282 accelerometer_LDADD = \
3283         libudev-internal.la -lm \
3284         libsystemd-shared.la
3285
3286 udevlibexec_PROGRAMS += \
3287         accelerometer
3288
3289 dist_udevrules_DATA += \
3290         rules/61-accelerometer.rules
3291
3292 # ------------------------------------------------------------------------------
3293 if ENABLE_GUDEV
3294 if ENABLE_GTK_DOC
3295 SUBDIRS += \
3296         docs/gudev
3297 endif
3298
3299 libgudev_includedir = \
3300         $(includedir)/gudev-1.0/gudev
3301
3302 libgudev_include_HEADERS = \
3303         src/gudev/gudev.h \
3304         src/gudev/gudevenums.h \
3305         src/gudev/gudevenumtypes.h \
3306         src/gudev/gudevtypes.h \
3307         src/gudev/gudevclient.h \
3308         src/gudev/gudevdevice.h \
3309         src/gudev/gudevenumerator.h
3310
3311 lib_LTLIBRARIES += libgudev-1.0.la
3312
3313 pkgconfiglib_DATA += \
3314         src/gudev/gudev-1.0.pc
3315
3316 CLEANFILES += \
3317         src/gudev/gudev-1.0.pc
3318
3319 libgudev_1_0_la_SOURCES = \
3320         src/gudev/libgudev-1.0.sym \
3321         src/gudev/gudevenums.h \
3322         src/gudev/gudevenumtypes.h \
3323         src/gudev/gudevenumtypes.h\
3324         src/gudev/gudevtypes.h \
3325         src/gudev/gudevclient.h \
3326         src/gudev/gudevclient.c \
3327         src/gudev/gudevdevice.h \
3328         src/gudev/gudevdevice.c \
3329         src/gudev/gudevenumerator.h \
3330         src/gudev/gudevenumerator.c \
3331         src/gudev/gudevprivate.h
3332
3333 nodist_libgudev_1_0_la_SOURCES = \
3334         src/gudev/gudevmarshal.h \
3335         src/gudev/gudevmarshal.c \
3336         src/gudev/gudevenumtypes.h \
3337         src/gudev/gudevenumtypes.c
3338
3339 BUILT_SOURCES += \
3340         $(nodist_libgudev_1_0_la_SOURCES)
3341
3342 libgudev_1_0_la_CPPFLAGS = \
3343         $(AM_CPPFLAGS) \
3344         -I$(top_builddir)/src\
3345         -I$(top_srcdir)/src\
3346         -I$(top_builddir)/src/gudev \
3347         -I$(top_srcdir)/src/gudev \
3348         -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3349         -D_GUDEV_COMPILATION \
3350         -DG_LOG_DOMAIN=\"GUdev\"
3351
3352 libgudev_1_0_la_CFLAGS = \
3353         $(AM_CFLAGS) \
3354         -fvisibility=default \
3355         $(GLIB_CFLAGS)
3356
3357 libgudev_1_0_la_LIBADD = \
3358         libudev.la \
3359         $(GLIB_LIBS)
3360
3361 libgudev_1_0_la_LDFLAGS = \
3362         $(AM_LDFLAGS) \
3363         -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3364         -export-dynamic \
3365         -no-undefined \
3366         -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3367
3368 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3369         $(AM_V_at)$(MKDIR_P) $(dir $@)
3370         $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3371
3372 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3373         $(AM_V_at)$(MKDIR_P) $(dir $@)
3374         $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3375         glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3376
3377 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3378         $(AM_V_at)$(MKDIR_P) $(dir $@)
3379         $(AM_V_GEN)glib-mkenums --template $^ > $@
3380
3381 if HAVE_INTROSPECTION
3382 -include $(INTROSPECTION_MAKEFILE)
3383
3384 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3385
3386 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3387
3388 src_gudev_GUdev_1_0_gir_CFLAGS = \
3389         $(AM_CFLAGS) \
3390         $(INCLUDES) \
3391         -D_GUDEV_COMPILATION \
3392         -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3393         -I$(top_srcdir)/src \
3394         -I$(top_builddir)/src \
3395         -I$(top_srcdir)/src/gudev \
3396         -I$(top_builddir)/src/gudev
3397
3398 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3399
3400 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3401         --pkg-export=gudev-1.0 \
3402         --warn-all
3403
3404 src_gudev_GUdev_1_0_gir_FILES = \
3405         src/gudev/gudev.h \
3406         src/gudev/gudevtypes.h \
3407         src/gudev/gudevenums.h \
3408         src/gudev/gudevenumtypes.h \
3409         src/gudev/gudevclient.h \
3410         src/gudev/gudevdevice.h \
3411         src/gudev/gudevenumerator.h \
3412         src/gudev/gudevclient.c \
3413         src/gudev/gudevdevice.c \
3414         src/gudev/gudevenumerator.c
3415
3416 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3417 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3418
3419 girdir = $(datadir)/gir-1.0
3420 gir_DATA = \
3421         src/gudev/GUdev-1.0.gir
3422
3423 typelibsdir = $(libdir)/girepository-1.0
3424 typelibs_DATA = \
3425         src/gudev/GUdev-1.0.typelib
3426
3427 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3428 endif # HAVE_INTROSPECTION
3429 endif
3430
3431 EXTRA_DIST += \
3432         src/gudev/gudev-1.0.pc.in \
3433         src/gudev/gudevmarshal.list \
3434         src/gudev/gudevenumtypes.h.template \
3435         src/gudev/gudevenumtypes.c.template \
3436         src/gudev/gjs-example.js \
3437         src/gudev/seed-example-enum.js \
3438         src/gudev/seed-example.js
3439
3440 # ------------------------------------------------------------------------------
3441 mtd_probe_SOURCES =  \
3442         src/udev/mtd_probe/mtd_probe.c \
3443         src/udev/mtd_probe/mtd_probe.h \
3444         src/udev/mtd_probe/probe_smartmedia.c
3445
3446 dist_udevrules_DATA += \
3447         rules/75-probe_mtd.rules
3448
3449 udevlibexec_PROGRAMS += \
3450         mtd_probe
3451
3452 # ------------------------------------------------------------------------------
3453 test_id128_SOURCES = \
3454         src/test/test-id128.c
3455
3456 test_id128_LDADD = \
3457         libsystemd-internal.la \
3458         libsystemd-shared.la
3459
3460 tests += \
3461         test-id128
3462
3463 # ------------------------------------------------------------------------------
3464
3465 rootlibexec_PROGRAMS += \
3466         systemd-activate
3467
3468 systemd_activate_SOURCES = \
3469         src/activate/activate.c
3470
3471 systemd_activate_LDADD = \
3472         libsystemd-label.la \
3473         libsystemd-internal.la \
3474         libsystemd-shared.la
3475
3476 # ------------------------------------------------------------------------------
3477 systemd_journald_SOURCES = \
3478         src/journal/journald.c \
3479         src/journal/journald-server.h
3480
3481 systemd_journald_LDADD = \
3482         libsystemd-journal-core.la \
3483         libsystemd-internal.la \
3484         libsystemd-shared.la
3485
3486 systemd_cat_SOURCES = \
3487         src/journal/cat.c
3488
3489 systemd_cat_LDADD = \
3490         libsystemd-journal-core.la
3491
3492 if HAVE_MICROHTTPD
3493 rootlibexec_PROGRAMS += \
3494         systemd-journal-remote
3495
3496 systemd_journal_remote_SOURCES = \
3497         src/journal-remote/journal-remote-parse.h \
3498         src/journal-remote/journal-remote-parse.c \
3499         src/journal-remote/journal-remote-write.h \
3500         src/journal-remote/journal-remote-write.c \
3501         src/journal-remote/journal-remote.h \
3502         src/journal-remote/journal-remote.c
3503
3504 systemd_journal_remote_LDADD = \
3505         libsystemd-internal.la \
3506         libsystemd-journal-core.la
3507
3508 systemd_journal_remote_SOURCES += \
3509         src/journal-remote/microhttpd-util.h \
3510         src/journal-remote/microhttpd-util.c
3511
3512 systemd_journal_remote_CFLAGS = \
3513         $(AM_CFLAGS) \
3514         $(MICROHTTPD_CFLAGS)
3515
3516 systemd_journal_remote_LDADD += \
3517         $(MICROHTTPD_LIBS)
3518
3519 if HAVE_GNUTLS
3520 systemd_journal_remote_LDADD += \
3521         $(GNUTLS_LIBS)
3522
3523 # systemd-journal-remote make sense mostly with full crypto stack
3524 dist_systemunit_DATA += \
3525         units/systemd-journal-remote.socket
3526
3527 nodist_systemunit_DATA += \
3528         units/systemd-journal-remote.service
3529
3530 EXTRA_DIST += \
3531         units/systemd-journal-remote.service.in
3532
3533 journal-remote-install-hook: journal-install-hook
3534         -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3535         -chown 0:0 $(DESTDIR)/var/log/journal/remote
3536         -chmod 755 $(DESTDIR)/var/log/journal/remote
3537
3538 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3539
3540 endif
3541
3542 nodist_pkgsysconf_DATA += \
3543         src/journal-remote/journal-remote.conf
3544
3545 EXTRA_DIST += \
3546         src/journal-remote/journal-remote.conf.in
3547
3548 CLEANFILES += \
3549         src/journal-remote/journal-remote.conf
3550 endif
3551
3552 if HAVE_LIBCURL
3553 rootlibexec_PROGRAMS += \
3554         systemd-journal-upload
3555
3556 systemd_journal_upload_SOURCES = \
3557         src/journal-remote/journal-upload.h \
3558         src/journal-remote/journal-upload.c \
3559         src/journal-remote/journal-upload-journal.c
3560
3561 systemd_journal_upload_CFLAGS = \
3562         $(AM_CFLAGS) \
3563         $(LIBCURL_CFLAGS)
3564
3565 systemd_journal_upload_LDADD = \
3566         libsystemd-core.la \
3567         libsystemd-internal.la \
3568         libsystemd-journal-internal.la \
3569         libsystemd-shared.la \
3570         $(LIBCURL_LIBS)
3571
3572 nodist_systemunit_DATA += \
3573         units/systemd-journal-upload.service
3574
3575 EXTRA_DIST += \
3576         units/systemd-journal-upload.service.in
3577
3578 nodist_pkgsysconf_DATA += \
3579         src/journal-remote/journal-upload.conf
3580
3581 EXTRA_DIST += \
3582         src/journal-remote/journal-upload.conf.in
3583
3584 CLEANFILES += \
3585         src/journal-remote/journal-upload.conf
3586 endif
3587
3588 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3589 journalctl_CFLAGS = \
3590         $(AM_CFLAGS)
3591
3592 journalctl_SOURCES = \
3593         src/journal/journalctl.c
3594
3595 journalctl_LDADD = \
3596         libsystemd-journal-internal.la \
3597         libsystemd-internal.la \
3598         libsystemd-logs.la \
3599         libsystemd-shared.la
3600
3601 if HAVE_ACL
3602 journalctl_LDADD += \
3603         libsystemd-acl.la
3604 endif
3605
3606 if HAVE_QRENCODE
3607 journalctl_SOURCES += \
3608         src/journal/journal-qrcode.c \
3609         src/journal/journal-qrcode.h
3610
3611 journalctl_CFLAGS += \
3612         $(QRENCODE_CFLAGS)
3613
3614 journalctl_LDADD += \
3615         $(QRENCODE_LIBS)
3616 endif
3617
3618 test_journal_SOURCES = \
3619         src/journal/test-journal.c
3620
3621 test_journal_LDADD = \
3622         libsystemd-journal-core.la
3623
3624 test_journal_send_SOURCES = \
3625         src/journal/test-journal-send.c
3626
3627 test_journal_send_LDADD = \
3628         libsystemd-journal-core.la
3629
3630 test_journal_syslog_SOURCES = \
3631         src/journal/test-journal-syslog.c
3632
3633 test_journal_syslog_LDADD = \
3634         libsystemd-journal-core.la
3635
3636 test_journal_match_SOURCES = \
3637         src/journal/test-journal-match.c
3638
3639 test_journal_match_LDADD = \
3640         libsystemd-journal-core.la
3641
3642 test_journal_enum_SOURCES = \
3643         src/journal/test-journal-enum.c
3644
3645 test_journal_enum_LDADD = \
3646         libsystemd-journal-core.la
3647
3648 test_journal_stream_SOURCES = \
3649         src/journal/test-journal-stream.c
3650
3651 test_journal_stream_LDADD = \
3652         libsystemd-journal-core.la
3653
3654 test_journal_flush_SOURCES = \
3655         src/journal/test-journal-flush.c
3656
3657 test_journal_flush_LDADD = \
3658         libsystemd-journal-core.la
3659
3660 test_journal_init_SOURCES = \
3661         src/journal/test-journal-init.c
3662
3663 test_journal_init_LDADD = \
3664         libsystemd-journal-core.la
3665
3666 test_journal_verify_SOURCES = \
3667         src/journal/test-journal-verify.c
3668
3669 test_journal_verify_LDADD = \
3670         libsystemd-journal-core.la
3671
3672 test_journal_interleaving_SOURCES = \
3673         src/journal/test-journal-interleaving.c
3674
3675 test_journal_interleaving_LDADD = \
3676         libsystemd-journal-core.la
3677
3678 test_mmap_cache_SOURCES = \
3679         src/journal/test-mmap-cache.c
3680
3681 test_mmap_cache_LDADD = \
3682         libsystemd-journal-core.la
3683
3684 test_catalog_SOURCES = \
3685         src/journal/test-catalog.c
3686
3687 test_catalog_CPPFLAGS = \
3688         $(AM_CPPFLAGS) \
3689         -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3690
3691 test_catalog_LDADD = \
3692         libsystemd-journal-core.la
3693
3694 test_compress_SOURCES = \
3695         src/journal/test-compress.c
3696
3697 test_compress_LDADD = \
3698         libsystemd-journal-internal.la \
3699         libsystemd-shared.la
3700
3701 test_compress_benchmark_SOURCES = \
3702         src/journal/test-compress-benchmark.c
3703
3704 test_compress_benchmark_LDADD = \
3705         libsystemd-journal-internal.la \
3706         libsystemd-shared.la
3707
3708 libsystemd_journal_core_la_SOURCES = \
3709         src/journal/journald-kmsg.c \
3710         src/journal/journald-kmsg.h \
3711         src/journal/journald-syslog.c \
3712         src/journal/journald-syslog.h \
3713         src/journal/journald-stream.c \
3714         src/journal/journald-stream.h \
3715         src/journal/journald-server.c \
3716         src/journal/journald-server.h \
3717         src/journal/journald-console.c \
3718         src/journal/journald-console.h \
3719         src/journal/journald-wall.c \
3720         src/journal/journald-wall.h \
3721         src/journal/journald-native.c \
3722         src/journal/journald-native.h \
3723         src/journal/journald-rate-limit.c \
3724         src/journal/journald-rate-limit.h \
3725         src/journal/journal-internal.h
3726
3727 nodist_libsystemd_journal_core_la_SOURCES = \
3728         src/journal/journald-gperf.c
3729
3730 libsystemd_journal_core_la_LIBADD = \
3731         libsystemd-journal-internal.la \
3732         libudev-internal.la \
3733         libsystemd-capability.la \
3734         libsystemd-label.la \
3735         libsystemd-internal.la \
3736         libsystemd-shared.la
3737
3738 if HAVE_ACL
3739 libsystemd_journal_core_la_LIBADD += \
3740         libsystemd-acl.la
3741 endif
3742
3743 noinst_LTLIBRARIES += \
3744         libsystemd-journal-core.la
3745
3746 journal-install-hook:
3747         -$(MKDIR_P) $(DESTDIR)/var/log/journal
3748         -chown 0:0 $(DESTDIR)/var/log/journal
3749         -chmod 755 $(DESTDIR)/var/log/journal
3750         -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3751         -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3752
3753 journal-uninstall-hook:
3754         -rmdir $(DESTDIR)/var/log/journal/remote
3755         -rmdir $(DESTDIR)/var/log/journal/
3756
3757 INSTALL_EXEC_HOOKS += journal-install-hook
3758 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3759
3760 # ------------------------------------------------------------------------------
3761 # Update catalog on installation. Do not bother if installing
3762 # in DESTDIR, since this is likely for packaging purposes.
3763 catalog-update-hook:
3764         -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3765
3766 INSTALL_DATA_HOOKS += \
3767         catalog-update-hook
3768
3769 catalog-remove-hook:
3770         -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3771
3772 UNINSTALL_DATA_HOOKS += \
3773         catalog-remove-hook
3774
3775 manual_tests += \
3776         test-journal-enum
3777
3778 tests += \
3779         test-journal \
3780         test-journal-send \
3781         test-journal-syslog \
3782         test-journal-match \
3783         test-journal-stream \
3784         test-journal-init \
3785         test-journal-verify \
3786         test-journal-interleaving \
3787         test-journal-flush \
3788         test-mmap-cache \
3789         test-catalog
3790
3791 if HAVE_COMPRESSION
3792 tests += \
3793         test-compress \
3794         test-compress-benchmark
3795 endif
3796
3797 pkginclude_HEADERS += \
3798         src/systemd/sd-journal.h \
3799         src/systemd/sd-messages.h \
3800         src/systemd/_sd-common.h
3801
3802 libsystemd_journal_internal_la_SOURCES = \
3803         src/journal/sd-journal.c \
3804         src/systemd/sd-journal.h \
3805         src/systemd/_sd-common.h \
3806         src/journal/journal-file.c \
3807         src/journal/journal-file.h \
3808         src/journal/journal-vacuum.c \
3809         src/journal/journal-vacuum.h \
3810         src/journal/journal-verify.c \
3811         src/journal/journal-verify.h \
3812         src/journal/lookup3.c \
3813         src/journal/lookup3.h \
3814         src/journal/journal-send.c \
3815         src/journal/journal-def.h \
3816         src/journal/compress.h \
3817         src/journal/catalog.c \
3818         src/journal/catalog.h \
3819         src/journal/mmap-cache.c \
3820         src/journal/mmap-cache.h
3821
3822 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3823 libsystemd_journal_internal_la_CFLAGS = \
3824         $(AM_CFLAGS)
3825
3826 libsystemd_journal_internal_la_LIBADD =
3827
3828 libsystemd_journal_internal_la_SOURCES += \
3829         src/journal/compress.c
3830
3831 if HAVE_XZ
3832 libsystemd_journal_internal_la_CFLAGS += \
3833         $(XZ_CFLAGS)
3834
3835 libsystemd_journal_internal_la_LIBADD += \
3836         $(XZ_LIBS)
3837 endif
3838
3839 if HAVE_LZ4
3840 libsystemd_journal_internal_la_LIBADD += \
3841         -llz4
3842 endif
3843
3844 if HAVE_GCRYPT
3845 libsystemd_journal_internal_la_SOURCES += \
3846         src/journal/journal-authenticate.c \
3847         src/journal/journal-authenticate.h \
3848         src/journal/fsprg.c \
3849         src/journal/fsprg.h
3850
3851 libsystemd_journal_internal_la_LIBADD += \
3852         $(GCRYPT_LIBS)
3853
3854 # fsprg.c is a drop-in file using void pointer arithmetic
3855 libsystemd_journal_internal_la_CFLAGS += \
3856         $(GCRYPT_CFLAGS) \
3857         -Wno-pointer-arith
3858 endif
3859
3860 noinst_LTLIBRARIES += \
3861         libsystemd-journal-internal.la
3862
3863 rootlibexec_PROGRAMS += \
3864         systemd-journald
3865
3866 rootbin_PROGRAMS += \
3867         journalctl
3868
3869 bin_PROGRAMS += \
3870         systemd-cat
3871
3872 dist_systemunit_DATA += \
3873         units/systemd-journald.socket \
3874         units/systemd-journald-dev-log.socket
3875
3876 nodist_systemunit_DATA += \
3877         units/systemd-journald.service \
3878         units/systemd-journal-flush.service \
3879         units/systemd-journal-catalog-update.service
3880
3881 dist_pkgsysconf_DATA += \
3882         src/journal/journald.conf
3883
3884 dist_catalog_DATA = \
3885         catalog/systemd.fr.catalog \
3886         catalog/systemd.ru.catalog \
3887         catalog/systemd.it.catalog \
3888         catalog/systemd.catalog
3889
3890 SOCKETS_TARGET_WANTS += \
3891         systemd-journald.socket \
3892         systemd-journald-dev-log.socket
3893
3894 SYSINIT_TARGET_WANTS += \
3895         systemd-journald.service \
3896         systemd-journal-flush.service \
3897         systemd-journal-catalog-update.service
3898
3899 EXTRA_DIST += \
3900         units/systemd-journald.service.in \
3901         units/systemd-journal-flush.service.in \
3902         units/systemd-journal-catalog-update.service.in \
3903         src/journal/journald-gperf.gperf
3904
3905 CLEANFILES += \
3906         src/journal/journald-gperf.c
3907
3908 # ------------------------------------------------------------------------------
3909 if HAVE_MICROHTTPD
3910 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3911
3912 rootlibexec_PROGRAMS += \
3913         systemd-journal-gatewayd
3914
3915 systemd_journal_gatewayd_SOURCES = \
3916         src/journal-remote/journal-gatewayd.c \
3917         src/journal-remote/microhttpd-util.h \
3918         src/journal-remote/microhttpd-util.c
3919
3920 systemd_journal_gatewayd_LDADD = \
3921         libsystemd-logs.la \
3922         libsystemd-journal-internal.la \
3923         libsystemd-internal.la \
3924         libsystemd-shared.la \
3925         $(MICROHTTPD_LIBS)
3926
3927 if HAVE_GNUTLS
3928 systemd_journal_gatewayd_LDADD += \
3929         $(GNUTLS_LIBS)
3930 endif
3931
3932 systemd_journal_gatewayd_CFLAGS = \
3933         $(AM_CFLAGS) \
3934         $(MICROHTTPD_CFLAGS)
3935
3936 systemd_journal_gatewayd_CPPFLAGS = \
3937         $(AM_CPPFLAGS) \
3938         -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3939
3940 dist_systemunit_DATA += \
3941         units/systemd-journal-gatewayd.socket
3942
3943 nodist_systemunit_DATA += \
3944         units/systemd-journal-gatewayd.service
3945
3946 dist_gatewayddocumentroot_DATA = \
3947         src/journal-remote/browse.html
3948
3949 endif
3950
3951 EXTRA_DIST += \
3952         units/systemd-journal-gatewayd.service.in
3953
3954 # ------------------------------------------------------------------------------
3955
3956 systemd_socket_proxyd_SOURCES = \
3957         src/socket-proxy/socket-proxyd.c
3958
3959 systemd_socket_proxyd_LDADD = \
3960         libsystemd-logs.la \
3961         libsystemd-internal.la \
3962         libsystemd-journal-internal.la \
3963         libsystemd-shared.la \
3964         libsystemd-resolve.la
3965
3966 # ------------------------------------------------------------------------------
3967 if ENABLE_COREDUMP
3968 systemd_coredump_SOURCES = \
3969         src/journal/coredump.c \
3970         src/journal/coredump-vacuum.c \
3971         src/journal/coredump-vacuum.h
3972
3973 systemd_coredump_LDADD = \
3974         libsystemd-journal-internal.la \
3975         libsystemd-label.la \
3976         libsystemd-internal.la \
3977         libsystemd-shared.la
3978
3979 if HAVE_ELFUTILS
3980 systemd_coredump_SOURCES += \
3981         src/journal/stacktrace.c \
3982         src/journal/stacktrace.h
3983
3984 systemd_coredump_LDADD += \
3985         $(ELFUTILS_LIBS)
3986 endif
3987
3988 rootlibexec_PROGRAMS += \
3989         systemd-coredump
3990
3991 dist_pkgsysconf_DATA += \
3992         src/journal/coredump.conf
3993
3994 if HAVE_ACL
3995 systemd_coredump_LDADD += \
3996         libsystemd-acl.la
3997 endif
3998
3999 coredumpctl_SOURCES = \
4000         src/journal/coredumpctl.c
4001
4002 coredumpctl_LDADD = \
4003         libsystemd-journal-internal.la \
4004         libsystemd-internal.la \
4005         libsystemd-shared.la
4006
4007 bin_PROGRAMS += \
4008         coredumpctl
4009
4010 manual_tests += \
4011         test-coredump-vacuum
4012
4013 test_coredump_vacuum_SOURCES = \
4014         src/journal/test-coredump-vacuum.c  \
4015         src/journal/coredump-vacuum.c \
4016         src/journal/coredump-vacuum.h
4017
4018 test_coredump_vacuum_LDADD = \
4019         libsystemd-internal.la \
4020         libsystemd-shared.la
4021
4022 dist_bashcompletion_DATA += \
4023         shell-completion/bash/coredumpctl
4024
4025 dist_zshcompletion_DATA += \
4026         shell-completion/zsh/_coredumpctl
4027
4028 GENERAL_ALIASES += \
4029         $(bindir)/coredumpctl $(bindir)/systemd-coredumpctl
4030
4031 sysctl_DATA = \
4032         sysctl.d/50-coredump.conf
4033
4034 CLEANFILES += \
4035         sysctl.d/50-coredump.conf
4036 endif
4037
4038 EXTRA_DIST += \
4039         sysctl.d/50-coredump.conf.in
4040
4041 # ------------------------------------------------------------------------------
4042 if ENABLE_BINFMT
4043 systemd_binfmt_SOURCES = \
4044         src/binfmt/binfmt.c
4045
4046 systemd_binfmt_LDADD = \
4047         libsystemd-shared.la
4048
4049 rootlibexec_PROGRAMS += \
4050         systemd-binfmt
4051
4052 dist_systemunit_DATA += \
4053         units/proc-sys-fs-binfmt_misc.automount \
4054         units/proc-sys-fs-binfmt_misc.mount
4055
4056 nodist_systemunit_DATA += \
4057         units/systemd-binfmt.service
4058
4059 INSTALL_DIRS += \
4060         $(prefix)/lib/binfmt.d \
4061         $(sysconfdir)/binfmt.d
4062
4063 SYSINIT_TARGET_WANTS += \
4064         systemd-binfmt.service \
4065         proc-sys-fs-binfmt_misc.automount
4066
4067 endif
4068
4069 EXTRA_DIST += \
4070         units/systemd-binfmt.service.in
4071
4072 # ------------------------------------------------------------------------------
4073 if ENABLE_VCONSOLE
4074 systemd_vconsole_setup_SOURCES = \
4075         src/vconsole/vconsole-setup.c
4076
4077 systemd_vconsole_setup_LDADD = \
4078         libsystemd-shared.la
4079
4080 rootlibexec_PROGRAMS += \
4081         systemd-vconsole-setup
4082
4083 nodist_systemunit_DATA += \
4084         units/systemd-vconsole-setup.service
4085
4086 SYSINIT_TARGET_WANTS += \
4087         systemd-vconsole-setup.service
4088 endif
4089
4090 EXTRA_DIST += \
4091         units/systemd-vconsole-setup.service.in
4092
4093 # ------------------------------------------------------------------------------
4094 if ENABLE_READAHEAD
4095 systemd_readahead_SOURCES = \
4096         src/readahead/readahead.c \
4097         src/readahead/readahead-collect.c \
4098         src/readahead/readahead-replay.c \
4099         src/readahead/readahead-analyze.c \
4100         src/readahead/readahead-common.c \
4101         src/readahead/readahead-common.h
4102
4103 systemd_readahead_LDADD = \
4104         libsystemd-internal.la \
4105         libudev-internal.la \
4106         libsystemd-shared.la
4107
4108 dist_doc_DATA += \
4109         src/readahead/sd-readahead.c \
4110         src/systemd/sd-readahead.h
4111
4112 rootlibexec_PROGRAMS += \
4113         systemd-readahead
4114
4115 dist_systemunit_DATA += \
4116         units/systemd-readahead-drop.service \
4117         units/systemd-readahead-done.timer
4118
4119 nodist_systemunit_DATA += \
4120         units/systemd-readahead-collect.service \
4121         units/systemd-readahead-replay.service \
4122         units/systemd-readahead-done.service
4123
4124 manual_tests += \
4125         test-ssd
4126
4127 test_ssd_SOURCES = \
4128         src/readahead/test-ssd.c \
4129         src/readahead/readahead-common.c \
4130         src/readahead/readahead-common.h
4131
4132 test_ssd_LDADD = \
4133         libsystemd-internal.la \
4134         libudev-internal.la \
4135         libsystemd-shared.la
4136
4137 endif
4138
4139 EXTRA_DIST += \
4140         units/systemd-readahead-collect.service.in \
4141         units/systemd-readahead-replay.service.in \
4142         units/systemd-readahead-done.service.in
4143
4144 # ------------------------------------------------------------------------------
4145 if ENABLE_BOOTCHART
4146 systemd_bootchart_SOURCES = \
4147         src/bootchart/bootchart.c \
4148         src/bootchart/bootchart.h \
4149         src/bootchart/store.c \
4150         src/bootchart/store.h \
4151         src/bootchart/svg.c \
4152         src/bootchart/svg.h
4153
4154 systemd_bootchart_LDADD = \
4155         libsystemd-journal-internal.la \
4156         libsystemd-shared.la
4157
4158 rootlibexec_PROGRAMS += \
4159         systemd-bootchart
4160
4161 dist_pkgsysconf_DATA += \
4162         src/bootchart/bootchart.conf
4163 endif
4164
4165 # ------------------------------------------------------------------------------
4166 if ENABLE_QUOTACHECK
4167 rootlibexec_PROGRAMS += \
4168         systemd-quotacheck
4169
4170 nodist_systemunit_DATA += \
4171         units/systemd-quotacheck.service
4172
4173 systemd_quotacheck_SOURCES = \
4174         src/quotacheck/quotacheck.c
4175
4176 systemd_quotacheck_LDADD = \
4177         libsystemd-shared.la
4178 endif
4179
4180 EXTRA_DIST += \
4181         units/systemd-quotacheck.service.in
4182
4183 nodist_systemunit_DATA += \
4184         units/quotaon.service
4185
4186 # ------------------------------------------------------------------------------
4187 if ENABLE_RANDOMSEED
4188 rootlibexec_PROGRAMS += \
4189         systemd-random-seed
4190
4191 nodist_systemunit_DATA += \
4192         units/systemd-random-seed.service
4193
4194 systemd_random_seed_SOURCES = \
4195         src/random-seed/random-seed.c
4196
4197 systemd_random_seed_LDADD = \
4198         libsystemd-label.la \
4199         libsystemd-shared.la
4200
4201 SYSINIT_TARGET_WANTS += \
4202         systemd-random-seed.service
4203
4204 endif
4205
4206 EXTRA_DIST += \
4207         units/systemd-random-seed.service.in
4208
4209 # ------------------------------------------------------------------------------
4210 if ENABLE_BACKLIGHT
4211 rootlibexec_PROGRAMS += \
4212         systemd-backlight
4213
4214 nodist_systemunit_DATA += \
4215         units/systemd-backlight@.service
4216
4217 systemd_backlight_SOURCES = \
4218         src/backlight/backlight.c
4219
4220 systemd_backlight_LDADD = \
4221         libsystemd-label.la \
4222         libudev-internal.la \
4223         libsystemd-shared.la
4224 endif
4225
4226 EXTRA_DIST += \
4227         units/systemd-backlight@.service.in
4228
4229 # ------------------------------------------------------------------------------
4230 if ENABLE_RFKILL
4231 rootlibexec_PROGRAMS += \
4232         systemd-rfkill
4233
4234 nodist_systemunit_DATA += \
4235         units/systemd-rfkill@.service
4236
4237 systemd_rfkill_SOURCES = \
4238         src/rfkill/rfkill.c
4239
4240 systemd_rfkill_LDADD = \
4241         libsystemd-label.la \
4242         libudev-internal.la \
4243         libsystemd-shared.la
4244 endif
4245
4246 EXTRA_DIST += \
4247         units/systemd-rfkill@.service.in
4248
4249 # ------------------------------------------------------------------------------
4250 if HAVE_LIBCRYPTSETUP
4251 rootlibexec_PROGRAMS += \
4252         systemd-cryptsetup
4253
4254 systemgenerator_PROGRAMS += \
4255         systemd-cryptsetup-generator
4256
4257 dist_systemunit_DATA += \
4258         units/cryptsetup.target \
4259         units/cryptsetup-pre.target
4260
4261 systemd_cryptsetup_SOURCES = \
4262         src/cryptsetup/cryptsetup.c
4263
4264 systemd_cryptsetup_CFLAGS = \
4265         $(AM_CFLAGS) \
4266         $(LIBCRYPTSETUP_CFLAGS)
4267
4268 systemd_cryptsetup_LDADD = \
4269         libsystemd-label.la \
4270         libudev-internal.la \
4271         libsystemd-shared.la \
4272         $(LIBCRYPTSETUP_LIBS)
4273
4274 systemd_cryptsetup_generator_SOURCES = \
4275         src/cryptsetup/cryptsetup-generator.c
4276
4277 systemd_cryptsetup_generator_LDADD = \
4278         libsystemd-label.la \
4279         libsystemd-shared.la
4280
4281 SYSINIT_TARGET_WANTS += \
4282         cryptsetup.target
4283
4284 endif
4285
4286 # ------------------------------------------------------------------------------
4287 if ENABLE_HOSTNAMED
4288 systemd_hostnamed_SOURCES = \
4289         src/hostname/hostnamed.c
4290
4291 systemd_hostnamed_LDADD = \
4292         libsystemd-label.la \
4293         libsystemd-internal.la \
4294         libsystemd-shared.la
4295
4296 rootlibexec_PROGRAMS += \
4297         systemd-hostnamed
4298
4299 nodist_systemunit_DATA += \
4300         units/systemd-hostnamed.service
4301
4302 dist_systemunit_DATA += \
4303         units/org.freedesktop.hostname1.busname
4304
4305 dist_dbuspolicy_DATA += \
4306         src/hostname/org.freedesktop.hostname1.conf
4307
4308 dist_dbussystemservice_DATA += \
4309         src/hostname/org.freedesktop.hostname1.service
4310
4311 polkitpolicy_files += \
4312         src/hostname/org.freedesktop.hostname1.policy
4313
4314 SYSTEM_UNIT_ALIASES += \
4315         systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
4316
4317 BUSNAMES_TARGET_WANTS += \
4318         org.freedesktop.hostname1.busname
4319
4320 hostnamectl_SOURCES = \
4321         src/hostname/hostnamectl.c
4322
4323 hostnamectl_LDADD = \
4324         libsystemd-internal.la \
4325         libsystemd-shared.la
4326
4327 bin_PROGRAMS += \
4328         hostnamectl
4329
4330 dist_bashcompletion_DATA += \
4331         shell-completion/bash/hostnamectl
4332
4333 dist_zshcompletion_DATA += \
4334         shell-completion/zsh/_hostnamectl
4335
4336 endif
4337
4338 polkitpolicy_in_files += \
4339         src/hostname/org.freedesktop.hostname1.policy.in
4340
4341 EXTRA_DIST += \
4342         units/systemd-hostnamed.service.in
4343
4344 # ------------------------------------------------------------------------------
4345 if ENABLE_KDBUS
4346 dist_systemunit_DATA += \
4347         units/org.freedesktop.systemd1.busname
4348
4349 BUSNAMES_TARGET_WANTS += \
4350         org.freedesktop.systemd1.busname
4351 endif
4352
4353 # ------------------------------------------------------------------------------
4354 if ENABLE_LOCALED
4355 systemd_localed_SOURCES = \
4356         src/locale/localed.c
4357
4358 systemd_localed_LDADD = \
4359         libsystemd-label.la \
4360         libsystemd-internal.la \
4361         libsystemd-shared.la
4362
4363 nodist_systemunit_DATA += \
4364         units/systemd-localed.service
4365
4366 dist_systemunit_DATA += \
4367         units/org.freedesktop.locale1.busname
4368
4369 rootlibexec_PROGRAMS += \
4370         systemd-localed
4371
4372 dist_dbuspolicy_DATA += \
4373         src/locale/org.freedesktop.locale1.conf
4374
4375 dist_dbussystemservice_DATA += \
4376         src/locale/org.freedesktop.locale1.service
4377
4378 polkitpolicy_files += \
4379         src/locale/org.freedesktop.locale1.policy
4380
4381 SYSTEM_UNIT_ALIASES += \
4382         systemd-localed.service dbus-org.freedesktop.locale1.service
4383
4384 BUSNAMES_TARGET_WANTS += \
4385         org.freedesktop.locale1.busname
4386
4387 dist_pkgdata_DATA += \
4388         src/locale/kbd-model-map
4389
4390 dist_noinst_SCRIPT = \
4391         src/locale/generate-kbd-model-map
4392
4393 update-kbd-model-map: src/locale/generate-kbd-model-map
4394         $PYTHON $< >src/locale/kbd-model-map
4395
4396 localectl_SOURCES = \
4397         src/locale/localectl.c
4398
4399 localectl_LDADD = \
4400         libsystemd-internal.la \
4401         libsystemd-shared.la
4402
4403 bin_PROGRAMS += \
4404         localectl
4405
4406 dist_bashcompletion_DATA += \
4407         shell-completion/bash/localectl
4408
4409 dist_zshcompletion_DATA += \
4410         shell-completion/zsh/_localectl
4411
4412 endif
4413
4414 .PHONY: update-kbd-model-map
4415
4416 polkitpolicy_in_files += \
4417         src/locale/org.freedesktop.locale1.policy.in
4418
4419 EXTRA_DIST += \
4420         units/systemd-localed.service.in
4421
4422 # ------------------------------------------------------------------------------
4423 if ENABLE_TIMEDATED
4424 systemd_timedated_SOURCES = \
4425         src/timedate/timedated.c
4426
4427 systemd_timedated_LDADD = \
4428         libsystemd-label.la \
4429         libsystemd-internal.la \
4430         libsystemd-shared.la
4431
4432 rootlibexec_PROGRAMS += \
4433         systemd-timedated
4434
4435 dist_dbussystemservice_DATA += \
4436         src/timedate/org.freedesktop.timedate1.service
4437
4438 dist_dbuspolicy_DATA += \
4439         src/timedate/org.freedesktop.timedate1.conf
4440
4441 nodist_systemunit_DATA += \
4442         units/systemd-timedated.service
4443
4444 dist_systemunit_DATA += \
4445         units/org.freedesktop.timedate1.busname
4446
4447 polkitpolicy_files += \
4448         src/timedate/org.freedesktop.timedate1.policy
4449
4450 SYSTEM_UNIT_ALIASES += \
4451         systemd-timedated.service dbus-org.freedesktop.timedate1.service
4452
4453 BUSNAMES_TARGET_WANTS += \
4454         org.freedesktop.timedate1.busname
4455
4456 timedatectl_SOURCES = \
4457         src/timedate/timedatectl.c
4458
4459 timedatectl_LDADD = \
4460         libsystemd-internal.la \
4461         libsystemd-shared.la
4462
4463 bin_PROGRAMS += \
4464         timedatectl
4465
4466 dist_bashcompletion_DATA += \
4467         shell-completion/bash/timedatectl
4468
4469 dist_zshcompletion_DATA += \
4470         shell-completion/zsh/_timedatectl
4471 endif
4472
4473 polkitpolicy_in_files += \
4474         src/timedate/org.freedesktop.timedate1.policy.in
4475
4476 EXTRA_DIST += \
4477         units/systemd-timedated.service.in
4478
4479 # ------------------------------------------------------------------------------
4480 if ENABLE_TIMESYNCD
4481 systemd_timesyncd_SOURCES = \
4482         src/timesync/timesyncd.c \
4483         src/timesync/timesyncd.h
4484
4485 nodist_systemd_timesyncd_SOURCES = \
4486         src/timesync/timesyncd-gperf.c
4487
4488 EXTRA_DIST += \
4489         src/timesync/timesyncd-gperf.gperf
4490
4491 CLEANFILES += \
4492         src/timesync/timesyncd-gperf.c
4493
4494 systemd_timesyncd_LDADD = \
4495         libsystemd-resolve.la \
4496         libsystemd-network.la \
4497         libsystemd-label.la \
4498         libsystemd-capability.la \
4499         libsystemd-internal.la \
4500         libsystemd-shared.la \
4501         -lm
4502
4503 rootlibexec_PROGRAMS += \
4504         systemd-timesyncd
4505
4506 nodist_systemunit_DATA += \
4507         units/systemd-timesyncd.service
4508
4509 GENERAL_ALIASES += \
4510         $(systemunitdir)/systemd-timesyncd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-timesyncd.service
4511
4512 EXTRA_DIST += \
4513         units/systemd-timesyncd.service.in
4514
4515 nodist_pkgsysconf_DATA += \
4516         src/timesync/timesyncd.conf
4517
4518 EXTRA_DIST += \
4519         src/timesync/timesyncd.conf.in
4520
4521 CLEANFILES += \
4522         src/timesync/timesyncd.conf
4523 endif
4524
4525 # ------------------------------------------------------------------------------
4526 if HAVE_MYHOSTNAME
4527 libnss_myhostname_la_SOURCES = \
4528         src/nss-myhostname/nss-myhostname.sym \
4529         src/nss-myhostname/nss-myhostname.c
4530
4531 libnss_myhostname_la_LDFLAGS = \
4532         $(AM_LDFLAGS) \
4533         -module \
4534         -export-dynamic \
4535         -avoid-version \
4536         -shared \
4537         -shrext .so.2 \
4538         -Wl,--version-script=$(top_srcdir)/src/nss-myhostname/nss-myhostname.sym
4539
4540 libnss_myhostname_la_LIBADD = \
4541         libsystemd-shared.la \
4542         libsystemd-internal.la
4543
4544 lib_LTLIBRARIES += \
4545         libnss_myhostname.la
4546 endif
4547
4548 # ------------------------------------------------------------------------------
4549 if ENABLE_MACHINED
4550 systemd_machined_SOURCES = \
4551         src/machine/machined.c \
4552         src/machine/machined.h
4553
4554 systemd_machined_LDADD = \
4555         libsystemd-machine-core.la
4556
4557 rootlibexec_PROGRAMS += \
4558         systemd-machined
4559
4560 libsystemd_machine_core_la_SOURCES = \
4561         src/machine/machined-dbus.c \
4562         src/machine/machine.c \
4563         src/machine/machine.h \
4564         src/machine/machine-dbus.c
4565
4566 libsystemd_machine_core_la_LIBADD = \
4567         libsystemd-label.la \
4568         libsystemd-internal.la \
4569         libudev-internal.la \
4570         libsystemd-shared.la
4571
4572 noinst_LTLIBRARIES += \
4573         libsystemd-machine-core.la
4574
4575 machinectl_SOURCES = \
4576         src/machine/machinectl.c
4577
4578 machinectl_LDADD = \
4579         libsystemd-internal.la \
4580         libsystemd-shared.la
4581
4582 rootbin_PROGRAMS += \
4583         machinectl
4584
4585 dist_bashcompletion_DATA += \
4586         shell-completion/bash/machinectl
4587
4588 test_machine_tables_SOURCES = \
4589         src/machine/test-machine-tables.c
4590
4591 test_machine_tables_LDADD = \
4592         libsystemd-machine-core.la
4593
4594 tests += \
4595         test-machine-tables
4596
4597 nodist_systemunit_DATA += \
4598         units/systemd-machined.service
4599
4600 dist_systemunit_DATA += \
4601         units/machine.slice \
4602         units/org.freedesktop.machine1.busname
4603
4604 dist_dbussystemservice_DATA += \
4605         src/machine/org.freedesktop.machine1.service
4606
4607 dist_dbuspolicy_DATA += \
4608         src/machine/org.freedesktop.machine1.conf
4609
4610 dist_zshcompletion_DATA += \
4611         shell-completion/zsh/_machinectl \
4612         shell-completion/zsh/_sd_machines
4613
4614 SYSTEM_UNIT_ALIASES += \
4615         systemd-machined.service dbus-org.freedesktop.machine1.service
4616
4617 BUSNAMES_TARGET_WANTS += \
4618         org.freedesktop.machine1.busname
4619
4620 EXTRA_DIST += \
4621         units/systemd-machined.service.in
4622
4623 libnss_mymachines_la_SOURCES = \
4624         src/nss-mymachines/nss-mymachines.sym \
4625         src/nss-mymachines/nss-mymachines.c
4626
4627 libnss_mymachines_la_LDFLAGS = \
4628         $(AM_LDFLAGS) \
4629         -module \
4630         -export-dynamic \
4631         -avoid-version \
4632         -shared \
4633         -shrext .so.2 \
4634         -Wl,--version-script=$(top_srcdir)/src/nss-mymachines/nss-mymachines.sym
4635
4636 libnss_mymachines_la_LIBADD = \
4637         libsystemd-shared.la \
4638         libsystemd-internal.la
4639
4640 lib_LTLIBRARIES += \
4641         libnss_mymachines.la
4642 endif