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