chiark / gitweb /
import: introduce new mini-daemon systemd-importd, and make machinectl a client to it
[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 GCC_COLORS ?= 'ooh, shiny!'
28 export GCC_COLORS
29
30 SUBDIRS = . po
31
32 # remove targets if the command fails
33 .DELETE_ON_ERROR:
34
35 # keep intermediate files
36 .SECONDARY:
37
38 # Keep the test-suite.log
39 .PRECIOUS: $(TEST_SUITE_LOG) Makefile
40
41 LIBUDEV_CURRENT=7
42 LIBUDEV_REVISION=2
43 LIBUDEV_AGE=6
44
45 LIBGUDEV_CURRENT=2
46 LIBGUDEV_REVISION=0
47 LIBGUDEV_AGE=2
48
49 LIBSYSTEMD_CURRENT=5
50 LIBSYSTEMD_REVISION=1
51 LIBSYSTEMD_AGE=5
52
53 # The following four libraries only exist for compatibility reasons,
54 # their version info should not be bumped anymore
55 LIBSYSTEMD_LOGIN_CURRENT=9
56 LIBSYSTEMD_LOGIN_REVISION=3
57 LIBSYSTEMD_LOGIN_AGE=9
58
59 LIBSYSTEMD_DAEMON_CURRENT=0
60 LIBSYSTEMD_DAEMON_REVISION=12
61 LIBSYSTEMD_DAEMON_AGE=0
62
63 LIBSYSTEMD_ID128_CURRENT=0
64 LIBSYSTEMD_ID128_REVISION=28
65 LIBSYSTEMD_ID128_AGE=0
66
67 LIBSYSTEMD_JOURNAL_CURRENT=11
68 LIBSYSTEMD_JOURNAL_REVISION=5
69 LIBSYSTEMD_JOURNAL_AGE=11
70
71 # Dirs of external packages
72 dbuspolicydir=@dbuspolicydir@
73 dbussessionservicedir=@dbussessionservicedir@
74 dbussystemservicedir=@dbussystemservicedir@
75 pamlibdir=@pamlibdir@
76 pamconfdir=@pamconfdir@
77 pkgconfiglibdir=$(libdir)/pkgconfig
78 polkitpolicydir=$(datadir)/polkit-1/actions
79 bashcompletiondir=@bashcompletiondir@
80 zshcompletiondir=@zshcompletiondir@
81 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
82 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
83 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
84 varlogdir=$(localstatedir)/log
85 systemdstatedir=$(localstatedir)/lib/systemd
86 catalogstatedir=$(systemdstatedir)/catalog
87 xinitrcdir=$(sysconfdir)/X11/xinit/xinitrc.d
88
89 # Our own, non-special dirs
90 pkgsysconfdir=$(sysconfdir)/systemd
91 userunitdir=$(prefix)/lib/systemd/user
92 userpresetdir=$(prefix)/lib/systemd/user-preset
93 tmpfilesdir=$(prefix)/lib/tmpfiles.d
94 sysusersdir=$(prefix)/lib/sysusers.d
95 sysctldir=$(prefix)/lib/sysctl.d
96 binfmtdir=$(prefix)/lib/binfmt.d
97 modulesloaddir=$(prefix)/lib/modules-load.d
98 networkdir=$(rootprefix)/lib/systemd/network
99 pkgincludedir=$(includedir)/systemd
100 systemgeneratordir=$(rootlibexecdir)/system-generators
101 usergeneratordir=$(prefix)/lib/systemd/user-generators
102 systemshutdowndir=$(rootlibexecdir)/system-shutdown
103 systemsleepdir=$(rootlibexecdir)/system-sleep
104 systemunitdir=$(rootprefix)/lib/systemd/system
105 systempresetdir=$(rootprefix)/lib/systemd/system-preset
106 udevlibexecdir=$(rootprefix)/lib/udev
107 udevhomedir=$(udevlibexecdir)
108 udevrulesdir=$(udevlibexecdir)/rules.d
109 udevhwdbdir=$(udevlibexecdir)/hwdb.d
110 catalogdir=$(prefix)/lib/systemd/catalog
111 kernelinstalldir = $(prefix)/lib/kernel/install.d
112 factory_etcdir = $(prefix)/share/factory/etc
113 factory_pamdir = $(prefix)/share/factory/etc/pam.d
114
115 # And these are the special ones for /
116 rootprefix=@rootprefix@
117 rootbindir=$(rootprefix)/bin
118 rootlibexecdir=$(rootprefix)/lib/systemd
119
120 CLEANFILES = $(BUILT_SOURCES)
121 DISTCLEANFILES =
122 EXTRA_DIST =
123 BUILT_SOURCES =
124 INSTALL_EXEC_HOOKS =
125 UNINSTALL_EXEC_HOOKS =
126 INSTALL_DATA_HOOKS =
127 UNINSTALL_DATA_HOOKS =
128 DISTCLEAN_LOCAL_HOOKS =
129 CLEAN_LOCAL_HOOKS =
130 pkginclude_HEADERS =
131 noinst_LTLIBRARIES =
132 lib_LTLIBRARIES =
133 include_HEADERS =
134 noinst_DATA =
135 pkgconfiglib_DATA =
136 polkitpolicy_in_in_files =
137 polkitpolicy_in_files =
138 polkitpolicy_files =
139 dist_udevrules_DATA =
140 nodist_udevrules_DATA =
141 dist_pkgsysconf_DATA =
142 nodist_pkgsysconf_DATA =
143 dist_pkgdata_DATA =
144 dist_dbuspolicy_DATA =
145 dist_dbussystemservice_DATA =
146 dist_systemunit_DATA_busnames =
147 check_PROGRAMS =
148 check_DATA =
149 tests=
150 manual_tests =
151 TEST_EXTENSIONS = .py
152 PY_LOG_COMPILER = $(PYTHON)
153 if ENABLE_TESTS
154 noinst_PROGRAMS = $(manual_tests) $(tests)
155 TESTS = $(tests)
156 else
157 noinst_PROGRAMS =
158 TESTS =
159 endif
160 udevlibexec_PROGRAMS =
161
162 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
163         $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
164         $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
165
166 AM_CPPFLAGS = \
167         -include $(top_builddir)/config.h \
168         -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
169         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
170         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
171         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
172         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
173         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
174         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
175         -DCERTIFICATE_ROOT=\"$(CERTIFICATEROOT)\" \
176         -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
177         -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
178         -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
179         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
180         -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
181         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
182         -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
183         -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
184         -DROOTPREFIX=\"$(rootprefix)\" \
185         -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
186         -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
187         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
188         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
189         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
190         -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
191         -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
192         -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
193         -DX_SERVER=\"$(bindir)/X\" \
194         -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
195         -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
196         -DQUOTACHECK=\"$(QUOTACHECK)\" \
197         -DKEXEC=\"$(KEXEC)\" \
198         -DLIBDIR=\"$(libdir)\" \
199         -DROOTLIBDIR=\"$(rootlibdir)\" \
200         -DTEST_DIR=\"$(abs_top_srcdir)/test\" \
201         -I $(top_srcdir)/src \
202         -I $(top_builddir)/src/shared \
203         -I $(top_srcdir)/src/shared \
204         -I $(top_srcdir)/src/network \
205         -I $(top_srcdir)/src/login \
206         -I $(top_srcdir)/src/journal \
207         -I $(top_srcdir)/src/timedate \
208         -I $(top_srcdir)/src/timesync \
209         -I $(top_srcdir)/src/resolve \
210         -I $(top_builddir)/src/resolve \
211         -I $(top_srcdir)/src/systemd \
212         -I $(top_builddir)/src/core \
213         -I $(top_srcdir)/src/core \
214         -I $(top_srcdir)/src/libudev \
215         -I $(top_srcdir)/src/udev \
216         -I $(top_srcdir)/src/udev/net \
217         -I $(top_builddir)/src/udev \
218         -I $(top_srcdir)/src/libsystemd/sd-bus \
219         -I $(top_srcdir)/src/libsystemd/sd-event \
220         -I $(top_srcdir)/src/libsystemd/sd-rtnl \
221         -I $(top_srcdir)/src/libsystemd/sd-network \
222         -I $(top_srcdir)/src/libsystemd/sd-hwdb \
223         -I $(top_srcdir)/src/libsystemd-network \
224         -I $(top_srcdir)/src/libsystemd-terminal \
225         $(OUR_CPPFLAGS)
226
227 AM_CFLAGS = $(OUR_CFLAGS)
228 AM_LDFLAGS = $(OUR_LDFLAGS)
229
230 # ------------------------------------------------------------------------------
231 define move-to-rootlibdir
232         if test "$(libdir)" != "$(rootlibdir)"; then \
233                 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
234                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
235                 rm -f $(DESTDIR)$(libdir)/$$libname && \
236                 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
237                 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
238         fi
239 endef
240
241 INSTALL_DIRS =
242
243 RUNLEVEL1_TARGET_WANTS =
244 RUNLEVEL2_TARGET_WANTS =
245 RUNLEVEL3_TARGET_WANTS =
246 RUNLEVEL4_TARGET_WANTS =
247 RUNLEVEL5_TARGET_WANTS =
248 SHUTDOWN_TARGET_WANTS =
249 LOCAL_FS_TARGET_WANTS =
250 MULTI_USER_TARGET_WANTS =
251 SYSINIT_TARGET_WANTS =
252 SOCKETS_TARGET_WANTS =
253 BUSNAMES_TARGET_WANTS =
254 TIMERS_TARGET_WANTS =
255 USER_SOCKETS_TARGET_WANTS =
256 USER_DEFAULT_TARGET_WANTS =
257 USER_BUSNAMES_TARGET_WANTS =
258
259 SYSTEM_UNIT_ALIASES =
260 USER_UNIT_ALIASES =
261 GENERAL_ALIASES =
262
263 install-target-wants-hook:
264         what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
265         what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
266         what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
267         what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
268         what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
269         what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
270         what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
271         what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
272         what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
273         what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
274         what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
275         what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
276         what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
277         what="$(USER_DEFAULT_TARGET_WANTS)" && wants=default.target && dir=$(userunitdir) && $(add-wants)
278
279 install-busnames-target-wants-hook:
280         what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
281         what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
282
283 define add-wants
284         [ -z "$$what" ] || ( \
285           dir=$(DESTDIR)$$dir/$$wants.wants && \
286           $(MKDIR_P) -m 0755 $$dir && \
287           cd $$dir && \
288           rm -f $$what && \
289           for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
290 endef
291
292 install-directories-hook:
293         $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
294
295 install-aliases-hook:
296         set -- $(SYSTEM_UNIT_ALIASES) && \
297                 dir=$(systemunitdir) && $(install-aliases)
298         set -- $(USER_UNIT_ALIASES) && \
299                 dir=$(userunitdir) && $(install-relative-aliases)
300         set -- $(GENERAL_ALIASES) && \
301                 dir= && $(install-relative-aliases)
302
303 define install-aliases
304         while [ -n "$$1" ]; do \
305                 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
306                 rm -f $(DESTDIR)$$dir/$$2 && \
307                 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
308                 shift 2 || exit $$?; \
309         done
310 endef
311
312 define install-relative-aliases
313         while [ -n "$$1" ]; do \
314                 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
315                 rm -f $(DESTDIR)$$dir/$$2 && \
316                 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
317                 shift 2 || exit $$?; \
318         done
319 endef
320
321 install-touch-usr-hook:
322         touch -c $(DESTDIR)/$(prefix)
323
324 INSTALL_EXEC_HOOKS += \
325         install-target-wants-hook \
326         install-directories-hook \
327         install-aliases-hook \
328         install-touch-usr-hook
329
330 if ENABLE_KDBUS
331 INSTALL_EXEC_HOOKS += \
332         install-busnames-target-wants-hook
333 endif
334
335 # ------------------------------------------------------------------------------
336 AM_V_M4 = $(AM_V_M4_$(V))
337 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
338 AM_V_M4_0 = @echo "  M4      " $@;
339
340 AM_V_XSLT = $(AM_V_XSLT_$(V))
341 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
342 AM_V_XSLT_0 = @echo "  XSLT    " $@;
343
344 AM_V_GPERF = $(AM_V_GPERF_$(V))
345 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
346 AM_V_GPERF_0 = @echo "  GPERF   " $@;
347
348 AM_V_LN = $(AM_V_LN_$(V))
349 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
350 AM_V_LN_0 = @echo "  LN      " $@;
351
352 AM_V_RM = $(AM_V_RM_$(V))
353 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
354 AM_V_RM_0 = @echo "  RM      " $@;
355
356 # ------------------------------------------------------------------------------
357 rootbin_PROGRAMS = \
358         systemctl \
359         systemd-notify \
360         systemd-ask-password \
361         systemd-tty-ask-password-agent \
362         systemd-machine-id-setup \
363         systemd-escape
364
365 bin_PROGRAMS = \
366         systemd-cgls \
367         systemd-cgtop \
368         systemd-nspawn \
369         systemd-detect-virt \
370         systemd-delta \
371         systemd-analyze \
372         systemd-run \
373         systemd-stdio-bridge \
374         systemd-path
375
376 dist_bin_SCRIPTS = \
377         src/kernel-install/kernel-install
378
379 dist_kernelinstall_SCRIPTS = \
380         src/kernel-install/50-depmod.install \
381         src/kernel-install/90-loaderentry.install
382
383 rootlibexec_PROGRAMS = \
384         systemd \
385         systemd-cgroups-agent \
386         systemd-initctl \
387         systemd-shutdownd \
388         systemd-shutdown \
389         systemd-remount-fs \
390         systemd-reply-password \
391         systemd-fsck \
392         systemd-machine-id-commit \
393         systemd-ac-power \
394         systemd-sysctl \
395         systemd-sleep \
396         systemd-bus-proxyd \
397         systemd-socket-proxyd \
398         systemd-update-done
399
400 if HAVE_UTMP
401 rootlibexec_PROGRAMS += \
402         systemd-update-utmp
403 endif
404
405 systemgenerator_PROGRAMS = \
406         systemd-getty-generator \
407         systemd-fstab-generator \
408         systemd-system-update-generator \
409         systemd-debug-generator
410
411 dist_bashcompletion_DATA = \
412         shell-completion/bash/busctl \
413         shell-completion/bash/journalctl \
414         shell-completion/bash/systemd-analyze \
415         shell-completion/bash/systemd-cat \
416         shell-completion/bash/systemd-cgls \
417         shell-completion/bash/systemd-cgtop \
418         shell-completion/bash/systemd-delta \
419         shell-completion/bash/systemd-detect-virt \
420         shell-completion/bash/systemd-nspawn \
421         shell-completion/bash/systemd-run \
422         shell-completion/bash/udevadm \
423         shell-completion/bash/kernel-install
424
425 nodist_bashcompletion_DATA = \
426         shell-completion/bash/systemctl
427
428 dist_zshcompletion_DATA = \
429         shell-completion/zsh/_journalctl \
430         shell-completion/zsh/_udevadm \
431         shell-completion/zsh/_kernel-install \
432         shell-completion/zsh/_systemd-nspawn \
433         shell-completion/zsh/_systemd-analyze \
434         shell-completion/zsh/_systemd-run \
435         shell-completion/zsh/_sd_hosts_or_user_at_host \
436         shell-completion/zsh/_sd_outputmodes \
437         shell-completion/zsh/_sd_unit_files \
438         shell-completion/zsh/_systemd-delta \
439         shell-completion/zsh/_systemd
440
441 nodist_zshcompletion_DATA = \
442         shell-completion/zsh/_systemctl
443
444 EXTRA_DIST += \
445         shell-completion/bash/systemctl.in \
446         shell-completion/zsh/_systemctl.in
447
448 CLEANFILES += \
449         $(nodist_bashcompletion_DATA) \
450         $(nodist_zshcompletion_DATA)
451
452 dist_sysctl_DATA = \
453         sysctl.d/50-default.conf
454
455 dist_systemunit_DATA = \
456         units/graphical.target \
457         units/multi-user.target \
458         units/emergency.target \
459         units/sysinit.target \
460         units/basic.target \
461         units/getty.target \
462         units/halt.target \
463         units/kexec.target \
464         units/local-fs.target \
465         units/local-fs-pre.target \
466         units/initrd.target \
467         units/initrd-fs.target \
468         units/initrd-root-fs.target \
469         units/remote-fs.target \
470         units/remote-fs-pre.target \
471         units/network.target \
472         units/network-pre.target \
473         units/network-online.target \
474         units/nss-lookup.target \
475         units/nss-user-lookup.target \
476         units/poweroff.target \
477         units/reboot.target \
478         units/rescue.target \
479         units/rpcbind.target \
480         units/time-sync.target \
481         units/shutdown.target \
482         units/final.target \
483         units/umount.target \
484         units/sigpwr.target \
485         units/sleep.target \
486         units/sockets.target \
487         units/timers.target \
488         units/paths.target \
489         units/suspend.target \
490         units/swap.target \
491         units/slices.target \
492         units/system.slice \
493         units/x-.slice \
494         units/systemd-initctl.socket \
495         units/systemd-shutdownd.socket \
496         units/syslog.socket \
497         units/dev-hugepages.mount \
498         units/dev-mqueue.mount \
499         units/sys-kernel-config.mount \
500         units/sys-kernel-debug.mount \
501         units/sys-fs-fuse-connections.mount \
502         units/tmp.mount \
503         units/printer.target \
504         units/sound.target \
505         units/bluetooth.target \
506         units/smartcard.target \
507         units/systemd-ask-password-wall.path \
508         units/systemd-ask-password-console.path \
509         units/systemd-udevd-control.socket \
510         units/systemd-udevd-kernel.socket \
511         units/system-update.target \
512         units/initrd-switch-root.target \
513         units/machines.target
514
515 if ENABLE_KDBUS
516 dist_systemunit_DATA += \
517         $(dist_systemunit_DATA_busnames)
518 endif
519
520 dist_systemunit_DATA_busnames += \
521         units/busnames.target
522
523 nodist_systemunit_DATA = \
524         units/getty@.service \
525         units/serial-getty@.service \
526         units/console-shell.service \
527         units/console-getty.service \
528         units/container-getty@.service \
529         units/systemd-initctl.service \
530         units/systemd-shutdownd.service \
531         units/systemd-remount-fs.service \
532         units/systemd-ask-password-wall.service \
533         units/systemd-ask-password-console.service \
534         units/systemd-sysctl.service \
535         units/emergency.service \
536         units/rescue.service \
537         units/user@.service \
538         units/systemd-suspend.service \
539         units/systemd-halt.service \
540         units/systemd-poweroff.service \
541         units/systemd-reboot.service \
542         units/systemd-kexec.service \
543         units/systemd-fsck@.service \
544         units/systemd-fsck-root.service \
545         units/systemd-machine-id-commit.service \
546         units/systemd-udevd.service \
547         units/systemd-udev-trigger.service \
548         units/systemd-udev-settle.service \
549         units/systemd-hwdb-update.service \
550         units/debug-shell.service \
551         units/initrd-parse-etc.service \
552         units/initrd-cleanup.service \
553         units/initrd-udevadm-cleanup-db.service \
554         units/initrd-switch-root.service \
555         units/systemd-nspawn@.service \
556         units/systemd-update-done.service
557
558 if HAVE_UTMP
559 nodist_systemunit_DATA += \
560         units/systemd-update-utmp.service \
561         units/systemd-update-utmp-runlevel.service
562 endif
563
564 dist_userunit_DATA = \
565         units/user/basic.target \
566         units/user/default.target \
567         units/user/exit.target
568
569 nodist_userunit_DATA = \
570         units/user/systemd-exit.service
571
572 dist_systempreset_DATA = \
573         system-preset/90-systemd.preset
574
575 EXTRA_DIST += \
576         units/getty@.service.m4 \
577         units/serial-getty@.service.m4 \
578         units/console-shell.service.m4.in \
579         units/console-getty.service.m4.in \
580         units/container-getty@.service.m4.in \
581         units/rescue.service.in \
582         units/systemd-initctl.service.in \
583         units/systemd-shutdownd.service.in \
584         units/systemd-remount-fs.service.in \
585         units/systemd-update-utmp.service.in \
586         units/systemd-update-utmp-runlevel.service.in \
587         units/systemd-ask-password-wall.service.in \
588         units/systemd-ask-password-console.service.in \
589         units/systemd-sysctl.service.in \
590         units/emergency.service.in \
591         units/systemd-halt.service.in \
592         units/systemd-poweroff.service.in \
593         units/systemd-reboot.service.in \
594         units/systemd-kexec.service.in \
595         units/user/systemd-exit.service.in \
596         units/systemd-fsck@.service.in \
597         units/systemd-fsck-root.service.in \
598         units/systemd-machine-id-commit.service.in \
599         units/user@.service.m4.in \
600         units/debug-shell.service.in \
601         units/systemd-suspend.service.in \
602         units/quotaon.service.in \
603         units/initrd-parse-etc.service.in \
604         units/initrd-cleanup.service.in \
605         units/initrd-udevadm-cleanup-db.service.in \
606         units/initrd-switch-root.service.in \
607         units/systemd-nspawn@.service.in \
608         units/systemd-update-done.service.in
609
610 CLEANFILES += \
611         units/console-shell.service.m4 \
612         units/console-getty.service.m4 \
613         units/container-getty@.service.m4 \
614         units/user@.service.m4
615
616 if HAVE_SYSV_COMPAT
617 nodist_systemunit_DATA += \
618         units/rc-local.service \
619         units/halt-local.service
620
621 systemgenerator_PROGRAMS += \
622         systemd-sysv-generator \
623         systemd-rc-local-generator
624 endif
625
626 EXTRA_DIST += \
627         units/rc-local.service.in \
628         units/halt-local.service.in
629
630 # automake is broken and can't handle files with a dash in front
631 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
632 units-install-hook:
633         mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
634
635 units-uninstall-hook:
636         rm -f $(DESTDIR)/$(systemunitdir)/-.slice
637
638 INSTALL_DATA_HOOKS += units-install-hook
639 UNINSTALL_DATA_HOOKS += units-uninstall-hook
640
641 dist_doc_DATA = \
642         README \
643         NEWS \
644         LICENSE.LGPL2.1 \
645         LICENSE.GPL2 \
646         LICENSE.MIT \
647         DISTRO_PORTING \
648         src/libsystemd/sd-bus/PORTING-DBUS1 \
649         src/libsystemd/sd-bus/DIFFERENCES \
650         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
651
652 @INTLTOOL_POLICY_RULE@
653
654 # ------------------------------------------------------------------------------
655
656 MANPAGES =
657 MANPAGES_ALIAS =
658
659 include Makefile-man.am
660
661 .PHONY: man update-man-list
662 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
663
664 XML_FILES = \
665         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
666 HTML_FILES = \
667         ${XML_FILES:.xml=.html}
668 HTML_ALIAS = \
669         ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
670
671 if ENABLE_MANPAGES
672 man_MANS = \
673         $(MANPAGES) \
674         $(MANPAGES_ALIAS)
675
676 noinst_DATA += \
677         $(HTML_FILES) \
678         $(HTML_ALIAS)
679
680 CLEANFILES += \
681         $(man_MANS) \
682         $(HTML_FILES) \
683         $(HTML_ALIAS)
684
685 docs/html/man:
686         $(AM_V_at)$(MKDIR_P) $(dir $@)
687         $(AM_V_LN)$(LN_S) -f ../../man $@
688
689 noinst_DATA += \
690         docs/html/man
691
692 CLEANFILES += \
693         docs/html/man
694
695 if HAVE_PYTHON
696 man/index.html: man/systemd.index.html
697         $(AM_V_LN)$(LN_S) -f systemd.index.html $@
698
699 noinst_DATA += \
700         man/index.html
701
702 CLEANFILES += \
703         man/index.html
704
705 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
706 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
707 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
708
709 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
710         $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
711         $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
712         @echo "Makefile-man.am has been regenerated"
713
714 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
715         $(AM_V_at)$(MKDIR_P) $(dir $@)
716         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
717
718 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
719         $(AM_V_at)$(MKDIR_P) $(dir $@)
720         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
721
722 EXTRA_DIST += \
723         man/systemd.index.xml \
724         man/index.html \
725         man/systemd.directives.xml \
726         man/glib-event-glue.c
727
728 CLEANFILES += \
729         man/systemd.index.xml \
730         man/systemd.directives.xml
731
732 endif
733
734 endif
735
736 EXTRA_DIST += \
737         $(XML_FILES) \
738         $(HTML_FILES) \
739         $(HTML_ALIAS) \
740         $(man_MANS) \
741         tools/make-man-index.py \
742         tools/make-directive-index.py \
743         tools/xml_helper.py
744
745 # ------------------------------------------------------------------------------
746 noinst_LTLIBRARIES += \
747         libsystemd-shared.la
748
749 libsystemd_shared_la_SOURCES = \
750         src/shared/capability.c \
751         src/shared/capability.h \
752         src/shared/linux/auto_dev-ioctl.h \
753         src/shared/ioprio.h \
754         src/shared/missing.h \
755         src/shared/initreq.h \
756         src/shared/securebits.h \
757         src/shared/special.h \
758         src/shared/list.h \
759         src/shared/unaligned.h \
760         src/shared/macro.h \
761         src/shared/def.h \
762         src/shared/sparse-endian.h \
763         src/shared/refcnt.h \
764         src/shared/udev-util.h \
765         src/shared/device-nodes.c \
766         src/shared/device-nodes.h \
767         src/shared/util.c \
768         src/shared/util.h \
769         src/shared/virt.c \
770         src/shared/virt.h \
771         src/shared/architecture.c \
772         src/shared/architecture.h \
773         src/shared/efivars.c \
774         src/shared/efivars.h \
775         src/shared/fstab-util.c \
776         src/shared/fstab-util.h \
777         src/shared/path-util.c \
778         src/shared/path-util.h \
779         src/shared/time-util.c \
780         src/shared/time-util.h \
781         src/shared/locale-util.c \
782         src/shared/locale-util.h \
783         src/shared/mempool.c \
784         src/shared/mempool.h \
785         src/shared/hashmap.c \
786         src/shared/hashmap.h \
787         src/shared/siphash24.c \
788         src/shared/siphash24.h \
789         src/shared/set.h \
790         src/shared/fdset.c \
791         src/shared/fdset.h \
792         src/shared/prioq.c \
793         src/shared/prioq.h \
794         src/shared/sleep-config.c \
795         src/shared/sleep-config.h \
796         src/shared/strv.c \
797         src/shared/strv.h \
798         src/shared/env-util.c \
799         src/shared/env-util.h \
800         src/shared/strbuf.c \
801         src/shared/strbuf.h \
802         src/shared/strxcpyx.c \
803         src/shared/strxcpyx.h \
804         src/shared/conf-parser.c \
805         src/shared/conf-parser.h \
806         src/shared/log.c \
807         src/shared/log.h \
808         src/shared/ratelimit.h \
809         src/shared/ratelimit.c \
810         src/shared/exit-status.c \
811         src/shared/exit-status.h \
812         src/shared/utf8.c \
813         src/shared/utf8.h \
814         src/shared/gunicode.c \
815         src/shared/gunicode.h \
816         src/shared/pager.c \
817         src/shared/pager.h \
818         src/shared/socket-util.c \
819         src/shared/socket-util.h \
820         src/shared/in-addr-util.c \
821         src/shared/in-addr-util.h \
822         src/shared/ether-addr-util.h \
823         src/shared/conf-files.c \
824         src/shared/conf-files.h \
825         src/shared/cgroup-util.c \
826         src/shared/cgroup-util.h \
827         src/shared/cgroup-show.c \
828         src/shared/cgroup-show.h \
829         src/shared/unit-name.c \
830         src/shared/unit-name.h \
831         src/shared/utmp-wtmp.h \
832         src/shared/watchdog.c \
833         src/shared/watchdog.h \
834         src/shared/spawn-ask-password-agent.c \
835         src/shared/spawn-ask-password-agent.h \
836         src/shared/replace-var.c \
837         src/shared/replace-var.h \
838         src/shared/spawn-polkit-agent.c \
839         src/shared/spawn-polkit-agent.h \
840         src/shared/clock-util.c \
841         src/shared/clock-util.h \
842         src/shared/time-dst.c \
843         src/shared/time-dst.h \
844         src/shared/calendarspec.c \
845         src/shared/calendarspec.h \
846         src/shared/fileio.c \
847         src/shared/fileio.h \
848         src/shared/output-mode.h \
849         src/shared/MurmurHash2.c \
850         src/shared/MurmurHash2.h \
851         src/shared/acpi-fpdt.h \
852         src/shared/acpi-fpdt.c \
853         src/shared/boot-timestamps.h \
854         src/shared/boot-timestamps.c \
855         src/shared/mkdir.c \
856         src/shared/mkdir.h \
857         src/shared/smack-util.c \
858         src/shared/smack-util.h \
859         src/shared/apparmor-util.c \
860         src/shared/apparmor-util.h \
861         src/shared/ima-util.c \
862         src/shared/ima-util.h \
863         src/shared/ptyfwd.c \
864         src/shared/ptyfwd.h \
865         src/shared/errno-list.c \
866         src/shared/errno-list.h \
867         src/shared/af-list.c \
868         src/shared/af-list.h \
869         src/shared/arphrd-list.c \
870         src/shared/arphrd-list.h \
871         src/shared/cap-list.c \
872         src/shared/cap-list.h \
873         src/shared/audit.c \
874         src/shared/audit.h \
875         src/shared/xml.c \
876         src/shared/xml.h \
877         src/shared/json.c \
878         src/shared/json.h \
879         src/shared/bus-label.c \
880         src/shared/bus-label.h \
881         src/shared/gpt.h \
882         src/shared/clean-ipc.h \
883         src/shared/clean-ipc.c \
884         src/shared/login-shared.c \
885         src/shared/login-shared.h \
886         src/shared/ring.c \
887         src/shared/ring.h \
888         src/shared/barrier.c \
889         src/shared/barrier.h \
890         src/shared/pty.c \
891         src/shared/pty.h \
892         src/shared/async.c \
893         src/shared/async.h \
894         src/shared/base-filesystem.c \
895         src/shared/base-filesystem.h \
896         src/shared/memfd-util.c \
897         src/shared/memfd-util.h \
898         src/shared/uid-range.c \
899         src/shared/uid-range.h \
900         src/shared/nss-util.h \
901         src/shared/verbs.c \
902         src/shared/verbs.h \
903         src/shared/sigbus.c \
904         src/shared/sigbus.h \
905         src/shared/build.h \
906         src/shared/import-util.c \
907         src/shared/import-util.h
908
909 if HAVE_UTMP
910 libsystemd_shared_la_SOURCES += \
911         src/shared/utmp-wtmp.c
912 endif
913
914 nodist_libsystemd_shared_la_SOURCES = \
915         src/shared/errno-from-name.h \
916         src/shared/errno-to-name.h \
917         src/shared/af-from-name.h \
918         src/shared/af-to-name.h \
919         src/shared/arphrd-from-name.h \
920         src/shared/arphrd-to-name.h \
921         src/shared/cap-from-name.h \
922         src/shared/cap-to-name.h
923
924 libsystemd_shared_la_CFLAGS = \
925         $(AM_CFLAGS) \
926         $(CAP_CFLAGS) \
927         $(SECCOMP_CFLAGS) \
928         -pthread
929
930 libsystemd_shared_la_LIBADD = \
931         $(CAP_LIBS) \
932         -lm
933
934 # ------------------------------------------------------------------------------
935 noinst_LTLIBRARIES += \
936         libsystemd-units.la
937
938 libsystemd_units_la_SOURCES = \
939         src/shared/install.c \
940         src/shared/install.h \
941         src/shared/install-printf.c \
942         src/shared/install-printf.h \
943         src/shared/path-lookup.c \
944         src/shared/path-lookup.h \
945         src/shared/specifier.c \
946         src/shared/specifier.h
947
948 # ------------------------------------------------------------------------------
949 noinst_LTLIBRARIES += \
950         libsystemd-label.la
951
952 libsystemd_label_la_SOURCES = \
953         src/shared/socket-label.c \
954         src/shared/label.c \
955         src/shared/label.h \
956         src/shared/selinux-util.c \
957         src/shared/selinux-util.h \
958         src/shared/mkdir-label.c \
959         src/shared/ask-password-api.c \
960         src/shared/ask-password-api.h \
961         src/shared/switch-root.h \
962         src/shared/switch-root.c \
963         src/shared/fileio-label.c \
964         src/shared/fileio-label.h \
965         src/shared/dev-setup.c \
966         src/shared/dev-setup.h \
967         src/shared/dropin.c \
968         src/shared/dropin.h \
969         src/shared/condition.c \
970         src/shared/condition.h \
971         src/shared/generator.h \
972         src/shared/generator.c \
973         src/shared/btrfs-util.c \
974         src/shared/btrfs-util.h \
975         src/shared/btrfs-ctree.h \
976         src/shared/machine-image.c \
977         src/shared/machine-image.h \
978         src/shared/copy.c \
979         src/shared/copy.h
980
981 libsystemd_label_la_CFLAGS = \
982         $(AM_CFLAGS) \
983         $(SELINUX_CFLAGS)
984
985 libsystemd_label_la_LIBADD = \
986         $(SELINUX_LIBS)
987
988 # -----------------------------------------------------------------------------
989
990 if HAVE_LIBIPTC
991 noinst_LTLIBRARIES += \
992         libsystemd-fw.la
993
994 libsystemd_fw_la_SOURCES = \
995         src/shared/fw-util.h \
996         src/shared/fw-util.c
997
998 libsystemd_fw_la_CFLAGS = \
999         $(AM_CFLAGS) \
1000         $(LIBIPTC_CFLAGS)
1001
1002 libsystemd_fw_la_LIBADD = \
1003         $(LIBIPTC_LIBS)
1004 endif
1005
1006 # -----------------------------------------------------------------------------
1007
1008 if ENABLE_LDCONFIG
1009 dist_systemunit_DATA += \
1010         units/ldconfig.service
1011
1012 SYSINIT_TARGET_WANTS += \
1013         ldconfig.service
1014 endif
1015
1016 # ------------------------------------------------------------------------------
1017
1018 if HAVE_SECCOMP
1019 noinst_LTLIBRARIES += \
1020         libsystemd-seccomp.la
1021
1022 libsystemd_seccomp_la_SOURCES = \
1023         src/shared/seccomp-util.h \
1024         src/shared/seccomp-util.c
1025
1026 libsystemd_seccomp_la_CFLAGS = \
1027         $(AM_CFLAGS) \
1028         $(SECCOMP_CFLAGS)
1029
1030 libsystemd_seccomp_la_LIBADD = \
1031         $(SECCOMP_LIBS)
1032 endif
1033
1034 # ------------------------------------------------------------------------------
1035 noinst_LTLIBRARIES += \
1036         libsystemd-logs.la
1037
1038 libsystemd_logs_la_SOURCES = \
1039         src/shared/logs-show.c \
1040         src/shared/logs-show.h
1041
1042 # ------------------------------------------------------------------------------
1043 if HAVE_ACL
1044 noinst_LTLIBRARIES += \
1045         libsystemd-acl.la
1046
1047 libsystemd_acl_la_SOURCES = \
1048         src/shared/acl-util.c \
1049         src/shared/acl-util.h
1050
1051 libsystemd_acl_la_CFLAGS = \
1052         $(AM_CFLAGS) \
1053         $(ACL_CFLAGS)
1054
1055 libsystemd_acl_la_LIBADD = \
1056         $(ACL_LIBS)
1057 endif
1058
1059 # ------------------------------------------------------------------------------
1060 noinst_LTLIBRARIES += \
1061         libsystemd-core.la
1062
1063 libsystemd_core_la_SOURCES = \
1064         src/core/unit.c \
1065         src/core/unit.h \
1066         src/core/unit-printf.c \
1067         src/core/unit-printf.h \
1068         src/core/job.c \
1069         src/core/job.h \
1070         src/core/manager.c \
1071         src/core/manager.h \
1072         src/core/transaction.c \
1073         src/core/transaction.h \
1074         src/core/load-fragment.c \
1075         src/core/load-fragment.h \
1076         src/core/service.c \
1077         src/core/service.h \
1078         src/core/socket.c \
1079         src/core/socket.h \
1080         src/core/busname.c \
1081         src/core/busname.h \
1082         src/core/bus-endpoint.c \
1083         src/core/bus-endpoint.h \
1084         src/core/bus-policy.c \
1085         src/core/bus-policy.h \
1086         src/core/target.c \
1087         src/core/target.h \
1088         src/core/snapshot.c \
1089         src/core/snapshot.h \
1090         src/core/device.c \
1091         src/core/device.h \
1092         src/core/mount.c \
1093         src/core/mount.h \
1094         src/core/automount.c \
1095         src/core/automount.h \
1096         src/core/swap.c \
1097         src/core/swap.h \
1098         src/core/timer.c \
1099         src/core/timer.h \
1100         src/core/path.c \
1101         src/core/path.h \
1102         src/core/slice.c \
1103         src/core/slice.h \
1104         src/core/scope.c \
1105         src/core/scope.h \
1106         src/core/load-dropin.c \
1107         src/core/load-dropin.h \
1108         src/core/execute.c \
1109         src/core/execute.h \
1110         src/core/kill.c \
1111         src/core/kill.h \
1112         src/core/dbus.c \
1113         src/core/dbus.h \
1114         src/core/dbus-manager.c \
1115         src/core/dbus-manager.h \
1116         src/core/dbus-unit.c \
1117         src/core/dbus-unit.h \
1118         src/core/dbus-job.c \
1119         src/core/dbus-job.h \
1120         src/core/dbus-service.c \
1121         src/core/dbus-service.h \
1122         src/core/dbus-socket.c \
1123         src/core/dbus-socket.h \
1124         src/core/dbus-busname.c \
1125         src/core/dbus-busname.h \
1126         src/core/dbus-target.c \
1127         src/core/dbus-target.h \
1128         src/core/dbus-snapshot.c \
1129         src/core/dbus-snapshot.h \
1130         src/core/dbus-device.c \
1131         src/core/dbus-device.h \
1132         src/core/dbus-mount.c \
1133         src/core/dbus-mount.h \
1134         src/core/dbus-automount.c \
1135         src/core/dbus-automount.h \
1136         src/core/dbus-swap.c \
1137         src/core/dbus-swap.h \
1138         src/core/dbus-timer.c \
1139         src/core/dbus-timer.h \
1140         src/core/dbus-path.c \
1141         src/core/dbus-path.h \
1142         src/core/dbus-slice.c \
1143         src/core/dbus-slice.h \
1144         src/core/dbus-scope.c \
1145         src/core/dbus-scope.h \
1146         src/core/dbus-execute.c \
1147         src/core/dbus-execute.h \
1148         src/core/dbus-kill.c \
1149         src/core/dbus-kill.h \
1150         src/core/dbus-cgroup.c \
1151         src/core/dbus-cgroup.h \
1152         src/core/cgroup.c \
1153         src/core/cgroup.h \
1154         src/core/selinux-access.c \
1155         src/core/selinux-access.h \
1156         src/core/selinux-setup.c \
1157         src/core/selinux-setup.h \
1158         src/core/smack-setup.c \
1159         src/core/smack-setup.h \
1160         src/core/ima-setup.c \
1161         src/core/ima-setup.h \
1162         src/core/locale-setup.h \
1163         src/core/locale-setup.c \
1164         src/core/hostname-setup.c \
1165         src/core/hostname-setup.h \
1166         src/core/machine-id-setup.c \
1167         src/core/machine-id-setup.h \
1168         src/core/mount-setup.c \
1169         src/core/mount-setup.h \
1170         src/core/kmod-setup.c \
1171         src/core/kmod-setup.h \
1172         src/core/loopback-setup.h \
1173         src/core/loopback-setup.c \
1174         src/core/namespace.c \
1175         src/core/namespace.h \
1176         src/core/killall.h \
1177         src/core/killall.c \
1178         src/core/audit-fd.c \
1179         src/core/audit-fd.h \
1180         src/core/show-status.c \
1181         src/core/show-status.h \
1182         src/core/failure-action.c \
1183         src/core/failure-action.h
1184
1185 nodist_libsystemd_core_la_SOURCES = \
1186         src/core/load-fragment-gperf.c \
1187         src/core/load-fragment-gperf-nulstr.c
1188
1189 libsystemd_core_la_CFLAGS = \
1190         $(AM_CFLAGS) \
1191         $(PAM_CFLAGS) \
1192         $(AUDIT_CFLAGS) \
1193         $(KMOD_CFLAGS) \
1194         $(APPARMOR_CFLAGS) \
1195         $(SECCOMP_CFLAGS) \
1196         $(MOUNT_CFLAGS) \
1197         -pthread
1198
1199 libsystemd_core_la_LIBADD = \
1200         libsystemd-units.la \
1201         libsystemd-label.la \
1202         libudev-internal.la \
1203         libsystemd-shared.la \
1204         libsystemd-internal.la \
1205         $(PAM_LIBS) \
1206         $(AUDIT_LIBS) \
1207         $(KMOD_LIBS) \
1208         $(APPARMOR_LIBS) \
1209         $(SECCOMP_LIBS) \
1210         $(MOUNT_LIBS)
1211
1212 if HAVE_SECCOMP
1213 libsystemd_core_la_LIBADD += \
1214         libsystemd-seccomp.la
1215 endif
1216
1217 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1218         $(AM_V_at)$(MKDIR_P) $(dir $@)
1219         $(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 ";" }' < $< > $@
1220
1221 EXTRA_DIST += \
1222         src/core/load-fragment-gperf.gperf.m4
1223
1224 CLEANFILES += \
1225         src/core/load-fragment-gperf.gperf \
1226         src/core/load-fragment-gperf.c \
1227         src/core/load-fragment-gperf-nulstr.c \
1228         src/shared/errno-list.txt \
1229         src/shared/errno-from-name.gperf \
1230         src/shared/af-list.txt \
1231         src/shared/af-from-name.gperf \
1232         src/shared/arphrd-list.txt \
1233         src/shared/arphrd-from-name.gperf \
1234         src/shared/cap-list.txt \
1235         src/shared/cap-from-name.gperf \
1236         src/resolve/dns_type-list.txt \
1237         src/resolve/dns_type-from-name.gperf
1238
1239 BUILT_SOURCES += \
1240         src/shared/errno-from-name.h \
1241         src/shared/errno-to-name.h \
1242         src/shared/af-from-name.h \
1243         src/shared/af-to-name.h \
1244         src/shared/arphrd-from-name.h \
1245         src/shared/arphrd-to-name.h \
1246         src/shared/cap-from-name.h \
1247         src/shared/cap-to-name.h \
1248         src/resolve/dns_type-from-name.h \
1249         src/resolve/dns_type-to-name.h
1250
1251 %-from-name.gperf: %-list.txt
1252         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct $(notdir $*)_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1253
1254 %-from-name.h: %-from-name.gperf
1255         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_$(notdir $*) -H hash_$(notdir $*)_name -p -C <$< >$@
1256
1257
1258 src/shared/errno-list.txt:
1259         $(AM_V_at)$(MKDIR_P) $(dir $@)
1260         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - </dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+/ { print $$2; }' >$@
1261
1262 src/shared/errno-to-name.h: src/shared/errno-list.txt
1263         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} !/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1264
1265
1266 src/shared/af-list.txt:
1267         $(AM_V_at)$(MKDIR_P) $(dir $@)
1268         $(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; }' >$@
1269
1270 src/shared/af-to-name.h: src/shared/af-list.txt
1271         $(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 "};"}' <$< >$@
1272
1273
1274 src/shared/arphrd-list.txt:
1275         $(AM_V_at)$(MKDIR_P) $(dir $@)
1276         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include net/if_arp.h - </dev/null | $(AWK) '/^#define[ \t]+ARPHRD_[^ \t]+[ \t]+[^ \t]/ { print $$2; }' | sed -e 's/ARPHRD_//' >$@
1277
1278 src/shared/arphrd-to-name.h: src/shared/arphrd-list.txt
1279         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const arphrd_names[] = { "} !/CISCO/ { printf "[ARPHRD_%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' <$< >$@
1280
1281 src/shared/arphrd-from-name.gperf: src/shared/arphrd-list.txt
1282         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct arphrd_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, ARPHRD_%s\n", $$1, $$1 }' <$< >$@
1283
1284
1285 src/shared/cap-list.txt:
1286         $(AM_V_at)$(MKDIR_P) $(dir $@)
1287         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/capability.h -include missing.h - </dev/null | $(AWK) '/^#define[ \t]+CAP_[A-Z_]+[ \t]+/ { print $$2; }' | grep -v CAP_LAST_CAP >$@
1288
1289 src/shared/cap-to-name.h: src/shared/cap-list.txt
1290         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const capability_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, tolower($$1) } END{print "};"}' <$< >$@
1291
1292 src/shared/cap-from-name.gperf: src/shared/cap-list.txt
1293         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct capability_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' <$< >$@
1294
1295 src/shared/cap-from-name.h: src/shared/cap-from-name.gperf
1296         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_capability -H hash_capability_name -p -C <$< >$@
1297
1298
1299 src/resolve/dns_type-list.txt: src/resolve/dns-type.h
1300         $(AM_V_at)$(MKDIR_P) $(dir $@)
1301         $(AM_V_GEN)$(SED) -n -r 's/.* DNS_TYPE_(\w+).*/\1/p' <$< >$@
1302
1303 src/resolve/dns_type-to-name.h: src/resolve/dns_type-list.txt
1304         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char *dns_type_to_string(int type) {\n\tswitch(type) {" } {printf "        case DNS_TYPE_%s: return ", $$1; sub(/_/, "-"); printf "\"%s\";\n", $$1 } END{ print "\ndefault: return NULL;\n\t}\n}\n" }' <$< >$@
1305
1306 src/resolve/dns_type-from-name.gperf: src/resolve/dns_type-list.txt
1307         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct dns_type_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { s=$$1; sub(/_/, "-", s); printf "%s, ", $$s; printf "DNS_TYPE_%s\n", $$1 }' <$< >$@
1308
1309 # ------------------------------------------------------------------------------
1310 systemd_SOURCES = \
1311         src/core/main.c
1312
1313 systemd_CFLAGS = \
1314         $(AM_CFLAGS) \
1315         $(SECCOMP_CFLAGS)
1316
1317 systemd_LDADD = \
1318         libsystemd-core.la \
1319         $(RT_LIBS)
1320
1321 dist_pkgsysconf_DATA += \
1322         src/core/system.conf \
1323         src/core/user.conf
1324
1325 dist_dbuspolicy_DATA += \
1326         src/core/org.freedesktop.systemd1.conf
1327
1328 dist_dbussystemservice_DATA += \
1329         src/core/org.freedesktop.systemd1.service
1330
1331 polkitpolicy_in_in_files += \
1332         src/core/org.freedesktop.systemd1.policy.in.in
1333
1334 pkgconfiglib_DATA += \
1335         src/core/systemd.pc
1336
1337 nodist_rpmmacros_DATA = \
1338         src/core/macros.systemd
1339
1340 EXTRA_DIST += \
1341         src/core/systemd.pc.in \
1342         src/core/macros.systemd.in
1343
1344 CLEANFILES += \
1345         src/core/macros.systemd \
1346         src/core/org.freedesktop.systemd1.policy.in
1347
1348 # ------------------------------------------------------------------------------
1349
1350 manual_tests += \
1351         test-ns \
1352         test-loopback \
1353         test-hostname \
1354         test-daemon \
1355         test-cgroup \
1356         test-install \
1357         test-watchdog \
1358         test-log \
1359         test-ipcrm \
1360         test-btrfs
1361
1362 if HAVE_LIBIPTC
1363 manual_tests += \
1364         test-fw-util
1365 endif
1366
1367 if HAVE_KMOD
1368 manual_tests += \
1369         test-rtnl-manual
1370 endif
1371
1372 tests += \
1373         test-engine \
1374         test-cgroup-mask \
1375         test-job-type \
1376         test-env-replace \
1377         test-strbuf \
1378         test-strv \
1379         test-path \
1380         test-path-util \
1381         test-strxcpyx \
1382         test-unit-name \
1383         test-unit-file \
1384         test-utf8 \
1385         test-ellipsize \
1386         test-util \
1387         test-path-lookup \
1388         test-ring \
1389         test-barrier \
1390         test-pty \
1391         test-tmpfiles \
1392         test-namespace \
1393         test-date \
1394         test-sleep \
1395         test-replace-var \
1396         test-sched-prio \
1397         test-calendarspec \
1398         test-strip-tab-ansi \
1399         test-cgroup-util \
1400         test-fstab-util \
1401         test-prioq \
1402         test-fileio \
1403         test-time \
1404         test-hashmap \
1405         test-set \
1406         test-list \
1407         test-unaligned \
1408         test-tables \
1409         test-device-nodes \
1410         test-xml \
1411         test-json \
1412         test-architecture \
1413         test-socket-util \
1414         test-fdset \
1415         test-conf-files \
1416         test-capability \
1417         test-async \
1418         test-ratelimit \
1419         test-condition \
1420         test-uid-range \
1421         test-bus-policy \
1422         test-locale-util \
1423         test-execute \
1424         test-copy \
1425         test-cap-list \
1426         test-sigbus \
1427         test-verbs
1428
1429 EXTRA_DIST += \
1430         test/a.service \
1431         test/basic.target \
1432         test/b.service \
1433         test/c.service \
1434         test/daughter.service \
1435         test/d.service \
1436         test/end.service \
1437         test/e.service \
1438         test/f.service \
1439         test/grandchild.service \
1440         test/g.service \
1441         test/hello-after-sleep.target \
1442         test/hello.service \
1443         test/h.service \
1444         test/parent-deep.slice \
1445         test/parent.slice \
1446         test/paths.target \
1447         test/sched_idle_bad.service \
1448         test/sched_idle_ok.service \
1449         test/sched_rr_bad.service \
1450         test/sched_rr_change.service \
1451         test/sched_rr_ok.service \
1452         test/shutdown.target \
1453         test/sleep.service \
1454         test/sockets.target \
1455         test/son.service \
1456         test/sysinit.target \
1457         test/testsuite.target \
1458         test/timers.target \
1459         test/unstoppable.service \
1460         test/path-changed.service \
1461         test/path-directorynotempty.service \
1462         test/path-existsglob.service \
1463         test/path-exists.service \
1464         test/path-makedirectory.service \
1465         test/path-modified.service \
1466         test/path-mycustomunit.service \
1467         test/path-service.service \
1468         test/path-changed.path \
1469         test/path-directorynotempty.path \
1470         test/path-existsglob.path \
1471         test/path-exists.path \
1472         test/path-makedirectory.path \
1473         test/path-modified.path \
1474         test/path-unit.path \
1475         test/exec-environment-empty.service \
1476         test/exec-environment-multiple.service \
1477         test/exec-environment.service \
1478         test/exec-group.service \
1479         test/exec-ignoresigpipe-no.service \
1480         test/exec-ignoresigpipe-yes.service \
1481         test/exec-personality-x86-64.service \
1482         test/exec-personality-x86.service \
1483         test/exec-privatedevices-no.service \
1484         test/exec-privatedevices-yes.service \
1485         test/exec-privatetmp-no.service \
1486         test/exec-privatetmp-yes.service \
1487         test/exec-systemcallerrornumber.service \
1488         test/exec-systemcallfilter-failing2.service \
1489         test/exec-systemcallfilter-failing.service \
1490         test/exec-systemcallfilter-not-failing2.service \
1491         test/exec-systemcallfilter-not-failing.service \
1492         test/exec-user.service \
1493         test/exec-workingdirectory.service \
1494         test/exec-umask-0177.service \
1495         test/exec-umask-default.service \
1496         test/bus-policy/hello.conf \
1497         test/bus-policy/methods.conf \
1498         test/bus-policy/ownerships.conf \
1499         test/bus-policy/signals.conf \
1500         test/bus-policy/check-own-rules.conf \
1501         test/bus-policy/many-rules.conf \
1502         test/bus-policy/test.conf
1503
1504
1505 EXTRA_DIST += \
1506         src/test/test-helper.h
1507
1508 test_device_nodes_SOURCES = \
1509         src/test/test-device-nodes.c
1510
1511 test_device_nodes_LDADD = \
1512         libsystemd-shared.la
1513
1514 test_engine_SOURCES = \
1515         src/test/test-engine.c
1516
1517 test_engine_CFLAGS = \
1518         $(AM_CFLAGS) \
1519         $(SECCOMP_CFLAGS)
1520
1521 test_engine_LDADD = \
1522         libsystemd-core.la \
1523         $(RT_LIBS)
1524
1525 test_job_type_SOURCES = \
1526         src/test/test-job-type.c
1527
1528 test_job_type_CFLAGS = \
1529         $(AM_CFLAGS) \
1530         $(SECCOMP_CFLAGS)
1531
1532 test_job_type_LDADD = \
1533         libsystemd-core.la \
1534         $(RT_LIBS)
1535
1536 test_ns_SOURCES = \
1537         src/test/test-ns.c
1538
1539 test_ns_CFLAGS = \
1540         $(AM_CFLAGS) \
1541         $(SECCOMP_CFLAGS)
1542
1543 test_ns_LDADD = \
1544         libsystemd-core.la
1545
1546 test_loopback_SOURCES = \
1547         src/test/test-loopback.c
1548
1549 test_loopback_LDADD = \
1550         libsystemd-core.la
1551
1552 test_hostname_SOURCES = \
1553         src/test/test-hostname.c
1554
1555 test_hostname_LDADD = \
1556         libsystemd-core.la
1557
1558 if ENABLE_EFI
1559 manual_tests += \
1560         test-boot-timestamp
1561
1562 test_boot_timestamp_SOURCES = \
1563         src/test/test-boot-timestamps.c
1564
1565 test_boot_timestamp_LDADD = \
1566         libsystemd-shared.la
1567 endif
1568
1569 test_unit_name_SOURCES = \
1570         src/test/test-unit-name.c
1571
1572 test_unit_name_CFLAGS = \
1573         $(AM_CFLAGS) \
1574         $(SECCOMP_CFLAGS)
1575
1576 test_unit_name_LDADD = \
1577         libsystemd-core.la \
1578         $(RT_LIBS)
1579
1580 test_unit_file_SOURCES = \
1581         src/test/test-unit-file.c
1582
1583 test_unit_file_CFLAGS = \
1584         $(AM_CFLAGS) \
1585         $(SECCOMP_CFLAGS)
1586
1587 test_unit_file_LDADD = \
1588         libsystemd-core.la \
1589         $(RT_LIBS)
1590
1591 test_utf8_SOURCES = \
1592         src/test/test-utf8.c
1593
1594 test_utf8_LDADD = \
1595         libsystemd-shared.la
1596
1597 test_capability_SOURCES = \
1598         src/test/test-capability.c
1599
1600 test_capability_LDADD = \
1601         libsystemd-shared.la
1602
1603 test_async_SOURCES = \
1604         src/test/test-async.c
1605
1606 test_async_LDADD = \
1607         libsystemd-shared.la
1608
1609 test_locale_util_SOURCES = \
1610         src/test/test-locale-util.c
1611
1612 test_locale_util_LDADD = \
1613         libsystemd-shared.la
1614
1615 test_copy_SOURCES = \
1616         src/test/test-copy.c
1617
1618 test_copy_LDADD = \
1619         libsystemd-label.la \
1620         libsystemd-shared.la
1621
1622 test_sigbus_SOURCES = \
1623         src/test/test-sigbus.c
1624
1625 test_sigbus_LDADD = \
1626         libsystemd-shared.la
1627
1628 test_condition_SOURCES = \
1629         src/test/test-condition.c
1630
1631 test_condition_LDADD = \
1632         libsystemd-label.la \
1633         libsystemd-internal.la \
1634         libsystemd-shared.la
1635
1636 test_fdset_SOURCES = \
1637         src/test/test-fdset.c
1638
1639 test_fdset_LDADD = \
1640         libsystemd-shared.la \
1641         libsystemd-internal.la
1642
1643 test_fstab_util_SOURCES = \
1644         src/test/test-fstab-util.c
1645
1646 test_fstab_util_LDADD = \
1647         libsystemd-shared.la
1648
1649 test_ratelimit_SOURCES = \
1650         src/test/test-ratelimit.c
1651
1652 test_ratelimit_LDADD = \
1653         libsystemd-shared.la
1654
1655 test_util_SOURCES = \
1656         src/test/test-util.c
1657
1658 test_util_LDADD = \
1659         libsystemd-shared.la
1660
1661 test_path_lookup_SOURCES = \
1662         src/test/test-path-lookup.c
1663
1664 test_path_lookup_LDADD = \
1665         -lm \
1666         libsystemd-units.la \
1667         libsystemd-shared.la
1668
1669 test_uid_range_SOURCES = \
1670         src/test/test-uid-range.c
1671
1672 test_uid_range_LDADD = \
1673         libsystemd-shared.la
1674
1675 test_cap_list_SOURCES = \
1676         src/test/test-cap-list.c
1677
1678 test_cap_list_LDADD = \
1679         libsystemd-shared.la
1680
1681 test_socket_util_SOURCES = \
1682         src/test/test-socket-util.c
1683
1684 test_socket_util_LDADD = \
1685         libsystemd-shared.la
1686
1687 test_ring_SOURCES = \
1688         src/test/test-ring.c
1689
1690 test_ring_LDADD = \
1691         libsystemd-shared.la
1692
1693 test_barrier_SOURCES = \
1694         src/test/test-barrier.c
1695
1696 test_barrier_LDADD = \
1697         libsystemd-shared.la
1698
1699 test_pty_SOURCES = \
1700         src/test/test-pty.c
1701
1702 test_pty_LDADD = \
1703         libsystemd-core.la
1704
1705 test_tmpfiles_SOURCES = \
1706         src/test/test-tmpfiles.c
1707
1708 test_tmpfiles_LDADD = \
1709         libsystemd-shared.la
1710
1711 test_namespace_SOURCES = \
1712         src/test/test-namespace.c
1713
1714 test_verbs_SOURCES = \
1715         src/test/test-verbs.c
1716
1717 test_verbs_LDADD = \
1718         libsystemd-shared.la
1719
1720 test_namespace_LDADD = \
1721         libsystemd-core.la
1722
1723 CLEANFILES += \
1724         src/test/test-hashmap-ordered.c
1725
1726 BUILT_SOURCES += \
1727         src/test/test-hashmap-ordered.c
1728
1729 src/test/test-hashmap-ordered.c: src/test/test-hashmap-plain.c
1730         $(AM_V_at)$(MKDIR_P) $(dir $@)
1731         $(AM_V_GEN)$(AWK) 'BEGIN { print "/* GENERATED FILE */\n#define ORDERED" } \
1732                            { if (!match($$0, "^#include"))          \
1733                                  gsub(/hashmap/, "ordered_hashmap"); \
1734                              gsub(/HASHMAP/, "ORDERED_HASHMAP");     \
1735                              gsub(/Hashmap/, "OrderedHashmap");      \
1736                              print }' <$< >$@
1737
1738 nodist_test_hashmap_SOURCES = \
1739         src/test/test-hashmap-ordered.c
1740
1741 test_hashmap_SOURCES = \
1742         src/test/test-hashmap.c \
1743         src/test/test-hashmap-plain.c
1744
1745 test_hashmap_LDADD = \
1746         libsystemd-shared.la
1747
1748 test_set_SOURCES = \
1749         src/test/test-set.c
1750
1751 test_set_LDADD = \
1752         libsystemd-shared.la
1753
1754 test_xml_SOURCES = \
1755         src/test/test-xml.c
1756
1757 test_xml_LDADD = \
1758         libsystemd-shared.la
1759
1760 test_json_SOURCES = \
1761         src/test/test-json.c
1762
1763 test_json_LDADD = \
1764         libsystemd-shared.la
1765
1766 test_list_SOURCES = \
1767         src/test/test-list.c
1768
1769 test_list_LDADD = \
1770         libsystemd-shared.la
1771
1772 test_unaligned_LDADD = \
1773         libsystemd-shared.la
1774
1775 test_unaligned_SOURCES = \
1776         src/test/test-unaligned.c
1777
1778 test_tables_SOURCES = \
1779         src/test/test-tables.c \
1780         src/shared/test-tables.h \
1781         src/bus-proxyd/bus-xml-policy.c \
1782         src/bus-proxyd/bus-xml-policy.h \
1783         src/journal/journald-server.c \
1784         src/journal/journald-server.h
1785
1786 test_tables_CPPFLAGS = \
1787         $(AM_CPPFLAGS) \
1788         -I$(top_srcdir)/src/bus-proxyd
1789
1790 test_tables_CFLAGS = \
1791         $(AM_CFLAGS) \
1792         $(SECCOMP_CFLAGS)
1793
1794 test_tables_LDADD = \
1795         libsystemd-logs.la \
1796         libsystemd-journal-internal.la \
1797         libsystemd-journal-core.la \
1798         libsystemd-core.la \
1799         libudev-core.la \
1800         $(RT_LIBS)
1801
1802 test_prioq_SOURCES = \
1803         src/test/test-prioq.c
1804
1805 test_prioq_LDADD = \
1806         libsystemd-shared.la
1807
1808 test_fileio_SOURCES = \
1809         src/test/test-fileio.c
1810
1811 test_fileio_LDADD = \
1812         libsystemd-shared.la
1813
1814 test_time_SOURCES = \
1815         src/test/test-time.c
1816
1817 test_time_LDADD = \
1818         libsystemd-shared.la
1819
1820 test_architecture_SOURCES = \
1821         src/test/test-architecture.c
1822
1823 test_architecture_LDADD = \
1824         libsystemd-shared.la
1825
1826 test_log_SOURCES = \
1827         src/test/test-log.c
1828
1829 test_log_LDADD = \
1830         libsystemd-shared.la
1831
1832 test_ipcrm_SOURCES = \
1833         src/test/test-ipcrm.c
1834
1835 test_ipcrm_LDADD = \
1836         libsystemd-shared.la \
1837         -lrt
1838
1839 test_btrfs_SOURCES = \
1840         src/test/test-btrfs.c
1841
1842 test_btrfs_LDADD = \
1843         libsystemd-label.la \
1844         libsystemd-shared.la
1845
1846 if HAVE_LIBIPTC
1847 test_fw_util_SOURCES = \
1848         src/test/test-fw-util.c
1849
1850 test_fw_util_CFLAGS = \
1851         $(AM_CFLAGS) \
1852         $(LIBIPTC_CFLAGS)
1853
1854 test_fw_util_LDADD = \
1855         libsystemd-fw.la \
1856         libsystemd-shared.la \
1857         $(LIBIPTC_LIBS)
1858 endif
1859
1860 test_rtnl_manual_SOURCES = \
1861         src/test/test-rtnl-manual.c
1862
1863 test_rtnl_manual_CFLAGS = \
1864         $(AM_CFLAGS) \
1865         $(KMOD_CFLAGS)
1866
1867 test_rtnl_manual_LDADD = \
1868         libsystemd-internal.la \
1869         libsystemd-shared.la \
1870         $(KMOD_LIBS)
1871
1872 test_ellipsize_SOURCES = \
1873         src/test/test-ellipsize.c
1874
1875 test_ellipsize_LDADD = \
1876         libsystemd-shared.la
1877
1878 test_date_SOURCES = \
1879         src/test/test-date.c
1880
1881 test_date_LDADD = \
1882         libsystemd-shared.la
1883
1884 test_sleep_SOURCES = \
1885         src/test/test-sleep.c
1886
1887 test_sleep_LDADD = \
1888         libsystemd-core.la
1889
1890 test_replace_var_SOURCES = \
1891         src/test/test-replace-var.c
1892
1893 test_replace_var_LDADD = \
1894         libsystemd-shared.la
1895
1896 test_calendarspec_SOURCES = \
1897         src/test/test-calendarspec.c
1898
1899 test_calendarspec_LDADD = \
1900         libsystemd-shared.la
1901
1902 test_strip_tab_ansi_SOURCES = \
1903         src/test/test-strip-tab-ansi.c
1904
1905 test_strip_tab_ansi_LDADD = \
1906         libsystemd-shared.la
1907
1908 test_daemon_SOURCES = \
1909         src/test/test-daemon.c
1910
1911 test_daemon_LDADD = \
1912         libsystemd-internal.la \
1913         libsystemd-shared.la
1914
1915 test_cgroup_SOURCES = \
1916         src/test/test-cgroup.c
1917
1918 test_cgroup_LDADD = \
1919         libsystemd-label.la \
1920         libsystemd-shared.la \
1921         libsystemd-internal.la
1922
1923 test_cgroup_mask_SOURCES = \
1924         src/test/test-cgroup-mask.c
1925
1926 test_cgroup_mask_CPPFLAGS = \
1927         $(AM_CPPFLAGS)
1928
1929 test_cgroup_mask_CFLAGS = \
1930         $(AM_CFLAGS) \
1931         $(SECCOMP_CFLAGS)
1932
1933 test_cgroup_mask_LDADD = \
1934         libsystemd-core.la \
1935         $(RT_LIBS)
1936
1937 test_cgroup_util_SOURCES = \
1938         src/test/test-cgroup-util.c
1939
1940 test_cgroup_util_LDADD = \
1941         libsystemd-label.la \
1942         libsystemd-internal.la \
1943         libsystemd-shared.la
1944
1945 test_env_replace_SOURCES = \
1946         src/test/test-env-replace.c
1947
1948 test_env_replace_LDADD = \
1949         libsystemd-shared.la
1950
1951 test_strbuf_SOURCES = \
1952         src/test/test-strbuf.c
1953
1954 test_strbuf_LDADD = \
1955         libsystemd-shared.la
1956
1957 test_strv_SOURCES = \
1958         src/test/test-strv.c
1959
1960 test_strv_LDADD = \
1961         libsystemd-units.la \
1962         libsystemd-internal.la \
1963         libsystemd-shared.la
1964
1965 test_path_util_SOURCES = \
1966         src/test/test-path-util.c
1967
1968 test_path_util_LDADD = \
1969         libsystemd-shared.la
1970
1971 test_path_SOURCES = \
1972         src/test/test-path.c
1973
1974 test_path_CFLAGS = \
1975         $(AM_CFLAGS)
1976
1977 test_path_LDADD = \
1978         libsystemd-core.la
1979
1980 test_execute_SOURCES = \
1981         src/test/test-execute.c
1982
1983 test_execute_CFLAGS = \
1984         $(AM_CFLAGS)
1985
1986 test_execute_LDADD = \
1987         libsystemd-core.la
1988
1989 test_strxcpyx_SOURCES = \
1990         src/test/test-strxcpyx.c
1991
1992 test_strxcpyx_LDADD = \
1993         libsystemd-shared.la
1994
1995 test_install_SOURCES = \
1996         src/test/test-install.c
1997
1998 test_install_LDADD = \
1999         libsystemd-units.la \
2000         libsystemd-label.la \
2001         libsystemd-shared.la \
2002         libsystemd-internal.la
2003
2004 test_watchdog_SOURCES = \
2005         src/test/test-watchdog.c
2006
2007 test_watchdog_LDADD = \
2008         libsystemd-shared.la
2009
2010 test_sched_prio_SOURCES = \
2011         src/test/test-sched-prio.c
2012
2013 test_sched_prio_CPPFLAGS = \
2014         $(AM_CPPFLAGS)
2015
2016 test_sched_prio_CFLAGS = \
2017         $(AM_CFLAGS) \
2018         $(SECCOMP_CFLAGS)
2019
2020 test_sched_prio_LDADD = \
2021         libsystemd-core.la \
2022         $(RT_LIBS)
2023
2024 test_conf_files_SOURCES = \
2025         src/test/test-conf-files.c
2026
2027 test_conf_files_LDADD = \
2028         libsystemd-shared.la
2029
2030 test_bus_policy_SOURCES = \
2031         src/bus-proxyd/test-bus-xml-policy.c
2032
2033 test_bus_policy_LDADD = \
2034         libsystemd-proxy.la \
2035         libsystemd-internal.la \
2036         libsystemd-shared.la
2037
2038 # ------------------------------------------------------------------------------
2039 ## .PHONY so it always rebuilds it
2040 .PHONY: coverage lcov-run lcov-report coverage-sync
2041
2042 # run lcov from scratch, always
2043 coverage: all
2044         $(MAKE) lcov-run
2045         $(MAKE) lcov-report
2046
2047 coverage_dir = coverage
2048 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
2049
2050 if ENABLE_COVERAGE
2051 # reset run coverage tests
2052 lcov-run:
2053         @rm -rf $(coverage_dir)
2054         lcov $(coverage_opts) --zerocounters
2055         -$(MAKE) check
2056
2057 # generate report based on current coverage data
2058 lcov-report:
2059         $(MKDIR_P) $(coverage_dir)
2060         lcov $(coverage_opts) --compat-libtool --capture --no-external \
2061                 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
2062         lcov --remove $(coverage_dir)/.lcov.info --output-file $(coverage_dir)/.lcov-clean.info 'test-*'
2063         genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov-clean.info
2064         @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
2065
2066 # lcov doesn't work properly with vpath builds, make sure that bad
2067 # output is not uploaded by mistake.
2068 coverage-sync: coverage
2069         test "$(builddir)" = "$(srcdir)"
2070         rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
2071
2072 else
2073 lcov-run lcov-report:
2074         echo "Need to reconfigure with --enable-coverage"
2075 endif
2076
2077 # ------------------------------------------------------------------------------
2078 systemd_analyze_SOURCES = \
2079         src/analyze/analyze.c \
2080         src/analyze/analyze-verify.c \
2081         src/analyze/analyze-verify.h
2082
2083 systemd_verify_CFLAGS = \
2084         $(AM_CFLAGS) \
2085         $(SECCOMP_CFLAGS)
2086
2087 systemd_analyze_LDADD = \
2088         libsystemd-core.la \
2089         libsystemd-internal.la \
2090         libsystemd-shared.la \
2091         $(RT_LIBS)
2092
2093 # ------------------------------------------------------------------------------
2094 systemd_initctl_SOURCES = \
2095         src/initctl/initctl.c
2096
2097 systemd_initctl_LDADD = \
2098         libsystemd-internal.la \
2099         libsystemd-shared.la
2100
2101 # ------------------------------------------------------------------------------
2102 systemd_update_utmp_SOURCES = \
2103         src/update-utmp/update-utmp.c
2104
2105 systemd_update_utmp_CFLAGS = \
2106         $(AM_CFLAGS) \
2107         $(AUDIT_CFLAGS)
2108
2109 systemd_update_utmp_LDADD = \
2110         libsystemd-internal.la \
2111         libsystemd-shared.la \
2112         $(AUDIT_LIBS)
2113
2114 # ------------------------------------------------------------------------------
2115 systemd_update_done_SOURCES = \
2116         src/update-done/update-done.c
2117
2118 systemd_update_done_LDADD = \
2119         libsystemd-internal.la \
2120         libsystemd-label.la \
2121         libsystemd-shared.la
2122
2123 # ------------------------------------------------------------------------------
2124 systemd_shutdownd_SOURCES = \
2125         src/shutdownd/shutdownd.c
2126
2127 systemd_shutdownd_LDADD = \
2128         libsystemd-label.la \
2129         libsystemd-internal.la \
2130         libsystemd-shared.la
2131
2132 dist_doc_DATA += \
2133         src/systemd/sd-shutdown.h
2134
2135 # ------------------------------------------------------------------------------
2136 systemd_shutdown_SOURCES = \
2137         src/core/umount.c \
2138         src/core/umount.h \
2139         src/core/shutdown.c \
2140         src/core/mount-setup.c \
2141         src/core/mount-setup.h \
2142         src/core/killall.h \
2143         src/core/killall.c
2144
2145 systemd_shutdown_LDADD = \
2146         libsystemd-label.la \
2147         libudev-internal.la \
2148         libsystemd-shared.la
2149
2150 # ------------------------------------------------------------------------------
2151 if HAVE_KMOD
2152 systemd_modules_load_SOURCES = \
2153         src/modules-load/modules-load.c
2154
2155 systemd_modules_load_CFLAGS = \
2156         $(AM_CFLAGS) \
2157         $(KMOD_CFLAGS)
2158
2159 systemd_modules_load_LDADD = \
2160         libsystemd-shared.la \
2161         $(KMOD_LIBS)
2162
2163 rootlibexec_PROGRAMS += \
2164         systemd-modules-load
2165
2166 nodist_systemunit_DATA += \
2167         units/systemd-modules-load.service
2168
2169 SYSINIT_TARGET_WANTS += \
2170         systemd-modules-load.service
2171
2172 if ENABLE_TMPFILES
2173 nodist_systemunit_DATA += \
2174         units/kmod-static-nodes.service
2175
2176 SYSINIT_TARGET_WANTS += \
2177         kmod-static-nodes.service
2178 endif
2179 endif
2180
2181 EXTRA_DIST += \
2182         units/systemd-modules-load.service.in \
2183         units/kmod-static-nodes.service.in
2184
2185 # ------------------------------------------------------------------------------
2186 if ENABLE_TMPFILES
2187 systemd_tmpfiles_SOURCES = \
2188         src/tmpfiles/tmpfiles.c
2189
2190 systemd_tmpfiles_LDADD = \
2191         libsystemd-units.la \
2192         libsystemd-label.la \
2193         libsystemd-internal.la \
2194         libsystemd-shared.la
2195
2196 rootbin_PROGRAMS += \
2197         systemd-tmpfiles
2198
2199 dist_systemunit_DATA += \
2200         units/systemd-tmpfiles-clean.timer
2201
2202 nodist_systemunit_DATA += \
2203         units/systemd-tmpfiles-setup-dev.service \
2204         units/systemd-tmpfiles-setup.service \
2205         units/systemd-tmpfiles-clean.service
2206
2207 nodist_tmpfiles_DATA = \
2208         tmpfiles.d/etc.conf
2209
2210 dist_tmpfiles_DATA = \
2211         tmpfiles.d/systemd.conf \
2212         tmpfiles.d/systemd-nologin.conf \
2213         tmpfiles.d/tmp.conf \
2214         tmpfiles.d/x11.conf \
2215         tmpfiles.d/var.conf
2216
2217 if HAVE_SYSV_COMPAT
2218 dist_tmpfiles_DATA += \
2219         tmpfiles.d/legacy.conf
2220 endif
2221
2222 SYSINIT_TARGET_WANTS += \
2223         systemd-tmpfiles-setup-dev.service \
2224         systemd-tmpfiles-setup.service
2225
2226 dist_zshcompletion_DATA += \
2227         shell-completion/zsh/_systemd-tmpfiles
2228
2229 TIMERS_TARGET_WANTS += \
2230         systemd-tmpfiles-clean.timer
2231
2232 INSTALL_DIRS += \
2233         $(tmpfilesdir) \
2234         $(sysconfdir)/tmpfiles.d
2235 endif
2236
2237 EXTRA_DIST += \
2238         tmpfiles.d/etc.conf.m4 \
2239         units/systemd-tmpfiles-setup-dev.service.in \
2240         units/systemd-tmpfiles-setup.service.in \
2241         units/systemd-tmpfiles-clean.service.in
2242
2243 CLEANFILES += \
2244         tmpfiles.d/etc.conf
2245
2246 # ------------------------------------------------------------------------------
2247 if ENABLE_SYSUSERS
2248 systemd_sysusers_SOURCES = \
2249         src/sysusers/sysusers.c
2250
2251 systemd_sysusers_LDADD = \
2252         libsystemd-units.la \
2253         libsystemd-label.la \
2254         libsystemd-internal.la \
2255         libsystemd-shared.la
2256
2257 rootbin_PROGRAMS += \
2258         systemd-sysusers
2259
2260 nodist_systemunit_DATA += \
2261         units/systemd-sysusers.service
2262
2263 SYSINIT_TARGET_WANTS += \
2264         systemd-sysusers.service
2265
2266 dist_sysusers_DATA = \
2267         sysusers.d/systemd.conf
2268
2269 nodist_sysusers_DATA = \
2270         sysusers.d/basic.conf
2271
2272 EXTRA_DIST += \
2273         units/systemd-sysusers.service.in \
2274         sysusers.d/basic.conf.in
2275
2276 CLEANFILES += \
2277         sysusers.d/basic.conf
2278
2279 INSTALL_DIRS += \
2280         $(sysusersdir)
2281 endif
2282
2283 # ------------------------------------------------------------------------------
2284 dist_factory_etc_DATA = \
2285         factory/etc/nsswitch.conf
2286
2287 if HAVE_PAM
2288 dist_factory_pam_DATA = \
2289         factory/etc/pam.d/system-auth \
2290         factory/etc/pam.d/other
2291 endif
2292
2293 # ------------------------------------------------------------------------------
2294 if ENABLE_FIRSTBOOT
2295 systemd_firstboot_SOURCES = \
2296         src/firstboot/firstboot.c
2297
2298 systemd_firstboot_LDADD = \
2299         libsystemd-units.la \
2300         libsystemd-label.la \
2301         libsystemd-internal.la \
2302         libsystemd-shared.la \
2303         -lcrypt
2304
2305 rootbin_PROGRAMS += \
2306         systemd-firstboot
2307
2308 nodist_systemunit_DATA += \
2309         units/systemd-firstboot.service
2310
2311 EXTRA_DIST += \
2312         units/systemd-firstboot.service.in
2313
2314 SYSINIT_TARGET_WANTS += \
2315         systemd-firstboot.service
2316 endif
2317
2318 # ------------------------------------------------------------------------------
2319 systemd_machine_id_setup_SOURCES = \
2320         src/machine-id-setup/machine-id-setup-main.c \
2321         src/core/machine-id-setup.c \
2322         src/core/machine-id-setup.h
2323
2324 systemd_machine_id_setup_LDADD = \
2325         libsystemd-label.la \
2326         libsystemd-internal.la \
2327         libsystemd-shared.la
2328
2329 # ------------------------------------------------------------------------------
2330 systemd_sysctl_SOURCES = \
2331         src/sysctl/sysctl.c
2332
2333 systemd_sysctl_LDADD = \
2334         libsystemd-shared.la
2335
2336 # ------------------------------------------------------------------------------
2337 systemd_sleep_SOURCES = \
2338         src/sleep/sleep.c
2339
2340 systemd_sleep_LDADD = \
2341         libsystemd-shared.la
2342
2343 # ------------------------------------------------------------------------------
2344 systemd_fsck_SOURCES = \
2345         src/fsck/fsck.c
2346
2347 systemd_fsck_LDADD = \
2348         libsystemd-internal.la \
2349         libudev-internal.la \
2350         libsystemd-shared.la
2351
2352 # ------------------------------------------------------------------------------
2353 systemd_machine_id_commit_SOURCES = \
2354         src/machine-id-commit/machine-id-commit.c \
2355         src/core/machine-id-setup.c \
2356         src/core/machine-id-setup.h
2357
2358 systemd_machine_id_commit_LDADD = \
2359         libsystemd-label.la \
2360         libsystemd-internal.la \
2361         libsystemd-shared.la
2362
2363 SYSINIT_TARGET_WANTS += \
2364         systemd-machine-id-commit.service
2365
2366 # ------------------------------------------------------------------------------
2367 systemd_ac_power_SOURCES = \
2368         src/ac-power/ac-power.c
2369
2370 systemd_ac_power_LDADD = \
2371         libudev-internal.la \
2372         libsystemd-shared.la
2373
2374 # ------------------------------------------------------------------------------
2375 systemd_detect_virt_SOURCES = \
2376         src/detect-virt/detect-virt.c
2377
2378 systemd_detect_virt_LDADD = \
2379         libsystemd-shared.la
2380
2381 INSTALL_EXEC_HOOKS += \
2382         systemd-detect-virt-install-hook
2383
2384 # ------------------------------------------------------------------------------
2385 systemd_delta_SOURCES = \
2386         src/delta/delta.c
2387
2388 systemd_delta_LDADD = \
2389         libsystemd-shared.la
2390
2391 # ------------------------------------------------------------------------------
2392 systemd_getty_generator_SOURCES = \
2393         src/getty-generator/getty-generator.c
2394
2395 systemd_getty_generator_LDADD = \
2396         libsystemd-label.la \
2397         libsystemd-shared.la
2398
2399 # ------------------------------------------------------------------------------
2400 systemd_debug_generator_SOURCES = \
2401         src/debug-generator/debug-generator.c
2402
2403 systemd_debug_generator_LDADD = \
2404         libsystemd-label.la \
2405         libsystemd-shared.la
2406
2407 # ------------------------------------------------------------------------------
2408 systemd_fstab_generator_SOURCES = \
2409         src/fstab-generator/fstab-generator.c \
2410         src/core/mount-setup.c
2411
2412 systemd_fstab_generator_LDADD = \
2413         libsystemd-label.la \
2414         libsystemd-shared.la
2415
2416 # ------------------------------------------------------------------------------
2417 systemd_system_update_generator_SOURCES = \
2418         src/system-update-generator/system-update-generator.c
2419
2420 systemd_system_update_generator_LDADD = \
2421         libsystemd-label.la \
2422         libsystemd-shared.la
2423
2424 # ------------------------------------------------------------------------------
2425 if ENABLE_HIBERNATE
2426 systemgenerator_PROGRAMS += \
2427         systemd-hibernate-resume-generator
2428
2429 rootlibexec_PROGRAMS += \
2430         systemd-hibernate-resume
2431
2432 systemd_hibernate_resume_SOURCES = \
2433         src/hibernate-resume/hibernate-resume.c
2434
2435 systemd_hibernate_resume_LDADD = \
2436         libsystemd-internal.la \
2437         libsystemd-shared.la
2438
2439 systemd_hibernate_resume_generator_SOURCES = \
2440         src/hibernate-resume/hibernate-resume-generator.c
2441
2442 systemd_hibernate_resume_generator_LDADD = \
2443         libsystemd-label.la \
2444         libsystemd-shared.la
2445
2446 EXTRA_DIST += \
2447         units/systemd-hibernate.service.in \
2448         units/systemd-hibernate-resume@.service.in \
2449         units/systemd-hybrid-sleep.service.in
2450
2451 dist_systemunit_DATA += \
2452         units/hibernate.target \
2453         units/hybrid-sleep.target
2454
2455 nodist_systemunit_DATA += \
2456         units/systemd-hibernate.service \
2457         units/systemd-hibernate-resume@.service \
2458         units/systemd-hybrid-sleep.service
2459 endif
2460
2461 # ------------------------------------------------------------------------------
2462 if ENABLE_EFI
2463 systemgenerator_PROGRAMS +=  \
2464         systemd-efi-boot-generator
2465
2466 systemd_efi_boot_generator_SOURCES = \
2467         src/efi-boot-generator/efi-boot-generator.c
2468
2469 systemd_efi_boot_generator_LDADD = \
2470         libsystemd-label.la \
2471         libsystemd-shared.la
2472
2473 # ------------------------------------------------------------------------------
2474 bootctl_SOURCES = \
2475         src/boot/boot.h \
2476         src/boot/boot-loader.h \
2477         src/boot/bootctl.c \
2478         src/boot/boot-loader.c \
2479         src/boot/boot-efi.c
2480
2481 bootctl_LDADD = \
2482         libsystemd-shared.la \
2483         libsystemd-internal.la
2484
2485 bin_PROGRAMS += \
2486         bootctl
2487
2488 dist_bashcompletion_DATA += \
2489         shell-completion/bash/bootctl
2490
2491 dist_zshcompletion_DATA += \
2492         shell-completion/zsh/_bootctl
2493
2494 endif
2495
2496 # ------------------------------------------------------------------------------
2497 if HAVE_BLKID
2498 systemgenerator_PROGRAMS +=  \
2499         systemd-gpt-auto-generator
2500
2501 systemd_gpt_auto_generator_SOURCES = \
2502         src/gpt-auto-generator/gpt-auto-generator.c \
2503         src/shared/blkid-util.h
2504
2505 systemd_gpt_auto_generator_LDADD = \
2506         libsystemd-label.la \
2507         libsystemd-internal.la \
2508         libudev-internal.la \
2509         libsystemd-shared.la \
2510         $(BLKID_LIBS)
2511
2512 systemd_gpt_auto_generator_CFLAGS = \
2513         $(AM_CFLAGS) \
2514         $(BLKID_CFLAGS)
2515 endif
2516
2517 # ------------------------------------------------------------------------------
2518 if ENABLE_KDBUS
2519 systemgenerator_PROGRAMS +=  \
2520         systemd-dbus1-generator
2521
2522 systemd_dbus1_generator_SOURCES = \
2523         src/dbus1-generator/dbus1-generator.c
2524
2525 systemd_dbus1_generator_LDADD = \
2526         libsystemd-label.la \
2527         libsystemd-internal.la \
2528         libsystemd-shared.la
2529
2530 dbus1-generator-install-hook:
2531         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2532         $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2533         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2534
2535 dbus1-generator-uninstall-hook:
2536         rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2537
2538 dist_xinitrc_SCRIPTS = \
2539         xorg/50-systemd-user.sh
2540
2541 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2542 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2543 endif
2544
2545 # ------------------------------------------------------------------------------
2546 systemd_sysv_generator_SOURCES = \
2547         src/sysv-generator/sysv-generator.c
2548
2549 systemd_sysv_generator_LDADD = \
2550         libsystemd-core.la \
2551         libsystemd-label.la \
2552         libsystemd-shared.la
2553
2554 # ------------------------------------------------------------------------------
2555 systemd_rc_local_generator_SOURCES = \
2556         src/rc-local-generator/rc-local-generator.c
2557
2558 systemd_rc_local_generator_LDADD = \
2559         libsystemd-label.la \
2560         libsystemd-shared.la
2561
2562 # ------------------------------------------------------------------------------
2563 systemd_remount_fs_SOURCES = \
2564         src/remount-fs/remount-fs.c \
2565         src/core/mount-setup.c \
2566         src/core/mount-setup.h
2567
2568 systemd_remount_fs_LDADD = \
2569         libsystemd-label.la \
2570         libsystemd-shared.la
2571
2572 # ------------------------------------------------------------------------------
2573 systemd_cgroups_agent_SOURCES = \
2574         src/cgroups-agent/cgroups-agent.c
2575
2576 systemd_cgroups_agent_LDADD = \
2577         libsystemd-internal.la \
2578         libsystemd-shared.la
2579
2580 # ------------------------------------------------------------------------------
2581 systemd_escape_SOURCES = \
2582         src/escape/escape.c
2583
2584 systemd_escape_LDADD = \
2585         libsystemd-shared.la
2586
2587 # -----------------------------------------------------------------------------
2588 systemctl_SOURCES = \
2589         src/systemctl/systemctl.c
2590
2591 systemctl_LDADD = \
2592         libsystemd-units.la \
2593         libsystemd-label.la \
2594         libsystemd-internal.la \
2595         libsystemd-logs.la \
2596         libsystemd-journal-internal.la \
2597         libsystemd-shared.la
2598
2599 # ------------------------------------------------------------------------------
2600 systemd_notify_SOURCES = \
2601         src/notify/notify.c
2602
2603 systemd_notify_LDADD = \
2604         libsystemd-internal.la \
2605         libsystemd-shared.la
2606
2607 # ------------------------------------------------------------------------------
2608 systemd_path_SOURCES = \
2609         src/path/path.c
2610
2611 systemd_path_LDADD = \
2612         libsystemd-internal.la \
2613         libsystemd-shared.la
2614
2615 # ------------------------------------------------------------------------------
2616 systemd_ask_password_SOURCES = \
2617         src/ask-password/ask-password.c
2618
2619 systemd_ask_password_LDADD = \
2620         libsystemd-label.la \
2621         libsystemd-shared.la
2622
2623 # ------------------------------------------------------------------------------
2624 systemd_reply_password_SOURCES = \
2625         src/reply-password/reply-password.c
2626
2627 systemd_reply_password_LDADD = \
2628         libsystemd-shared.la
2629
2630 # ------------------------------------------------------------------------------
2631 systemd_cgls_SOURCES = \
2632         src/cgls/cgls.c
2633
2634 systemd_cgls_LDADD = \
2635         libsystemd-internal.la \
2636         libsystemd-shared.la
2637
2638 # ------------------------------------------------------------------------------
2639 systemd_cgtop_SOURCES = \
2640         src/cgtop/cgtop.c
2641
2642 systemd_cgtop_LDADD = \
2643         libsystemd-shared.la
2644
2645 # ------------------------------------------------------------------------------
2646 systemd_nspawn_SOURCES = \
2647         src/nspawn/nspawn.c \
2648         src/core/mount-setup.c \
2649         src/core/mount-setup.h \
2650         src/core/loopback-setup.c \
2651         src/core/loopback-setup.h
2652
2653 systemd_nspawn_CFLAGS = \
2654         $(AM_CFLAGS) \
2655         $(SECCOMP_CFLAGS) \
2656         $(BLKID_CFLAGS)
2657
2658 systemd_nspawn_LDADD = \
2659         libsystemd-label.la \
2660         libsystemd-internal.la \
2661         libudev-internal.la \
2662         libsystemd-shared.la \
2663         $(BLKID_LIBS)
2664
2665 if HAVE_SECCOMP
2666 systemd_nspawn_LDADD += \
2667         libsystemd-seccomp.la \
2668         $(SECCOMP_LIBS)
2669 endif
2670
2671 if HAVE_LIBIPTC
2672 systemd_nspawn_LDADD += \
2673         libsystemd-fw.la
2674 endif
2675
2676 # ------------------------------------------------------------------------------
2677 systemd_run_SOURCES = \
2678         src/run/run.c
2679
2680 systemd_run_LDADD = \
2681         libsystemd-label.la \
2682         libsystemd-internal.la \
2683         libsystemd-shared.la
2684
2685 # ------------------------------------------------------------------------------
2686 noinst_LTLIBRARIES += \
2687         libsystemd-proxy.la
2688
2689 libsystemd_proxy_la_SOURCES = \
2690         src/bus-proxyd/bus-xml-policy.c \
2691         src/bus-proxyd/bus-xml-policy.h \
2692         src/bus-proxyd/driver.c \
2693         src/bus-proxyd/driver.h \
2694         src/bus-proxyd/proxy.c \
2695         src/bus-proxyd/proxy.h \
2696         src/bus-proxyd/synthesize.c \
2697         src/bus-proxyd/synthesize.h
2698
2699 libsystemd_proxy_la_CFLAGS = \
2700         $(AM_CFLAGS) \
2701         -pthread
2702
2703 libsystemd_proxy_la_LIBADD = \
2704         libsystemd-internal.la \
2705         libsystemd-shared.la
2706
2707 systemd_bus_proxyd_SOURCES = \
2708         src/bus-proxyd/bus-proxyd.c
2709
2710 systemd_bus_proxyd_CFLAGS = \
2711         $(AM_CFLAGS) \
2712         -pthread
2713
2714 systemd_bus_proxyd_LDADD = \
2715         libsystemd-proxy.la \
2716         libsystemd-internal.la \
2717         libsystemd-shared.la
2718
2719 systemd_stdio_bridge_SOURCES = \
2720         src/bus-proxyd/stdio-bridge.c
2721
2722 systemd_stdio_bridge_LDADD = \
2723         libsystemd-proxy.la \
2724         libsystemd-internal.la \
2725         libsystemd-shared.la
2726
2727 if ENABLE_KDBUS
2728 nodist_systemunit_DATA += \
2729         units/systemd-bus-proxyd.service
2730
2731 dist_systemunit_DATA += \
2732         units/systemd-bus-proxyd.socket
2733
2734 nodist_userunit_DATA += \
2735         units/user/systemd-bus-proxyd.service
2736
2737 dist_userunit_DATA += \
2738         units/user/systemd-bus-proxyd.socket
2739 endif
2740
2741 EXTRA_DIST += \
2742         units/systemd-bus-proxyd.service.m4.in \
2743         units/user/systemd-bus-proxyd.service.in
2744
2745 CLEANFILES += \
2746         units/systemd-bus-proxyd.service.m4
2747
2748 if HAVE_SMACK
2749 bus-proxyd-set-cap-hook:
2750         -$(SETCAP) cap_mac_admin+ei $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd
2751
2752 INSTALL_EXEC_HOOKS += bus-proxyd-set-cap-hook
2753 endif
2754
2755 # ------------------------------------------------------------------------------
2756 systemd_tty_ask_password_agent_SOURCES = \
2757         src/tty-ask-password-agent/tty-ask-password-agent.c
2758
2759 systemd_tty_ask_password_agent_LDADD = \
2760         libsystemd-label.la \
2761         libsystemd-shared.la
2762
2763 # ------------------------------------------------------------------------------
2764 libsystemd_internal_la_SOURCES = \
2765         src/systemd/sd-bus.h \
2766         src/systemd/sd-bus-protocol.h \
2767         src/systemd/sd-bus-vtable.h \
2768         src/systemd/sd-utf8.h \
2769         src/systemd/sd-event.h \
2770         src/systemd/sd-rtnl.h \
2771         src/systemd/sd-resolve.h \
2772         src/systemd/sd-login.h \
2773         src/systemd/sd-id128.h \
2774         src/systemd/sd-daemon.h \
2775         src/systemd/sd-path.h \
2776         src/systemd/sd-network.h \
2777         src/systemd/sd-hwdb.h \
2778         src/libsystemd/sd-bus/sd-bus.c \
2779         src/libsystemd/sd-bus/bus-control.c \
2780         src/libsystemd/sd-bus/bus-control.h \
2781         src/libsystemd/sd-bus/bus-error.c \
2782         src/libsystemd/sd-bus/bus-error.h \
2783         src/libsystemd/sd-bus/bus-common-errors.h \
2784         src/libsystemd/sd-bus/bus-common-errors.c \
2785         src/libsystemd/sd-bus/bus-internal.c \
2786         src/libsystemd/sd-bus/bus-internal.h \
2787         src/libsystemd/sd-bus/bus-socket.c \
2788         src/libsystemd/sd-bus/bus-socket.h \
2789         src/libsystemd/sd-bus/bus-kernel.c \
2790         src/libsystemd/sd-bus/bus-kernel.h \
2791         src/libsystemd/sd-bus/bus-container.c \
2792         src/libsystemd/sd-bus/bus-container.h \
2793         src/libsystemd/sd-bus/bus-message.c \
2794         src/libsystemd/sd-bus/bus-message.h \
2795         src/libsystemd/sd-bus/bus-creds.c \
2796         src/libsystemd/sd-bus/bus-creds.h \
2797         src/libsystemd/sd-bus/bus-signature.c \
2798         src/libsystemd/sd-bus/bus-signature.h \
2799         src/libsystemd/sd-bus/bus-type.c \
2800         src/libsystemd/sd-bus/bus-type.h \
2801         src/libsystemd/sd-bus/bus-match.c \
2802         src/libsystemd/sd-bus/bus-match.h \
2803         src/libsystemd/sd-bus/bus-bloom.c \
2804         src/libsystemd/sd-bus/bus-bloom.h \
2805         src/libsystemd/sd-bus/bus-introspect.c \
2806         src/libsystemd/sd-bus/bus-introspect.h \
2807         src/libsystemd/sd-bus/bus-objects.c \
2808         src/libsystemd/sd-bus/bus-objects.h \
2809         src/libsystemd/sd-bus/bus-gvariant.c \
2810         src/libsystemd/sd-bus/bus-gvariant.h \
2811         src/libsystemd/sd-bus/bus-convenience.c \
2812         src/libsystemd/sd-bus/bus-track.c \
2813         src/libsystemd/sd-bus/bus-track.h \
2814         src/libsystemd/sd-bus/bus-util.c \
2815         src/libsystemd/sd-bus/bus-util.h \
2816         src/libsystemd/sd-bus/bus-slot.c \
2817         src/libsystemd/sd-bus/bus-slot.h \
2818         src/libsystemd/sd-bus/bus-protocol.h \
2819         src/libsystemd/sd-bus/kdbus.h \
2820         src/libsystemd/sd-utf8/sd-utf8.c \
2821         src/libsystemd/sd-event/sd-event.c \
2822         src/libsystemd/sd-event/event-util.h \
2823         src/libsystemd/sd-rtnl/sd-rtnl.c \
2824         src/libsystemd/sd-rtnl/rtnl-internal.h \
2825         src/libsystemd/sd-rtnl/rtnl-message.c \
2826         src/libsystemd/sd-rtnl/rtnl-types.h \
2827         src/libsystemd/sd-rtnl/rtnl-types.c \
2828         src/libsystemd/sd-rtnl/rtnl-util.h \
2829         src/libsystemd/sd-rtnl/rtnl-util.c \
2830         src/libsystemd/sd-rtnl/local-addresses.h \
2831         src/libsystemd/sd-rtnl/local-addresses.c \
2832         src/libsystemd/sd-id128/sd-id128.c \
2833         src/libsystemd/sd-daemon/sd-daemon.c \
2834         src/libsystemd/sd-login/sd-login.c \
2835         src/libsystemd/sd-path/sd-path.c \
2836         src/libsystemd/sd-network/sd-network.c \
2837         src/libsystemd/sd-network/network-util.h \
2838         src/libsystemd/sd-network/network-util.c \
2839         src/libsystemd/sd-hwdb/sd-hwdb.c \
2840         src/libsystemd/sd-hwdb/hwdb-util.h \
2841         src/libsystemd/sd-hwdb/hwdb-internal.h
2842
2843 nodist_libsystemd_internal_la_SOURCES = \
2844         src/libsystemd/libsystemd.sym
2845
2846 libsystemd_internal_la_CFLAGS = \
2847         $(AM_CFLAGS) \
2848         -pthread
2849
2850 libsystemd_internal_la_LIBADD = \
2851         $(RT_LIBS)
2852
2853 libsystemd_resolve_la_SOURCES = \
2854         src/libsystemd/sd-resolve/sd-resolve.c \
2855         src/libsystemd/sd-resolve/resolve-util.h
2856
2857 libsystemd_resolve_la_CFLAGS = \
2858         $(AM_CFLAGS) \
2859         -pthread
2860
2861 libsystemd_resolve_la_LIBADD = \
2862         -lresolv
2863
2864 noinst_LTLIBRARIES += \
2865         libsystemd-internal.la \
2866         libsystemd-resolve.la
2867
2868 libsystemd_dump_la_SOURCES = \
2869         src/libsystemd/sd-bus/bus-dump.c \
2870         src/libsystemd/sd-bus/bus-dump.h
2871
2872 noinst_LTLIBRARIES += \
2873         libsystemd-dump.la
2874
2875 EXTRA_DIST += \
2876         src/libsystemd/libsystemd.sym.m4 \
2877         src/libsystemd/libsystemd.pc.in \
2878         src/libsystemd/sd-bus/DIFFERENCES \
2879         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2880
2881 CLEANFILES += \
2882         src/libsystemd/libsystemd.sym
2883
2884 BUILT_SOURCES += \
2885         src/libsystemd/libsystemd.sym
2886
2887 libsystemd_la_SOURCES = \
2888         $(libsystemd_internal_la_SOURCES) \
2889         $(libsystemd_resolve_la_SOURCES) \
2890         $(libsystemd_journal_internal_la_SOURCES)
2891
2892 nodist_libsystemd_la_SOURCES = \
2893         $(nodist_libsystemd_internal_la_SOURCES)
2894
2895 libsystemd_la_CFLAGS = \
2896         $(libsystemd_internal_la_CFLAGS) \
2897         $(libsystemd_resolve_la_CFLAGS) \
2898         $(libsystemd_journal_internal_la_CFLAGS)
2899
2900 libsystemd_la_LDFLAGS = \
2901         $(AM_LDFLAGS) \
2902         -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2903         -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2904
2905 libsystemd_la_LIBADD = \
2906         libsystemd-shared.la \
2907         $(libsystemd_internal_la_LIBADD) \
2908         $(libsystemd_journal_internal_la_LIBADD) \
2909         $(libsystemd_resolve_la_LIBADD)
2910
2911 libsystemd-install-hook:
2912         libname=libsystemd.so && $(move-to-rootlibdir)
2913
2914 libsystemd-uninstall-hook:
2915         rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2916
2917 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2918 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2919
2920 pkgconfiglib_DATA += \
2921         src/libsystemd/libsystemd.pc
2922
2923 pkginclude_HEADERS += \
2924         src/systemd/sd-login.h \
2925         src/systemd/sd-id128.h \
2926         src/systemd/sd-daemon.h
2927
2928 if ENABLE_KDBUS
2929 pkginclude_HEADERS += \
2930         src/systemd/sd-bus.h \
2931         src/systemd/sd-bus-protocol.h \
2932         src/systemd/sd-bus-vtable.h \
2933         src/systemd/sd-utf8.h \
2934         src/systemd/sd-event.h \
2935         src/systemd/sd-rtnl.h \
2936         src/systemd/sd-resolve.h \
2937         src/systemd/sd-path.h
2938 endif
2939
2940 lib_LTLIBRARIES += \
2941         libsystemd.la
2942
2943 tests += \
2944         test-bus-marshal \
2945         test-bus-signature \
2946         test-bus-chat \
2947         test-bus-cleanup \
2948         test-bus-server \
2949         test-bus-match \
2950         test-bus-kernel \
2951         test-bus-kernel-bloom \
2952         test-bus-kernel-benchmark \
2953         test-bus-zero-copy \
2954         test-bus-introspect \
2955         test-bus-objects \
2956         test-bus-error \
2957         test-bus-creds \
2958         test-bus-gvariant \
2959         test-event \
2960         test-rtnl \
2961         test-local-addresses \
2962         test-resolve
2963
2964 bin_PROGRAMS += \
2965         busctl
2966
2967 test_bus_marshal_SOURCES = \
2968         src/libsystemd/sd-bus/test-bus-marshal.c
2969
2970 test_bus_marshal_LDADD = \
2971         libsystemd-dump.la \
2972         libsystemd-internal.la \
2973         libsystemd-shared.la \
2974         $(GLIB_LIBS) \
2975         $(DBUS_LIBS)
2976
2977 test_bus_marshal_CFLAGS = \
2978         $(AM_CFLAGS) \
2979         $(GLIB_CFLAGS) \
2980         $(DBUS_CFLAGS)
2981
2982 test_bus_signature_SOURCES = \
2983         src/libsystemd/sd-bus/test-bus-signature.c
2984
2985 test_bus_signature_LDADD = \
2986         libsystemd-internal.la \
2987         libsystemd-shared.la
2988
2989 test_bus_chat_SOURCES = \
2990         src/libsystemd/sd-bus/test-bus-chat.c
2991
2992 test_bus_chat_CFLAGS = \
2993         $(AM_CFLAGS) \
2994         -pthread
2995
2996 test_bus_chat_LDADD = \
2997         libsystemd-internal.la \
2998         libsystemd-shared.la
2999
3000 test_bus_cleanup_SOURCES = \
3001         src/libsystemd/sd-bus/test-bus-cleanup.c
3002
3003 test_bus_cleanup_CFLAGS = \
3004         $(AM_CFLAGS) \
3005         $(SECCOMP_CFLAGS)
3006
3007 test_bus_cleanup_LDADD = \
3008         libsystemd-internal.la \
3009         libsystemd-shared.la
3010
3011 test_bus_server_SOURCES = \
3012         src/libsystemd/sd-bus/test-bus-server.c
3013
3014 test_bus_server_CFLAGS = \
3015         $(AM_CFLAGS) \
3016         -pthread
3017
3018 test_bus_server_LDADD = \
3019         libsystemd-internal.la \
3020         libsystemd-shared.la
3021
3022 test_bus_objects_SOURCES = \
3023         src/libsystemd/sd-bus/test-bus-objects.c
3024
3025 test_bus_objects_CFLAGS = \
3026         $(AM_CFLAGS) \
3027         -pthread
3028
3029 test_bus_objects_LDADD = \
3030         libsystemd-dump.la \
3031         libsystemd-internal.la \
3032         libsystemd-shared.la
3033
3034 test_bus_error_SOURCES = \
3035         src/libsystemd/sd-bus/test-bus-error.c
3036
3037 test_bus_error_LDADD = \
3038         libsystemd-internal.la \
3039         libsystemd-shared.la
3040
3041 test_bus_gvariant_SOURCES = \
3042         src/libsystemd/sd-bus/test-bus-gvariant.c
3043
3044 test_bus_gvariant_LDADD = \
3045         libsystemd-dump.la \
3046         libsystemd-internal.la \
3047         libsystemd-shared.la \
3048         $(GLIB_LIBS)
3049
3050 test_bus_gvariant_CFLAGS = \
3051         $(AM_CFLAGS) \
3052         $(GLIB_CFLAGS)
3053
3054 test_bus_creds_SOURCES = \
3055         src/libsystemd/sd-bus/test-bus-creds.c
3056
3057 test_bus_creds_LDADD = \
3058         libsystemd-dump.la \
3059         libsystemd-internal.la \
3060         libsystemd-shared.la
3061
3062 test_bus_match_SOURCES = \
3063         src/libsystemd/sd-bus/test-bus-match.c
3064
3065 test_bus_match_LDADD = \
3066         libsystemd-internal.la \
3067         libsystemd-shared.la
3068
3069 test_bus_kernel_SOURCES = \
3070         src/libsystemd/sd-bus/test-bus-kernel.c
3071
3072 test_bus_kernel_LDADD = \
3073         libsystemd-dump.la \
3074         libsystemd-internal.la \
3075         libsystemd-shared.la
3076
3077 test_bus_kernel_bloom_SOURCES = \
3078         src/libsystemd/sd-bus/test-bus-kernel-bloom.c
3079
3080 test_bus_kernel_bloom_LDADD = \
3081         libsystemd-internal.la \
3082         libsystemd-shared.la
3083
3084 test_bus_kernel_benchmark_SOURCES = \
3085         src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
3086
3087 test_bus_kernel_benchmark_LDADD = \
3088         libsystemd-internal.la \
3089         libsystemd-shared.la
3090
3091 test_bus_zero_copy_SOURCES = \
3092         src/libsystemd/sd-bus/test-bus-zero-copy.c
3093
3094 test_bus_zero_copy_LDADD = \
3095         libsystemd-dump.la \
3096         libsystemd-internal.la \
3097         libsystemd-shared.la
3098
3099 test_bus_introspect_SOURCES = \
3100         src/libsystemd/sd-bus/test-bus-introspect.c
3101
3102 test_bus_introspect_LDADD = \
3103         libsystemd-internal.la \
3104         libsystemd-shared.la
3105
3106 test_event_SOURCES = \
3107         src/libsystemd/sd-event/test-event.c
3108
3109 test_event_LDADD = \
3110         libsystemd-internal.la \
3111         libsystemd-shared.la
3112
3113 test_rtnl_SOURCES = \
3114         src/libsystemd/sd-rtnl/test-rtnl.c
3115
3116 test_rtnl_LDADD = \
3117         libsystemd-internal.la \
3118         libsystemd-shared.la
3119
3120 test_local_addresses_SOURCES = \
3121         src/libsystemd/sd-rtnl/test-local-addresses.c
3122
3123 test_local_addresses_LDADD = \
3124         libsystemd-internal.la \
3125         libsystemd-shared.la
3126
3127 test_resolve_SOURCES = \
3128         src/libsystemd/sd-resolve/test-resolve.c
3129
3130 test_resolve_LDADD = \
3131         libsystemd-resolve.la \
3132         libsystemd-internal.la \
3133         libsystemd-shared.la
3134
3135 test_resolve_CFLAGS = \
3136         $(AM_CFLAGS) \
3137         -pthread
3138
3139 busctl_SOURCES = \
3140         src/libsystemd/sd-bus/busctl.c \
3141         src/libsystemd/sd-bus/busctl-introspect.c \
3142         src/libsystemd/sd-bus/busctl-introspect.h
3143
3144 busctl_LDADD = \
3145         libsystemd-dump.la \
3146         libsystemd-internal.la \
3147         libsystemd-shared.la
3148
3149 # ------------------------------------------------------------------------------
3150 noinst_LTLIBRARIES += \
3151         libsystemd-network.la
3152
3153 libsystemd_network_la_CFLAGS = \
3154         $(AM_CFLAGS) \
3155         $(KMOD_CFLAGS)
3156
3157 libsystemd_network_la_SOURCES = \
3158         src/systemd/sd-dhcp-client.h \
3159         src/systemd/sd-dhcp-server.h \
3160         src/systemd/sd-dhcp-lease.h \
3161         src/systemd/sd-ipv4ll.h \
3162         src/systemd/sd-icmp6-nd.h \
3163         src/systemd/sd-dhcp6-client.h \
3164         src/systemd/sd-dhcp6-lease.h \
3165         src/systemd/sd-pppoe.h \
3166         src/systemd/sd-lldp.h \
3167         src/libsystemd-network/sd-dhcp-client.c \
3168         src/libsystemd-network/sd-dhcp-server.c \
3169         src/libsystemd-network/dhcp-network.c \
3170         src/libsystemd-network/dhcp-option.c \
3171         src/libsystemd-network/dhcp-packet.c \
3172         src/libsystemd-network/dhcp-internal.h \
3173         src/libsystemd-network/dhcp-server-internal.h \
3174         src/libsystemd-network/dhcp-protocol.h \
3175         src/libsystemd-network/dhcp-lease-internal.h \
3176         src/libsystemd-network/sd-dhcp-lease.c \
3177         src/libsystemd-network/sd-ipv4ll.c \
3178         src/libsystemd-network/ipv4ll-network.c \
3179         src/libsystemd-network/ipv4ll-packet.c \
3180         src/libsystemd-network/ipv4ll-internal.h \
3181         src/libsystemd-network/sd-pppoe.c \
3182         src/libsystemd-network/network-internal.c \
3183         src/libsystemd-network/network-internal.h \
3184         src/libsystemd-network/sd-icmp6-nd.c \
3185         src/libsystemd-network/sd-dhcp6-client.c \
3186         src/libsystemd-network/dhcp6-internal.h \
3187         src/libsystemd-network/dhcp6-protocol.h \
3188         src/libsystemd-network/dhcp6-network.c \
3189         src/libsystemd-network/dhcp6-option.c \
3190         src/libsystemd-network/dhcp6-lease-internal.h \
3191         src/libsystemd-network/sd-dhcp6-lease.c \
3192         src/libsystemd-network/dhcp-identifier.h \
3193         src/libsystemd-network/dhcp-identifier.c \
3194         src/libsystemd-network/lldp.h \
3195         src/libsystemd-network/lldp-tlv.h \
3196         src/libsystemd-network/lldp-tlv.c \
3197         src/libsystemd-network/lldp-network.h \
3198         src/libsystemd-network/lldp-network.c \
3199         src/libsystemd-network/lldp-port.h \
3200         src/libsystemd-network/lldp-port.c \
3201         src/libsystemd-network/lldp-internal.h \
3202         src/libsystemd-network/lldp-internal.c \
3203         src/libsystemd-network/lldp-util.h \
3204         src/libsystemd-network/sd-lldp.c
3205
3206 libsystemd_network_la_LIBADD = \
3207         libudev-internal.la \
3208         libsystemd-label.la \
3209         libsystemd-internal.la \
3210         libsystemd-shared.la \
3211         $(KMOD_LIBS)
3212
3213 test_dhcp_option_SOURCES = \
3214         src/libsystemd-network/dhcp-protocol.h \
3215         src/libsystemd-network/dhcp-internal.h \
3216         src/libsystemd-network/test-dhcp-option.c
3217
3218 test_dhcp_option_LDADD = \
3219         libsystemd-network.la \
3220         libsystemd-internal.la \
3221         libsystemd-shared.la
3222
3223 test_dhcp_client_SOURCES = \
3224         src/systemd/sd-dhcp-client.h \
3225         src/libsystemd-network/dhcp-protocol.h \
3226         src/libsystemd-network/dhcp-internal.h \
3227         src/libsystemd-network/test-dhcp-client.c
3228
3229 test_dhcp_client_LDADD = \
3230         libsystemd-network.la \
3231         libsystemd-label.la \
3232         libsystemd-internal.la \
3233         libsystemd-shared.la
3234
3235 test_dhcp_server_SOURCES = \
3236         src/libsystemd-network/test-dhcp-server.c
3237
3238 test_dhcp_server_LDADD = \
3239         libsystemd-network.la \
3240         libsystemd-internal.la \
3241         libsystemd-shared.la
3242
3243 test_ipv4ll_SOURCES = \
3244         src/systemd/sd-ipv4ll.h \
3245         src/libsystemd-network/ipv4ll-internal.h \
3246         src/libsystemd-network/test-ipv4ll.c
3247
3248 test_ipv4ll_LDADD = \
3249         libsystemd-network.la \
3250         libsystemd-label.la \
3251         libsystemd-internal.la \
3252         libsystemd-shared.la
3253
3254 test_pppoe_SOURCES = \
3255         src/systemd/sd-pppoe.h \
3256         src/libsystemd-network/test-pppoe.c
3257
3258 test_pppoe_LDADD = \
3259         libsystemd-network.la \
3260         libsystemd-shared.la
3261
3262 test_icmp6_rs_SOURCES = \
3263         src/systemd/sd-dhcp6-client.h \
3264         src/systemd/sd-icmp6-nd.h \
3265         src/libsystemd-network/dhcp6-internal.h \
3266         src/libsystemd-network/test-icmp6-rs.c \
3267         src/libsystemd-network/dhcp-identifier.h \
3268         src/libsystemd-network/dhcp-identifier.c
3269
3270 test_icmp6_rs_LDADD = \
3271         libsystemd-network.la \
3272         libsystemd-internal.la \
3273         libsystemd-shared.la
3274
3275 test_dhcp6_client_SOURCES = \
3276         src/systemd/sd-dhcp6-client.h \
3277         src/libsystemd-network/dhcp6-internal.h \
3278         src/libsystemd-network/test-dhcp6-client.c \
3279         src/libsystemd-network/dhcp-identifier.h \
3280         src/libsystemd-network/dhcp-identifier.c
3281
3282 test_dhcp6_client_LDADD = \
3283         libsystemd-network.la \
3284         libsystemd-internal.la \
3285         libsystemd-shared.la
3286
3287 test_lldp_SOURCES = \
3288        src/libsystemd-network/lldp.h \
3289        src/libsystemd-network/lldp-tlv.h \
3290        src/libsystemd-network/lldp-tlv.c \
3291        src/libsystemd-network/test-lldp.c
3292
3293 test_lldp_LDADD = \
3294         libsystemd-network.la \
3295         libsystemd-internal.la \
3296         libsystemd-shared.la
3297
3298 tests += \
3299         test-dhcp-option \
3300         test-dhcp-client \
3301         test-dhcp-server \
3302         test-ipv4ll \
3303         test-icmp6-rs \
3304         test-dhcp6-client \
3305         test-lldp
3306
3307 manual_tests += \
3308         test-pppoe
3309
3310 # ------------------------------------------------------------------------------
3311 if ENABLE_TERMINAL
3312 noinst_LTLIBRARIES += \
3313         libsystemd-terminal.la
3314
3315 rootlibexec_PROGRAMS += \
3316         systemd-consoled
3317
3318 noinst_PROGRAMS += \
3319         systemd-evcat \
3320         systemd-modeset \
3321         systemd-subterm
3322
3323 dist_pkgdata_DATA += \
3324         src/libsystemd-terminal/unifont-glyph-array.bin
3325
3326 nodist_userunit_DATA += \
3327         units/user/systemd-consoled.service
3328
3329 USER_DEFAULT_TARGET_WANTS += \
3330         systemd-consoled.service
3331
3332 tests += \
3333         test-term-page \
3334         test-term-parser \
3335         test-unifont
3336 endif
3337
3338 EXTRA_DIST += \
3339         units/user/systemd-consoled.service.in
3340
3341 libsystemd_terminal_la_CFLAGS = \
3342         $(AM_CFLAGS) \
3343         $(TERMINAL_CFLAGS)
3344
3345 libsystemd_terminal_la_SOURCES = \
3346         src/libsystemd-terminal/grdev.h \
3347         src/libsystemd-terminal/grdev-internal.h \
3348         src/libsystemd-terminal/grdev.c \
3349         src/libsystemd-terminal/grdev-drm.c \
3350         src/libsystemd-terminal/idev.h \
3351         src/libsystemd-terminal/idev-internal.h \
3352         src/libsystemd-terminal/idev.c \
3353         src/libsystemd-terminal/idev-evdev.c \
3354         src/libsystemd-terminal/idev-keyboard.c \
3355         src/libsystemd-terminal/sysview.h \
3356         src/libsystemd-terminal/sysview-internal.h \
3357         src/libsystemd-terminal/sysview.c \
3358         src/libsystemd-terminal/term.h \
3359         src/libsystemd-terminal/term-internal.h \
3360         src/libsystemd-terminal/term-charset.c \
3361         src/libsystemd-terminal/term-page.c \
3362         src/libsystemd-terminal/term-parser.c \
3363         src/libsystemd-terminal/term-screen.c \
3364         src/libsystemd-terminal/term-wcwidth.c \
3365         src/libsystemd-terminal/unifont.h \
3366         src/libsystemd-terminal/unifont-def.h \
3367         src/libsystemd-terminal/unifont.c
3368
3369 libsystemd_terminal_la_LIBADD = \
3370         libudev-internal.la \
3371         libsystemd-internal.la \
3372         libsystemd-shared.la \
3373         $(TERMINAL_LIBS)
3374
3375 systemd_consoled_CFLAGS = \
3376         $(AM_CFLAGS) \
3377         $(TERMINAL_CFLAGS)
3378
3379 systemd_consoled_SOURCES = \
3380         src/console/consoled.h \
3381         src/console/consoled.c \
3382         src/console/consoled-display.c \
3383         src/console/consoled-manager.c \
3384         src/console/consoled-session.c \
3385         src/console/consoled-terminal.c \
3386         src/console/consoled-workspace.c
3387
3388 systemd_consoled_LDADD = \
3389         libsystemd-terminal.la \
3390         libsystemd-internal.la \
3391         libsystemd-shared.la \
3392         $(TERMINAL_LIBS)
3393
3394 systemd_evcat_CFLAGS = \
3395         $(AM_CFLAGS) \
3396         $(TERMINAL_CFLAGS)
3397
3398 systemd_evcat_SOURCES = \
3399         src/libsystemd-terminal/evcat.c
3400
3401 systemd_evcat_LDADD = \
3402         libsystemd-terminal.la \
3403         libsystemd-internal.la \
3404         libsystemd-shared.la \
3405         $(TERMINAL_LIBS)
3406
3407 systemd_modeset_CFLAGS = \
3408         $(AM_CFLAGS) \
3409         $(TERMINAL_CFLAGS)
3410
3411 systemd_modeset_SOURCES = \
3412         src/libsystemd-terminal/modeset.c
3413
3414 systemd_modeset_LDADD = \
3415         libsystemd-terminal.la \
3416         libsystemd-internal.la \
3417         libsystemd-shared.la \
3418         $(TERMINAL_LIBS)
3419
3420 systemd_subterm_SOURCES = \
3421         src/libsystemd-terminal/subterm.c
3422
3423 systemd_subterm_LDADD = \
3424         libsystemd-terminal.la \
3425         libsystemd-internal.la \
3426         libsystemd-shared.la
3427
3428 test_term_page_SOURCES = \
3429         src/libsystemd-terminal/test-term-page.c
3430
3431 test_term_page_LDADD = \
3432         libsystemd-terminal.la \
3433         libsystemd-internal.la \
3434         libsystemd-shared.la
3435
3436 test_term_parser_SOURCES = \
3437         src/libsystemd-terminal/test-term-parser.c
3438
3439 test_term_parser_LDADD = \
3440         libsystemd-terminal.la \
3441         libsystemd-internal.la \
3442         libsystemd-shared.la
3443
3444 test_unifont_SOURCES = \
3445         src/libsystemd-terminal/test-unifont.c
3446
3447 test_unifont_LDADD = \
3448         libsystemd-terminal.la \
3449         libsystemd-internal.la \
3450         libsystemd-shared.la
3451
3452 .PHONY: update-unifont
3453 update-unifont: tools/compile-unifont.py
3454         $(AM_V_GEN)$(PYTHON) $< \
3455                 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3456                 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3457         @echo "unifont-glyph-array.bin has been regenerated"
3458
3459 # ------------------------------------------------------------------------------
3460 if ENABLE_GTK_DOC
3461 SUBDIRS += \
3462         docs/libudev
3463
3464 noinst_DATA += \
3465         docs/html/libudev \
3466         docs/html/gudev
3467 endif
3468
3469 include_HEADERS += \
3470         src/libudev/libudev.h
3471
3472 lib_LTLIBRARIES += \
3473         libudev.la
3474
3475 libudev_la_SOURCES =\
3476         src/libudev/libudev.sym \
3477         src/libudev/libudev-private.h \
3478         src/libudev/libudev.c \
3479         src/libudev/libudev-list.c \
3480         src/libudev/libudev-util.c \
3481         src/libudev/libudev-device.c \
3482         src/libudev/libudev-enumerate.c \
3483         src/libudev/libudev-monitor.c \
3484         src/libudev/libudev-queue.c \
3485         src/libudev/libudev-hwdb.c
3486
3487 libudev_la_CFLAGS = \
3488         $(AM_CFLAGS) \
3489         -fvisibility=hidden
3490
3491 libudev_la_LDFLAGS = \
3492         $(AM_LDFLAGS) \
3493         -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3494         -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3495
3496 libudev_la_LIBADD = \
3497         libsystemd-internal.la \
3498         libsystemd-shared.la
3499
3500 pkgconfiglib_DATA += \
3501         src/libudev/libudev.pc
3502
3503 EXTRA_DIST += \
3504         src/libudev/libudev.pc.in
3505
3506 CLEANFILES += \
3507         src/libudev/libudev.pc \
3508         docs/html/libudev \
3509         docs/html/gudev
3510
3511 docs/html/libudev:
3512         $(AM_V_at)$(MKDIR_P) $(dir $@)
3513         $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3514
3515 docs/html/gudev:
3516         $(AM_V_at)$(MKDIR_P) $(dir $@)
3517         $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3518
3519 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3520 libudev-install-hook:
3521         libname=libudev.so && $(move-to-rootlibdir)
3522
3523 libudev-uninstall-hook:
3524         rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3525
3526 INSTALL_EXEC_HOOKS += libudev-install-hook
3527 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3528
3529 # ------------------------------------------------------------------------------
3530 noinst_LTLIBRARIES += \
3531         libudev-internal.la
3532
3533 libudev_internal_la_SOURCES =\
3534         $(libudev_la_SOURCES) \
3535         src/libudev/libudev-device-private.c
3536
3537 libudev_internal_la_CFLAGS = \
3538         $(AM_CFLAGS) \
3539         -fvisibility=default
3540
3541 # ------------------------------------------------------------------------------
3542 INSTALL_DIRS += \
3543         $(sysconfdir)/udev/rules.d
3544
3545 dist_network_DATA = \
3546         network/99-default.link \
3547         network/80-container-host0.network \
3548         network/80-container-ve.network
3549
3550 dist_udevrules_DATA += \
3551         rules/42-usb-hid-pm.rules \
3552         rules/50-udev-default.rules \
3553         rules/60-drm.rules \
3554         rules/60-keyboard.rules \
3555         rules/70-mouse.rules \
3556         rules/60-persistent-storage-tape.rules \
3557         rules/60-persistent-serial.rules \
3558         rules/60-persistent-input.rules \
3559         rules/60-persistent-alsa.rules \
3560         rules/60-persistent-storage.rules \
3561         rules/64-btrfs.rules \
3562         rules/75-net-description.rules \
3563         rules/75-tty-description.rules \
3564         rules/78-sound-card.rules \
3565         rules/80-net-setup-link.rules \
3566         rules/95-udev-late.rules
3567
3568 nodist_udevrules_DATA += \
3569         rules/99-systemd.rules
3570
3571 udevconfdir = $(sysconfdir)/udev
3572 dist_udevconf_DATA = \
3573         src/udev/udev.conf
3574
3575 sharepkgconfigdir = $(datadir)/pkgconfig
3576 sharepkgconfig_DATA = \
3577         src/udev/udev.pc
3578
3579 EXTRA_DIST += \
3580         rules/99-systemd.rules.in \
3581         src/udev/udev.pc.in
3582
3583 CLEANFILES += \
3584         rules/99-systemd.rules \
3585         src/udev/udev.pc
3586
3587 EXTRA_DIST += \
3588         units/systemd-udevd.service.in \
3589         units/systemd-udev-trigger.service.in \
3590         units/systemd-udev-settle.service.in
3591
3592 CLEANFILES += \
3593         units/systemd-udevd.service \
3594         units/systemd-udev-trigger.service \
3595         units/systemd-udev-settle.service
3596
3597 SOCKETS_TARGET_WANTS += \
3598         systemd-udevd-control.socket \
3599         systemd-udevd-kernel.socket
3600
3601 SYSINIT_TARGET_WANTS += \
3602         systemd-udevd.service \
3603         systemd-udev-trigger.service
3604
3605 rootbin_PROGRAMS += \
3606         udevadm
3607
3608 rootlibexec_PROGRAMS += \
3609         systemd-udevd
3610
3611 noinst_LTLIBRARIES += \
3612         libudev-core.la
3613
3614 src/udev/keyboard-keys.txt:
3615         $(AM_V_at)$(MKDIR_P) $(dir $@)
3616         $(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/' > $@
3617
3618 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3619         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3620
3621 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3622         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3623
3624 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3625         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3626
3627 libudev_core_la_SOURCES = \
3628         src/udev/udev.h \
3629         src/udev/udev-event.c \
3630         src/udev/udev-watch.c \
3631         src/udev/udev-node.c \
3632         src/udev/udev-rules.c \
3633         src/udev/udev-ctrl.c \
3634         src/udev/udev-builtin.c \
3635         src/udev/udev-builtin-btrfs.c \
3636         src/udev/udev-builtin-hwdb.c \
3637         src/udev/udev-builtin-input_id.c \
3638         src/udev/udev-builtin-keyboard.c \
3639         src/udev/udev-builtin-net_id.c \
3640         src/udev/udev-builtin-net_setup_link.c \
3641         src/udev/udev-builtin-path_id.c \
3642         src/udev/udev-builtin-usb_id.c \
3643         src/udev/net/link-config.h \
3644         src/udev/net/link-config.c \
3645         src/udev/net/ethtool-util.h \
3646         src/udev/net/ethtool-util.c
3647
3648 nodist_libudev_core_la_SOURCES = \
3649         src/udev/keyboard-keys-from-name.h \
3650         src/udev/keyboard-keys-to-name.h \
3651         src/udev/net/link-config-gperf.c
3652
3653 BUILT_SOURCES += \
3654         $(nodist_libudev_core_la_SOURCES)
3655
3656 CLEANFILES += \
3657         src/udev/keyboard-keys-from-name.gperf \
3658         src/udev/keyboard-keys.txt \
3659         src/udev/net/link-config-gperf.c
3660
3661 EXTRA_DIST += \
3662         src/udev/net/link-config-gperf.gperf
3663
3664 libudev_core_la_CFLAGS = \
3665         $(AM_CFLAGS) \
3666         $(BLKID_CFLAGS) \
3667         $(KMOD_CFLAGS)
3668
3669 libudev_core_la_LIBADD = \
3670         libudev-internal.la \
3671         libsystemd-label.la \
3672         libsystemd-internal.la \
3673         libsystemd-network.la \
3674         libsystemd-shared.la \
3675         $(BLKID_LIBS) \
3676         $(KMOD_LIBS)
3677
3678 if HAVE_KMOD
3679 libudev_core_la_SOURCES += \
3680         src/udev/udev-builtin-kmod.c
3681
3682 dist_udevrules_DATA += \
3683         rules/80-drivers.rules
3684 endif
3685
3686 if HAVE_BLKID
3687 libudev_core_la_SOURCES += \
3688         src/udev/udev-builtin-blkid.c
3689 endif
3690
3691 if HAVE_ACL
3692 libudev_core_la_SOURCES += \
3693         src/udev/udev-builtin-uaccess.c \
3694         src/login/logind-acl.c \
3695         src/libsystemd/sd-login/sd-login.c \
3696         src/systemd/sd-login.h
3697
3698 libudev_core_la_LIBADD += \
3699         libsystemd-acl.la
3700 endif
3701
3702 systemd_udevd_SOURCES = \
3703         src/udev/udevd.c
3704
3705 systemd_udevd_LDADD = \
3706         libudev-core.la
3707
3708 udevadm_SOURCES = \
3709         src/udev/udevadm.c \
3710         src/udev/udevadm-info.c \
3711         src/udev/udevadm-control.c \
3712         src/udev/udevadm-monitor.c \
3713         src/udev/udevadm-hwdb.c \
3714         src/udev/udevadm-settle.c \
3715         src/udev/udevadm-trigger.c \
3716         src/udev/udevadm-test.c \
3717         src/udev/udevadm-test-builtin.c \
3718         src/udev/udevadm-util.c \
3719         src/udev/udevadm-util.h
3720
3721 udevadm_LDADD = \
3722         libudev-core.la
3723
3724 # ------------------------------------------------------------------------------
3725 if ENABLE_HWDB
3726 INSTALL_DIRS += \
3727         $(sysconfdir)/udev/hwdb.d
3728
3729 systemd_hwdb_SOURCES = \
3730         src/libsystemd/sd-hwdb/hwdb-internal.h \
3731         src/hwdb/hwdb.c
3732
3733 systemd_hwdb_LDADD = \
3734         libsystemd-shared.la \
3735         libsystemd-internal.la \
3736         libudev-internal.la
3737
3738 rootbin_PROGRAMS += \
3739         systemd-hwdb
3740
3741 dist_udevhwdb_DATA = \
3742         hwdb/20-pci-vendor-model.hwdb \
3743         hwdb/20-pci-classes.hwdb \
3744         hwdb/20-usb-vendor-model.hwdb \
3745         hwdb/20-usb-classes.hwdb \
3746         hwdb/20-sdio-vendor-model.hwdb \
3747         hwdb/20-sdio-classes.hwdb \
3748         hwdb/20-bluetooth-vendor-product.hwdb \
3749         hwdb/20-acpi-vendor.hwdb \
3750         hwdb/20-OUI.hwdb \
3751         hwdb/20-net-ifname.hwdb \
3752         hwdb/60-keyboard.hwdb \
3753         hwdb/70-mouse.hwdb
3754
3755 EXTRA_DIST += \
3756         units/systemd-hwdb-update.service.in
3757
3758 CLEANFILES += \
3759         units/systemd-hwdb-update.service
3760
3761 SYSINIT_TARGET_WANTS += \
3762         systemd-hwdb-update.service
3763
3764 # Update hwdb on installation. Do not bother if installing
3765 # in DESTDIR, since this is likely for packaging purposes.
3766 hwdb-update-hook:
3767         -test -n "$(DESTDIR)" || $(rootbindir)/systemd-hwdb update
3768
3769 INSTALL_DATA_HOOKS += \
3770         hwdb-update-hook
3771
3772 hwdb-remove-hook:
3773         -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3774 endif
3775
3776 # ------------------------------------------------------------------------------
3777 TESTS += \
3778         test/udev-test.pl \
3779         $(NULL)
3780
3781 if HAVE_PYTHON
3782 TESTS += \
3783         test/rule-syntax-check.py \
3784         test/sysv-generator-test.py \
3785         $(NULL)
3786 endif
3787
3788 manual_tests += \
3789         test-libudev \
3790         test-udev
3791
3792 test_libudev_SOURCES = \
3793         src/test/test-libudev.c
3794
3795 test_libudev_LDADD = \
3796         libsystemd-label.la \
3797         libudev-internal.la \
3798         libsystemd-shared.la \
3799         libsystemd-internal.la
3800
3801 test_udev_SOURCES = \
3802         src/test/test-udev.c
3803
3804 test_udev_LDADD = \
3805         libudev-core.la  \
3806         $(BLKID_LIBS) \
3807         $(KMOD_LIBS) \
3808         $(SELINUX_LIBS)
3809
3810 if HAVE_ACL
3811 test_udev_LDADD += \
3812         libsystemd-acl.la
3813 endif
3814
3815 check_DATA += \
3816         test/sys
3817
3818 # packed sysfs test tree
3819 test/sys:
3820         $(AM_V_at)$(MKDIR_P) $(dir $@)
3821         $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3822
3823 test-sys-distclean:
3824         -rm -rf test/sys
3825 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3826
3827 EXTRA_DIST += \
3828         test/sys.tar.xz \
3829         test/udev-test.pl \
3830         test/rule-syntax-check.py \
3831         test/sysv-generator-test.py \