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