chiark / gitweb /
build-sys: prepare 212
[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=5
39 LIBUDEV_REVISION=0
40 LIBUDEV_AGE=4
41
42 LIBGUDEV_CURRENT=2
43 LIBGUDEV_REVISION=0
44 LIBGUDEV_AGE=2
45
46 LIBSYSTEMD_LOGIN_CURRENT=9
47 LIBSYSTEMD_LOGIN_REVISION=3
48 LIBSYSTEMD_LOGIN_AGE=9
49
50 LIBSYSTEMD_DAEMON_CURRENT=0
51 LIBSYSTEMD_DAEMON_REVISION=12
52 LIBSYSTEMD_DAEMON_AGE=0
53
54 LIBSYSTEMD_ID128_CURRENT=0
55 LIBSYSTEMD_ID128_REVISION=28
56 LIBSYSTEMD_ID128_AGE=0
57
58 LIBSYSTEMD_JOURNAL_CURRENT=11
59 LIBSYSTEMD_JOURNAL_REVISION=5
60 LIBSYSTEMD_JOURNAL_AGE=11
61
62 LIBSYSTEMD_CURRENT=1
63 LIBSYSTEMD_REVISION=0
64 LIBSYSTEMD_AGE=1
65
66 # Dirs of external packages
67 dbuspolicydir=@dbuspolicydir@
68 dbussessionservicedir=@dbussessionservicedir@
69 dbussystemservicedir=@dbussystemservicedir@
70 pamlibdir=@pamlibdir@
71 pamconfdir=@pamconfdir@
72 pkgconfigdatadir=$(datadir)/pkgconfig
73 pkgconfiglibdir=$(libdir)/pkgconfig
74 polkitpolicydir=$(datadir)/polkit-1/actions
75 bashcompletiondir=@bashcompletiondir@
76 zshcompletiondir=@zshcompletiondir@
77 rpmmacrosdir=$(prefix)/lib/rpm/macros.d
78 sysvinitdir=$(SYSTEM_SYSVINIT_PATH)
79 sysvrcnddir=$(SYSTEM_SYSVRCND_PATH)
80 varlogdir=$(localstatedir)/log
81 systemdstatedir=$(localstatedir)/lib/systemd
82 catalogstatedir=$(systemdstatedir)/catalog
83
84 # Our own, non-special dirs
85 pkgsysconfdir=$(sysconfdir)/systemd
86 userunitdir=$(prefix)/lib/systemd/user
87 userpresetdir=$(prefix)/lib/systemd/user-preset
88 tmpfilesdir=$(prefix)/lib/tmpfiles.d
89 sysctldir=$(prefix)/lib/sysctl.d
90 networkdir=$(rootprefix)/lib/systemd/network
91 pkgincludedir=$(includedir)/systemd
92 systemgeneratordir=$(rootlibexecdir)/system-generators
93 usergeneratordir=$(prefix)/lib/systemd/user-generators
94 systemshutdowndir=$(rootlibexecdir)/system-shutdown
95 systemsleepdir=$(rootlibexecdir)/system-sleep
96 systemunitdir=$(rootprefix)/lib/systemd/system
97 systempresetdir=$(rootprefix)/lib/systemd/system-preset
98 udevlibexecdir=$(rootprefix)/lib/udev
99 udevhomedir=$(udevlibexecdir)
100 udevrulesdir=$(udevlibexecdir)/rules.d
101 udevhwdbdir=$(udevlibexecdir)/hwdb.d
102 catalogdir=$(prefix)/lib/systemd/catalog
103 kernelinstalldir = $(prefix)/lib/kernel/install.d
104
105 # And these are the special ones for /
106 rootprefix=@rootprefix@
107 rootbindir=$(rootprefix)/bin
108 rootlibexecdir=$(rootprefix)/lib/systemd
109
110 CLEANFILES = $(BUILT_SOURCES)
111 DISTCLEANFILES =
112 EXTRA_DIST =
113 BUILT_SOURCES =
114 INSTALL_EXEC_HOOKS =
115 UNINSTALL_EXEC_HOOKS =
116 INSTALL_DATA_HOOKS =
117 UNINSTALL_DATA_HOOKS =
118 DISTCLEAN_LOCAL_HOOKS =
119 CLEAN_LOCAL_HOOKS =
120 pkginclude_HEADERS =
121 noinst_LTLIBRARIES =
122 lib_LTLIBRARIES =
123 include_HEADERS =
124 noinst_DATA =
125 pkgconfiglib_DATA =
126 polkitpolicy_in_in_files =
127 polkitpolicy_in_files =
128 polkitpolicy_files =
129 dist_udevrules_DATA =
130 nodist_udevrules_DATA =
131 dist_pkgsysconf_DATA =
132 dist_pkgdata_DATA =
133 dist_dbuspolicy_DATA =
134 dist_dbussystemservice_DATA =
135 check_PROGRAMS =
136 check_DATA =
137 tests=
138 manual_tests =
139 if ENABLE_TESTS
140 noinst_PROGRAMS = $(manual_tests) $(tests)
141 TESTS = $(tests)
142 else
143 noinst_PROGRAMS =
144 TESTS =
145 endif
146 udevlibexec_PROGRAMS =
147
148 .PHONY: $(INSTALL_EXEC_HOOKS) $(UNINSTALL_EXEC_HOOKS) \
149         $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS) \
150         $(DISTCLEAN_LOCAL_HOOKS) $(CLEAN_LOCAL_HOOKS)
151
152 AM_CPPFLAGS = \
153         -include $(top_builddir)/config.h \
154         -DPKGSYSCONFDIR=\"$(pkgsysconfdir)\" \
155         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
156         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
157         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
158         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
159         -DUSER_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/user\" \
160         -DUSER_DATA_UNIT_PATH=\"$(userunitdir)\" \
161         -DCATALOG_DATABASE=\"$(catalogstatedir)/database\" \
162         -DSYSTEMD_CGROUP_AGENT_PATH=\"$(rootlibexecdir)/systemd-cgroups-agent\" \
163         -DSYSTEMD_BINARY_PATH=\"$(rootlibexecdir)/systemd\" \
164         -DSYSTEMD_SHUTDOWN_BINARY_PATH=\"$(rootlibexecdir)/systemd-shutdown\" \
165         -DSYSTEMD_SLEEP_BINARY_PATH=\"$(rootlibexecdir)/systemd-sleep\" \
166         -DSYSTEMCTL_BINARY_PATH=\"$(rootbindir)/systemctl\" \
167         -DSYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH=\"$(rootbindir)/systemd-tty-ask-password-agent\" \
168         -DSYSTEMD_STDIO_BRIDGE_BINARY_PATH=\"$(bindir)/systemd-stdio-bridge\" \
169         -DROOTPREFIX=\"$(rootprefix)\" \
170         -DRANDOM_SEED_DIR=\"$(localstatedir)/lib/systemd/\" \
171         -DRANDOM_SEED=\"$(localstatedir)/lib/systemd/random-seed\" \
172         -DSYSTEMD_CRYPTSETUP_PATH=\"$(rootlibexecdir)/systemd-cryptsetup\" \
173         -DSYSTEM_GENERATOR_PATH=\"$(systemgeneratordir)\" \
174         -DUSER_GENERATOR_PATH=\"$(usergeneratordir)\" \
175         -DSYSTEM_SHUTDOWN_PATH=\"$(systemshutdowndir)\" \
176         -DSYSTEM_SLEEP_PATH=\"$(systemsleepdir)\" \
177         -DSYSTEMD_KBD_MODEL_MAP=\"$(pkgdatadir)/kbd-model-map\" \
178         -DX_SERVER=\"$(bindir)/X\" \
179         -DUDEVLIBEXECDIR=\"$(udevlibexecdir)\" \
180         -DPOLKIT_AGENT_BINARY_PATH=\"$(bindir)/pkttyagent\" \
181         -DQUOTACHECK=\"$(QUOTACHECK)\" \
182         -DKEXEC=\"$(KEXEC)\" \
183         -I $(top_srcdir)/src \
184         -I $(top_builddir)/src/shared \
185         -I $(top_srcdir)/src/shared \
186         -I $(top_srcdir)/src/network \
187         -I $(top_srcdir)/src/login \
188         -I $(top_srcdir)/src/journal \
189         -I $(top_srcdir)/src/timedate \
190         -I $(top_srcdir)/src/systemd \
191         -I $(top_builddir)/src/core \
192         -I $(top_srcdir)/src/core \
193         -I $(top_srcdir)/src/libudev \
194         -I $(top_srcdir)/src/udev \
195         -I $(top_srcdir)/src/udev/net \
196         -I $(top_builddir)/src/udev \
197         -I $(top_srcdir)/src/libsystemd/sd-bus \
198         -I $(top_srcdir)/src/libsystemd/sd-event \
199         -I $(top_srcdir)/src/libsystemd/sd-rtnl \
200         -I $(top_srcdir)/src/libsystemd-network \
201         $(OUR_CPPFLAGS)
202
203 AM_CFLAGS = $(OUR_CFLAGS)
204 AM_LDFLAGS = $(OUR_LDFLAGS)
205
206 # ------------------------------------------------------------------------------
207 define move-to-rootlibdir
208         if test "$(libdir)" != "$(rootlibdir)"; then \
209                 $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
210                 so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
211                 rm -f $(DESTDIR)$(libdir)/$$libname && \
212                 $(LN_S) --relative -f $(DESTDIR)$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
213                 mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
214         fi
215 endef
216
217 INSTALL_DIRS =
218
219 RUNLEVEL1_TARGET_WANTS =
220 RUNLEVEL2_TARGET_WANTS =
221 RUNLEVEL3_TARGET_WANTS =
222 RUNLEVEL4_TARGET_WANTS =
223 RUNLEVEL5_TARGET_WANTS =
224 SHUTDOWN_TARGET_WANTS =
225 LOCAL_FS_TARGET_WANTS =
226 MULTI_USER_TARGET_WANTS =
227 SYSINIT_TARGET_WANTS =
228 SOCKETS_TARGET_WANTS =
229 BUSNAMES_TARGET_WANTS =
230 TIMERS_TARGET_WANTS =
231 USER_SOCKETS_TARGET_WANTS =
232 USER_BUSNAMES_TARGET_WANTS =
233
234 SYSTEM_UNIT_ALIASES =
235 USER_UNIT_ALIASES =
236 GENERAL_ALIASES =
237
238 install-target-wants-hook:
239         what="$(RUNLEVEL1_TARGET_WANTS)" && wants=runlevel1.target && dir=$(systemunitdir) && $(add-wants)
240         what="$(RUNLEVEL2_TARGET_WANTS)" && wants=runlevel2.target && dir=$(systemunitdir) && $(add-wants)
241         what="$(RUNLEVEL3_TARGET_WANTS)" && wants=runlevel3.target && dir=$(systemunitdir) && $(add-wants)
242         what="$(RUNLEVEL4_TARGET_WANTS)" && wants=runlevel4.target && dir=$(systemunitdir) && $(add-wants)
243         what="$(RUNLEVEL5_TARGET_WANTS)" && wants=runlevel5.target && dir=$(systemunitdir) && $(add-wants)
244         what="$(SHUTDOWN_TARGET_WANTS)" && wants=shutdown.target && dir=$(systemunitdir) && $(add-wants)
245         what="$(LOCAL_FS_TARGET_WANTS)" && wants=local-fs.target && dir=$(systemunitdir) && $(add-wants)
246         what="$(MULTI_USER_TARGET_WANTS)" && wants=multi-user.target && dir=$(systemunitdir) && $(add-wants)
247         what="$(SYSINIT_TARGET_WANTS)" && wants=sysinit.target && dir=$(systemunitdir) && $(add-wants)
248         what="$(SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(systemunitdir) && $(add-wants)
249         what="$(BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(systemunitdir) && $(add-wants)
250         what="$(TIMERS_TARGET_WANTS)" && wants=timers.target && dir=$(systemunitdir) && $(add-wants)
251         what="$(SLICES_TARGET_WANTS)" && wants=slices.target && dir=$(systemunitdir) && $(add-wants)
252         what="$(USER_SOCKETS_TARGET_WANTS)" && wants=sockets.target && dir=$(userunitdir) && $(add-wants)
253         what="$(USER_BUSNAMES_TARGET_WANTS)" && wants=busnames.target && dir=$(userunitdir) && $(add-wants)
254
255 define add-wants
256         [ -z "$$what" ] || ( \
257           dir=$(DESTDIR)$$dir/$$wants.wants && \
258           $(MKDIR_P) -m 0755 $$dir && \
259           cd $$dir && \
260           rm -f $$what && \
261           for i in $$what; do $(LN_S) ../$$i . || exit $$? ; done )
262 endef
263
264 install-directories-hook:
265         $(MKDIR_P) $(addprefix $(DESTDIR),$(INSTALL_DIRS))
266
267 install-aliases-hook:
268         set -- $(SYSTEM_UNIT_ALIASES) && \
269                 dir=$(systemunitdir) && $(install-aliases)
270         set -- $(USER_UNIT_ALIASES) && \
271                 dir=$(userunitdir) && $(install-relative-aliases)
272         set -- $(GENERAL_ALIASES) && \
273                 dir= && $(install-relative-aliases)
274
275 define install-aliases
276         while [ -n "$$1" ]; do \
277                 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
278                 rm -f $(DESTDIR)$$dir/$$2 && \
279                 $(LN_S) $$1 $(DESTDIR)$$dir/$$2 && \
280                 shift 2 || exit $$?; \
281         done
282 endef
283
284 define install-relative-aliases
285         while [ -n "$$1" ]; do \
286                 $(MKDIR_P) `dirname $(DESTDIR)$$dir/$$2` && \
287                 rm -f $(DESTDIR)$$dir/$$2 && \
288                 $(LN_S) --relative $(DESTDIR)$$1 $(DESTDIR)$$dir/$$2 && \
289                 shift 2 || exit $$?; \
290         done
291 endef
292
293 INSTALL_EXEC_HOOKS += \
294         install-target-wants-hook \
295         install-directories-hook \
296         install-aliases-hook
297
298 # ------------------------------------------------------------------------------
299 AM_V_M4 = $(AM_V_M4_$(V))
300 AM_V_M4_ = $(AM_V_M4_$(AM_DEFAULT_VERBOSITY))
301 AM_V_M4_0 = @echo "  M4      " $@;
302
303 AM_V_XSLT = $(AM_V_XSLT_$(V))
304 AM_V_XSLT_ = $(AM_V_XSLT_$(AM_DEFAULT_VERBOSITY))
305 AM_V_XSLT_0 = @echo "  XSLT    " $@;
306
307 AM_V_GPERF = $(AM_V_GPERF_$(V))
308 AM_V_GPERF_ = $(AM_V_GPERF_$(AM_DEFAULT_VERBOSITY))
309 AM_V_GPERF_0 = @echo "  GPERF   " $@;
310
311 AM_V_LN = $(AM_V_LN_$(V))
312 AM_V_LN_ = $(AM_V_LN_$(AM_DEFAULT_VERBOSITY))
313 AM_V_LN_0 = @echo "  LN      " $@;
314
315 AM_V_RM = $(AM_V_RM_$(V))
316 AM_V_RM_ = $(AM_V_RM_$(AM_DEFAULT_VERBOSITY))
317 AM_V_RM_0 = @echo "  RM      " $@;
318
319 # ------------------------------------------------------------------------------
320 rootbin_PROGRAMS = \
321         systemctl \
322         systemd-notify \
323         systemd-ask-password \
324         systemd-tty-ask-password-agent \
325         systemd-machine-id-setup
326
327 bin_PROGRAMS = \
328         systemd-cgls \
329         systemd-cgtop \
330         systemd-nspawn \
331         systemd-detect-virt \
332         systemd-delta \
333         systemd-analyze \
334         systemd-run
335
336 dist_bin_SCRIPTS = \
337         src/kernel-install/kernel-install
338
339 dist_kernelinstall_SCRIPTS = \
340         src/kernel-install/50-depmod.install \
341         src/kernel-install/90-loaderentry.install
342
343 rootlibexec_PROGRAMS = \
344         systemd \
345         systemd-cgroups-agent \
346         systemd-initctl \
347         systemd-update-utmp \
348         systemd-shutdownd \
349         systemd-shutdown \
350         systemd-remount-fs \
351         systemd-reply-password \
352         systemd-fsck \
353         systemd-ac-power \
354         systemd-sysctl \
355         systemd-sleep \
356         systemd-bus-proxyd \
357         systemd-socket-proxyd
358
359 systemgenerator_PROGRAMS = \
360         systemd-getty-generator \
361         systemd-fstab-generator \
362         systemd-system-update-generator
363
364 dist_bashcompletion_DATA = \
365         shell-completion/bash/busctl \
366         shell-completion/bash/journalctl \
367         shell-completion/bash/systemctl \
368         shell-completion/bash/systemd-analyze \
369         shell-completion/bash/systemd-cat \
370         shell-completion/bash/systemd-cgls \
371         shell-completion/bash/systemd-cgtop \
372         shell-completion/bash/systemd-delta \
373         shell-completion/bash/systemd-detect-virt \
374         shell-completion/bash/systemd-nspawn \
375         shell-completion/bash/systemd-run \
376         shell-completion/bash/udevadm \
377         shell-completion/bash/kernel-install
378
379 dist_zshcompletion_DATA = \
380         shell-completion/zsh/_systemctl \
381         shell-completion/zsh/_journalctl \
382         shell-completion/zsh/_udevadm \
383         shell-completion/zsh/_kernel-install \
384         shell-completion/zsh/_systemd-nspawn \
385         shell-completion/zsh/_systemd-analyze \
386         shell-completion/zsh/_systemd-run \
387         shell-completion/zsh/_sd_hosts_or_user_at_host \
388         shell-completion/zsh/_systemd-delta \
389         shell-completion/zsh/_systemd
390
391 dist_sysctl_DATA = \
392         sysctl.d/50-default.conf
393
394 dist_systemunit_DATA = \
395         units/graphical.target \
396         units/multi-user.target \
397         units/emergency.service \
398         units/emergency.target \
399         units/sysinit.target \
400         units/basic.target \
401         units/getty.target \
402         units/halt.target \
403         units/kexec.target \
404         units/local-fs.target \
405         units/local-fs-pre.target \
406         units/initrd.target \
407         units/initrd-fs.target \
408         units/initrd-root-fs.target \
409         units/remote-fs.target \
410         units/remote-fs-pre.target \
411         units/network.target \
412         units/network-online.target \
413         units/nss-lookup.target \
414         units/nss-user-lookup.target \
415         units/hibernate.target \
416         units/hybrid-sleep.target \
417         units/poweroff.target \
418         units/reboot.target \
419         units/rescue.target \
420         units/rpcbind.target \
421         units/time-sync.target \
422         units/shutdown.target \
423         units/final.target \
424         units/umount.target \
425         units/sigpwr.target \
426         units/sleep.target \
427         units/sockets.target \
428         units/busnames.target \
429         units/timers.target \
430         units/paths.target \
431         units/suspend.target \
432         units/swap.target \
433         units/slices.target \
434         units/system.slice \
435         units/x-.slice \
436         units/systemd-initctl.socket \
437         units/systemd-shutdownd.socket \
438         units/syslog.socket \
439         units/dev-hugepages.mount \
440         units/dev-mqueue.mount \
441         units/sys-kernel-config.mount \
442         units/sys-kernel-debug.mount \
443         units/sys-fs-fuse-connections.mount \
444         units/tmp.mount \
445         units/printer.target \
446         units/sound.target \
447         units/bluetooth.target \
448         units/smartcard.target \
449         units/systemd-ask-password-wall.path \
450         units/systemd-ask-password-console.path \
451         units/systemd-udevd-control.socket \
452         units/systemd-udevd-kernel.socket \
453         units/system-update.target \
454         units/initrd-switch-root.target
455
456 nodist_systemunit_DATA = \
457         units/getty@.service \
458         units/serial-getty@.service \
459         units/console-shell.service \
460         units/console-getty.service \
461         units/container-getty@.service \
462         units/systemd-initctl.service \
463         units/systemd-shutdownd.service \
464         units/systemd-remount-fs.service \
465         units/systemd-update-utmp.service \
466         units/systemd-update-utmp-runlevel.service \
467         units/systemd-ask-password-wall.service \
468         units/systemd-ask-password-console.service \
469         units/systemd-sysctl.service \
470         units/emergency.service \
471         units/rescue.service \
472         units/user@.service \
473         units/systemd-hibernate.service \
474         units/systemd-hybrid-sleep.service \
475         units/systemd-suspend.service \
476         units/systemd-halt.service \
477         units/systemd-poweroff.service \
478         units/systemd-reboot.service \
479         units/systemd-kexec.service \
480         units/systemd-fsck@.service \
481         units/systemd-fsck-root.service \
482         units/systemd-udevd.service \
483         units/systemd-udev-trigger.service \
484         units/systemd-udev-settle.service \
485         units/debug-shell.service \
486         units/initrd-parse-etc.service \
487         units/initrd-cleanup.service \
488         units/initrd-udevadm-cleanup-db.service \
489         units/initrd-switch-root.service \
490         units/systemd-nspawn@.service
491
492 dist_userunit_DATA = \
493         units/user/basic.target \
494         units/user/default.target \
495         units/user/exit.target
496
497 nodist_userunit_DATA = \
498         units/user/systemd-exit.service
499
500 EXTRA_DIST += \
501         units/getty@.service.m4 \
502         units/serial-getty@.service.m4 \
503         units/console-shell.service.m4.in \
504         units/console-getty.service.m4.in \
505         units/container-getty@.service.m4.in \
506         units/rescue.service.m4.in \
507         units/systemd-initctl.service.in \
508         units/systemd-shutdownd.service.in \
509         units/systemd-remount-fs.service.in \
510         units/systemd-update-utmp.service.in \
511         units/systemd-update-utmp-runlevel.service.in \
512         units/systemd-ask-password-wall.service.in \
513         units/systemd-ask-password-console.service.in \
514         units/systemd-sysctl.service.in \
515         units/emergency.service.in \
516         units/systemd-halt.service.in \
517         units/systemd-poweroff.service.in \
518         units/systemd-reboot.service.in \
519         units/systemd-kexec.service.in \
520         units/user/systemd-exit.service.in \
521         units/systemd-fsck@.service.in \
522         units/systemd-fsck-root.service.in \
523         units/user@.service.in \
524         units/debug-shell.service.in \
525         units/systemd-hibernate.service.in \
526         units/systemd-hybrid-sleep.service.in \
527         units/systemd-suspend.service.in \
528         units/quotaon.service.in \
529         units/initrd-parse-etc.service.in \
530         units/initrd-cleanup.service.in \
531         units/initrd-udevadm-cleanup-db.service.in \
532         units/initrd-switch-root.service.in \
533         units/systemd-nspawn@.service.in
534
535 CLEANFILES += \
536         units/console-shell.service.m4 \
537         units/console-getty.service.m4 \
538         units/container-getty@.service.m4 \
539         units/rescue.service.m4 \
540         units/user@.service.m4
541
542 if HAVE_SYSV_COMPAT
543 nodist_systemunit_DATA += \
544         units/rc-local.service \
545         units/halt-local.service
546
547 systemgenerator_PROGRAMS += \
548         systemd-rc-local-generator
549 endif
550
551 EXTRA_DIST += \
552         units/rc-local.service.in \
553         units/halt-local.service.in
554
555 # automake is broken and can't handle files with a dash in front
556 # http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14728#8
557 units-install-hook:
558         mv $(DESTDIR)$(systemunitdir)/x-.slice $(DESTDIR)/$(systemunitdir)/-.slice
559
560 units-uninstall-hook:
561         rm -f $(DESTDIR)/$(systemunitdir)/-.slice
562
563 INSTALL_DATA_HOOKS += units-install-hook
564 UNINSTALL_DATA_HOOKS += units-uninstall-hook
565
566 dist_doc_DATA = \
567         README \
568         NEWS \
569         LICENSE.LGPL2.1 \
570         LICENSE.GPL2 \
571         LICENSE.MIT \
572         DISTRO_PORTING \
573         src/libsystemd/sd-bus/PORTING-DBUS1 \
574         src/libsystemd/sd-bus/DIFFERENCES \
575         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
576
577 @INTLTOOL_POLICY_RULE@
578
579 # ------------------------------------------------------------------------------
580
581 MANPAGES =
582 MANPAGES_ALIAS =
583
584 include Makefile-man.am
585
586 .PHONY: man update-man-list
587 man: $(MANPAGES) $(MANPAGES_ALIAS) $(HTML_FILES) $(HTML_ALIAS)
588
589 XML_FILES = \
590         ${patsubst %.1,%.xml,${patsubst %.3,%.xml,${patsubst %.5,%.xml,${patsubst %.7,%.xml,${patsubst %.8,%.xml,$(MANPAGES)}}}}}
591 HTML_FILES = \
592         ${XML_FILES:.xml=.html}
593 HTML_ALIAS = \
594         ${patsubst %.1,%.html,${patsubst %.3,%.html,${patsubst %.5,%.html,${patsubst %.7,%.html,${patsubst %.8,%.html,$(MANPAGES_ALIAS)}}}}}
595
596 if ENABLE_MANPAGES
597 man_MANS = \
598         $(MANPAGES) \
599         $(MANPAGES_ALIAS)
600
601 noinst_DATA += \
602         $(HTML_FILES) \
603         $(HTML_ALIAS)
604
605 CLEANFILES += \
606         $(man_MANS) \
607         $(HTML_FILES) \
608         $(HTML_ALIAS)
609
610 docs/html/man:
611         $(AM_V_at)$(MKDIR_P) $(dir $@)
612         $(AM_V_LN)$(LN_S) -f ../../man $@
613
614 noinst_DATA += \
615         docs/html/man
616
617 CLEANFILES += \
618         docs/html/man
619
620 if HAVE_PYTHON
621 man/index.html: man/systemd.index.html
622         $(AM_V_LN)$(LN_S) -f systemd.index.html $@
623
624 noinst_DATA += \
625         man/index.html
626
627 CLEANFILES += \
628         man/index.html
629
630 XML_GLOB = $(wildcard $(top_srcdir)/man/*.xml $(top_builddir)/man/*.xml)
631 NON_INDEX_XML_FILES = $(filter-out man/systemd.index.xml,$(XML_FILES))
632 SOURCE_XML_FILES = $(filter-out man/systemd.directives.xml,$(NON_INDEX_XML_FILES))
633
634 update-man-list: $(top_srcdir)/tools/make-man-rules.py $(XML_GLOB)
635         $(AM_V_GEN)$(PYTHON) $^ > $(top_srcdir)/Makefile-man.tmp
636         $(AM_V_at)mv $(top_srcdir)/Makefile-man.tmp $(top_srcdir)/Makefile-man.am
637         @echo "Makefile-man.am has been regenerated"
638
639 man/systemd.index.xml: $(top_srcdir)/tools/make-man-index.py $(NON_INDEX_XML_FILES)
640         $(AM_V_at)$(MKDIR_P) $(dir $@)
641         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
642
643 man/systemd.directives.xml: $(top_srcdir)/tools/make-directive-index.py $(SOURCE_XML_FILES)
644         $(AM_V_at)$(MKDIR_P) $(dir $@)
645         $(AM_V_GEN)$(PYTHON) $< $@ $(filter-out $<,$^)
646
647 EXTRA_DIST += \
648         man/systemd.index.xml \
649         man/index.html \
650         man/systemd.directives.xml
651
652 CLEANFILES += \
653         man/systemd.index.xml \
654         man/systemd.directives.xml
655
656 endif
657
658 endif
659
660 EXTRA_DIST += \
661         $(XML_FILES) \
662         $(HTML_FILES) \
663         $(HTML_ALIAS) \
664         $(man_MANS) \
665         tools/make-man-index.py \
666         tools/make-directive-index.py \
667         tools/make-man-rules.py \
668         tools/xml_helper.py
669
670 # ------------------------------------------------------------------------------
671 noinst_LTLIBRARIES += \
672         libsystemd-shared.la
673
674 libsystemd_shared_la_SOURCES = \
675         src/shared/linux/auto_dev-ioctl.h \
676         src/shared/linux/fanotify.h \
677         src/shared/ioprio.h \
678         src/shared/missing.h \
679         src/shared/initreq.h \
680         src/shared/securebits.h \
681         src/shared/special.h \
682         src/shared/list.h \
683         src/shared/macro.h \
684         src/shared/def.h \
685         src/shared/sparse-endian.h \
686         src/shared/refcnt.h \
687         src/shared/udev-util.h \
688         src/shared/bus-errors.h \
689         src/shared/device-nodes.c \
690         src/shared/device-nodes.h \
691         src/shared/util.c \
692         src/shared/util.h \
693         src/shared/virt.c \
694         src/shared/virt.h \
695         src/shared/architecture.c \
696         src/shared/architecture.h \
697         src/shared/efivars.c \
698         src/shared/efivars.h \
699         src/shared/path-util.c \
700         src/shared/path-util.h \
701         src/shared/time-util.c \
702         src/shared/time-util.h \
703         src/shared/hashmap.c \
704         src/shared/hashmap.h \
705         src/shared/siphash24.c \
706         src/shared/siphash24.h \
707         src/shared/set.c \
708         src/shared/set.h \
709         src/shared/fdset.c \
710         src/shared/fdset.h \
711         src/shared/prioq.c \
712         src/shared/prioq.h \
713         src/shared/sleep-config.c \
714         src/shared/sleep-config.h \
715         src/shared/strv.c \
716         src/shared/strv.h \
717         src/shared/env-util.c \
718         src/shared/env-util.h \
719         src/shared/strbuf.c \
720         src/shared/strbuf.h \
721         src/shared/strxcpyx.c \
722         src/shared/strxcpyx.h \
723         src/shared/conf-parser.c \
724         src/shared/conf-parser.h \
725         src/shared/log.c \
726         src/shared/log.h \
727         src/shared/ratelimit.h \
728         src/shared/ratelimit.c \
729         src/shared/exit-status.c \
730         src/shared/exit-status.h \
731         src/shared/utf8.c \
732         src/shared/utf8.h \
733         src/shared/gunicode.c \
734         src/shared/gunicode.h \
735         src/shared/pager.c \
736         src/shared/pager.h \
737         src/shared/socket-util.c \
738         src/shared/socket-util.h \
739         src/shared/conf-files.c \
740         src/shared/conf-files.h \
741         src/shared/cgroup-util.c \
742         src/shared/cgroup-util.h \
743         src/shared/cgroup-show.c \
744         src/shared/cgroup-show.h \
745         src/shared/unit-name.c \
746         src/shared/unit-name.h \
747         src/shared/utmp-wtmp.c \
748         src/shared/utmp-wtmp.h \
749         src/shared/watchdog.c \
750         src/shared/watchdog.h \
751         src/shared/spawn-ask-password-agent.c \
752         src/shared/spawn-ask-password-agent.h \
753         src/shared/replace-var.c \
754         src/shared/replace-var.h \
755         src/shared/spawn-polkit-agent.c \
756         src/shared/spawn-polkit-agent.h \
757         src/shared/hwclock.c \
758         src/shared/hwclock.h \
759         src/shared/time-dst.c \
760         src/shared/time-dst.h \
761         src/shared/calendarspec.c \
762         src/shared/calendarspec.h \
763         src/shared/fileio.c \
764         src/shared/fileio.h \
765         src/shared/output-mode.h \
766         src/shared/MurmurHash2.c \
767         src/shared/MurmurHash2.h \
768         src/shared/acpi-fpdt.h \
769         src/shared/acpi-fpdt.c \
770         src/shared/boot-timestamps.h \
771         src/shared/boot-timestamps.c \
772         src/shared/mkdir.c \
773         src/shared/mkdir.h \
774         src/shared/smack-util.c \
775         src/shared/smack-util.h \
776         src/shared/apparmor-util.c \
777         src/shared/apparmor-util.h \
778         src/shared/ima-util.c \
779         src/shared/ima-util.h \
780         src/shared/ptyfwd.c \
781         src/shared/ptyfwd.h \
782         src/shared/errno-list.c \
783         src/shared/errno-list.h \
784         src/shared/af-list.c \
785         src/shared/af-list.h \
786         src/shared/audit.c \
787         src/shared/audit.h \
788         src/shared/xml.c \
789         src/shared/xml.h \
790         src/shared/condition-util.c \
791         src/shared/condition-util.h \
792         src/shared/bus-label.c \
793         src/shared/bus-label.h \
794         src/shared/gpt.h \
795         src/shared/generator.h \
796         src/shared/generator.c \
797         src/shared/clean-ipc.h \
798         src/shared/clean-ipc.c \
799         src/shared/login-shared.c \
800         src/shared/login-shared.h
801
802 nodist_libsystemd_shared_la_SOURCES = \
803         src/shared/errno-from-name.h \
804         src/shared/errno-to-name.h \
805         src/shared/af-from-name.h \
806         src/shared/af-to-name.h
807
808 libsystemd_shared_la_CFLAGS = \
809         $(AM_CFLAGS) \
810         $(SECCOMP_CFLAGS)
811
812 # ------------------------------------------------------------------------------
813 noinst_LTLIBRARIES += \
814         libsystemd-units.la
815
816 libsystemd_units_la_SOURCES = \
817         src/shared/install.c \
818         src/shared/install.h \
819         src/shared/install-printf.c \
820         src/shared/install-printf.h \
821         src/shared/path-lookup.c \
822         src/shared/path-lookup.h \
823         src/shared/specifier.c \
824         src/shared/specifier.h
825
826 # ------------------------------------------------------------------------------
827 noinst_LTLIBRARIES += \
828         libsystemd-label.la
829
830 libsystemd_label_la_SOURCES = \
831         src/shared/socket-label.c \
832         src/shared/label.c \
833         src/shared/label.h \
834         src/shared/selinux-util.c \
835         src/shared/selinux-util.h \
836         src/shared/mkdir-label.c \
837         src/shared/ask-password-api.c \
838         src/shared/ask-password-api.h \
839         src/shared/fileio-label.c \
840         src/shared/fileio-label.h \
841         src/shared/dev-setup.c \
842         src/shared/dev-setup.h
843
844 libsystemd_label_la_CFLAGS = \
845         $(AM_CFLAGS) \
846         $(SELINUX_CFLAGS)
847
848 libsystemd_label_la_LIBADD = \
849         $(SELINUX_LIBS)
850
851 # ------------------------------------------------------------------------------
852
853 if HAVE_SECCOMP
854 noinst_LTLIBRARIES += \
855         libsystemd-seccomp.la
856
857 libsystemd_seccomp_la_SOURCES = \
858         src/shared/seccomp-util.h \
859         src/shared/seccomp-util.c
860
861 libsystemd_seccomp_la_CFLAGS = \
862         $(AM_CFLAGS) \
863         $(SECCOMP_CFLAGS)
864
865 libsystemd_seccomp_la_LIBADD = \
866         $(SECCOMP_LIBS)
867 endif
868
869 # ------------------------------------------------------------------------------
870 noinst_LTLIBRARIES += \
871         libsystemd-logs.la
872
873 libsystemd_logs_la_SOURCES = \
874         src/shared/logs-show.c \
875         src/shared/logs-show.h
876
877 # ------------------------------------------------------------------------------
878 noinst_LTLIBRARIES += \
879         libsystemd-capability.la
880
881 libsystemd_capability_la_SOURCES = \
882         src/shared/capability.c \
883         src/shared/capability.h
884
885 libsystemd_capability_la_CFLAGS = \
886         $(AM_CFLAGS) \
887         $(CAP_CFLAGS)
888
889 libsystemd_capability_la_LIBADD = \
890         $(CAP_LIBS)
891
892 # ------------------------------------------------------------------------------
893 if HAVE_ACL
894 noinst_LTLIBRARIES += \
895         libsystemd-acl.la
896
897 libsystemd_acl_la_SOURCES = \
898         src/shared/acl-util.c \
899         src/shared/acl-util.h
900
901 libsystemd_acl_la_CFLAGS = \
902         $(AM_CFLAGS) \
903         $(ACL_CFLAGS)
904
905 libsystemd_acl_la_LIBADD = \
906         $(ACL_LIBS)
907 endif
908
909 # ------------------------------------------------------------------------------
910 noinst_LTLIBRARIES += \
911         libsystemd-core.la
912
913 libsystemd_core_la_SOURCES = \
914         src/core/unit.c \
915         src/core/unit.h \
916         src/core/unit-printf.c \
917         src/core/unit-printf.h \
918         src/core/job.c \
919         src/core/job.h \
920         src/core/manager.c \
921         src/core/manager.h \
922         src/core/transaction.c \
923         src/core/transaction.h \
924         src/core/load-fragment.c \
925         src/core/load-fragment.h \
926         src/core/service.c \
927         src/core/service.h \
928         src/core/socket.c \
929         src/core/socket.h \
930         src/core/busname.c \
931         src/core/busname.h \
932         src/core/target.c \
933         src/core/target.h \
934         src/core/snapshot.c \
935         src/core/snapshot.h \
936         src/core/device.c \
937         src/core/device.h \
938         src/core/mount.c \
939         src/core/mount.h \
940         src/core/automount.c \
941         src/core/automount.h \
942         src/core/swap.c \
943         src/core/swap.h \
944         src/core/timer.c \
945         src/core/timer.h \
946         src/core/path.c \
947         src/core/path.h \
948         src/core/slice.c \
949         src/core/slice.h \
950         src/core/scope.c \
951         src/core/scope.h \
952         src/core/load-dropin.c \
953         src/core/load-dropin.h \
954         src/core/execute.c \
955         src/core/execute.h \
956         src/core/kill.c \
957         src/core/kill.h \
958         src/core/dbus.c \
959         src/core/dbus.h \
960         src/core/dbus-manager.c \
961         src/core/dbus-manager.h \
962         src/core/dbus-unit.c \
963         src/core/dbus-unit.h \
964         src/core/dbus-job.c \
965         src/core/dbus-job.h \
966         src/core/dbus-service.c \
967         src/core/dbus-service.h \
968         src/core/dbus-socket.c \
969         src/core/dbus-socket.h \
970         src/core/dbus-busname.c \
971         src/core/dbus-busname.h \
972         src/core/dbus-target.c \
973         src/core/dbus-target.h \
974         src/core/dbus-snapshot.c \
975         src/core/dbus-snapshot.h \
976         src/core/dbus-device.c \
977         src/core/dbus-device.h \
978         src/core/dbus-mount.c \
979         src/core/dbus-mount.h \
980         src/core/dbus-automount.c \
981         src/core/dbus-automount.h \
982         src/core/dbus-swap.c \
983         src/core/dbus-swap.h \
984         src/core/dbus-timer.c \
985         src/core/dbus-timer.h \
986         src/core/dbus-path.c \
987         src/core/dbus-path.h \
988         src/core/dbus-slice.c \
989         src/core/dbus-slice.h \
990         src/core/dbus-scope.c \
991         src/core/dbus-scope.h \
992         src/core/dbus-execute.c \
993         src/core/dbus-execute.h \
994         src/core/dbus-kill.c \
995         src/core/dbus-kill.h \
996         src/core/dbus-cgroup.c \
997         src/core/dbus-cgroup.h \
998         src/core/cgroup.c \
999         src/core/cgroup.h \
1000         src/core/selinux-access.c \
1001         src/core/selinux-access.h \
1002         src/core/selinux-setup.c \
1003         src/core/selinux-setup.h \
1004         src/core/smack-setup.c \
1005         src/core/smack-setup.h \
1006         src/core/ima-setup.c \
1007         src/core/ima-setup.h \
1008         src/core/locale-setup.h \
1009         src/core/locale-setup.c \
1010         src/core/hostname-setup.c \
1011         src/core/hostname-setup.h \
1012         src/core/machine-id-setup.c \
1013         src/core/machine-id-setup.h \
1014         src/core/mount-setup.c \
1015         src/core/mount-setup.h \
1016         src/core/loopback-setup.h \
1017         src/core/loopback-setup.c \
1018         src/core/condition.c \
1019         src/core/condition.h \
1020         src/core/namespace.c \
1021         src/core/namespace.h \
1022         src/core/build.h \
1023         src/core/sysfs-show.h \
1024         src/core/switch-root.h \
1025         src/core/switch-root.c \
1026         src/core/killall.h \
1027         src/core/killall.c \
1028         src/core/audit-fd.c \
1029         src/core/audit-fd.h \
1030         src/core/async.c \
1031         src/core/async.h \
1032         src/core/show-status.c \
1033         src/core/show-status.h
1034
1035 if HAVE_KMOD
1036 libsystemd_core_la_SOURCES += \
1037         src/core/kmod-setup.c \
1038         src/core/kmod-setup.h
1039 endif
1040
1041 nodist_libsystemd_core_la_SOURCES = \
1042         src/core/load-fragment-gperf.c \
1043         src/core/load-fragment-gperf-nulstr.c
1044
1045 libsystemd_core_la_CFLAGS = \
1046         $(AM_CFLAGS) \
1047         $(PAM_CFLAGS) \
1048         $(AUDIT_CFLAGS) \
1049         $(CAP_CFLAGS) \
1050         $(KMOD_CFLAGS) \
1051         $(APPARMOR_CFLAGS) \
1052         $(SECCOMP_CFLAGS) \
1053         -pthread
1054
1055 libsystemd_core_la_LIBADD = \
1056         libsystemd-capability.la \
1057         libsystemd-units.la \
1058         libsystemd-label.la \
1059         libudev-internal.la \
1060         libsystemd-shared.la \
1061         libsystemd-internal.la \
1062         $(PAM_LIBS) \
1063         $(AUDIT_LIBS) \
1064         $(CAP_LIBS) \
1065         $(KMOD_LIBS) \
1066         $(APPARMOR_LIBS) \
1067         $(SECCOMP_LIBS)
1068
1069 if HAVE_SECCOMP
1070 libsystemd_core_la_LIBADD += \
1071         libsystemd-seccomp.la
1072 endif
1073
1074 src/core/load-fragment-gperf-nulstr.c: src/core/load-fragment-gperf.gperf
1075         $(AM_V_at)$(MKDIR_P) $(dir $@)
1076         $(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 ";" }' < $< > $@
1077
1078 EXTRA_DIST += \
1079         src/core/load-fragment-gperf.gperf.m4
1080
1081 CLEANFILES += \
1082         src/core/load-fragment-gperf.gperf \
1083         src/core/load-fragment-gperf.c \
1084         src/core/load-fragment-gperf-nulstr.c \
1085         src/shared/errno-list.txt \
1086         src/shared/errno-from-name.gperf \
1087         src/shared/af-list.txt \
1088         src/shared/af-from-name.gperf
1089
1090 BUILT_SOURCES += \
1091         src/shared/errno-from-name.h \
1092         src/shared/errno-to-name.h \
1093         src/shared/af-from-name.h \
1094         src/shared/af-to-name.h
1095
1096 src/shared/errno-list.txt:
1097         $(AM_V_at)$(MKDIR_P) $(dir $@)
1098         $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include errno.h - < /dev/null | $(AWK) '/^#define[ \t]+E[^ _]+[ \t]+[0-9]/ { print $$2; }'  > $@
1099
1100 src/shared/errno-from-name.gperf: src/shared/errno-list.txt
1101         $(AM_V_at)$(MKDIR_P) $(dir $@)
1102         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct errno_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1103
1104 src/shared/errno-from-name.h: src/shared/errno-from-name.gperf
1105         $(AM_V_at)$(MKDIR_P) $(dir $@)
1106         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_errno -H hash_errno_name -p -C < $< > $@
1107
1108 src/shared/errno-to-name.h: src/shared/errno-list.txt
1109         $(AM_V_at)$(MKDIR_P) $(dir $@)
1110         $(AM_V_GEN)$(AWK) 'BEGIN{ print "static const char* const errno_names[] = { "} { printf "[%s] = \"%s\",\n", $$1, $$1 } END{print "};"}' < $< > $@
1111
1112 src/shared/af-list.txt:
1113         $(AM_V_at)$(MKDIR_P) $(dir $@)
1114         $(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; }'  > $@
1115
1116 src/shared/af-from-name.gperf: src/shared/af-list.txt
1117         $(AM_V_at)$(MKDIR_P) $(dir $@)
1118         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct af_name { const char* name; int id; };"; print "%null-strings"; print "%%";} { printf "%s, %s\n", $$1, $$1 }' < $< > $@
1119
1120 src/shared/af-from-name.h: src/shared/af-from-name.gperf
1121         $(AM_V_at)$(MKDIR_P) $(dir $@)
1122         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t --ignore-case -N lookup_af -H hash_af_name -p -C < $< > $@
1123
1124 src/shared/af-to-name.h: src/shared/af-list.txt
1125         $(AM_V_at)$(MKDIR_P) $(dir $@)
1126         $(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 "};"}' < $< > $@
1127
1128 # ------------------------------------------------------------------------------
1129 systemd_SOURCES = \
1130         src/core/main.c
1131
1132 systemd_CFLAGS = \
1133         $(AM_CFLAGS) \
1134         $(SECCOMP_CFLAGS)
1135
1136 systemd_LDADD = \
1137         libsystemd-core.la \
1138         $(RT_LIBS)
1139
1140 dist_pkgsysconf_DATA += \
1141         src/core/system.conf \
1142         src/core/user.conf
1143
1144 dist_dbuspolicy_DATA += \
1145         src/core/org.freedesktop.systemd1.conf
1146
1147 dist_dbussystemservice_DATA += \
1148         src/core/org.freedesktop.systemd1.service
1149
1150 polkitpolicy_in_in_files += \
1151         src/core/org.freedesktop.systemd1.policy.in.in
1152
1153 pkgconfigdata_DATA = \
1154         src/core/systemd.pc
1155
1156 nodist_rpmmacros_DATA = \
1157         src/core/macros.systemd
1158
1159 EXTRA_DIST += \
1160         src/core/systemd.pc.in \
1161         src/core/macros.systemd.in
1162
1163 CLEANFILES += \
1164         src/core/macros.systemd \
1165         src/core/org.freedesktop.systemd1.policy.in
1166
1167 # ------------------------------------------------------------------------------
1168 manual_tests += \
1169         test-engine \
1170         test-ns \
1171         test-loopback \
1172         test-hostname \
1173         test-daemon \
1174         test-cgroup \
1175         test-install \
1176         test-watchdog \
1177         test-log \
1178         test-ipcrm \
1179         test-rtnl-manual
1180
1181 tests += \
1182         test-job-type \
1183         test-env-replace \
1184         test-strbuf \
1185         test-strv \
1186         test-path-util \
1187         test-strxcpyx \
1188         test-unit-name \
1189         test-unit-file \
1190         test-utf8 \
1191         test-ellipsize \
1192         test-util \
1193         test-tmpfiles \
1194         test-namespace \
1195         test-date \
1196         test-sleep \
1197         test-replace-var \
1198         test-sched-prio \
1199         test-calendarspec \
1200         test-strip-tab-ansi \
1201         test-cgroup-util \
1202         test-cgroup-mask \
1203         test-prioq \
1204         test-fileio \
1205         test-time \
1206         test-hashmap \
1207         test-list \
1208         test-tables \
1209         test-device-nodes \
1210         test-xml \
1211         test-architecture
1212
1213 EXTRA_DIST += \
1214         test/sched_idle_bad.service \
1215         test/sched_idle_ok.service \
1216         test/sched_rr_bad.service \
1217         test/sched_rr_ok.service \
1218         test/sched_rr_change.service \
1219         test/son.service \
1220         test/daughter.service \
1221         test/parent.slice
1222
1223 EXTRA_DIST += \
1224         src/test/test-helper.h
1225
1226 test_device_nodes_SOURCES = \
1227         src/test/test-device-nodes.c
1228
1229 test_device_nodes_LDADD = \
1230         libsystemd-shared.la
1231
1232 test_engine_SOURCES = \
1233         src/test/test-engine.c
1234
1235 test_engine_CFLAGS = \
1236         $(AM_CFLAGS) \
1237         $(SECCOMP_CFLAGS)
1238
1239 test_engine_LDADD = \
1240         libsystemd-core.la \
1241         $(RT_LIBS)
1242
1243 test_job_type_SOURCES = \
1244         src/test/test-job-type.c
1245
1246 test_job_type_CFLAGS = \
1247         $(AM_CFLAGS) \
1248         $(SECCOMP_CFLAGS)
1249
1250 test_job_type_LDADD = \
1251         libsystemd-core.la \
1252         $(RT_LIBS)
1253
1254 test_ns_SOURCES = \
1255         src/test/test-ns.c
1256
1257 test_ns_CFLAGS = \
1258         $(AM_CFLAGS) \
1259         $(SECCOMP_CFLAGS)
1260
1261 test_ns_LDADD = \
1262         libsystemd-core.la
1263
1264 test_loopback_SOURCES = \
1265         src/test/test-loopback.c
1266
1267 test_loopback_LDADD = \
1268         libsystemd-core.la
1269
1270 test_hostname_SOURCES = \
1271         src/test/test-hostname.c
1272
1273 test_hostname_LDADD = \
1274         libsystemd-core.la
1275
1276 if ENABLE_EFI
1277 manual_tests += \
1278         test-boot-timestamp
1279
1280 test_boot_timestamp_SOURCES = \
1281         src/test/test-boot-timestamps.c
1282
1283 test_boot_timestamp_LDADD = \
1284         libsystemd-shared.la
1285 endif
1286
1287 test_unit_name_SOURCES = \
1288         src/test/test-unit-name.c
1289
1290 test_unit_name_CFLAGS = \
1291         $(AM_CFLAGS) \
1292         $(SECCOMP_CFLAGS)
1293
1294 test_unit_name_LDADD = \
1295         libsystemd-core.la \
1296         $(RT_LIBS)
1297
1298 test_unit_file_SOURCES = \
1299         src/test/test-unit-file.c
1300
1301 test_unit_file_CFLAGS = \
1302         $(AM_CFLAGS) \
1303         $(SECCOMP_CFLAGS)
1304
1305 test_unit_file_LDADD = \
1306         libsystemd-core.la \
1307         $(RT_LIBS)
1308
1309 test_utf8_SOURCES = \
1310         src/test/test-utf8.c
1311
1312 test_utf8_LDADD = \
1313         libsystemd-shared.la
1314
1315 test_util_SOURCES = \
1316         src/test/test-util.c
1317
1318 test_util_LDADD = \
1319         libsystemd-core.la
1320
1321 test_tmpfiles_SOURCES = \
1322         src/test/test-tmpfiles.c
1323
1324 test_tmpfiles_LDADD = \
1325         libsystemd-shared.la
1326
1327 test_namespace_SOURCES = \
1328         src/test/test-namespace.c
1329
1330 test_namespace_LDADD = \
1331         libsystemd-core.la
1332
1333 test_hashmap_SOURCES = \
1334         src/test/test-hashmap.c
1335
1336 test_hashmap_LDADD = \
1337         libsystemd-core.la
1338
1339 test_xml_SOURCES = \
1340         src/test/test-xml.c
1341
1342 test_xml_LDADD = \
1343         libsystemd-shared.la
1344
1345 test_list_SOURCES = \
1346         src/test/test-list.c
1347
1348 test_list_LDADD = \
1349         libsystemd-core.la
1350
1351 test_tables_SOURCES = \
1352         src/test/test-tables.c \
1353         src/shared/test-tables.h
1354
1355 test_tables_CFLAGS = \
1356         $(AM_CFLAGS) \
1357         $(SECCOMP_CFLAGS)
1358
1359 test_tables_LDADD = \
1360         libsystemd-logs.la \
1361         libsystemd-journal-internal.la \
1362         libsystemd-core.la \
1363         $(RT_LIBS)
1364
1365 test_prioq_SOURCES = \
1366         src/test/test-prioq.c
1367
1368 test_prioq_LDADD = \
1369         libsystemd-core.la
1370
1371 test_fileio_SOURCES = \
1372         src/test/test-fileio.c
1373
1374 test_fileio_LDADD = \
1375         libsystemd-core.la
1376
1377 test_time_SOURCES = \
1378         src/test/test-time.c
1379
1380 test_time_LDADD = \
1381         libsystemd-core.la
1382
1383 test_architecture_SOURCES = \
1384         src/test/test-architecture.c
1385
1386 test_architecture_LDADD = \
1387         libsystemd-shared.la
1388
1389 test_log_SOURCES = \
1390         src/test/test-log.c
1391
1392 test_log_LDADD = \
1393         libsystemd-core.la
1394
1395 test_ipcrm_SOURCES = \
1396         src/test/test-ipcrm.c
1397
1398 test_ipcrm_LDADD = \
1399         libsystemd-shared.la \
1400         -lrt
1401
1402 test_rtnl_manual_SOURCES = \
1403         src/test/test-rtnl-manual.c
1404
1405 test_rtnl_manual_LDADD = \
1406         libsystemd-internal.la \
1407         libsystemd-shared.la \
1408         -lkmod
1409
1410 test_ellipsize_SOURCES = \
1411         src/test/test-ellipsize.c
1412
1413 test_ellipsize_LDADD = \
1414         libsystemd-core.la
1415
1416 test_date_SOURCES = \
1417         src/test/test-date.c
1418
1419 test_date_LDADD = \
1420         libsystemd-core.la
1421
1422 test_sleep_SOURCES = \
1423         src/test/test-sleep.c
1424
1425 test_sleep_LDADD = \
1426         libsystemd-core.la
1427
1428 test_replace_var_SOURCES = \
1429         src/test/test-replace-var.c
1430
1431 test_replace_var_LDADD = \
1432         libsystemd-shared.la
1433
1434 test_calendarspec_SOURCES = \
1435         src/test/test-calendarspec.c
1436
1437 test_calendarspec_LDADD = \
1438         libsystemd-shared.la
1439
1440 test_strip_tab_ansi_SOURCES = \
1441         src/test/test-strip-tab-ansi.c
1442
1443 test_strip_tab_ansi_LDADD = \
1444         libsystemd-shared.la
1445
1446 test_daemon_SOURCES = \
1447         src/test/test-daemon.c
1448
1449 test_daemon_LDADD = \
1450         libsystemd-internal.la \
1451         libsystemd-shared.la
1452
1453 test_cgroup_SOURCES = \
1454         src/test/test-cgroup.c
1455
1456 test_cgroup_LDADD = \
1457         libsystemd-label.la \
1458         libsystemd-shared.la \
1459         libsystemd-internal.la
1460
1461 test_cgroup_mask_SOURCES = \
1462         src/test/test-cgroup-mask.c
1463
1464 test_cgroup_mask_CPPFLAGS = \
1465         $(AM_CPPFLAGS) \
1466         -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1467
1468 test_cgroup_mask_CFLAGS = \
1469         $(AM_CFLAGS) \
1470         $(SECCOMP_CFLAGS)
1471
1472 test_cgroup_mask_LDADD = \
1473         libsystemd-core.la \
1474         $(RT_LIBS)
1475
1476 test_cgroup_util_SOURCES = \
1477         src/test/test-cgroup-util.c
1478
1479 test_cgroup_util_LDADD = \
1480         libsystemd-label.la \
1481         libsystemd-internal.la \
1482         libsystemd-shared.la
1483
1484 test_env_replace_SOURCES = \
1485         src/test/test-env-replace.c
1486
1487 test_env_replace_LDADD = \
1488         libsystemd-shared.la
1489
1490 test_strbuf_SOURCES = \
1491         src/test/test-strbuf.c
1492
1493 test_strbuf_LDADD = \
1494         libsystemd-shared.la
1495
1496 test_strv_SOURCES = \
1497         src/test/test-strv.c
1498
1499 test_strv_LDADD = \
1500         libsystemd-units.la \
1501         libsystemd-internal.la \
1502         libsystemd-shared.la
1503
1504 test_path_util_SOURCES = \
1505         src/test/test-path-util.c
1506
1507 test_path_util_LDADD = \
1508         libsystemd-shared.la
1509
1510 test_strxcpyx_SOURCES = \
1511         src/test/test-strxcpyx.c
1512
1513 test_strxcpyx_LDADD = \
1514         libsystemd-shared.la
1515
1516 test_install_SOURCES = \
1517         src/test/test-install.c
1518
1519 test_install_LDADD = \
1520         libsystemd-units.la \
1521         libsystemd-label.la \
1522         libsystemd-shared.la \
1523         libsystemd-internal.la
1524
1525 test_watchdog_SOURCES = \
1526         src/test/test-watchdog.c
1527
1528 test_watchdog_LDADD = \
1529         libsystemd-shared.la
1530
1531 test_sched_prio_SOURCES = \
1532         src/test/test-sched-prio.c
1533
1534 test_sched_prio_CPPFLAGS = \
1535         $(AM_CPPFLAGS) \
1536         -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1537
1538 test_sched_prio_CFLAGS = \
1539         $(AM_CFLAGS) \
1540         $(SECCOMP_CFLAGS)
1541
1542 test_sched_prio_LDADD = \
1543         libsystemd-core.la \
1544         $(RT_LIBS)
1545
1546 # ------------------------------------------------------------------------------
1547 ## .PHONY so it always rebuilds it
1548 .PHONY: coverage lcov-run lcov-report coverage-sync
1549
1550 # run lcov from scratch, always
1551 coverage:
1552         $(MAKE) lcov-run
1553         $(MAKE) lcov-report
1554
1555 coverage_dir = coverage
1556 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1557
1558 if ENABLE_COVERAGE
1559 # reset run coverage tests
1560 lcov-run:
1561         @rm -rf $(coverage_dir)
1562         lcov $(coverage_opts) --zerocounters
1563         -$(MAKE) check
1564
1565 # generate report based on current coverage data
1566 lcov-report:
1567         $(MKDIR_P) $(coverage_dir)
1568         lcov $(coverage_opts) --compat-libtool --capture --no-external \
1569                 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1570         genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1571         @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1572
1573 # lcov doesn't work properly with vpath builds, make sure that bad
1574 # output is not uploaded by mistake.
1575 coverage-sync: coverage
1576         test "$(builddir)" = "$(srcdir)"
1577         rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1578
1579 else
1580 lcov-run lcov-report:
1581         echo "Need to reconfigure with --enable-coverage"
1582 endif
1583
1584 # ------------------------------------------------------------------------------
1585 systemd_analyze_SOURCES = \
1586         src/analyze/analyze.c
1587
1588 systemd_analyze_LDADD = \
1589         libsystemd-internal.la \
1590         libsystemd-shared.la
1591
1592 # ------------------------------------------------------------------------------
1593 systemd_initctl_SOURCES = \
1594         src/initctl/initctl.c
1595
1596 systemd_initctl_LDADD = \
1597         libsystemd-internal.la \
1598         libsystemd-shared.la
1599
1600 # ------------------------------------------------------------------------------
1601 systemd_update_utmp_SOURCES = \
1602         src/update-utmp/update-utmp.c
1603
1604 systemd_update_utmp_CFLAGS = \
1605         $(AM_CFLAGS) \
1606         $(AUDIT_CFLAGS)
1607
1608 systemd_update_utmp_LDADD = \
1609         libsystemd-internal.la \
1610         libsystemd-shared.la \
1611         $(AUDIT_LIBS)
1612
1613 # ------------------------------------------------------------------------------
1614 systemd_shutdownd_SOURCES = \
1615         src/shutdownd/shutdownd.c
1616
1617 systemd_shutdownd_LDADD = \
1618         libsystemd-label.la \
1619         libsystemd-internal.la \
1620         libsystemd-shared.la
1621
1622 dist_doc_DATA += \
1623         src/systemd/sd-shutdown.h
1624
1625 # ------------------------------------------------------------------------------
1626 systemd_shutdown_SOURCES = \
1627         src/core/umount.c \
1628         src/core/umount.h \
1629         src/core/shutdown.c \
1630         src/core/mount-setup.c \
1631         src/core/mount-setup.h \
1632         src/core/killall.h \
1633         src/core/killall.c
1634
1635 systemd_shutdown_LDADD = \
1636         libsystemd-label.la \
1637         libudev-internal.la \
1638         libsystemd-shared.la
1639
1640 # ------------------------------------------------------------------------------
1641 if HAVE_KMOD
1642 systemd_modules_load_SOURCES = \
1643         src/modules-load/modules-load.c
1644
1645 systemd_modules_load_CFLAGS = \
1646         $(AM_CFLAGS) \
1647         $(KMOD_CFLAGS)
1648
1649 systemd_modules_load_LDADD = \
1650         libsystemd-shared.la \
1651         $(KMOD_LIBS)
1652
1653 rootlibexec_PROGRAMS += \
1654         systemd-modules-load
1655
1656 nodist_systemunit_DATA += \
1657         units/systemd-modules-load.service
1658
1659 SYSINIT_TARGET_WANTS += \
1660         systemd-modules-load.service
1661
1662 if ENABLE_TMPFILES
1663 nodist_systemunit_DATA += \
1664         units/kmod-static-nodes.service
1665
1666 SYSINIT_TARGET_WANTS += \
1667         kmod-static-nodes.service
1668 endif
1669 endif
1670
1671 EXTRA_DIST += \
1672         units/systemd-modules-load.service.in \
1673         units/kmod-static-nodes.service.in
1674
1675 # ------------------------------------------------------------------------------
1676 if ENABLE_TMPFILES
1677 systemd_tmpfiles_SOURCES = \
1678         src/tmpfiles/tmpfiles.c
1679
1680 systemd_tmpfiles_LDADD = \
1681         libsystemd-units.la \
1682         libsystemd-label.la \
1683         libsystemd-capability.la \
1684         libsystemd-internal.la \
1685         libsystemd-shared.la
1686
1687 rootbin_PROGRAMS += \
1688         systemd-tmpfiles
1689
1690 dist_systemunit_DATA += \
1691         units/systemd-tmpfiles-clean.timer
1692
1693 nodist_systemunit_DATA += \
1694         units/systemd-tmpfiles-setup-dev.service \
1695         units/systemd-tmpfiles-setup.service \
1696         units/systemd-tmpfiles-clean.service
1697
1698 dist_tmpfiles_DATA = \
1699         tmpfiles.d/systemd.conf \
1700         tmpfiles.d/systemd-nologin.conf \
1701         tmpfiles.d/tmp.conf \
1702         tmpfiles.d/x11.conf
1703
1704 if HAVE_SYSV_COMPAT
1705 dist_tmpfiles_DATA += \
1706         tmpfiles.d/legacy.conf
1707 endif
1708
1709 SYSINIT_TARGET_WANTS += \
1710         systemd-tmpfiles-setup-dev.service \
1711         systemd-tmpfiles-setup.service
1712
1713 dist_zshcompletion_DATA += \
1714         shell-completion/zsh/_systemd-tmpfiles
1715
1716 TIMERS_TARGET_WANTS += \
1717         systemd-tmpfiles-clean.timer
1718
1719 INSTALL_DIRS += \
1720         $(tmpfilesdir) \
1721         $(sysconfdir)/tmpfiles.d
1722 endif
1723
1724 EXTRA_DIST += \
1725         units/systemd-tmpfiles-setup-dev.service.in \
1726         units/systemd-tmpfiles-setup.service.in \
1727         units/systemd-tmpfiles-clean.service.in
1728
1729 # ------------------------------------------------------------------------------
1730 systemd_machine_id_setup_SOURCES = \
1731         src/machine-id-setup/machine-id-setup-main.c \
1732         src/core/machine-id-setup.c \
1733         src/core/machine-id-setup.h
1734
1735 systemd_machine_id_setup_LDADD = \
1736         libsystemd-label.la \
1737         libsystemd-internal.la \
1738         libsystemd-shared.la
1739
1740 # ------------------------------------------------------------------------------
1741 systemd_sysctl_SOURCES = \
1742         src/sysctl/sysctl.c
1743
1744 systemd_sysctl_LDADD = \
1745         libsystemd-shared.la
1746
1747 # ------------------------------------------------------------------------------
1748 systemd_sleep_SOURCES = \
1749         src/sleep/sleep.c
1750
1751 systemd_sleep_LDADD = \
1752         libsystemd-shared.la
1753
1754 # ------------------------------------------------------------------------------
1755 systemd_fsck_SOURCES = \
1756         src/fsck/fsck.c
1757
1758 systemd_fsck_LDADD = \
1759         libsystemd-internal.la \
1760         libudev-internal.la \
1761         libsystemd-shared.la
1762
1763 # ------------------------------------------------------------------------------
1764 systemd_ac_power_SOURCES = \
1765         src/ac-power/ac-power.c
1766
1767 systemd_ac_power_LDADD = \
1768         libudev-internal.la \
1769         libsystemd-shared.la
1770
1771 # ------------------------------------------------------------------------------
1772 systemd_detect_virt_SOURCES = \
1773         src/detect-virt/detect-virt.c
1774
1775 systemd_detect_virt_LDADD = \
1776         libsystemd-shared.la
1777
1778 systemd-detect-virt-install-hook:
1779         -$(SETCAP) cap_dac_override,cap_sys_ptrace=ep $(DESTDIR)$(bindir)/systemd-detect-virt
1780
1781 INSTALL_EXEC_HOOKS += \
1782         systemd-detect-virt-install-hook
1783
1784 # ------------------------------------------------------------------------------
1785 systemd_delta_SOURCES = \
1786         src/delta/delta.c
1787
1788 systemd_delta_LDADD = \
1789         libsystemd-shared.la
1790
1791 # ------------------------------------------------------------------------------
1792 systemd_getty_generator_SOURCES = \
1793         src/getty-generator/getty-generator.c
1794
1795 systemd_getty_generator_LDADD = \
1796         libsystemd-label.la \
1797         libsystemd-shared.la
1798
1799 # ------------------------------------------------------------------------------
1800 systemd_fstab_generator_SOURCES = \
1801         src/fstab-generator/fstab-generator.c \
1802         src/core/mount-setup.c
1803
1804 systemd_fstab_generator_LDADD = \
1805         libsystemd-label.la \
1806         libsystemd-shared.la
1807
1808 # ------------------------------------------------------------------------------
1809 systemd_system_update_generator_SOURCES = \
1810         src/system-update-generator/system-update-generator.c
1811
1812 systemd_system_update_generator_LDADD = \
1813         libsystemd-label.la \
1814         libsystemd-shared.la
1815
1816 if ENABLE_EFI
1817 # ------------------------------------------------------------------------------
1818 systemgenerator_PROGRAMS +=  \
1819         systemd-efi-boot-generator
1820
1821 systemd_efi_boot_generator_SOURCES = \
1822         src/efi-boot-generator/efi-boot-generator.c
1823
1824 systemd_efi_boot_generator_LDADD = \
1825         libsystemd-label.la \
1826         libsystemd-shared.la
1827
1828 # ------------------------------------------------------------------------------
1829 bootctl_SOURCES = \
1830         src/boot/boot.h \
1831         src/boot/boot-loader.h \
1832         src/boot/bootctl.c \
1833         src/boot/boot-loader.c \
1834         src/boot/boot-efi.c
1835
1836 bootctl_LDADD = \
1837         libsystemd-shared.la \
1838         libsystemd-internal.la
1839
1840 bin_PROGRAMS += \
1841         bootctl
1842
1843 dist_bashcompletion_DATA += \
1844         shell-completion/bash/bootctl
1845
1846 dist_zshcompletion_DATA += \
1847         shell-completion/zsh/_bootctl
1848
1849 endif
1850
1851 # ------------------------------------------------------------------------------
1852 if HAVE_BLKID
1853 systemgenerator_PROGRAMS +=  \
1854         systemd-gpt-auto-generator
1855
1856 systemd_gpt_auto_generator_SOURCES = \
1857         src/gpt-auto-generator/gpt-auto-generator.c \
1858         src/shared/blkid-util.h
1859
1860 systemd_gpt_auto_generator_LDADD = \
1861         libsystemd-label.la \
1862         libsystemd-internal.la \
1863         libudev-internal.la \
1864         libsystemd-shared.la \
1865         $(BLKID_LIBS)
1866
1867 systemd_gpt_auto_generator_CFLAGS = \
1868         $(AM_CFLAGS) \
1869         $(BLKID_CFLAGS)
1870 endif
1871
1872 # ------------------------------------------------------------------------------
1873 if ENABLE_KDBUS
1874 systemgenerator_PROGRAMS +=  \
1875         systemd-dbus1-generator
1876
1877 systemd_dbus1_generator_SOURCES = \
1878         src/dbus1-generator/dbus1-generator.c
1879
1880 systemd_dbus1_generator_LDADD = \
1881         libsystemd-label.la \
1882         libsystemd-shared.la \
1883         libsystemd-internal.la
1884
1885 dbus1-generator-install-hook:
1886         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
1887         $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1888         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1889
1890 dbus1-generator-uninstall-hook:
1891         rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
1892
1893 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
1894 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
1895 endif
1896
1897 # ------------------------------------------------------------------------------
1898 systemd_rc_local_generator_SOURCES = \
1899         src/rc-local-generator/rc-local-generator.c
1900
1901 systemd_rc_local_generator_LDADD = \
1902         libsystemd-label.la \
1903         libsystemd-shared.la
1904
1905 # ------------------------------------------------------------------------------
1906 systemd_remount_fs_SOURCES = \
1907         src/remount-fs/remount-fs.c \
1908         src/core/mount-setup.c \
1909         src/core/mount-setup.h
1910
1911 systemd_remount_fs_LDADD = \
1912         libsystemd-label.la \
1913         libsystemd-shared.la
1914
1915 # ------------------------------------------------------------------------------
1916 systemd_cgroups_agent_SOURCES = \
1917         src/cgroups-agent/cgroups-agent.c
1918
1919 systemd_cgroups_agent_LDADD = \
1920         libsystemd-internal.la \
1921         libsystemd-shared.la
1922
1923 # ------------------------------------------------------------------------------
1924 systemctl_SOURCES = \
1925         src/systemctl/systemctl.c
1926
1927 systemctl_LDADD = \
1928         libsystemd-units.la \
1929         libsystemd-label.la \
1930         libsystemd-internal.la \
1931         libsystemd-logs.la \
1932         libsystemd-journal-internal.la \
1933         libsystemd-shared.la
1934
1935 # ------------------------------------------------------------------------------
1936 systemd_notify_SOURCES = \
1937         src/notify/notify.c \
1938         src/readahead/sd-readahead.c
1939
1940 systemd_notify_LDADD = \
1941         libsystemd-internal.la \
1942         libsystemd-shared.la
1943
1944 # ------------------------------------------------------------------------------
1945 systemd_ask_password_SOURCES = \
1946         src/ask-password/ask-password.c
1947
1948 systemd_ask_password_LDADD = \
1949         libsystemd-label.la \
1950         libsystemd-shared.la
1951
1952 # ------------------------------------------------------------------------------
1953 systemd_reply_password_SOURCES = \
1954         src/reply-password/reply-password.c
1955
1956 systemd_reply_password_LDADD = \
1957         libsystemd-shared.la
1958
1959 # ------------------------------------------------------------------------------
1960 systemd_cgls_SOURCES = \
1961         src/cgls/cgls.c
1962
1963 systemd_cgls_LDADD = \
1964         libsystemd-shared.la
1965
1966 # ------------------------------------------------------------------------------
1967 systemd_cgtop_SOURCES = \
1968         src/cgtop/cgtop.c
1969
1970 systemd_cgtop_LDADD = \
1971         libsystemd-shared.la
1972
1973 # ------------------------------------------------------------------------------
1974 systemd_nspawn_SOURCES = \
1975         src/nspawn/nspawn.c \
1976         src/core/mount-setup.c \
1977         src/core/mount-setup.h \
1978         src/core/loopback-setup.c \
1979         src/core/loopback-setup.h
1980
1981 systemd_nspawn_CFLAGS = \
1982         $(AM_CFLAGS) \
1983         $(SECCOMP_CFLAGS) \
1984         $(BLKID_CFLAGS)
1985
1986 systemd_nspawn_LDADD = \
1987         libsystemd-label.la \
1988         libsystemd-capability.la \
1989         libsystemd-internal.la \
1990         libudev-internal.la \
1991         libsystemd-shared.la \
1992         $(BLKID_LIBS)
1993
1994 if HAVE_SECCOMP
1995 systemd_nspawn_LDADD += \
1996         libsystemd-seccomp.la \
1997         $(SECCOMP_LIBS)
1998 endif
1999
2000 # ------------------------------------------------------------------------------
2001 systemd_run_SOURCES = \
2002         src/run/run.c
2003
2004 systemd_run_LDADD = \
2005         libsystemd-label.la \
2006         libsystemd-capability.la \
2007         libsystemd-internal.la \
2008         libsystemd-shared.la
2009
2010 # ------------------------------------------------------------------------------
2011 systemd_bus_proxyd_SOURCES = \
2012         src/bus-proxyd/bus-proxyd.c
2013
2014 systemd_bus_proxyd_LDADD = \
2015         libsystemd-internal.la \
2016         libsystemd-shared.la
2017
2018 bus-proxyd-install-hook:
2019         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2020         $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2021         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2022
2023 bus-proxyd-uninstall-hook:
2024         rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2025
2026 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2027 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2028
2029 if ENABLE_KDBUS
2030 nodist_systemunit_DATA += \
2031         units/systemd-bus-proxyd@.service
2032
2033 dist_systemunit_DATA += \
2034         units/systemd-bus-proxyd.socket
2035
2036 dist_userunit_DATA += \
2037         units/user/systemd-bus-proxyd.socket \
2038         units/user/systemd-bus-proxyd@.service
2039 endif
2040
2041 EXTRA_DIST += \
2042         units/systemd-bus-proxyd@.service.in
2043
2044 # ------------------------------------------------------------------------------
2045 systemd_tty_ask_password_agent_SOURCES = \
2046         src/tty-ask-password-agent/tty-ask-password-agent.c
2047
2048 systemd_tty_ask_password_agent_LDADD = \
2049         libsystemd-label.la \
2050         libsystemd-shared.la
2051
2052 # ------------------------------------------------------------------------------
2053 libsystemd_internal_la_SOURCES = \
2054         src/systemd/sd-bus.h \
2055         src/systemd/sd-bus-protocol.h \
2056         src/systemd/sd-bus-vtable.h \
2057         src/systemd/sd-memfd.h \
2058         src/systemd/sd-utf8.h \
2059         src/systemd/sd-event.h \
2060         src/systemd/sd-rtnl.h \
2061         src/systemd/sd-resolve.h \
2062         src/systemd/sd-login.h \
2063         src/systemd/sd-id128.h \
2064         src/systemd/sd-daemon.h \
2065         src/libsystemd/sd-bus/sd-bus.c \
2066         src/libsystemd/sd-bus/bus-control.c \
2067         src/libsystemd/sd-bus/bus-control.h \
2068         src/libsystemd/sd-bus/bus-error.c \
2069         src/libsystemd/sd-bus/bus-error.h \
2070         src/libsystemd/sd-bus/bus-internal.c \
2071         src/libsystemd/sd-bus/bus-internal.h \
2072         src/libsystemd/sd-bus/bus-socket.c \
2073         src/libsystemd/sd-bus/bus-socket.h \
2074         src/libsystemd/sd-bus/bus-kernel.c \
2075         src/libsystemd/sd-bus/bus-kernel.h \
2076         src/libsystemd/sd-bus/bus-container.c \
2077         src/libsystemd/sd-bus/bus-container.h \
2078         src/libsystemd/sd-bus/bus-message.c \
2079         src/libsystemd/sd-bus/bus-message.h \
2080         src/libsystemd/sd-bus/bus-creds.c \
2081         src/libsystemd/sd-bus/bus-creds.h \
2082         src/libsystemd/sd-bus/bus-signature.c \
2083         src/libsystemd/sd-bus/bus-signature.h \
2084         src/libsystemd/sd-bus/bus-type.c \
2085         src/libsystemd/sd-bus/bus-type.h \
2086         src/libsystemd/sd-bus/bus-match.c \
2087         src/libsystemd/sd-bus/bus-match.h \
2088         src/libsystemd/sd-bus/bus-bloom.c \
2089         src/libsystemd/sd-bus/bus-bloom.h \
2090         src/libsystemd/sd-bus/bus-introspect.c \
2091         src/libsystemd/sd-bus/bus-introspect.h \
2092         src/libsystemd/sd-bus/bus-objects.c \
2093         src/libsystemd/sd-bus/bus-objects.h \
2094         src/libsystemd/sd-bus/bus-gvariant.c \
2095         src/libsystemd/sd-bus/bus-gvariant.h \
2096         src/libsystemd/sd-bus/bus-convenience.c \
2097         src/libsystemd/sd-bus/bus-track.c \
2098         src/libsystemd/sd-bus/bus-track.h \
2099         src/libsystemd/sd-bus/bus-util.c \
2100         src/libsystemd/sd-bus/bus-util.h \
2101         src/libsystemd/sd-bus/bus-protocol.h \
2102         src/libsystemd/sd-bus/kdbus.h \
2103         src/libsystemd/sd-bus/sd-memfd.c \
2104         src/libsystemd/sd-utf8/sd-utf8.c \
2105         src/libsystemd/sd-event/sd-event.c \
2106         src/libsystemd/sd-event/event-util.h \
2107         src/libsystemd/sd-rtnl/sd-rtnl.c \
2108         src/libsystemd/sd-rtnl/rtnl-internal.h \
2109         src/libsystemd/sd-rtnl/rtnl-message.c \
2110         src/libsystemd/sd-rtnl/rtnl-util.h \
2111         src/libsystemd/sd-rtnl/rtnl-util.c \
2112         src/libsystemd/sd-resolve/sd-resolve.c \
2113         src/libsystemd/sd-resolve/resolve-util.h \
2114         src/libsystemd/sd-id128/sd-id128.c \
2115         src/libsystemd/sd-daemon/sd-daemon.c \
2116         src/libsystemd/sd-login/sd-login.c
2117
2118 nodist_libsystemd_internal_la_SOURCES = \
2119         src/libsystemd/libsystemd.sym \
2120         src/libsystemd/sd-bus/bus-error-mapping.c
2121
2122 libsystemd_internal_la_CFLAGS = \
2123         $(AM_CFLAGS) \
2124         -pthread
2125
2126 libsystemd_internal_la_LIBADD = \
2127         $(RT_LIBS)
2128
2129 noinst_LTLIBRARIES += \
2130         libsystemd-internal.la
2131
2132 libsystemd_dump_la_SOURCES = \
2133         src/libsystemd/sd-bus/bus-dump.c \
2134         src/libsystemd/sd-bus/bus-dump.h
2135
2136 libsystemd_dump_la_CFLAGS = \
2137         $(AM_CFLAGS) \
2138         $(CAP_CFLAGS)
2139
2140 noinst_LTLIBRARIES += \
2141         libsystemd-dump.la
2142
2143 EXTRA_DIST += \
2144         src/libsystemd/libsystemd.sym.m4 \
2145         src/libsystemd/libsystemd.pc.in \
2146         src/libsystemd/sd-bus/bus-error-mapping.gperf \
2147         src/libsystemd/sd-bus/DIFFERENCES \
2148         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2149
2150 CLEANFILES += \
2151         src/libsystemd/libsystemd.sym \
2152         src/libsystemd/sd-bus/bus-error-mapping.c
2153
2154 BUILT_SOURCES += \
2155         src/libsystemd/libsystemd.sym
2156
2157 libsystemd_la_SOURCES = \
2158         $(libsystemd_internal_la_SOURCES) \
2159         $(libsystemd_journal_internal_la_SOURCES)
2160
2161 nodist_libsystemd_la_SOURCES = \
2162         $(nodist_libsystemd_internal_la_SOURCES)
2163
2164 libsystemd_la_CFLAGS = \
2165         $(libsystemd_internal_la_CFLAGS) \
2166         $(libsystemd_journal_internal_la_CFLAGS)
2167
2168 libsystemd_la_LDFLAGS = \
2169         $(AM_LDFLAGS) \
2170         -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2171         -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2172
2173 libsystemd_la_LIBADD = \
2174         libsystemd-shared.la \
2175         $(libsystemd_journal_internal_la_LIBADD) \
2176         $(RT_LIBS) \
2177         -lresolv
2178
2179 libsystemd-install-hook:
2180         libname=libsystemd.so && $(move-to-rootlibdir)
2181
2182 libsystemd-uninstall-hook:
2183         rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2184
2185 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2186 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2187
2188 pkgconfiglib_DATA += \
2189         src/libsystemd/libsystemd.pc
2190
2191 pkginclude_HEADERS += \
2192         src/systemd/sd-login.h \
2193         src/systemd/sd-id128.h \
2194         src/systemd/sd-daemon.h
2195
2196 if ENABLE_KDBUS
2197 pkginclude_HEADERS += \
2198         src/systemd/sd-bus.h \
2199         src/systemd/sd-bus-protocol.h \
2200         src/systemd/sd-bus-vtable.h \
2201         src/systemd/sd-memfd.h \
2202         src/systemd/sd-utf8.h \
2203         src/systemd/sd-event.h \
2204         src/systemd/sd-rtnl.h \
2205         src/systemd/sd-resolve.h
2206 endif
2207
2208 lib_LTLIBRARIES += \
2209         libsystemd.la
2210
2211 tests += \
2212         test-bus-marshal \
2213         test-bus-signature \
2214         test-bus-chat \
2215         test-bus-cleanup \
2216         test-bus-server \
2217         test-bus-match \
2218         test-bus-kernel \
2219         test-bus-kernel-bloom \
2220         test-bus-kernel-benchmark \
2221         test-bus-memfd \
2222         test-bus-zero-copy \
2223         test-bus-introspect \
2224         test-bus-objects \
2225         test-bus-error \
2226         test-bus-creds \
2227         test-bus-gvariant \
2228         test-event \
2229         test-rtnl \
2230         test-resolve
2231
2232 bin_PROGRAMS += \
2233         busctl
2234
2235 test_bus_marshal_SOURCES = \
2236         src/libsystemd/sd-bus/test-bus-marshal.c
2237
2238 test_bus_marshal_LDADD = \
2239         libsystemd-internal.la \
2240         libsystemd-shared.la \
2241         libsystemd-dump.la \
2242         libsystemd-capability.la \
2243         $(GLIB_LIBS) \
2244         $(DBUS_LIBS) \
2245         $(CAP_LIBS)
2246
2247 test_bus_marshal_CFLAGS = \
2248         $(AM_CFLAGS) \
2249         $(GLIB_CFLAGS) \
2250         $(DBUS_CFLAGS) \
2251         $(CAP_CFLAGS)
2252
2253 test_bus_signature_SOURCES = \
2254         src/libsystemd/sd-bus/test-bus-signature.c
2255
2256 test_bus_signature_LDADD = \
2257         libsystemd-shared.la \
2258         libsystemd-internal.la
2259
2260 test_bus_chat_SOURCES = \
2261         src/libsystemd/sd-bus/test-bus-chat.c
2262
2263 test_bus_chat_CFLAGS = \
2264         $(AM_CFLAGS) \
2265         -pthread
2266
2267 test_bus_chat_LDADD = \
2268         libsystemd-internal.la \
2269         libsystemd-shared.la
2270
2271 test_bus_cleanup_SOURCES = \
2272         src/libsystemd/sd-bus/test-bus-cleanup.c
2273
2274 test_bus_cleanup_CFLAGS = \
2275         $(AM_CFLAGS) \
2276         $(SECCOMP_CFLAGS)
2277
2278 test_bus_cleanup_LDADD = \
2279         libsystemd-internal.la \
2280         libsystemd-shared.la
2281
2282 test_bus_server_SOURCES = \
2283         src/libsystemd/sd-bus/test-bus-server.c
2284
2285 test_bus_server_CFLAGS = \
2286         $(AM_CFLAGS) \
2287         -pthread
2288
2289 test_bus_server_LDADD = \
2290         libsystemd-internal.la \
2291         libsystemd-shared.la
2292
2293 test_bus_objects_SOURCES = \
2294         src/libsystemd/sd-bus/test-bus-objects.c
2295
2296 test_bus_objects_CFLAGS = \
2297         $(AM_CFLAGS) \
2298         $(CAP_CFLAGS) \
2299         -pthread
2300
2301 test_bus_objects_LDADD = \
2302         libsystemd-internal.la \
2303         libsystemd-shared.la \
2304         libsystemd-dump.la \
2305         libsystemd-capability.la \
2306         $(CAP_LIBS)
2307
2308 test_bus_error_SOURCES = \
2309         src/libsystemd/sd-bus/test-bus-error.c
2310
2311 test_bus_error_LDADD = \
2312         libsystemd-internal.la \
2313         libsystemd-shared.la
2314
2315 test_bus_gvariant_SOURCES = \
2316         src/libsystemd/sd-bus/test-bus-gvariant.c
2317
2318 test_bus_gvariant_LDADD = \
2319         libsystemd-internal.la \
2320         libsystemd-shared.la \
2321         libsystemd-dump.la \
2322         libsystemd-capability.la \
2323         $(GLIB_LIBS) \
2324         $(CAP_LIBS)
2325
2326 test_bus_gvariant_CFLAGS = \
2327         $(AM_CFLAGS) \
2328         $(GLIB_CFLAGS)
2329         $(CAP_CFLAGS)
2330
2331 test_bus_creds_SOURCES = \
2332         src/libsystemd/sd-bus/test-bus-creds.c
2333
2334 test_bus_creds_LDADD = \
2335         libsystemd-internal.la \
2336         libsystemd-shared.la \
2337         libsystemd-dump.la \
2338         libsystemd-capability.la
2339
2340 test_bus_match_SOURCES = \
2341         src/libsystemd/sd-bus/test-bus-match.c
2342
2343 test_bus_match_LDADD = \
2344         libsystemd-internal.la \
2345         libsystemd-shared.la
2346
2347 test_bus_kernel_SOURCES = \
2348         src/libsystemd/sd-bus/test-bus-kernel.c
2349
2350 test_bus_kernel_LDADD = \
2351         libsystemd-internal.la \
2352         libsystemd-shared.la \
2353         libsystemd-dump.la \
2354         libsystemd-capability.la \
2355         $(CAP_LIBS)
2356
2357 test_bus_kernel_CFLAGS = \
2358         $(AM_CFLAGS) \
2359         $(CAP_CFLAGS)
2360
2361 test_bus_kernel_bloom_SOURCES = \
2362         src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2363
2364 test_bus_kernel_bloom_LDADD = \
2365         libsystemd-internal.la \
2366         libsystemd-shared.la
2367
2368 test_bus_kernel_benchmark_SOURCES = \
2369         src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2370
2371 test_bus_kernel_benchmark_LDADD = \
2372         libsystemd-internal.la \
2373         libsystemd-shared.la
2374
2375 test_bus_memfd_SOURCES = \
2376         src/libsystemd/sd-bus/test-bus-memfd.c
2377
2378 test_bus_memfd_LDADD = \
2379         libsystemd-internal.la \
2380         libsystemd-shared.la
2381
2382 test_bus_zero_copy_SOURCES = \
2383         src/libsystemd/sd-bus/test-bus-zero-copy.c
2384
2385 test_bus_zero_copy_LDADD = \
2386         libsystemd-internal.la \
2387         libsystemd-shared.la \
2388         libsystemd-dump.la \
2389         libsystemd-capability.la \
2390         $(CAP_LIBS)
2391
2392 test_bus_zero_copy_CFLAGS = \
2393         $(AM_CFLAGS) \
2394         $(CAP_CFLAGS)
2395
2396 test_bus_introspect_SOURCES = \
2397         src/libsystemd/sd-bus/test-bus-introspect.c
2398
2399 test_bus_introspect_LDADD = \
2400         libsystemd-internal.la \
2401         libsystemd-shared.la
2402
2403 test_event_SOURCES = \
2404         src/libsystemd/sd-event/test-event.c
2405
2406 test_event_LDADD = \
2407         libsystemd-internal.la \
2408         libsystemd-shared.la
2409
2410 test_rtnl_SOURCES = \
2411         src/libsystemd/sd-rtnl/test-rtnl.c
2412
2413 test_rtnl_LDADD = \
2414         libsystemd-internal.la \
2415         libsystemd-shared.la
2416
2417 test_resolve_SOURCES = \
2418         src/systemd/sd-resolve.h \
2419         src/libsystemd/sd-resolve/test-resolve.c
2420
2421 test_resolve_LDADD = \
2422         libsystemd-internal.la \
2423         libsystemd-shared.la \
2424         -lresolv
2425
2426 test_resolve_CFLAGS = \
2427         $(AM_CFLAGS) \
2428         -pthread
2429
2430 busctl_SOURCES = \
2431         src/libsystemd/sd-bus/busctl.c
2432
2433 busctl_LDADD = \
2434         libsystemd-internal.la \
2435         libsystemd-shared.la \
2436         libsystemd-dump.la \
2437         libsystemd-capability.la \
2438         $(CAP_LIBS)
2439
2440 busctl_CFLAGS = \
2441         $(AM_CFLAGS) \
2442         $(CAP_CFLAGS)
2443
2444 # ------------------------------------------------------------------------------
2445 noinst_LTLIBRARIES += \
2446         libsystemd-network.la
2447
2448 libsystemd_network_la_SOURCES = \
2449         src/systemd/sd-network.h \
2450         src/systemd/sd-dhcp-client.h \
2451         src/systemd/sd-dhcp-lease.h \
2452         src/systemd/sd-ipv4ll.h \
2453         src/network/sd-network.c \
2454         src/network/network-util.h \
2455         src/libsystemd-network/sd-dhcp-client.c \
2456         src/libsystemd-network/dhcp-network.c \
2457         src/libsystemd-network/dhcp-option.c \
2458         src/libsystemd-network/dhcp-packet.c \
2459         src/libsystemd-network/dhcp-internal.h \
2460         src/libsystemd-network/dhcp-protocol.h \
2461         src/libsystemd-network/dhcp-lease-internal.h \
2462         src/libsystemd-network/sd-dhcp-lease.c \
2463         src/libsystemd-network/sd-ipv4ll.c \
2464         src/libsystemd-network/ipv4ll-network.c \
2465         src/libsystemd-network/ipv4ll-packet.c \
2466         src/libsystemd-network/ipv4ll-internal.h \
2467         src/libsystemd-network/network-internal.c \
2468         src/libsystemd-network/network-internal.h
2469
2470 libsystemd_network_la_LIBADD = \
2471         libsystemd-label.la \
2472         libsystemd-internal.la \
2473         libsystemd-shared.la
2474
2475 test_dhcp_option_SOURCES = \
2476         src/libsystemd-network/dhcp-protocol.h \
2477         src/libsystemd-network/dhcp-internal.h \
2478         src/libsystemd-network/test-dhcp-option.c
2479
2480 test_dhcp_option_LDADD = \
2481         libsystemd-network.la \
2482         libsystemd-internal.la \
2483         libsystemd-shared.la
2484
2485 test_dhcp_client_SOURCES = \
2486         src/systemd/sd-dhcp-client.h \
2487         src/libsystemd-network/dhcp-protocol.h \
2488         src/libsystemd-network/dhcp-internal.h \
2489         src/libsystemd-network/test-dhcp-client.c
2490
2491 test_dhcp_client_LDADD = \
2492         libsystemd-network.la \
2493         libsystemd-label.la \
2494         libsystemd-internal.la \
2495         libsystemd-shared.la
2496
2497 tests += \
2498         test-dhcp-option \
2499         test-dhcp-client
2500
2501 # ------------------------------------------------------------------------------
2502 if ENABLE_GTK_DOC
2503 SUBDIRS += \
2504         docs/libudev
2505
2506 noinst_DATA += \
2507         docs/html/libudev \
2508         docs/html/gudev
2509 endif
2510
2511 include_HEADERS += \
2512         src/libudev/libudev.h
2513
2514 lib_LTLIBRARIES += \
2515         libudev.la
2516
2517 libudev_la_SOURCES =\
2518         src/libudev/libudev.sym \
2519         src/libudev/libudev-private.h \
2520         src/libudev/libudev.c \
2521         src/libudev/libudev-list.c \
2522         src/libudev/libudev-util.c \
2523         src/libudev/libudev-device.c \
2524         src/libudev/libudev-enumerate.c \
2525         src/libudev/libudev-monitor.c \
2526         src/libudev/libudev-queue.c \
2527         src/libudev/libudev-hwdb-def.h \
2528         src/libudev/libudev-hwdb.c
2529
2530 libudev_la_CFLAGS = \
2531         $(AM_CFLAGS) \
2532         -fvisibility=hidden
2533
2534 libudev_la_LDFLAGS = \
2535         $(AM_LDFLAGS) \
2536         -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
2537         -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
2538
2539 libudev_la_LIBADD = \
2540         libsystemd-internal.la \
2541         libsystemd-shared.la
2542
2543 pkgconfiglib_DATA += \
2544         src/libudev/libudev.pc
2545
2546 EXTRA_DIST += \
2547         src/libudev/libudev.pc.in
2548
2549 CLEANFILES += \
2550         src/libudev/libudev.pc \
2551         docs/html/libudev \
2552         docs/html/gudev
2553
2554 docs/html/libudev:
2555         $(AM_V_at)$(MKDIR_P) $(dir $@)
2556         $(AM_V_LN)$(LN_S) -f ../libudev/html $@
2557
2558 docs/html/gudev:
2559         $(AM_V_at)$(MKDIR_P) $(dir $@)
2560         $(AM_V_LN)$(LN_S) -f ../gudev/html $@
2561
2562 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
2563 libudev-install-hook:
2564         libname=libudev.so && $(move-to-rootlibdir)
2565
2566 libudev-uninstall-hook:
2567         rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
2568
2569 INSTALL_EXEC_HOOKS += libudev-install-hook
2570 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
2571
2572 # ------------------------------------------------------------------------------
2573 noinst_LTLIBRARIES += \
2574         libudev-internal.la
2575
2576 libudev_internal_la_SOURCES =\
2577         $(libudev_la_SOURCES) \
2578         src/libudev/libudev-device-private.c \
2579         src/libudev/libudev-queue-private.c
2580
2581 libudev_internal_la_CFLAGS = \
2582         $(AM_CFLAGS) \
2583         -fvisibility=default
2584
2585 # ------------------------------------------------------------------------------
2586 INSTALL_DIRS += \
2587         $(sysconfdir)/udev/rules.d \
2588         $(sysconfdir)/udev/hwdb.d
2589
2590 dist_network_DATA = \
2591         network/99-default.link \
2592         network/80-container-host0.network
2593
2594 dist_udevrules_DATA += \
2595         rules/42-usb-hid-pm.rules \
2596         rules/50-udev-default.rules \
2597         rules/60-drm.rules \
2598         rules/60-keyboard.rules \
2599         rules/60-persistent-storage-tape.rules \
2600         rules/60-persistent-serial.rules \
2601         rules/60-persistent-input.rules \
2602         rules/60-persistent-alsa.rules \
2603         rules/60-persistent-storage.rules \
2604         rules/64-btrfs.rules \
2605         rules/75-net-description.rules \
2606         rules/75-tty-description.rules \
2607         rules/78-sound-card.rules \
2608         rules/80-net-setup-link.rules \
2609         rules/95-udev-late.rules
2610
2611 nodist_udevrules_DATA += \
2612         rules/99-systemd.rules
2613
2614 dist_udevhwdb_DATA = \
2615         hwdb/20-pci-vendor-model.hwdb \
2616         hwdb/20-pci-classes.hwdb \
2617         hwdb/20-usb-vendor-model.hwdb \
2618         hwdb/20-usb-classes.hwdb \
2619         hwdb/20-sdio-vendor-model.hwdb \
2620         hwdb/20-sdio-classes.hwdb \
2621         hwdb/20-bluetooth-vendor-product.hwdb \
2622         hwdb/20-acpi-vendor.hwdb \
2623         hwdb/20-OUI.hwdb \
2624         hwdb/20-net-ifname.hwdb \
2625         hwdb/60-keyboard.hwdb
2626
2627 udevconfdir = $(sysconfdir)/udev
2628 dist_udevconf_DATA = \
2629         src/udev/udev.conf
2630
2631 sharepkgconfigdir = $(datadir)/pkgconfig
2632 sharepkgconfig_DATA = \
2633         src/udev/udev.pc
2634
2635 EXTRA_DIST += \
2636         rules/99-systemd.rules.in \
2637         src/udev/udev.pc.in
2638
2639 CLEANFILES += \
2640         rules/99-systemd.rules \
2641         src/udev/udev.pc
2642
2643 EXTRA_DIST += \
2644         units/systemd-udevd.service.in \
2645         units/systemd-udev-trigger.service.in \
2646         units/systemd-udev-settle.service.in
2647
2648 CLEANFILES += \
2649         units/systemd-udevd.service \
2650         units/systemd-udev-trigger.service \
2651         units/systemd-udev-settle.service
2652
2653 SOCKETS_TARGET_WANTS += \
2654         systemd-udevd-control.socket \
2655         systemd-udevd-kernel.socket
2656 SYSINIT_TARGET_WANTS += \
2657         systemd-udevd.service \
2658         systemd-udev-trigger.service
2659
2660 rootbin_PROGRAMS += \
2661         udevadm
2662
2663 rootlibexec_PROGRAMS += \
2664         systemd-udevd
2665
2666 noinst_LTLIBRARIES += \
2667         libudev-core.la
2668
2669 src/udev/keyboard-keys.txt:
2670         $(AM_V_at)$(MKDIR_P) $(dir $@)
2671         $(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/' > $@
2672
2673 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
2674         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
2675
2676 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
2677         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
2678
2679 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
2680         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
2681
2682 libudev_core_la_SOURCES = \
2683         src/udev/udev.h \
2684         src/udev/udev-event.c \
2685         src/udev/udev-watch.c \
2686         src/udev/udev-node.c \
2687         src/udev/udev-rules.c \
2688         src/udev/udev-ctrl.c \
2689         src/udev/udev-builtin.c \
2690         src/udev/udev-builtin-btrfs.c \
2691         src/udev/udev-builtin-hwdb.c \
2692         src/udev/udev-builtin-input_id.c \
2693         src/udev/udev-builtin-keyboard.c \
2694         src/udev/udev-builtin-net_id.c \
2695         src/udev/udev-builtin-net_setup_link.c \
2696         src/udev/udev-builtin-path_id.c \
2697         src/udev/udev-builtin-usb_id.c \
2698         src/udev/net/link-config.h \
2699         src/udev/net/link-config.c \
2700         src/udev/net/ethtool-util.h \
2701         src/udev/net/ethtool-util.c
2702
2703 nodist_libudev_core_la_SOURCES = \
2704         src/udev/keyboard-keys-from-name.h \
2705         src/udev/keyboard-keys-to-name.h \
2706         src/udev/net/link-config-gperf.c
2707
2708 BUILT_SOURCES += \
2709         $(nodist_libudev_core_la_SOURCES)
2710
2711 CLEANFILES += \
2712         src/udev/keyboard-keys-from-name.gperf \
2713         src/udev/keyboard-keys.txt \
2714         src/udev/net/link-config-gperf.c
2715
2716 EXTRA_DIST += \
2717         src/udev/net/link-config-gperf.gperf
2718
2719 libudev_core_la_CFLAGS = \
2720         $(AM_CFLAGS) \
2721         $(BLKID_CFLAGS) \
2722         $(KMOD_CFLAGS)
2723
2724 libudev_core_la_LIBADD = \
2725         libudev-internal.la \
2726         libsystemd-label.la \
2727         libsystemd-internal.la \
2728         libsystemd-network.la \
2729         libsystemd-shared.la \
2730         $(BLKID_LIBS) \
2731         $(KMOD_LIBS)
2732
2733 libudev_core_la_CPPFLAGS = \
2734         $(AM_CPPFLAGS) \
2735         -DFIRMWARE_PATH="$(FIRMWARE_PATH)"
2736
2737 if ENABLE_FIRMWARE
2738 libudev_core_la_SOURCES += \
2739         src/udev/udev-builtin-firmware.c
2740
2741 dist_udevrules_DATA += \
2742         rules/50-firmware.rules
2743 endif
2744
2745 if HAVE_KMOD
2746 libudev_core_la_SOURCES += \
2747         src/udev/udev-builtin-kmod.c
2748
2749 dist_udevrules_DATA += \
2750         rules/80-drivers.rules
2751 endif
2752
2753 if HAVE_BLKID
2754 libudev_core_la_SOURCES += \
2755         src/udev/udev-builtin-blkid.c
2756 endif
2757
2758 if HAVE_ACL
2759 libudev_core_la_SOURCES += \
2760         src/udev/udev-builtin-uaccess.c \
2761         src/login/logind-acl.c \
2762         src/libsystemd/sd-login/sd-login.c \
2763         src/systemd/sd-login.h
2764
2765 libudev_core_la_LIBADD += \
2766         libsystemd-acl.la
2767 endif
2768
2769 systemd_udevd_SOURCES = \
2770         src/udev/udevd.c
2771
2772 systemd_udevd_LDADD = \
2773         libudev-core.la
2774
2775 udevadm_SOURCES = \
2776         src/udev/udevadm.c \
2777         src/udev/udevadm-info.c \
2778         src/udev/udevadm-control.c \
2779         src/udev/udevadm-monitor.c \
2780         src/udev/udevadm-hwdb.c \
2781         src/udev/udevadm-settle.c \
2782         src/udev/udevadm-trigger.c \
2783         src/udev/udevadm-test.c \
2784         src/udev/udevadm-test-builtin.c
2785
2786 udevadm_LDADD = \
2787         libudev-core.la
2788
2789 # Update hwdb on installation. Do not bother if installing
2790 # in DESTDIR, since this is likely for packaging purposes.
2791 hwdb-update-hook:
2792         -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
2793
2794 INSTALL_DATA_HOOKS += \
2795         hwdb-update-hook
2796
2797 hwdb-remove-hook:
2798         -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
2799
2800 # ------------------------------------------------------------------------------
2801 TESTS += \
2802         test/udev-test.pl \
2803         test/rules-test.sh
2804
2805 manual_tests += \
2806         test-libudev \
2807         test-udev
2808
2809 test_libudev_SOURCES = \
2810         src/test/test-libudev.c
2811
2812 test_libudev_LDADD = \
2813         libsystemd-label.la \
2814         libudev-internal.la \
2815         libsystemd-shared.la
2816
2817 test_udev_SOURCES = \
2818         src/test/test-udev.c
2819
2820 test_udev_LDADD = \
2821         libudev-core.la \
2822         $(BLKID_LIBS) \
2823         $(KMOD_LIBS) \
2824         $(SELINUX_LIBS)
2825
2826 if HAVE_ACL
2827 test_udev_LDADD += \
2828         libsystemd-acl.la
2829 endif
2830
2831 check_DATA += \
2832         test/sys
2833
2834 # packed sysfs test tree
2835 test/sys:
2836         $(AM_V_at)$(MKDIR_P) $(dir $@)
2837         $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
2838
2839 test-sys-distclean:
2840         -rm -rf test/sys
2841 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
2842
2843 EXTRA_DIST += \
2844         test/sys.tar.xz \
2845         test/udev-test.pl \
2846         test/rules-test.sh \
2847         test/rule-syntax-check.py
2848
2849 # ------------------------------------------------------------------------------
2850 ata_id_SOURCES = \
2851         src/udev/ata_id/ata_id.c
2852
2853 ata_id_LDADD = \
2854         libudev-internal.la \
2855         libsystemd-shared.la
2856
2857 udevlibexec_PROGRAMS += \
2858         ata_id
2859
2860 # ------------------------------------------------------------------------------
2861 cdrom_id_SOURCES = \
2862         src/udev/cdrom_id/cdrom_id.c
2863
2864 cdrom_id_LDADD = \
2865         libudev-internal.la \
2866         libsystemd-shared.la
2867
2868 udevlibexec_PROGRAMS += \
2869         cdrom_id
2870
2871 dist_udevrules_DATA += \
2872         rules/60-cdrom_id.rules
2873
2874 # ------------------------------------------------------------------------------
2875 collect_SOURCES = \
2876         src/udev/collect/collect.c
2877
2878 collect_LDADD = \
2879         libudev-internal.la \
2880         libsystemd-shared.la
2881
2882 udevlibexec_PROGRAMS += \
2883         collect
2884
2885 # ------------------------------------------------------------------------------
2886 scsi_id_SOURCES =\
2887         src/udev/scsi_id/scsi_id.c \
2888         src/udev/scsi_id/scsi_serial.c \
2889         src/udev/scsi_id/scsi.h \
2890         src/udev/scsi_id/scsi_id.h
2891
2892 scsi_id_LDADD = \
2893         libudev-internal.la \
2894         libsystemd-shared.la
2895
2896 udevlibexec_PROGRAMS += \
2897         scsi_id
2898
2899 EXTRA_DIST += \
2900         src/udev/scsi_id/README
2901
2902 # ------------------------------------------------------------------------------
2903 v4l_id_SOURCES = \
2904         src/udev/v4l_id/v4l_id.c
2905
2906 v4l_id_LDADD = \
2907         libudev-internal.la
2908
2909 udevlibexec_PROGRAMS += \
2910         v4l_id
2911
2912 dist_udevrules_DATA += \
2913         rules/60-persistent-v4l.rules
2914
2915 # ------------------------------------------------------------------------------
2916 accelerometer_SOURCES = \
2917         src/udev/accelerometer/accelerometer.c
2918
2919 accelerometer_LDADD = \
2920         libudev-internal.la -lm \
2921         libsystemd-shared.la
2922
2923 udevlibexec_PROGRAMS += \
2924         accelerometer
2925
2926 dist_udevrules_DATA += \
2927         rules/61-accelerometer.rules
2928
2929 # ------------------------------------------------------------------------------
2930 if ENABLE_GUDEV
2931 if ENABLE_GTK_DOC
2932 SUBDIRS += \
2933         docs/gudev
2934 endif
2935
2936 libgudev_includedir = \
2937         $(includedir)/gudev-1.0/gudev
2938
2939 libgudev_include_HEADERS = \
2940         src/gudev/gudev.h \
2941         src/gudev/gudevenums.h \
2942         src/gudev/gudevenumtypes.h \
2943         src/gudev/gudevtypes.h \
2944         src/gudev/gudevclient.h \
2945         src/gudev/gudevdevice.h \
2946         src/gudev/gudevenumerator.h
2947
2948 lib_LTLIBRARIES += libgudev-1.0.la
2949
2950 pkgconfiglib_DATA += \
2951         src/gudev/gudev-1.0.pc
2952
2953 CLEANFILES += \
2954         src/gudev/gudev-1.0.pc
2955
2956 libgudev_1_0_la_SOURCES = \
2957         src/gudev/gudevenums.h \
2958         src/gudev/gudevenumtypes.h \
2959         src/gudev/gudevenumtypes.h\
2960         src/gudev/gudevtypes.h \
2961         src/gudev/gudevclient.h \
2962         src/gudev/gudevclient.c \
2963         src/gudev/gudevdevice.h \
2964         src/gudev/gudevdevice.c \
2965         src/gudev/gudevenumerator.h \
2966         src/gudev/gudevenumerator.c \
2967         src/gudev/gudevprivate.h
2968
2969 nodist_libgudev_1_0_la_SOURCES = \
2970         src/gudev/gudevmarshal.h \
2971         src/gudev/gudevmarshal.c \
2972         src/gudev/gudevenumtypes.h \
2973         src/gudev/gudevenumtypes.c
2974
2975 BUILT_SOURCES += \
2976         $(nodist_libgudev_1_0_la_SOURCES)
2977
2978 libgudev_1_0_la_CPPFLAGS = \
2979         $(AM_CPPFLAGS) \
2980         -I$(top_builddir)/src\
2981         -I$(top_srcdir)/src\
2982         -I$(top_builddir)/src/gudev \
2983         -I$(top_srcdir)/src/gudev \
2984         -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
2985         -D_GUDEV_COMPILATION \
2986         -DG_LOG_DOMAIN=\"GUdev\"
2987
2988 libgudev_1_0_la_CFLAGS = \
2989         $(AM_CFLAGS) \
2990         -fvisibility=default \
2991         $(GLIB_CFLAGS)
2992
2993 libgudev_1_0_la_LIBADD = \
2994         libudev.la \
2995         $(GLIB_LIBS)
2996
2997 libgudev_1_0_la_LDFLAGS = \
2998         $(AM_LDFLAGS) \
2999         -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3000         -export-dynamic -no-undefined \
3001         -export-symbols-regex '^g_udev_.*'
3002
3003 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3004         $(AM_V_at)$(MKDIR_P) $(dir $@)
3005         $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3006
3007 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3008         $(AM_V_at)$(MKDIR_P) $(dir $@)
3009         $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3010         glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3011
3012 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3013         $(AM_V_at)$(MKDIR_P) $(dir $@)
3014         $(AM_V_GEN)glib-mkenums --template $^ > $@
3015
3016 if HAVE_INTROSPECTION
3017 -include $(INTROSPECTION_MAKEFILE)
3018
3019 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3020
3021 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3022
3023 src_gudev_GUdev_1_0_gir_CFLAGS = \
3024         $(AM_CFLAGS) \
3025         $(INCLUDES) \
3026         -D_GUDEV_COMPILATION \
3027         -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3028         -I$(top_srcdir)/src \
3029         -I$(top_builddir)/src \
3030         -I$(top_srcdir)/src/gudev \
3031         -I$(top_builddir)/src/gudev
3032
3033 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3034
3035 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3036         --pkg-export=gudev-1.0 \
3037         --warn-all
3038
3039 src_gudev_GUdev_1_0_gir_FILES = \
3040         src/gudev/gudev.h \
3041         src/gudev/gudevtypes.h \
3042         src/gudev/gudevenums.h \
3043         src/gudev/gudevenumtypes.h \
3044         src/gudev/gudevclient.h \
3045         src/gudev/gudevdevice.h \
3046         src/gudev/gudevenumerator.h \
3047         src/gudev/gudevclient.c \
3048         src/gudev/gudevdevice.c \
3049         src/gudev/gudevenumerator.c
3050
3051 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3052 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3053
3054 girdir = $(datadir)/gir-1.0
3055 gir_DATA = \
3056         src/gudev/GUdev-1.0.gir
3057
3058 typelibsdir = $(libdir)/girepository-1.0
3059 typelibs_DATA = \
3060         src/gudev/GUdev-1.0.typelib
3061
3062 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3063 endif # HAVE_INTROSPECTION
3064
3065 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3066 libgudev-install-hook:
3067         libname=libgudev-1.0.so && $(move-to-rootlibdir)
3068
3069 libgudev-uninstall-hook:
3070         rm -f $(DESTDIR)$(rootlibdir)/libgudev-1.0.so*
3071
3072 INSTALL_EXEC_HOOKS += libgudev-install-hook
3073 UNINSTALL_EXEC_HOOKS += libgudev-uninstall-hook
3074 endif
3075
3076 EXTRA_DIST += \
3077         src/gudev/gudev-1.0.pc.in \
3078         src/gudev/gudevmarshal.list \
3079         src/gudev/gudevenumtypes.h.template \
3080         src/gudev/gudevenumtypes.c.template \
3081         src/gudev/gjs-example.js \
3082         src/gudev/seed-example-enum.js \
3083         src/gudev/seed-example.js
3084
3085 # ------------------------------------------------------------------------------
3086 mtd_probe_SOURCES =  \
3087         src/udev/mtd_probe/mtd_probe.c \
3088         src/udev/mtd_probe/mtd_probe.h \
3089         src/udev/mtd_probe/probe_smartmedia.c
3090
3091 dist_udevrules_DATA += \
3092         rules/75-probe_mtd.rules
3093
3094 udevlibexec_PROGRAMS += \
3095         mtd_probe
3096
3097 # ------------------------------------------------------------------------------
3098 test_id128_SOURCES = \
3099         src/test/test-id128.c
3100
3101 test_id128_LDADD = \
3102         libsystemd-internal.la \
3103         libsystemd-shared.la
3104
3105 tests += \
3106         test-id128
3107
3108 # ------------------------------------------------------------------------------
3109
3110 rootlibexec_PROGRAMS += \
3111         systemd-activate
3112
3113 systemd_activate_SOURCES = \
3114         src/activate/activate.c
3115
3116 systemd_activate_LDADD = \
3117         libsystemd-label.la \
3118         libsystemd-internal.la \
3119         libsystemd-shared.la
3120
3121 # ------------------------------------------------------------------------------
3122 systemd_journald_SOURCES = \
3123         src/journal/journald.c \
3124         src/journal/journald-server.h
3125
3126 systemd_journald_LDADD = \
3127         libsystemd-journal-core.la \
3128         libsystemd-internal.la \
3129         libsystemd-shared.la
3130
3131 systemd_cat_SOURCES = \
3132         src/journal/cat.c
3133
3134 systemd_cat_LDADD = \
3135         libsystemd-journal-core.la
3136
3137 if HAVE_MICROHTTPD
3138 rootlibexec_PROGRAMS += \
3139         systemd-journal-remote
3140
3141 systemd_journal_remote_SOURCES = \
3142         src/journal/journal-remote-parse.h \
3143         src/journal/journal-remote-parse.c \
3144         src/journal/journal-remote-write.h \
3145         src/journal/journal-remote-write.c \
3146         src/journal/journal-remote.c
3147
3148 systemd_journal_remote_LDADD = \
3149         libsystemd-internal.la \
3150         libsystemd-journal-core.la
3151
3152 systemd_journal_remote_SOURCES += \
3153         src/journal/microhttpd-util.h \
3154         src/journal/microhttpd-util.c
3155
3156 systemd_journal_remote_CFLAGS = \
3157         $(AM_CFLAGS) \
3158         $(MICROHTTPD_CFLAGS)
3159
3160 systemd_journal_remote_LDADD += \
3161         $(MICROHTTPD_LIBS)
3162
3163 if HAVE_GNUTLS
3164 systemd_journal_remote_LDADD += \
3165         $(GNUTLS_LIBS)
3166 endif
3167 endif
3168
3169 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3170 journalctl_CFLAGS = \
3171         $(AM_CFLAGS)
3172
3173 journalctl_SOURCES = \
3174         src/journal/journalctl.c
3175
3176 journalctl_LDADD = \
3177         libsystemd-journal-internal.la \
3178         libsystemd-internal.la \
3179         libsystemd-logs.la \
3180         libsystemd-shared.la
3181
3182 if HAVE_ACL
3183 journalctl_LDADD += \
3184         libsystemd-acl.la
3185 endif
3186
3187 if HAVE_QRENCODE
3188 journalctl_SOURCES += \
3189         src/journal/journal-qrcode.c \
3190         src/journal/journal-qrcode.h
3191
3192 journalctl_CFLAGS += \
3193         $(QRENCODE_CFLAGS)
3194
3195 journalctl_LDADD += \
3196         $(QRENCODE_LIBS)
3197 endif
3198
3199 test_journal_SOURCES = \
3200         src/journal/test-journal.c
3201
3202 test_journal_LDADD = \
3203         libsystemd-journal-core.la
3204
3205 test_journal_send_SOURCES = \
3206         src/journal/test-journal-send.c
3207
3208 test_journal_send_LDADD = \
3209         libsystemd-journal-core.la
3210
3211 test_journal_syslog_SOURCES = \
3212         src/journal/test-journal-syslog.c
3213
3214 test_journal_syslog_LDADD = \
3215         libsystemd-journal-core.la
3216
3217 test_journal_match_SOURCES = \
3218         src/journal/test-journal-match.c
3219
3220 test_journal_match_LDADD = \
3221         libsystemd-journal-core.la
3222
3223 test_journal_enum_SOURCES = \
3224         src/journal/test-journal-enum.c
3225
3226 test_journal_enum_LDADD = \
3227         libsystemd-journal-core.la
3228
3229 test_journal_stream_SOURCES = \
3230         src/journal/test-journal-stream.c
3231
3232 test_journal_stream_LDADD = \
3233         libsystemd-journal-core.la
3234
3235 test_journal_flush_SOURCES = \
3236         src/journal/test-journal-flush.c
3237
3238 test_journal_flush_LDADD = \
3239         libsystemd-journal-core.la
3240
3241 test_journal_init_SOURCES = \
3242         src/journal/test-journal-init.c
3243
3244 test_journal_init_LDADD = \
3245         libsystemd-journal-core.la
3246
3247 test_journal_verify_SOURCES = \
3248         src/journal/test-journal-verify.c
3249
3250 test_journal_verify_LDADD = \
3251         libsystemd-journal-core.la
3252
3253 test_journal_interleaving_SOURCES = \
3254         src/journal/test-journal-interleaving.c
3255
3256 test_journal_interleaving_LDADD = \
3257         libsystemd-journal-core.la
3258
3259 test_mmap_cache_SOURCES = \
3260         src/journal/test-mmap-cache.c
3261
3262 test_mmap_cache_LDADD = \
3263         libsystemd-journal-core.la
3264
3265 test_catalog_SOURCES = \
3266         src/journal/test-catalog.c
3267
3268 test_catalog_CPPFLAGS = \
3269         $(AM_CPPFLAGS) \
3270         -DCATALOG_DIR=\"$(abs_top_srcdir)/catalog\"
3271
3272 test_catalog_LDADD = \
3273         libsystemd-journal-core.la
3274
3275 libsystemd_journal_core_la_SOURCES = \
3276         src/journal/journald-kmsg.c \
3277         src/journal/journald-kmsg.h \
3278         src/journal/journald-syslog.c \
3279         src/journal/journald-syslog.h \
3280         src/journal/journald-stream.c \
3281         src/journal/journald-stream.h \
3282         src/journal/journald-server.c \
3283         src/journal/journald-server.h \
3284         src/journal/journald-console.c \
3285         src/journal/journald-console.h \
3286         src/journal/journald-wall.c \
3287         src/journal/journald-wall.h \
3288         src/journal/journald-native.c \
3289         src/journal/journald-native.h \
3290         src/journal/journald-rate-limit.c \
3291         src/journal/journald-rate-limit.h \
3292         src/journal/journal-internal.h
3293
3294 nodist_libsystemd_journal_core_la_SOURCES = \
3295         src/journal/journald-gperf.c
3296
3297 libsystemd_journal_core_la_LIBADD = \
3298         libsystemd-journal-internal.la \
3299         libudev-internal.la \
3300         libsystemd-capability.la \
3301         libsystemd-label.la \
3302         libsystemd-internal.la \
3303         libsystemd-shared.la
3304
3305 if HAVE_ACL
3306 libsystemd_journal_core_la_LIBADD += \
3307         libsystemd-acl.la
3308 endif
3309
3310 noinst_LTLIBRARIES += \
3311         libsystemd-journal-core.la
3312
3313 journal-install-hook:
3314         -$(MKDIR_P) $(DESTDIR)/var/log/journal
3315         -chown 0:0 $(DESTDIR)/var/log/journal
3316         -chmod 755 $(DESTDIR)/var/log/journal
3317         -setfacl -nm g:adm:rx,d:g:adm:rx $(DESTDIR)/var/log/journal/
3318         -setfacl -nm g:wheel:rx,d:g:wheel:rx $(DESTDIR)/var/log/journal/
3319
3320 journal-uninstall-hook:
3321         -rmdir $(DESTDIR)/var/log/journal/
3322
3323 INSTALL_EXEC_HOOKS += journal-install-hook
3324 UNINSTALL_EXEC_HOOKS += journal-uninstall-hook
3325
3326 # ------------------------------------------------------------------------------
3327 # Update catalog on installation. Do not bother if installing
3328 # in DESTDIR, since this is likely for packaging purposes.
3329 catalog-update-hook:
3330         -test -n "$(DESTDIR)" || $(rootbindir)/journalctl --update-catalog
3331
3332 INSTALL_DATA_HOOKS += \
3333         catalog-update-hook
3334
3335 catalog-remove-hook:
3336         -test -n "$(DESTDIR)" || rm -f $(catalogstatedir)/database
3337
3338 UNINSTALL_DATA_HOOKS += \
3339         catalog-remove-hook
3340
3341 manual_tests += \
3342         test-journal-enum
3343
3344 tests += \
3345         test-journal \
3346         test-journal-send \
3347         test-journal-syslog \
3348         test-journal-match \
3349         test-journal-stream \
3350         test-journal-init \
3351         test-journal-verify \
3352         test-journal-interleaving \
3353         test-journal-flush \
3354         test-mmap-cache \
3355         test-catalog
3356
3357 pkginclude_HEADERS += \
3358         src/systemd/sd-journal.h \
3359         src/systemd/sd-messages.h \
3360         src/systemd/_sd-common.h
3361
3362 libsystemd_journal_internal_la_SOURCES = \
3363         src/journal/sd-journal.c \
3364         src/systemd/sd-journal.h \
3365         src/systemd/_sd-common.h \
3366         src/journal/journal-file.c \
3367         src/journal/journal-file.h \
3368         src/journal/journal-vacuum.c \
3369         src/journal/journal-vacuum.h \
3370         src/journal/journal-verify.c \
3371         src/journal/journal-verify.h \
3372         src/journal/lookup3.c \
3373         src/journal/lookup3.h \
3374         src/journal/journal-send.c \
3375         src/journal/journal-def.h \
3376         src/journal/compress.h \
3377         src/journal/catalog.c \
3378         src/journal/catalog.h \
3379         src/journal/mmap-cache.c \
3380         src/journal/mmap-cache.h
3381
3382 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
3383 libsystemd_journal_internal_la_CFLAGS =
3384         $(AM_CFLAGS)
3385
3386 libsystemd_journal_internal_la_LIBADD =
3387
3388 if HAVE_XZ
3389 libsystemd_journal_internal_la_SOURCES += \
3390         src/journal/compress.c
3391
3392 libsystemd_journal_internal_la_CFLAGS += \
3393         $(XZ_CFLAGS)
3394
3395 libsystemd_journal_internal_la_LIBADD += \
3396         $(XZ_LIBS)
3397 endif
3398
3399 if HAVE_GCRYPT
3400 libsystemd_journal_internal_la_SOURCES += \
3401         src/journal/journal-authenticate.c \
3402         src/journal/journal-authenticate.h \
3403         src/journal/fsprg.c \
3404         src/journal/fsprg.h
3405
3406 libsystemd_journal_internal_la_LIBADD += \
3407         $(GCRYPT_LIBS)
3408
3409 # fsprg.c is a drop-in file using void pointer arithmetic
3410 libsystemd_journal_internal_la_CFLAGS += \
3411         $(GCRYPT_CFLAGS) \
3412         -Wno-pointer-arith
3413 endif
3414
3415 noinst_LTLIBRARIES += \
3416         libsystemd-journal-internal.la
3417
3418 rootlibexec_PROGRAMS += \
3419         systemd-journald
3420
3421 rootbin_PROGRAMS += \
3422         journalctl
3423
3424 bin_PROGRAMS += \
3425         systemd-cat
3426
3427 dist_systemunit_DATA += \
3428         units/systemd-journald.socket
3429
3430 nodist_systemunit_DATA += \
3431         units/systemd-journald.service \
3432         units/systemd-journal-flush.service
3433
3434 dist_pkgsysconf_DATA += \
3435         src/journal/journald.conf
3436
3437 dist_catalog_DATA = \
3438         catalog/systemd.fr.catalog \
3439         catalog/systemd.ru.catalog \
3440         catalog/systemd.it.catalog \
3441         catalog/systemd.catalog
3442
3443 SOCKETS_TARGET_WANTS += \
3444         systemd-journald.socket
3445 SYSINIT_TARGET_WANTS += \
3446         systemd-journald.service \
3447         systemd-journal-flush.service
3448
3449 EXTRA_DIST += \
3450         units/systemd-journald.service.in \
3451         units/systemd-journal-flush.service.in \
3452         src/journal/journald-gperf.gperf
3453
3454 CLEANFILES += \
3455         src/journal/journald-gperf.c
3456
3457 # ------------------------------------------------------------------------------
3458 if HAVE_MICROHTTPD
3459 gatewayddocumentrootdir=$(pkgdatadir)/gatewayd
3460
3461 rootlibexec_PROGRAMS += \
3462         systemd-journal-gatewayd
3463
3464 systemd_journal_gatewayd_SOURCES = \
3465         src/journal/journal-gatewayd.c \
3466         src/journal/microhttpd-util.h \
3467         src/journal/microhttpd-util.c
3468
3469 systemd_journal_gatewayd_LDADD = \
3470         libsystemd-logs.la \
3471         libsystemd-journal-internal.la \
3472         libsystemd-internal.la \
3473         libsystemd-shared.la \
3474         $(MICROHTTPD_LIBS)
3475
3476 if HAVE_GNUTLS
3477 systemd_journal_gatewayd_LDADD += \
3478         $(GNUTLS_LIBS)
3479 endif
3480
3481 systemd_journal_gatewayd_CFLAGS = \
3482         $(AM_CFLAGS) \
3483         $(MICROHTTPD_CFLAGS)
3484
3485 systemd_journal_gatewayd_CPPFLAGS = \
3486         $(AM_CPPFLAGS) \
3487         -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\"
3488
3489 dist_systemunit_DATA += \
3490         units/systemd-journal-gatewayd.socket
3491
3492 nodist_systemunit_DATA += \
3493         units/systemd-journal-gatewayd.service
3494
3495 dist_gatewayddocumentroot_DATA = \
3496         src/journal/browse.html
3497
3498 endif
3499
3500 EXTRA_DIST += \
3501         units/systemd-journal-gatewayd.service.in
3502
3503 # ------------------------------------------------------------------------------
3504
3505 systemd_socket_proxyd_SOURCES = \
3506         src/socket-proxy/socket-proxyd.c
3507
3508 systemd_socket_proxyd_LDADD = \
3509         libsystemd-logs.la \
3510         libsystemd-internal.la \
3511         libsystemd-journal-internal.la \
3512         libsystemd-shared.la
3513
3514 # ------------------------------------------------------------------------------
3515 if ENABLE_COREDUMP
3516 systemd_coredump_SOURCES = \
3517         src/journal/coredump.c
3518
3519 systemd_coredump_LDADD = \
3520         libsystemd-journal-internal.la \
3521         libsystemd-label.la \
3522         libsystemd-shared.la \
3523         libsystemd-internal.la
3524
3525 rootlibexec_PROGRAMS += \
3526         systemd-coredump
3527
3528 systemd_coredumpctl_SOURCES = \
3529         src/journal/coredumpctl.c
3530
3531 systemd_coredumpctl_LDADD = \
3532         libsystemd-journal-internal.la \
3533         libsystemd-internal.la \
3534         libsystemd-shared.la
3535
3536 bin_PROGRAMS += \
3537         systemd-coredumpctl
3538
3539 dist_bashcompletion_DATA += \
3540         shell-completion/bash/systemd-coredumpctl
3541
3542 dist_zshcompletion_DATA += \
3543         shell-completion/zsh/_systemd-coredumpctl
3544
3545 sysctl_DATA = \
3546         sysctl.d/50-coredump.conf
3547
3548 CLEANFILES += \
3549         sysctl.d/50-coredump.conf
3550 endif
3551
3552 EXTRA_DIST += \
3553         sysctl.d/50-coredump.conf.in
3554
3555 # ------------------------------------------------------------------------------
3556 if ENABLE_BINFMT
3557 systemd_binfmt_SOURCES = \
3558         src/binfmt/binfmt.c
3559
3560 systemd_binfmt_LDADD = \
3561         libsystemd-shared.la
3562
3563 rootlibexec_PROGRAMS += \
3564         systemd-binfmt
3565
3566 dist_systemunit_DATA += \
3567         units/proc-sys-fs-binfmt_misc.automount \
3568         units/proc-sys-fs-binfmt_misc.mount
3569
3570 nodist_systemunit_DATA += \
3571         units/systemd-binfmt.service
3572
3573 INSTALL_DIRS += \
3574         $(prefix)/lib/binfmt.d \
3575         $(sysconfdir)/binfmt.d
3576
3577 SYSINIT_TARGET_WANTS += \
3578         systemd-binfmt.service \
3579         proc-sys-fs-binfmt_misc.automount
3580
3581 endif
3582
3583 EXTRA_DIST += \
3584         units/systemd-binfmt.service.in
3585
3586 # ------------------------------------------------------------------------------
3587 if ENABLE_VCONSOLE
3588 systemd_vconsole_setup_SOURCES = \
3589         src/vconsole/vconsole-setup.c
3590
3591 systemd_vconsole_setup_LDADD = \
3592         libsystemd-shared.la
3593
3594 rootlibexec_PROGRAMS += \
3595         systemd-vconsole-setup
3596
3597 nodist_systemunit_DATA += \
3598         units/systemd-vconsole-setup.service
3599
3600 SYSINIT_TARGET_WANTS += \
3601         systemd-vconsole-setup.service
3602 endif
3603
3604 EXTRA_DIST += \
3605         units/systemd-vconsole-setup.service.in
3606
3607 # ------------------------------------------------------------------------------
3608 if ENABLE_READAHEAD
3609 systemd_readahead_SOURCES = \
3610         src/readahead/readahead.c \
3611         src/readahead/readahead-collect.c \
3612         src/readahead/readahead-replay.c \
3613         src/readahead/readahead-analyze.c \
3614         src/readahead/readahead-common.c \
3615         src/readahead/readahead-common.h
3616
3617 systemd_readahead_LDADD = \
3618         libsystemd-internal.la \
3619         libudev-internal.la \
3620         libsystemd-shared.la
3621
3622 dist_doc_DATA += \
3623         src/readahead/sd-readahead.c \
3624         src/systemd/sd-readahead.h
3625
3626 rootlibexec_PROGRAMS += \
3627         systemd-readahead
3628
3629 dist_systemunit_DATA += \
3630         units/systemd-readahead-drop.service \
3631         units/systemd-readahead-done.timer
3632
3633 nodist_systemunit_DATA += \
3634         units/systemd-readahead-collect.service \
3635         units/systemd-readahead-replay.service \
3636         units/systemd-readahead-done.service
3637
3638 endif
3639
3640 EXTRA_DIST += \
3641         units/systemd-readahead-collect.service.in \
3642         units/systemd-readahead-replay.service.in \
3643         units/systemd-readahead-done.service.in
3644
3645 # ------------------------------------------------------------------------------
3646 if ENABLE_BOOTCHART
3647 systemd_bootchart_SOURCES = \
3648         src/bootchart/bootchart.c \
3649         src/bootchart/bootchart.h \
3650         src/bootchart/store.c \
3651         src/bootchart/store.h \
3652         src/bootchart/svg.c \
3653         src/bootchart/svg.h
3654
3655 systemd_bootchart_LDADD = \
3656         libsystemd-journal-internal.la \
3657         libsystemd-shared.la
3658
3659 rootlibexec_PROGRAMS += \
3660         systemd-bootchart
3661
3662 dist_pkgsysconf_DATA += \
3663         src/bootchart/bootchart.conf
3664 endif
3665
3666 # ------------------------------------------------------------------------------
3667 if ENABLE_QUOTACHECK
3668 rootlibexec_PROGRAMS += \
3669         systemd-quotacheck
3670
3671 nodist_systemunit_DATA += \
3672         units/systemd-quotacheck.service
3673
3674 systemd_quotacheck_SOURCES = \
3675         src/quotacheck/quotacheck.c
3676
3677 systemd_quotacheck_LDADD = \
3678         libsystemd-shared.la
3679 endif
3680
3681 EXTRA_DIST += \
3682         units/systemd-quotacheck.service.in
3683
3684 nodist_systemunit_DATA += \
3685         units/quotaon.service
3686
3687 # ------------------------------------------------------------------------------
3688 if ENABLE_RANDOMSEED
3689 rootlibexec_PROGRAMS += \
3690         systemd-random-seed
3691
3692 nodist_systemunit_DATA += \
3693         units/systemd-random-seed.service
3694
3695 systemd_random_seed_SOURCES = \
3696         src/random-seed/random-seed.c
3697
3698 systemd_random_seed_LDADD = \
3699         libsystemd-label.la \
3700         libsystemd-shared.la
3701
3702 SYSINIT_TARGET_WANTS += \
3703         systemd-random-seed.service
3704
3705 endif
3706
3707 EXTRA_DIST += \
3708         units/systemd-random-seed.service.in
3709
3710 # ------------------------------------------------------------------------------
3711 if ENABLE_BACKLIGHT
3712 rootlibexec_PROGRAMS += \
3713         systemd-backlight
3714
3715 nodist_systemunit_DATA += \
3716         units/systemd-backlight@.service
3717
3718 systemd_backlight_SOURCES = \
3719         src/backlight/backlight.c
3720
3721 systemd_backlight_LDADD = \
3722         libsystemd-label.la \
3723         libudev-internal.la \
3724         libsystemd-shared.la
3725 endif
3726
3727 EXTRA_DIST += \
3728         units/systemd-backlight@.service.in
3729
3730 # ------------------------------------------------------------------------------
3731 if ENABLE_RFKILL
3732 rootlibexec_PROGRAMS += \
3733         systemd-rfkill
3734
3735 nodist_systemunit_DATA += \
3736         units/systemd-rfkill@.service
3737
3738 systemd_rfkill_SOURCES = \
3739         src/rfkill/rfkill.c
3740
3741 systemd_rfkill_LDADD = \
3742         libsystemd-label.la \
3743         libudev-internal.la \
3744         libsystemd-shared.la
3745 endif
3746
3747 EXTRA_DIST += \
3748         units/systemd-rfkill@.service.in
3749
3750 # ------------------------------------------------------------------------------
3751 if HAVE_LIBCRYPTSETUP
3752 rootlibexec_PROGRAMS += \
3753         systemd-cryptsetup
3754
3755 systemgenerator_PROGRAMS += \
3756         systemd-cryptsetup-generator
3757
3758 dist_systemunit_DATA += \
3759         units/cryptsetup.target
3760
3761 systemd_cryptsetup_SOURCES = \
3762         src/cryptsetup/cryptsetup.c
3763
3764 systemd_cryptsetup_CFLAGS = \
3765         $(AM_CFLAGS) \
3766         $(LIBCRYPTSETUP_CFLAGS)
3767
3768 systemd_cryptsetup_LDADD = \
3769         libsystemd-label.la \
3770         libudev-internal.la \
3771         libsystemd-shared.la \
3772         $(LIBCRYPTSETUP_LIBS)
3773
3774 systemd_cryptsetup_generator_SOURCES = \
3775         src/cryptsetup/cryptsetup-generator.c
3776
3777 systemd_cryptsetup_generator_LDADD = \
3778         libsystemd-label.la \
3779         libsystemd-shared.la
3780
3781 SYSINIT_TARGET_WANTS += \
3782         cryptsetup.target
3783
3784 endif
3785
3786 # ------------------------------------------------------------------------------
3787 if ENABLE_HOSTNAMED
3788 systemd_hostnamed_SOURCES = \
3789         src/hostname/hostnamed.c
3790
3791 systemd_hostnamed_LDADD = \
3792         libsystemd-label.la \
3793         libsystemd-internal.la \
3794         libsystemd-shared.la
3795
3796 rootlibexec_PROGRAMS += \
3797         systemd-hostnamed
3798
3799 nodist_systemunit_DATA += \
3800         units/systemd-hostnamed.service
3801
3802 dist_systemunit_DATA += \
3803         units/org.freedesktop.hostname1.busname
3804
3805 dist_dbuspolicy_DATA += \
3806         src/hostname/org.freedesktop.hostname1.conf
3807
3808 dist_dbussystemservice_DATA += \
3809         src/hostname/org.freedesktop.hostname1.service
3810
3811 polkitpolicy_files += \
3812         src/hostname/org.freedesktop.hostname1.policy
3813
3814 SYSTEM_UNIT_ALIASES += \
3815         systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
3816
3817 BUSNAMES_TARGET_WANTS += \
3818         org.freedesktop.hostname1.busname
3819
3820 hostnamectl_SOURCES = \
3821         src/hostname/hostnamectl.c
3822
3823 hostnamectl_LDADD = \
3824         libsystemd-internal.la \
3825         libsystemd-shared.la
3826
3827 bin_PROGRAMS += \
3828         hostnamectl
3829
3830 dist_bashcompletion_DATA += \
3831         shell-completion/bash/hostnamectl
3832
3833 dist_zshcompletion_DATA += \
3834         shell-completion/zsh/_hostnamectl
3835
3836 endif
3837
3838 polkitpolicy_in_files += \
3839         src/hostname/org.freedesktop.hostname1.policy.in
3840
3841 EXTRA_DIST += \
3842         units/systemd-hostnamed.service.in
3843
3844 # ------------------------------------------------------------------------------
3845 if ENABLE_KDBUS
3846 systemd_bus_driverd_SOURCES = \
3847         src/bus-driverd/bus-driverd.c
3848
3849 systemd_bus_driverd_LDADD = \
3850         libsystemd-internal.la \
3851         libsystemd-shared.la
3852
3853 rootlibexec_PROGRAMS += \
3854         systemd-bus-driverd
3855
3856 nodist_systemunit_DATA += \
3857         units/systemd-bus-driverd.service
3858
3859 dist_systemunit_DATA += \
3860         units/org.freedesktop.DBus.busname      \
3861         units/org.freedesktop.systemd1.busname
3862
3863 BUSNAMES_TARGET_WANTS += \
3864         org.freedesktop.DBus.busname    \
3865         org.freedesktop.systemd1.busname
3866
3867 nodist_userunit_DATA += \
3868         units/user/systemd-bus-driverd.service
3869
3870 USER_BUSNAMES_TARGET_WANTS += \
3871         org.freedesktop.DBus.busname
3872
3873 USER_UNIT_ALIASES += \
3874         $(systemunitdir)/org.freedesktop.DBus.busname org.freedesktop.DBus.busname
3875 endif
3876
3877 EXTRA_DIST += \
3878         units/systemd-bus-driverd.service.in \
3879         units/user/systemd-bus-driverd.service.in
3880
3881 # ------------------------------------------------------------------------------
3882 if ENABLE_LOCALED
3883 systemd_localed_SOURCES = \
3884         src/locale/localed.c
3885
3886 systemd_localed_LDADD = \
3887         libsystemd-label.la \
3888         libsystemd-internal.la \
3889         libsystemd-shared.la
3890
3891 nodist_systemunit_DATA += \
3892         units/systemd-localed.service
3893
3894 dist_systemunit_DATA += \
3895         units/org.freedesktop.locale1.busname
3896
3897 rootlibexec_PROGRAMS += \
3898         systemd-localed
3899
3900 dist_dbuspolicy_DATA += \
3901         src/locale/org.freedesktop.locale1.conf
3902
3903 dist_dbussystemservice_DATA += \
3904         src/locale/org.freedesktop.locale1.service
3905
3906 polkitpolicy_files += \
3907         src/locale/org.freedesktop.locale1.policy
3908
3909 SYSTEM_UNIT_ALIASES += \
3910         systemd-localed.service dbus-org.freedesktop.locale1.service
3911
3912 BUSNAMES_TARGET_WANTS += \
3913         org.freedesktop.locale1.busname
3914
3915 dist_pkgdata_DATA += \
3916         src/locale/kbd-model-map
3917
3918 dist_noinst_SCRIPT = \
3919         src/locale/generate-kbd-model-map
3920
3921 update-kbd-model-map: src/locale/generate-kbd-model-map
3922         $PYTHON $< >src/locale/kbd-model-map
3923
3924 localectl_SOURCES = \
3925         src/locale/localectl.c
3926
3927 localectl_LDADD = \
3928         libsystemd-internal.la \
3929         libsystemd-shared.la
3930
3931 bin_PROGRAMS += \
3932         localectl
3933
3934 dist_bashcompletion_DATA += \
3935         shell-completion/bash/localectl
3936
3937 dist_zshcompletion_DATA += \
3938         shell-completion/zsh/_localectl
3939
3940 endif
3941
3942 .PHONY: update-kbd-model-map
3943
3944 polkitpolicy_in_files += \
3945         src/locale/org.freedesktop.locale1.policy.in
3946
3947 EXTRA_DIST += \
3948         units/systemd-localed.service.in
3949
3950 # ------------------------------------------------------------------------------
3951 if ENABLE_TIMEDATED
3952 libsystemd_timedated_core_la_SOURCES = \
3953         src/timedate/timedate-sntp.c \
3954         src/timedate/timedate-sntp.h
3955
3956 libsystemd_timedated_core_la_LIBADD = \
3957         libsystemd-label.la \
3958         libsystemd-internal.la \
3959         libsystemd-shared.la \
3960         -lm
3961
3962 noinst_LTLIBRARIES += \
3963         libsystemd-timedated-core.la
3964
3965 systemd_timedated_SOURCES = \
3966         src/timedate/timedated.c
3967
3968 systemd_timedated_LDADD = \
3969         libsystemd-timedated-core.la
3970
3971 rootlibexec_PROGRAMS += \
3972         systemd-timedated
3973
3974 dist_dbussystemservice_DATA += \
3975         src/timedate/org.freedesktop.timedate1.service
3976
3977 dist_dbuspolicy_DATA += \
3978         src/timedate/org.freedesktop.timedate1.conf
3979
3980 nodist_systemunit_DATA += \
3981         units/systemd-timedated.service
3982
3983 dist_systemunit_DATA += \
3984         units/org.freedesktop.timedate1.busname
3985
3986 polkitpolicy_files += \
3987         src/timedate/org.freedesktop.timedate1.policy
3988
3989 INSTALL_DIRS += \
3990         $(prefix)/lib/systemd/ntp-units.d \
3991         $(sysconfdir)/systemd/ntp-units.d
3992
3993 SYSTEM_UNIT_ALIASES += \
3994         systemd-timedated.service dbus-org.freedesktop.timedate1.service
3995
3996 BUSNAMES_TARGET_WANTS += \
3997         org.freedesktop.timedate1.busname
3998
3999 timedatectl_SOURCES = \
4000         src/timedate/timedatectl.c
4001
4002 timedatectl_LDADD = \
4003         libsystemd-internal.la \
4004         libsystemd-shared.la
4005
4006 bin_PROGRAMS += \
4007         timedatectl
4008
4009 dist_bashcompletion_DATA += \
4010         shell-completion/bash/timedatectl
4011
4012 dist_zshcompletion_DATA += \
4013         shell-completion/zsh/_timedatectl
4014
4015 test_timedate_sntp_SOURCES = \
4016         src/timedate/test-timedate-sntp.c
4017
4018 test_timedate_sntp_LDADD = \
4019         libsystemd-timedated-core.la
4020
4021 manual_tests += \
4022         test-timedate-sntp
4023 endif
4024
4025 polkitpolicy_in_files += \
4026         src/timedate/org.freedesktop.timedate1.policy.in
4027
4028 EXTRA_DIST += \
4029         units/systemd-timedated.service.in
4030
4031 # ------------------------------------------------------------------------------
4032 if HAVE_MYHOSTNAME
4033 libnss_myhostname_la_SOURCES = \
4034         src/nss-myhostname/nss-myhostname.c \
4035         src/nss-myhostname/ifconf.h \
4036         src/nss-myhostname/netlink.c
4037
4038 libnss_myhostname_la_LDFLAGS = \
4039         $(AM_LDFLAGS) \
4040         -module \
4041         -export-dynamic \
4042         -avoid-version \
4043         -shared \
4044         -shrext .so.2
4045
4046 lib_LTLIBRARIES += \
4047         libnss_myhostname.la
4048 endif
4049
4050 # ------------------------------------------------------------------------------
4051 if ENABLE_MACHINED
4052 systemd_machined_SOURCES = \
4053         src/machine/machined.c \
4054         src/machine/machined.h
4055
4056 systemd_machined_LDADD = \
4057         libsystemd-machine-core.la
4058
4059 rootlibexec_PROGRAMS += \
4060         systemd-machined
4061
4062 libsystemd_machine_core_la_SOURCES = \
4063         src/machine/machined-dbus.c \
4064         src/machine/machine.c \
4065         src/machine/machine.h \
4066         src/machine/machine-dbus.c
4067
4068 libsystemd_machine_core_la_LIBADD = \
4069         libsystemd-label.la \
4070         libsystemd-internal.la \
4071         libudev-internal.la \
4072         libsystemd-shared.la
4073
4074 noinst_LTLIBRARIES += \
4075         libsystemd-machine-core.la
4076
4077 machinectl_SOURCES = \
4078         src/machine/machinectl.c
4079
4080 machinectl_LDADD = \
4081         libsystemd-internal.la \
4082         libsystemd-shared.la
4083
4084 rootbin_PROGRAMS += \
4085         machinectl
4086
4087 dist_bashcompletion_DATA += \
4088         shell-completion/bash/machinectl
4089
4090 test_machine_tables_SOURCES = \
4091         src/machine/test-machine-tables.c
4092
4093 test_machine_tables_LDADD = \
4094         libsystemd-machine-core.la
4095
4096 tests += \
4097         test-machine-tables
4098
4099 nodist_systemunit_DATA += \
4100         units/systemd-machined.service
4101
4102 dist_systemunit_DATA += \
4103         units/machine.slice \
4104         units/org.freedesktop.machine1.busname
4105
4106 dist_dbussystemservice_DATA += \
4107         src/machine/org.freedesktop.machine1.service
4108
4109 dist_dbuspolicy_DATA += \
4110         src/machine/org.freedesktop.machine1.conf
4111
4112 dist_zshcompletion_DATA += \
4113         shell-completion/zsh/_machinectl \
4114         shell-completion/zsh/_sd_machines
4115
4116 SYSTEM_UNIT_ALIASES += \
4117         systemd-machined.service dbus-org.freedesktop.machine1.service
4118
4119 BUSNAMES_TARGET_WANTS += \
4120         org.freedesktop.machine1.busname
4121
4122 EXTRA_DIST += \
4123         units/systemd-machined.service.in
4124
4125 endif
4126
4127 # ------------------------------------------------------------------------------
4128 if ENABLE_NETWORKD
4129 rootlibexec_PROGRAMS += \
4130         systemd-networkd
4131
4132 systemd_networkd_SOURCES = \
4133         src/network/networkd.c
4134
4135 systemd_networkd_LDADD = \
4136         libsystemd-networkd-core.la
4137
4138 noinst_LTLIBRARIES += \
4139         libsystemd-networkd-core.la
4140
4141 libsystemd_networkd_core_la_SOURCES = \
4142         src/network/networkd.h \
4143         src/network/networkd-link.c \
4144         src/network/networkd-netdev.c \
4145         src/network/networkd-network.c \
4146         src/network/networkd-address.c \
4147         src/network/networkd-route.c \
4148         src/network/networkd-manager.c
4149
4150 nodist_libsystemd_networkd_core_la_SOURCES = \
4151         src/network/networkd-network-gperf.c \
4152         src/network/networkd-netdev-gperf.c
4153
4154 libsystemd_networkd_core_la_LIBADD = \
4155         libudev-internal.la \
4156         libsystemd-internal.la \
4157         libsystemd-network.la \
4158         libsystemd-label.la \
4159         libsystemd-shared.la
4160
4161 nodist_systemunit_DATA += \
4162         units/systemd-networkd.service
4163
4164 GENERAL_ALIASES += \
4165         $(systemunitdir)/systemd-networkd.service $(pkgsysconfdir)/system/multi-user.target.wants/systemd-networkd.service
4166
4167 rootlibexec_PROGRAMS += \
4168         systemd-networkd-wait-online
4169
4170 systemd_networkd_wait_online_SOURCES = \
4171         src/network/networkd-wait-online.c
4172
4173 systemd_networkd_wait_online_LDADD = \
4174         libsystemd-internal.la \
4175         libsystemd-network.la
4176
4177 test_network_SOURCES = \
4178         src/network/test-network.c
4179
4180 test_network_LDADD = \
4181         libsystemd-networkd-core.la
4182
4183 tests += \
4184         test-network
4185
4186 EXTRA_DIST += \
4187         src/network/networkd-network-gperf.gperf \
4188         src/network/networkd-netdev-gperf.gperf \
4189         units/systemd-networkd.service.in
4190
4191 CLEANFILES += \
4192         src/network/networkd-network-gperf.c \
4193         src/network/networkd-netdev-gperf.c
4194 endif
4195
4196 # ------------------------------------------------------------------------------
4197 if ENABLE_LOGIND
4198 systemd_logind_SOURCES = \
4199         src/login/logind.c \
4200         src/login/logind.h
4201
4202 nodist_systemd_logind_SOURCES = \
4203         src/login/logind-gperf.c
4204
4205 systemd_logind_LDADD = \
4206         libsystemd-logind-core.la
4207
4208 libsystemd_logind_core_la_SOURCES = \
4209         src/login/logind-core.c \
4210         src/login/logind-device.c \
4211         src/login/logind-device.h \
4212         src/login/logind-button.c \
4213         src/login/logind-button.h \
4214         src/login/logind-action.c \
4215         src/login/logind-action.h \
4216         src/login/logind-seat.c \
4217         src/login/logind-seat.h \
4218         src/login/logind-session.c \
4219         src/login/logind-session.h \
4220         src/login/logind-session-device.c \
4221         src/login/logind-session-device.h \
4222         src/login/logind-user.c \
4223         src/login/logind-user.h \
4224         src/login/logind-inhibit.c \
4225         src/login/logind-inhibit.h \
4226         src/login/logind-dbus.c \
4227         src/login/logind-session-dbus.c \
4228         src/login/logind-seat-dbus.c \
4229         src/login/logind-user-dbus.c \
4230         src/login/logind-acl.h
4231
4232 libsystemd_logind_core_la_LIBADD = \
4233         libsystemd-label.la \
4234         libsystemd-capability.la \
4235         libsystemd-internal.la \
4236         libudev-internal.la \
4237         libsystemd-shared.la
4238
4239 if HAVE_ACL
4240 libsystemd_logind_core_la_SOURCES += \
4241         src/login/logind-acl.c
4242
4243 libsystemd_logind_core_la_LIBADD += \
4244         libsystemd-acl.la
4245 endif
4246
4247 noinst_LTLIBRARIES += \
4248         libsystemd-logind-core.la
4249
4250 systemd_user_sessions_SOURCES = \
4251         src/login/user-sessions.c
4252
4253 systemd_user_sessions_LDADD = \
4254         libsystemd-shared.la
4255
4256 rootlibexec_PROGRAMS += \
4257         systemd-logind \
4258         systemd-user-sessions
4259
4260 loginctl_SOURCES = \
4261         src/login/loginctl.c \
4262         src/login/sysfs-show.c
4263
4264 loginctl_LDADD = \
4265         libsystemd-internal.la \
4266         libudev-internal.la \
4267         libsystemd-shared.la
4268
4269 rootbin_PROGRAMS += \
4270         loginctl
4271
4272 dist_bashcompletion_DATA += \
4273         shell-completion/bash/loginctl
4274
4275 dist_zshcompletion_DATA += \
4276         shell-completion/zsh/_loginctl \
4277         shell-completion/zsh/_systemd-inhibit
4278
4279 systemd_inhibit_SOURCES = \
4280         src/login/inhibit.c
4281
4282 systemd_inhibit_LDADD = \
4283         libsystemd-internal.la \
4284         libsystemd-shared.la
4285
4286 rootbin_PROGRAMS += \
4287         systemd-inhibit
4288
4289 test_login_SOURCES = \
4290         src/libsystemd/sd-login/test-login.c
4291
4292 test_login_LDADD = \
4293         libsystemd-internal.la \
4294         libsystemd-shared.la
4295
4296 test_login_shared_SOURCES = \
4297         src/login/test-login-shared.c
4298
4299 test_login_shared_LDADD = \
4300         libsystemd-internal.la \
4301         libsystemd-shared.la
4302
4303 test_inhibit_SOURCES = \
4304         src/login/test-inhibit.c
4305
4306 test_inhibit_LDADD = \
4307         libsystemd-internal.la \
4308         libsystemd-shared.la
4309
4310 test_login_tables_SOURCES = \
4311         src/login/test-login-tables.c
4312
4313 test_login_tables_LDADD = \
4314         libsystemd-logind-core.la
4315
4316 manual_tests += \
4317         test-login \
4318         test-inhibit
4319
4320 tests += \
4321         test-login-tables \
4322         test-login-shared
4323
4324 if HAVE_PAM
4325 pam_systemd_la_SOURCES = \
4326         src/login/pam-module.c
4327
4328 pam_systemd_la_CFLAGS = \
4329         $(AM_CFLAGS) \
4330         $(PAM_CFLAGS) \
4331         -fvisibility=hidden
4332
4333 pam_systemd_la_LDFLAGS = \
4334         $(AM_LDFLAGS) \
4335         -module \
4336         -export-dynamic \
4337         -avoid-version \
4338         -shared \
4339         -export-symbols-regex '^pam_sm_.*'
4340
4341 pam_systemd_la_LIBADD = \
4342         libsystemd-capability.la \
4343         libsystemd-internal.la \
4344         libsystemd-shared.la \
4345         $(PAM_LIBS)
4346
4347 pamlib_LTLIBRARIES = \
4348         pam_systemd.la
4349
4350 dist_pamconf_DATA = \
4351         src/login/systemd-user
4352 endif
4353
4354 nodist_systemunit_DATA += \
4355         units/systemd-logind.service \
4356         units/systemd-user-sessions.service
4357
4358 dist_systemunit_DATA += \
4359         units/user.slice \
4360         units/org.freedesktop.login1.busname
4361
4362 dist_dbussystemservice_DATA += \
4363         src/login/org.freedesktop.login1.service
4364
4365 dist_dbuspolicy_DATA += \
4366         src/login/org.freedesktop.login1.conf
4367
4368 dist_pkgsysconf_DATA += \
4369         src/login/logind.conf
4370
4371 polkitpolicy_files += \
4372         src/login/org.freedesktop.login1.policy
4373
4374 INSTALL_DIRS += \
4375         $(systemdstatedir)
4376
4377 MULTI_USER_TARGET_WANTS += \
4378         systemd-logind.service \
4379         systemd-user-sessions.service
4380
4381 SYSTEM_UNIT_ALIASES += \
4382         systemd-logind.service dbus-org.freedesktop.login1.service
4383
4384 BUSNAMES_TARGET_WANTS += \
4385         org.freedesktop.login1.busname
4386
4387 if ENABLE_MULTI_SEAT_X
4388
4389 systemd_multi_seat_x_SOURCES = \
4390         src/login/multi-seat-x.c
4391
4392 systemd_multi_seat_x_LDADD = \
4393         libsystemd-label.la \
4394         libsystemd-shared.la
4395
4396 rootlibexec_PROGRAMS += \
4397         systemd-multi-seat-x
4398
4399 endif
4400
4401 dist_udevrules_DATA += \
4402         src/login/70-uaccess.rules \
4403         src/login/70-power-switch.rules
4404
4405 nodist_udevrules_DATA += \
4406         src/login/71-seat.rules \
4407         src/login/73-seat-late.rules
4408
4409 CLEANFILES += \
4410         src/login/logind-gperf.c \
4411         src/login/71-seat.rules \
4412         src/login/73-seat-late.rules
4413 endif
4414
4415 polkitpolicy_in_files += \
4416         src/login/org.freedesktop.login1.policy.in
4417
4418 EXTRA_DIST += \
4419         src/login/logind-gperf.gperf \
4420         src/login/71-seat.rules.in \
4421         src/login/73-seat-late.rules.in \
4422         units/systemd-logind.service.in \
4423         units/systemd-user-sessions.service.in
4424
4425 # ------------------------------------------------------------------------------
4426 if HAVE_PYTHON_DEVEL
4427 pkgpyexec_LTLIBRARIES = \
4428         _journal.la \
4429         id128.la \
4430         _daemon.la \
4431         _reader.la \
4432         login.la
4433
4434 _journal_la_SOURCES = \
4435         src/python-systemd/_journal.c
4436
4437 _journal_la_CFLAGS = \
4438         $(AM_CFLAGS) \
4439         -fvisibility=default \
4440         $(PYTHON_DEVEL_CFLAGS)
4441
4442 _journal_la_LDFLAGS = \
4443         $(AM_LDFLAGS) \
4444         -shared \
4445         -module \
4446         -avoid-version
4447
4448 _journal_la_LIBADD = \
4449         $(PYTHON_DEVEL_LIBS) \
4450         libsystemd.la
4451
4452 id128_la_SOURCES = \
4453         src/python-systemd/id128.c \
4454         src/python-systemd/id128-constants.h \
4455         src/python-systemd/pyutil.c \
4456         src/python-systemd/pyutil.h
4457
4458 id128_la_CFLAGS = \
4459         $(AM_CFLAGS) \
4460         -fvisibility=default \
4461         $(PYTHON_DEVEL_CFLAGS) \
4462         -I$(top_builddir)/src/python-systemd
4463
4464 id128_la_LDFLAGS = \
4465         $(AM_LDFLAGS) \
4466         -shared \
4467         -module \
4468         -avoid-version
4469
4470 id128_la_LIBADD = \
4471         $(PYTHON_DEVEL_LIBS) \
4472         libsystemd-shared.la \
4473         libsystemd.la
4474
4475 _daemon_la_SOURCES = \
4476         src/python-systemd/_daemon.c \
4477         src/python-systemd/pyutil.c \
4478         src/python-systemd/pyutil.h
4479
4480 _daemon_la_CFLAGS = \
4481         $(AM_CFLAGS) \
4482         -fvisibility=default \
4483         $(PYTHON_DEVEL_CFLAGS) \
4484         -I$(top_builddir)/src/python-systemd
4485
4486 _daemon_la_LDFLAGS = \
4487         $(AM_LDFLAGS) \
4488         -shared \
4489         -module \
4490         -avoid-version
4491
4492 _daemon_la_LIBADD = \
4493         $(PYTHON_DEVEL_LIBS) \
4494         libsystemd-shared.la \
4495         libsystemd.la
4496
4497 _reader_la_SOURCES = \
4498         src/python-systemd/_reader.c \
4499         src/python-systemd/pyutil.c \
4500         src/python-systemd/pyutil.h
4501
4502 _reader_la_CFLAGS = \
4503         $(AM_CFLAGS) \
4504         -fvisibility=default \
4505         $(PYTHON_DEVEL_CFLAGS)
4506
4507 _reader_la_LDFLAGS = \
4508         $(AM_LDFLAGS) \
4509         -shared \
4510         -module \
4511         -avoid-version
4512
4513 _reader_la_LIBADD = \
4514         $(PYTHON_DEVEL_LIBS) \
4515         libsystemd-shared.la \
4516         libsystemd.la
4517
4518 login_la_SOURCES = \
4519         src/python-systemd/login.c \
4520         src/python-systemd/pyutil.c \
4521         src/python-systemd/pyutil.h
4522
4523 login_la_CFLAGS = \
4524         $(AM_CFLAGS) \
4525         -fvisibility=default \
4526         $(PYTHON_DEVEL_CFLAGS)
4527
4528 login_la_LDFLAGS = \
4529         $(AM_LDFLAGS) \
4530         -shared \
4531         -module \
4532         -avoid-version
4533
4534 login_la_LIBADD = \
4535         $(PYTHON_DEVEL_LIBS) \
4536         libsystemd-shared.la \
4537         libsystemd.la
4538
4539 dist_pkgpyexec_PYTHON = \
4540         src/python-systemd/journal.py \
4541         src/python-systemd/daemon.py \
4542         src/python-systemd/__init__.py
4543
4544 src/python-systemd/id128-constants.h: src/systemd/sd-messages.h
4545         $(AM_V_at)$(MKDIR_P) $(dir $@)
4546         $(AM_V_GEN)$(SED) -n -r 's/,//g; s/#define (SD_MESSAGE_[A-Z0-9_]+)\s.*/add_id(m, "\1", \1) JOINER/p' <$< >$@
4547
4548 BUILT_SOURCES += \
4549         src/python-systemd/id128-constants.h
4550
4551 SPHINXOPTS = -D version=$(VERSION) -D release=$(VERSION)
4552 sphinx-%:
4553         $(AM_V_at)test -n "$(SPHINX_BUILD)" || { echo " *** sphinx-build is not available"; exit 1; }
4554         $(AM_V_GEN)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(SPHINX_BUILD) -b $* $(SPHINXOPTS) $(top_srcdir)/src/python-systemd/docs $(top_builddir)/docs/html/python-systemd/
4555         $(AM_V_at)echo Output has been generated in $(abs_top_builddir)/docs/html/python-systemd/
4556
4557 python-shell:
4558         $(AM_V_at)echo "Starting python with $(DESTDIR)$(pyexecdir)"
4559         $(AM_V_at)PYTHONPATH=$(DESTDIR)$(pyexecdir) LD_LIBRARY_PATH=$(DESTDIR)$(libdir) $(PYTHON)
4560
4561 destdir-sphinx: all
4562         dir="$$(mktemp -d /tmp/systemd-install.XXXXXX)" && \
4563                 $(MAKE) DESTDIR="$$dir" install && \
4564                 $(MAKE) DESTDIR="$$dir" sphinx-html && \
4565                 rm -rf "$$dir"
4566
4567 endif
4568
4569 CLEAN_LOCAL_HOOKS += clean-sphinx
4570
4571 .PHONY: python-shell destdir-sphinx clean-sphinx clean-python
4572
4573 clean-sphinx:
4574         -rm -rf docs/html/python-systemd/
4575
4576 # Remove Python stuff, e.g. to force rebuilding for a different Python version.
4577 clean-python:
4578         -rm -rf src/python-systemd/.libs src/python-systemd/*.l[ao]
4579         -rm -f _daemon.la id128.la _journal.la login.la _reader.la
4580
4581 # ------------------------------------------------------------------------------
4582 if ENABLE_COMPAT_LIBS
4583 EXTRA_DIST += \
4584         src/compat-libs/linkwarning.h
4585
4586 libsystemd-%.c: src/compat-libs/libsystemd-%.sym
4587         $(AM_V_at)$(MKDIR_P) $(dir $@)
4588         $(AM_V_GEN)sed -r -n 's/^ +(sd_.*);/obsolete_lib(\1,$(notdir $(basename $<)));/p' <$< >$@
4589
4590 BUILT_SOURCES += \
4591         libsystemd-journal.c \
4592         libsystemd-login.c \
4593         libsystemd-id128.c \
4594         libsystemd-daemon.c
4595
4596 libsystemd_journal_la_SOURCES = \
4597         libsystemd-journal.c \
4598         src/compat-libs/libsystemd-journal.sym
4599
4600 libsystemd_journal_la_CPPFLAGS = \
4601         $(AM_CFLAGS) \
4602         -imacros$(top_srcdir)/src/compat-libs/linkwarning.h
4603
4604 libsystemd_journal_la_LDFLAGS = \
4605         $(AM_LDFLAGS) \
4606         -version-info $(LIBSYSTEMD_JOURNAL_CURRENT):$(LIBSYSTEMD_JOURNAL_REVISION):$(LIBSYSTEMD_JOURNAL_AGE) \
4607         -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-journal.sym
4608
4609 libsystemd_journal_la_LIBADD = \
4610         libsystemd-journal-internal.la \
4611         libsystemd-internal.la \
4612         libsystemd-shared.la
4613
4614 libsystemd_login_la_SOURCES = \
4615         libsystemd-login.c \
4616         src/compat-libs/libsystemd-login.sym
4617
4618