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