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