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