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