chiark / gitweb /
catalog: add Polish translation
[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-list \
1345         test-tables \
1346         test-device-nodes \
1347         test-xml \
1348         test-architecture \
1349         test-socket-util \
1350         test-fdset \
1351         test-conf-files \
1352         test-capability \
1353         test-async \
1354         test-ratelimit \
1355         test-condition-util \
1356         test-uid-range \
1357         test-bus-policy
1358
1359 EXTRA_DIST += \
1360         test/a.service \
1361         test/basic.target \
1362         test/b.service \
1363         test/c.service \
1364         test/daughter.service \
1365         test/d.service \
1366         test/end.service \
1367         test/e.service \
1368         test/f.service \
1369         test/grandchild.service \
1370         test/g.service \
1371         test/hello-after-sleep.target \
1372         test/hello.service \
1373         test/h.service \
1374         test/parent-deep.slice \
1375         test/parent.slice \
1376         test/paths.target \
1377         test/sched_idle_bad.service \
1378         test/sched_idle_ok.service \
1379         test/sched_rr_bad.service \
1380         test/sched_rr_change.service \
1381         test/sched_rr_ok.service \
1382         test/shutdown.target \
1383         test/sleep.service \
1384         test/sockets.target \
1385         test/son.service \
1386         test/sysinit.target \
1387         test/testsuite.target \
1388         test/timers.target \
1389         test/unstoppable.service \
1390         test/bus-policy/hello.conf \
1391         test/bus-policy/methods.conf \
1392         test/bus-policy/ownerships.conf \
1393         test/bus-policy/signals.conf
1394
1395
1396 EXTRA_DIST += \
1397         src/test/test-helper.h
1398
1399 test_device_nodes_SOURCES = \
1400         src/test/test-device-nodes.c
1401
1402 test_device_nodes_LDADD = \
1403         libsystemd-shared.la
1404
1405 test_engine_SOURCES = \
1406         src/test/test-engine.c
1407
1408 test_engine_CFLAGS = \
1409         $(AM_CFLAGS) \
1410         $(SECCOMP_CFLAGS)
1411
1412 test_engine_LDADD = \
1413         libsystemd-core.la \
1414         $(RT_LIBS)
1415
1416 test_job_type_SOURCES = \
1417         src/test/test-job-type.c
1418
1419 test_job_type_CFLAGS = \
1420         $(AM_CFLAGS) \
1421         $(SECCOMP_CFLAGS)
1422
1423 test_job_type_LDADD = \
1424         libsystemd-core.la \
1425         $(RT_LIBS)
1426
1427 test_ns_SOURCES = \
1428         src/test/test-ns.c
1429
1430 test_ns_CFLAGS = \
1431         $(AM_CFLAGS) \
1432         $(SECCOMP_CFLAGS)
1433
1434 test_ns_LDADD = \
1435         libsystemd-core.la
1436
1437 test_loopback_SOURCES = \
1438         src/test/test-loopback.c
1439
1440 test_loopback_LDADD = \
1441         libsystemd-core.la
1442
1443 test_hostname_SOURCES = \
1444         src/test/test-hostname.c
1445
1446 test_hostname_LDADD = \
1447         libsystemd-core.la
1448
1449 if ENABLE_EFI
1450 manual_tests += \
1451         test-boot-timestamp
1452
1453 test_boot_timestamp_SOURCES = \
1454         src/test/test-boot-timestamps.c
1455
1456 test_boot_timestamp_LDADD = \
1457         libsystemd-shared.la
1458 endif
1459
1460 test_unit_name_SOURCES = \
1461         src/test/test-unit-name.c
1462
1463 test_unit_name_CFLAGS = \
1464         $(AM_CFLAGS) \
1465         $(SECCOMP_CFLAGS)
1466
1467 test_unit_name_LDADD = \
1468         libsystemd-core.la \
1469         $(RT_LIBS)
1470
1471 test_unit_file_SOURCES = \
1472         src/test/test-unit-file.c
1473
1474 test_unit_file_CFLAGS = \
1475         $(AM_CFLAGS) \
1476         $(SECCOMP_CFLAGS)
1477
1478 test_unit_file_LDADD = \
1479         libsystemd-core.la \
1480         $(RT_LIBS)
1481
1482 test_utf8_SOURCES = \
1483         src/test/test-utf8.c
1484
1485 test_utf8_LDADD = \
1486         libsystemd-shared.la
1487
1488 test_capability_SOURCES = \
1489         src/test/test-capability.c
1490
1491 test_capability_LDADD = \
1492         libsystemd-shared.la \
1493         libsystemd-capability.la
1494
1495 test_async_SOURCES = \
1496         src/test/test-async.c
1497
1498 test_async_LDADD = \
1499         libsystemd-shared.la
1500
1501 test_condition_util_SOURCES = \
1502         src/test/test-condition-util.c
1503
1504 test_condition_util_LDADD = \
1505         libsystemd-shared.la \
1506         libsystemd-internal.la
1507
1508
1509 test_fdset_SOURCES = \
1510         src/test/test-fdset.c
1511
1512 test_fdset_LDADD = \
1513         libsystemd-core.la
1514
1515 test_ratelimit_SOURCES = \
1516         src/test/test-ratelimit.c
1517
1518 test_ratelimit_LDADD = \
1519         libsystemd-shared.la
1520
1521 test_util_SOURCES = \
1522         src/test/test-util.c
1523
1524 test_util_LDADD = \
1525         libsystemd-core.la
1526
1527 test_uid_range_SOURCES = \
1528         src/test/test-uid-range.c
1529
1530 test_uid_range_LDADD = \
1531         libsystemd-core.la
1532
1533 test_socket_util_SOURCES = \
1534         src/test/test-socket-util.c
1535
1536 test_socket_util_LDADD = \
1537         libsystemd-core.la
1538
1539 test_ring_SOURCES = \
1540         src/test/test-ring.c
1541
1542 test_ring_LDADD = \
1543         libsystemd-core.la
1544
1545 test_barrier_SOURCES = \
1546         src/test/test-barrier.c
1547
1548 test_barrier_LDADD = \
1549         libsystemd-core.la
1550
1551 test_pty_SOURCES = \
1552         src/test/test-pty.c
1553
1554 test_pty_LDADD = \
1555         libsystemd-core.la
1556
1557 test_tmpfiles_SOURCES = \
1558         src/test/test-tmpfiles.c
1559
1560 test_tmpfiles_LDADD = \
1561         libsystemd-shared.la
1562
1563 test_namespace_SOURCES = \
1564         src/test/test-namespace.c
1565
1566 test_namespace_LDADD = \
1567         libsystemd-core.la
1568
1569 test_hashmap_SOURCES = \
1570         src/test/test-hashmap.c
1571
1572 test_hashmap_LDADD = \
1573         libsystemd-core.la
1574
1575 test_xml_SOURCES = \
1576         src/test/test-xml.c
1577
1578 test_xml_LDADD = \
1579         libsystemd-shared.la
1580
1581 test_list_SOURCES = \
1582         src/test/test-list.c
1583
1584 test_list_LDADD = \
1585         libsystemd-core.la
1586
1587 test_tables_SOURCES = \
1588         src/test/test-tables.c \
1589         src/shared/test-tables.h \
1590         src/bus-proxyd/bus-policy.c \
1591         src/bus-proxyd/bus-policy.h \
1592         src/journal/journald-server.c \
1593         src/journal/journald-server.h
1594
1595 test_tables_CPPFLAGS = \
1596         $(AM_CPPFLAGS) \
1597         -I$(top_srcdir)/src/bus-proxyd
1598
1599 test_tables_CFLAGS = \
1600         $(AM_CFLAGS) \
1601         $(SECCOMP_CFLAGS)
1602
1603 test_tables_LDADD = \
1604         libsystemd-logs.la \
1605         libsystemd-journal-internal.la \
1606         libsystemd-journal-core.la \
1607         libsystemd-core.la \
1608         libudev-core.la \
1609         $(RT_LIBS)
1610
1611 test_prioq_SOURCES = \
1612         src/test/test-prioq.c
1613
1614 test_prioq_LDADD = \
1615         libsystemd-core.la
1616
1617 test_fileio_SOURCES = \
1618         src/test/test-fileio.c
1619
1620 test_fileio_LDADD = \
1621         libsystemd-core.la
1622
1623 test_time_SOURCES = \
1624         src/test/test-time.c
1625
1626 test_time_LDADD = \
1627         libsystemd-core.la
1628
1629 test_architecture_SOURCES = \
1630         src/test/test-architecture.c
1631
1632 test_architecture_LDADD = \
1633         libsystemd-shared.la
1634
1635 test_log_SOURCES = \
1636         src/test/test-log.c
1637
1638 test_log_LDADD = \
1639         libsystemd-core.la
1640
1641 test_ipcrm_SOURCES = \
1642         src/test/test-ipcrm.c
1643
1644 test_ipcrm_LDADD = \
1645         libsystemd-shared.la \
1646         -lrt
1647
1648 test_rtnl_manual_SOURCES = \
1649         src/test/test-rtnl-manual.c
1650
1651 test_rtnl_manual_CFLAGS = \
1652         $(AM_CFLAGS) \
1653         $(KMOD_CFLAGS)
1654
1655 test_rtnl_manual_LDADD = \
1656         libsystemd-internal.la \
1657         libsystemd-shared.la \
1658         $(KMOD_LIBS)
1659
1660 test_ellipsize_SOURCES = \
1661         src/test/test-ellipsize.c
1662
1663 test_ellipsize_LDADD = \
1664         libsystemd-core.la
1665
1666 test_date_SOURCES = \
1667         src/test/test-date.c
1668
1669 test_date_LDADD = \
1670         libsystemd-core.la
1671
1672 test_sleep_SOURCES = \
1673         src/test/test-sleep.c
1674
1675 test_sleep_LDADD = \
1676         libsystemd-core.la
1677
1678 test_replace_var_SOURCES = \
1679         src/test/test-replace-var.c
1680
1681 test_replace_var_LDADD = \
1682         libsystemd-shared.la
1683
1684 test_calendarspec_SOURCES = \
1685         src/test/test-calendarspec.c
1686
1687 test_calendarspec_LDADD = \
1688         libsystemd-shared.la
1689
1690 test_strip_tab_ansi_SOURCES = \
1691         src/test/test-strip-tab-ansi.c
1692
1693 test_strip_tab_ansi_LDADD = \
1694         libsystemd-shared.la
1695
1696 test_daemon_SOURCES = \
1697         src/test/test-daemon.c
1698
1699 test_daemon_LDADD = \
1700         libsystemd-internal.la \
1701         libsystemd-shared.la
1702
1703 test_cgroup_SOURCES = \
1704         src/test/test-cgroup.c
1705
1706 test_cgroup_LDADD = \
1707         libsystemd-label.la \
1708         libsystemd-shared.la \
1709         libsystemd-internal.la
1710
1711 test_cgroup_mask_SOURCES = \
1712         src/test/test-cgroup-mask.c
1713
1714 test_cgroup_mask_CPPFLAGS = \
1715         $(AM_CPPFLAGS) \
1716         -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1717
1718 test_cgroup_mask_CFLAGS = \
1719         $(AM_CFLAGS) \
1720         $(SECCOMP_CFLAGS)
1721
1722 test_cgroup_mask_LDADD = \
1723         libsystemd-core.la \
1724         $(RT_LIBS)
1725
1726 test_cgroup_util_SOURCES = \
1727         src/test/test-cgroup-util.c
1728
1729 test_cgroup_util_LDADD = \
1730         libsystemd-label.la \
1731         libsystemd-internal.la \
1732         libsystemd-shared.la
1733
1734 test_env_replace_SOURCES = \
1735         src/test/test-env-replace.c
1736
1737 test_env_replace_LDADD = \
1738         libsystemd-shared.la
1739
1740 test_strbuf_SOURCES = \
1741         src/test/test-strbuf.c
1742
1743 test_strbuf_LDADD = \
1744         libsystemd-shared.la
1745
1746 test_strv_SOURCES = \
1747         src/test/test-strv.c
1748
1749 test_strv_LDADD = \
1750         libsystemd-units.la \
1751         libsystemd-internal.la \
1752         libsystemd-shared.la
1753
1754 test_path_util_SOURCES = \
1755         src/test/test-path-util.c
1756
1757 test_path_util_LDADD = \
1758         libsystemd-shared.la
1759
1760 test_strxcpyx_SOURCES = \
1761         src/test/test-strxcpyx.c
1762
1763 test_strxcpyx_LDADD = \
1764         libsystemd-shared.la
1765
1766 test_install_SOURCES = \
1767         src/test/test-install.c
1768
1769 test_install_LDADD = \
1770         libsystemd-units.la \
1771         libsystemd-label.la \
1772         libsystemd-shared.la \
1773         libsystemd-internal.la
1774
1775 test_watchdog_SOURCES = \
1776         src/test/test-watchdog.c
1777
1778 test_watchdog_LDADD = \
1779         libsystemd-shared.la
1780
1781 test_sched_prio_SOURCES = \
1782         src/test/test-sched-prio.c
1783
1784 test_sched_prio_CPPFLAGS = \
1785         $(AM_CPPFLAGS) \
1786         -DTEST_DIR=\"$(abs_top_srcdir)/test\"
1787
1788 test_sched_prio_CFLAGS = \
1789         $(AM_CFLAGS) \
1790         $(SECCOMP_CFLAGS)
1791
1792 test_sched_prio_LDADD = \
1793         libsystemd-core.la \
1794         $(RT_LIBS)
1795
1796 test_conf_files_SOURCES = \
1797         src/test/test-conf-files.c
1798
1799 test_conf_files_LDADD = \
1800         libsystemd-shared.la
1801
1802 test_bus_policy_SOURCES = \
1803         src/bus-proxyd/test-bus-policy.c \
1804         src/bus-proxyd/bus-policy.c \
1805         src/bus-proxyd/bus-policy.h
1806
1807 test_bus_policy_LDADD = \
1808         libsystemd-capability.la \
1809         libsystemd-internal.la \
1810         libsystemd-shared.la
1811
1812 # ------------------------------------------------------------------------------
1813 ## .PHONY so it always rebuilds it
1814 .PHONY: coverage lcov-run lcov-report coverage-sync
1815
1816 # run lcov from scratch, always
1817 coverage: all
1818         $(MAKE) lcov-run
1819         $(MAKE) lcov-report
1820
1821 coverage_dir = coverage
1822 coverage_opts = --base-directory $(srcdir) --directory $(builddir) --rc 'geninfo_adjust_src_path=$(abspath $(srcdir))=>$(abspath $(builddir))'
1823
1824 if ENABLE_COVERAGE
1825 # reset run coverage tests
1826 lcov-run:
1827         @rm -rf $(coverage_dir)
1828         lcov $(coverage_opts) --zerocounters
1829         -$(MAKE) check
1830
1831 # generate report based on current coverage data
1832 lcov-report:
1833         $(MKDIR_P) $(coverage_dir)
1834         lcov $(coverage_opts) --compat-libtool --capture --no-external \
1835                 | sed 's|$(abspath $(builddir))|$(abspath $(srcdir))|' > $(coverage_dir)/.lcov.info
1836         genhtml -t "systemd test coverage" -o $(coverage_dir) $(coverage_dir)/.lcov.info
1837         @echo "Coverage report generated in $(abs_builddir)/$(coverage_dir)/index.html"
1838
1839 # lcov doesn't work properly with vpath builds, make sure that bad
1840 # output is not uploaded by mistake.
1841 coverage-sync: coverage
1842         test "$(builddir)" = "$(srcdir)"
1843         rsync -rlv --delete --omit-dir-times coverage/ $(www_target)/coverage
1844
1845 else
1846 lcov-run lcov-report:
1847         echo "Need to reconfigure with --enable-coverage"
1848 endif
1849
1850 # ------------------------------------------------------------------------------
1851 systemd_analyze_SOURCES = \
1852         src/analyze/analyze.c \
1853         src/analyze/analyze-verify.c \
1854         src/analyze/analyze-verify.h
1855
1856 systemd_verify_CFLAGS = \
1857         $(AM_CFLAGS) \
1858         $(SECCOMP_CFLAGS)
1859
1860 systemd_analyze_LDADD = \
1861         libsystemd-core.la \
1862         libsystemd-internal.la \
1863         libsystemd-shared.la \
1864         $(RT_LIBS)
1865
1866 # ------------------------------------------------------------------------------
1867 systemd_initctl_SOURCES = \
1868         src/initctl/initctl.c
1869
1870 systemd_initctl_LDADD = \
1871         libsystemd-internal.la \
1872         libsystemd-shared.la
1873
1874 # ------------------------------------------------------------------------------
1875 systemd_update_utmp_SOURCES = \
1876         src/update-utmp/update-utmp.c
1877
1878 systemd_update_utmp_CFLAGS = \
1879         $(AM_CFLAGS) \
1880         $(AUDIT_CFLAGS)
1881
1882 systemd_update_utmp_LDADD = \
1883         libsystemd-internal.la \
1884         libsystemd-shared.la \
1885         $(AUDIT_LIBS)
1886
1887 # ------------------------------------------------------------------------------
1888 systemd_update_done_SOURCES = \
1889         src/update-done/update-done.c
1890
1891 systemd_update_done_LDADD = \
1892         libsystemd-internal.la \
1893         libsystemd-label.la \
1894         libsystemd-shared.la
1895
1896 # ------------------------------------------------------------------------------
1897 systemd_shutdownd_SOURCES = \
1898         src/shutdownd/shutdownd.c
1899
1900 systemd_shutdownd_LDADD = \
1901         libsystemd-label.la \
1902         libsystemd-internal.la \
1903         libsystemd-shared.la
1904
1905 dist_doc_DATA += \
1906         src/systemd/sd-shutdown.h
1907
1908 # ------------------------------------------------------------------------------
1909 systemd_shutdown_SOURCES = \
1910         src/core/umount.c \
1911         src/core/umount.h \
1912         src/core/shutdown.c \
1913         src/core/mount-setup.c \
1914         src/core/mount-setup.h \
1915         src/core/killall.h \
1916         src/core/killall.c
1917
1918 systemd_shutdown_LDADD = \
1919         libsystemd-label.la \
1920         libudev-internal.la \
1921         libsystemd-shared.la
1922
1923 # ------------------------------------------------------------------------------
1924 if HAVE_KMOD
1925 systemd_modules_load_SOURCES = \
1926         src/modules-load/modules-load.c
1927
1928 systemd_modules_load_CFLAGS = \
1929         $(AM_CFLAGS) \
1930         $(KMOD_CFLAGS)
1931
1932 systemd_modules_load_LDADD = \
1933         libsystemd-shared.la \
1934         $(KMOD_LIBS)
1935
1936 rootlibexec_PROGRAMS += \
1937         systemd-modules-load
1938
1939 nodist_systemunit_DATA += \
1940         units/systemd-modules-load.service
1941
1942 SYSINIT_TARGET_WANTS += \
1943         systemd-modules-load.service
1944
1945 if ENABLE_TMPFILES
1946 nodist_systemunit_DATA += \
1947         units/kmod-static-nodes.service
1948
1949 SYSINIT_TARGET_WANTS += \
1950         kmod-static-nodes.service
1951 endif
1952 endif
1953
1954 EXTRA_DIST += \
1955         units/systemd-modules-load.service.in \
1956         units/kmod-static-nodes.service.in
1957
1958 # ------------------------------------------------------------------------------
1959 if ENABLE_TMPFILES
1960 systemd_tmpfiles_SOURCES = \
1961         src/tmpfiles/tmpfiles.c
1962
1963 systemd_tmpfiles_LDADD = \
1964         libsystemd-units.la \
1965         libsystemd-label.la \
1966         libsystemd-capability.la \
1967         libsystemd-internal.la \
1968         libsystemd-shared.la
1969
1970 rootbin_PROGRAMS += \
1971         systemd-tmpfiles
1972
1973 dist_systemunit_DATA += \
1974         units/systemd-tmpfiles-clean.timer
1975
1976 nodist_systemunit_DATA += \
1977         units/systemd-tmpfiles-setup-dev.service \
1978         units/systemd-tmpfiles-setup.service \
1979         units/systemd-tmpfiles-clean.service
1980
1981 nodist_tmpfiles_DATA = \
1982         tmpfiles.d/etc.conf
1983
1984 dist_tmpfiles_DATA = \
1985         tmpfiles.d/systemd.conf \
1986         tmpfiles.d/systemd-nologin.conf \
1987         tmpfiles.d/systemd-remote.conf \
1988         tmpfiles.d/tmp.conf \
1989         tmpfiles.d/x11.conf \
1990         tmpfiles.d/var.conf
1991
1992 if HAVE_SYSV_COMPAT
1993 dist_tmpfiles_DATA += \
1994         tmpfiles.d/legacy.conf
1995 endif
1996
1997 SYSINIT_TARGET_WANTS += \
1998         systemd-tmpfiles-setup-dev.service \
1999         systemd-tmpfiles-setup.service
2000
2001 dist_zshcompletion_DATA += \
2002         shell-completion/zsh/_systemd-tmpfiles
2003
2004 TIMERS_TARGET_WANTS += \
2005         systemd-tmpfiles-clean.timer
2006
2007 INSTALL_DIRS += \
2008         $(tmpfilesdir) \
2009         $(sysconfdir)/tmpfiles.d
2010 endif
2011
2012 EXTRA_DIST += \
2013         tmpfiles.d/etc.conf.m4 \
2014         units/systemd-tmpfiles-setup-dev.service.in \
2015         units/systemd-tmpfiles-setup.service.in \
2016         units/systemd-tmpfiles-clean.service.in
2017
2018 CLEANFILES += \
2019         tmpfiles.d/etc.conf
2020
2021 # ------------------------------------------------------------------------------
2022 if ENABLE_SYSUSERS
2023 systemd_sysusers_SOURCES = \
2024         src/sysusers/sysusers.c
2025
2026 systemd_sysusers_LDADD = \
2027         libsystemd-units.la \
2028         libsystemd-label.la \
2029         libsystemd-capability.la \
2030         libsystemd-internal.la \
2031         libsystemd-shared.la
2032
2033 rootbin_PROGRAMS += \
2034         systemd-sysusers
2035
2036 nodist_systemunit_DATA += \
2037         units/systemd-sysusers.service
2038
2039 SYSINIT_TARGET_WANTS += \
2040         systemd-sysusers.service
2041
2042 dist_sysusers_DATA = \
2043         sysusers.d/systemd.conf \
2044         sysusers.d/systemd-remote.conf
2045
2046 nodist_sysusers_DATA = \
2047         sysusers.d/basic.conf
2048
2049 EXTRA_DIST += \
2050         units/systemd-sysusers.service.in \
2051         sysusers.d/basic.conf.in
2052
2053 CLEANFILES += \
2054         sysusers.d/basic.conf
2055
2056 INSTALL_DIRS += \
2057         $(sysusersdir)
2058 endif
2059
2060 # ------------------------------------------------------------------------------
2061 dist_factory_etc_DATA = \
2062         factory/etc/nsswitch.conf
2063
2064 if HAVE_PAM
2065 dist_factory_pam_DATA = \
2066         factory/etc/pam.d/system-auth \
2067         factory/etc/pam.d/other
2068 endif
2069
2070 # ------------------------------------------------------------------------------
2071 if ENABLE_FIRSTBOOT
2072 systemd_firstboot_SOURCES = \
2073         src/firstboot/firstboot.c
2074
2075 systemd_firstboot_LDADD = \
2076         libsystemd-units.la \
2077         libsystemd-label.la \
2078         libsystemd-capability.la \
2079         libsystemd-internal.la \
2080         libsystemd-shared.la \
2081         -lcrypt
2082
2083 rootbin_PROGRAMS += \
2084         systemd-firstboot
2085
2086 nodist_systemunit_DATA += \
2087         units/systemd-firstboot.service
2088
2089 EXTRA_DIST += \
2090         units/systemd-firstboot.service.in
2091
2092 SYSINIT_TARGET_WANTS += \
2093         systemd-firstboot.service
2094 endif
2095
2096 # ------------------------------------------------------------------------------
2097 systemd_machine_id_setup_SOURCES = \
2098         src/machine-id-setup/machine-id-setup-main.c \
2099         src/core/machine-id-setup.c \
2100         src/core/machine-id-setup.h
2101
2102 systemd_machine_id_setup_LDADD = \
2103         libsystemd-label.la \
2104         libsystemd-internal.la \
2105         libsystemd-shared.la
2106
2107 # ------------------------------------------------------------------------------
2108 systemd_sysctl_SOURCES = \
2109         src/sysctl/sysctl.c
2110
2111 systemd_sysctl_LDADD = \
2112         libsystemd-shared.la
2113
2114 # ------------------------------------------------------------------------------
2115 systemd_sleep_SOURCES = \
2116         src/sleep/sleep.c
2117
2118 systemd_sleep_LDADD = \
2119         libsystemd-shared.la
2120
2121 # ------------------------------------------------------------------------------
2122 systemd_fsck_SOURCES = \
2123         src/fsck/fsck.c
2124
2125 systemd_fsck_LDADD = \
2126         libsystemd-internal.la \
2127         libudev-internal.la \
2128         libsystemd-shared.la
2129
2130 # ------------------------------------------------------------------------------
2131 systemd_ac_power_SOURCES = \
2132         src/ac-power/ac-power.c
2133
2134 systemd_ac_power_LDADD = \
2135         libudev-internal.la \
2136         libsystemd-shared.la
2137
2138 # ------------------------------------------------------------------------------
2139 systemd_detect_virt_SOURCES = \
2140         src/detect-virt/detect-virt.c
2141
2142 systemd_detect_virt_LDADD = \
2143         libsystemd-shared.la
2144
2145 INSTALL_EXEC_HOOKS += \
2146         systemd-detect-virt-install-hook
2147
2148 # ------------------------------------------------------------------------------
2149 systemd_delta_SOURCES = \
2150         src/delta/delta.c
2151
2152 systemd_delta_LDADD = \
2153         libsystemd-shared.la
2154
2155 # ------------------------------------------------------------------------------
2156 systemd_getty_generator_SOURCES = \
2157         src/getty-generator/getty-generator.c
2158
2159 systemd_getty_generator_LDADD = \
2160         libsystemd-label.la \
2161         libsystemd-shared.la
2162
2163 # ------------------------------------------------------------------------------
2164 systemd_debug_generator_SOURCES = \
2165         src/debug-generator/debug-generator.c
2166
2167 systemd_debug_generator_LDADD = \
2168         libsystemd-label.la \
2169         libsystemd-shared.la
2170
2171 # ------------------------------------------------------------------------------
2172 systemd_fstab_generator_SOURCES = \
2173         src/fstab-generator/fstab-generator.c \
2174         src/core/mount-setup.c
2175
2176 systemd_fstab_generator_LDADD = \
2177         libsystemd-label.la \
2178         libsystemd-shared.la
2179
2180 # ------------------------------------------------------------------------------
2181 systemd_system_update_generator_SOURCES = \
2182         src/system-update-generator/system-update-generator.c
2183
2184 systemd_system_update_generator_LDADD = \
2185         libsystemd-label.la \
2186         libsystemd-shared.la
2187
2188 # ------------------------------------------------------------------------------
2189 if ENABLE_HIBERNATE
2190 systemgenerator_PROGRAMS += \
2191         systemd-hibernate-resume-generator
2192
2193 rootlibexec_PROGRAMS += \
2194         systemd-hibernate-resume
2195
2196 systemd_hibernate_resume_SOURCES = \
2197         src/hibernate-resume/hibernate-resume.c
2198
2199 systemd_hibernate_resume_LDADD = \
2200         libsystemd-internal.la \
2201         libsystemd-shared.la
2202
2203 systemd_hibernate_resume_generator_SOURCES = \
2204         src/hibernate-resume/hibernate-resume-generator.c
2205
2206 systemd_hibernate_resume_generator_LDADD = \
2207         libsystemd-label.la \
2208         libsystemd-shared.la
2209
2210 EXTRA_DIST += \
2211         units/systemd-hibernate.service.in \
2212         units/systemd-hibernate-resume@.service.in \
2213         units/systemd-hybrid-sleep.service.in
2214
2215 dist_systemunit_DATA += \
2216         units/hibernate.target \
2217         units/hybrid-sleep.target
2218
2219 nodist_systemunit_DATA += \
2220         units/systemd-hibernate.service \
2221         units/systemd-hibernate-resume@.service \
2222         units/systemd-hybrid-sleep.service
2223 endif
2224
2225 # ------------------------------------------------------------------------------
2226 if ENABLE_EFI
2227 systemgenerator_PROGRAMS +=  \
2228         systemd-efi-boot-generator
2229
2230 systemd_efi_boot_generator_SOURCES = \
2231         src/efi-boot-generator/efi-boot-generator.c
2232
2233 systemd_efi_boot_generator_LDADD = \
2234         libsystemd-label.la \
2235         libsystemd-shared.la
2236
2237 # ------------------------------------------------------------------------------
2238 bootctl_SOURCES = \
2239         src/boot/boot.h \
2240         src/boot/boot-loader.h \
2241         src/boot/bootctl.c \
2242         src/boot/boot-loader.c \
2243         src/boot/boot-efi.c
2244
2245 bootctl_LDADD = \
2246         libsystemd-shared.la \
2247         libsystemd-internal.la
2248
2249 bin_PROGRAMS += \
2250         bootctl
2251
2252 dist_bashcompletion_DATA += \
2253         shell-completion/bash/bootctl
2254
2255 dist_zshcompletion_DATA += \
2256         shell-completion/zsh/_bootctl
2257
2258 endif
2259
2260 # ------------------------------------------------------------------------------
2261 if HAVE_BLKID
2262 systemgenerator_PROGRAMS +=  \
2263         systemd-gpt-auto-generator
2264
2265 systemd_gpt_auto_generator_SOURCES = \
2266         src/gpt-auto-generator/gpt-auto-generator.c \
2267         src/shared/blkid-util.h
2268
2269 systemd_gpt_auto_generator_LDADD = \
2270         libsystemd-label.la \
2271         libsystemd-internal.la \
2272         libudev-internal.la \
2273         libsystemd-shared.la \
2274         $(BLKID_LIBS)
2275
2276 systemd_gpt_auto_generator_CFLAGS = \
2277         $(AM_CFLAGS) \
2278         $(BLKID_CFLAGS)
2279 endif
2280
2281 # ------------------------------------------------------------------------------
2282 if ENABLE_KDBUS
2283 systemgenerator_PROGRAMS +=  \
2284         systemd-dbus1-generator
2285
2286 systemd_dbus1_generator_SOURCES = \
2287         src/dbus1-generator/dbus1-generator.c
2288
2289 systemd_dbus1_generator_LDADD = \
2290         libsystemd-label.la \
2291         libsystemd-shared.la \
2292         libsystemd-internal.la
2293
2294 dbus1-generator-install-hook:
2295         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(usergeneratordir)
2296         $(AM_V_RM)rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2297         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(systemgeneratordir)/systemd-dbus1-generator $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2298
2299 dbus1-generator-uninstall-hook:
2300         rm -f $(DESTDIR)$(usergeneratordir)/systemd-dbus1-generator
2301
2302 INSTALL_EXEC_HOOKS += dbus1-generator-install-hook
2303 UNINSTALL_EXEC_HOOKS += dbus1-generator-uninstall-hook
2304 endif
2305
2306 # ------------------------------------------------------------------------------
2307 systemd_sysv_generator_SOURCES = \
2308         src/sysv-generator/sysv-generator.c
2309
2310 systemd_sysv_generator_LDADD = \
2311         libsystemd-core.la \
2312         libsystemd-label.la \
2313         libsystemd-shared.la
2314
2315 # ------------------------------------------------------------------------------
2316 systemd_rc_local_generator_SOURCES = \
2317         src/rc-local-generator/rc-local-generator.c
2318
2319 systemd_rc_local_generator_LDADD = \
2320         libsystemd-label.la \
2321         libsystemd-shared.la
2322
2323 # ------------------------------------------------------------------------------
2324 systemd_remount_fs_SOURCES = \
2325         src/remount-fs/remount-fs.c \
2326         src/core/mount-setup.c \
2327         src/core/mount-setup.h
2328
2329 systemd_remount_fs_LDADD = \
2330         libsystemd-label.la \
2331         libsystemd-shared.la
2332
2333 # ------------------------------------------------------------------------------
2334 systemd_cgroups_agent_SOURCES = \
2335         src/cgroups-agent/cgroups-agent.c
2336
2337 systemd_cgroups_agent_LDADD = \
2338         libsystemd-internal.la \
2339         libsystemd-shared.la
2340
2341 # ------------------------------------------------------------------------------
2342 systemd_escape_SOURCES = \
2343         src/escape/escape.c
2344
2345 systemd_escape_LDADD = \
2346         libsystemd-shared.la
2347
2348 # -----------------------------------------------------------------------------
2349 systemctl_SOURCES = \
2350         src/systemctl/systemctl.c
2351
2352 systemctl_LDADD = \
2353         libsystemd-units.la \
2354         libsystemd-label.la \
2355         libsystemd-internal.la \
2356         libsystemd-logs.la \
2357         libsystemd-journal-internal.la \
2358         libsystemd-shared.la
2359
2360 # ------------------------------------------------------------------------------
2361 systemd_notify_SOURCES = \
2362         src/notify/notify.c
2363
2364 systemd_notify_LDADD = \
2365         libsystemd-internal.la \
2366         libsystemd-shared.la
2367
2368 # ------------------------------------------------------------------------------
2369 systemd_path_SOURCES = \
2370         src/path/path.c
2371
2372 systemd_path_LDADD = \
2373         libsystemd-internal.la \
2374         libsystemd-shared.la
2375
2376 # ------------------------------------------------------------------------------
2377 systemd_ask_password_SOURCES = \
2378         src/ask-password/ask-password.c
2379
2380 systemd_ask_password_LDADD = \
2381         libsystemd-label.la \
2382         libsystemd-shared.la
2383
2384 # ------------------------------------------------------------------------------
2385 systemd_reply_password_SOURCES = \
2386         src/reply-password/reply-password.c
2387
2388 systemd_reply_password_LDADD = \
2389         libsystemd-shared.la
2390
2391 # ------------------------------------------------------------------------------
2392 systemd_cgls_SOURCES = \
2393         src/cgls/cgls.c
2394
2395 systemd_cgls_LDADD = \
2396         libsystemd-internal.la \
2397         libsystemd-shared.la
2398
2399 # ------------------------------------------------------------------------------
2400 systemd_cgtop_SOURCES = \
2401         src/cgtop/cgtop.c
2402
2403 systemd_cgtop_LDADD = \
2404         libsystemd-shared.la
2405
2406 # ------------------------------------------------------------------------------
2407 systemd_nspawn_SOURCES = \
2408         src/nspawn/nspawn.c \
2409         src/core/mount-setup.c \
2410         src/core/mount-setup.h \
2411         src/core/loopback-setup.c \
2412         src/core/loopback-setup.h
2413
2414 systemd_nspawn_CFLAGS = \
2415         $(AM_CFLAGS) \
2416         $(SECCOMP_CFLAGS) \
2417         $(BLKID_CFLAGS)
2418
2419 systemd_nspawn_LDADD = \
2420         libsystemd-label.la \
2421         libsystemd-capability.la \
2422         libsystemd-internal.la \
2423         libudev-internal.la \
2424         libsystemd-shared.la \
2425         $(BLKID_LIBS)
2426
2427 if HAVE_SECCOMP
2428 systemd_nspawn_LDADD += \
2429         libsystemd-seccomp.la \
2430         $(SECCOMP_LIBS)
2431 endif
2432
2433 # ------------------------------------------------------------------------------
2434 systemd_run_SOURCES = \
2435         src/run/run.c
2436
2437 systemd_run_LDADD = \
2438         libsystemd-label.la \
2439         libsystemd-capability.la \
2440         libsystemd-internal.la \
2441         libsystemd-shared.la
2442
2443 # ------------------------------------------------------------------------------
2444 systemd_bus_proxyd_SOURCES = \
2445         src/bus-proxyd/bus-proxyd.c \
2446         src/bus-proxyd/bus-policy.c \
2447         src/bus-proxyd/bus-policy.h
2448
2449 systemd_bus_proxyd_LDADD = \
2450         libsystemd-capability.la \
2451         libsystemd-internal.la \
2452         libsystemd-shared.la
2453
2454 bus-proxyd-install-hook:
2455         $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(bindir)
2456         $(AM_V_RM)rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2457         $(AM_V_LN)$(LN_S) --relative -f $(DESTDIR)$(rootlibexecdir)/systemd-bus-proxyd $(DESTDIR)$(bindir)/systemd-stdio-bridge
2458
2459 bus-proxyd-uninstall-hook:
2460         rm -f $(DESTDIR)$(bindir)/systemd-stdio-bridge
2461
2462 INSTALL_EXEC_HOOKS += bus-proxyd-install-hook
2463 UNINSTALL_EXEC_HOOKS += bus-proxyd-uninstall-hook
2464
2465 if ENABLE_KDBUS
2466 nodist_systemunit_DATA += \
2467         units/systemd-bus-proxyd@.service
2468
2469 dist_systemunit_DATA += \
2470         units/systemd-bus-proxyd.socket
2471
2472 dist_userunit_DATA += \
2473         units/user/systemd-bus-proxyd.socket \
2474         units/user/systemd-bus-proxyd@.service
2475 endif
2476
2477 EXTRA_DIST += \
2478         units/systemd-bus-proxyd@.service.in
2479
2480 # ------------------------------------------------------------------------------
2481 systemd_tty_ask_password_agent_SOURCES = \
2482         src/tty-ask-password-agent/tty-ask-password-agent.c
2483
2484 systemd_tty_ask_password_agent_LDADD = \
2485         libsystemd-label.la \
2486         libsystemd-shared.la
2487
2488 # ------------------------------------------------------------------------------
2489 libsystemd_internal_la_SOURCES = \
2490         src/systemd/sd-bus.h \
2491         src/systemd/sd-bus-protocol.h \
2492         src/systemd/sd-bus-vtable.h \
2493         src/systemd/sd-utf8.h \
2494         src/systemd/sd-event.h \
2495         src/systemd/sd-rtnl.h \
2496         src/systemd/sd-resolve.h \
2497         src/systemd/sd-login.h \
2498         src/systemd/sd-id128.h \
2499         src/systemd/sd-daemon.h \
2500         src/systemd/sd-path.h \
2501         src/systemd/sd-network.h \
2502         src/libsystemd/sd-bus/sd-bus.c \
2503         src/libsystemd/sd-bus/bus-control.c \
2504         src/libsystemd/sd-bus/bus-control.h \
2505         src/libsystemd/sd-bus/bus-error.c \
2506         src/libsystemd/sd-bus/bus-error.h \
2507         src/libsystemd/sd-bus/bus-internal.c \
2508         src/libsystemd/sd-bus/bus-internal.h \
2509         src/libsystemd/sd-bus/bus-socket.c \
2510         src/libsystemd/sd-bus/bus-socket.h \
2511         src/libsystemd/sd-bus/bus-kernel.c \
2512         src/libsystemd/sd-bus/bus-kernel.h \
2513         src/libsystemd/sd-bus/bus-container.c \
2514         src/libsystemd/sd-bus/bus-container.h \
2515         src/libsystemd/sd-bus/bus-message.c \
2516         src/libsystemd/sd-bus/bus-message.h \
2517         src/libsystemd/sd-bus/bus-creds.c \
2518         src/libsystemd/sd-bus/bus-creds.h \
2519         src/libsystemd/sd-bus/bus-signature.c \
2520         src/libsystemd/sd-bus/bus-signature.h \
2521         src/libsystemd/sd-bus/bus-type.c \
2522         src/libsystemd/sd-bus/bus-type.h \
2523         src/libsystemd/sd-bus/bus-match.c \
2524         src/libsystemd/sd-bus/bus-match.h \
2525         src/libsystemd/sd-bus/bus-bloom.c \
2526         src/libsystemd/sd-bus/bus-bloom.h \
2527         src/libsystemd/sd-bus/bus-introspect.c \
2528         src/libsystemd/sd-bus/bus-introspect.h \
2529         src/libsystemd/sd-bus/bus-objects.c \
2530         src/libsystemd/sd-bus/bus-objects.h \
2531         src/libsystemd/sd-bus/bus-gvariant.c \
2532         src/libsystemd/sd-bus/bus-gvariant.h \
2533         src/libsystemd/sd-bus/bus-convenience.c \
2534         src/libsystemd/sd-bus/bus-track.c \
2535         src/libsystemd/sd-bus/bus-track.h \
2536         src/libsystemd/sd-bus/bus-util.c \
2537         src/libsystemd/sd-bus/bus-util.h \
2538         src/libsystemd/sd-bus/bus-slot.c \
2539         src/libsystemd/sd-bus/bus-slot.h \
2540         src/libsystemd/sd-bus/bus-protocol.h \
2541         src/libsystemd/sd-bus/kdbus.h \
2542         src/libsystemd/sd-utf8/sd-utf8.c \
2543         src/libsystemd/sd-event/sd-event.c \
2544         src/libsystemd/sd-event/event-util.h \
2545         src/libsystemd/sd-rtnl/sd-rtnl.c \
2546         src/libsystemd/sd-rtnl/rtnl-internal.h \
2547         src/libsystemd/sd-rtnl/rtnl-message.c \
2548         src/libsystemd/sd-rtnl/rtnl-types.h \
2549         src/libsystemd/sd-rtnl/rtnl-types.c \
2550         src/libsystemd/sd-rtnl/rtnl-util.h \
2551         src/libsystemd/sd-rtnl/rtnl-util.c \
2552         src/libsystemd/sd-rtnl/local-addresses.h \
2553         src/libsystemd/sd-rtnl/local-addresses.c \
2554         src/libsystemd/sd-id128/sd-id128.c \
2555         src/libsystemd/sd-daemon/sd-daemon.c \
2556         src/libsystemd/sd-login/sd-login.c \
2557         src/libsystemd/sd-path/sd-path.c \
2558         src/libsystemd/sd-network/sd-network.c \
2559         src/libsystemd/sd-network/network-util.h \
2560         src/libsystemd/sd-network/network-util.c
2561
2562 nodist_libsystemd_internal_la_SOURCES = \
2563         src/libsystemd/libsystemd.sym \
2564         src/libsystemd/sd-bus/bus-error-mapping.c
2565
2566 libsystemd_internal_la_CFLAGS = \
2567         $(AM_CFLAGS) \
2568         -pthread
2569
2570 libsystemd_internal_la_LIBADD = \
2571         $(RT_LIBS)
2572
2573 libsystemd_resolve_la_SOURCES = \
2574         src/libsystemd/sd-resolve/sd-resolve.c \
2575         src/libsystemd/sd-resolve/resolve-util.h
2576
2577 libsystemd_resolve_la_CFLAGS = \
2578         $(AM_CFLAGS) \
2579         -pthread
2580
2581 libsystemd_resolve_la_LIBADD = \
2582         -lresolv
2583
2584 noinst_LTLIBRARIES += \
2585         libsystemd-internal.la \
2586         libsystemd-resolve.la
2587
2588 libsystemd_dump_la_SOURCES = \
2589         src/libsystemd/sd-bus/bus-dump.c \
2590         src/libsystemd/sd-bus/bus-dump.h
2591
2592 libsystemd_dump_la_CFLAGS = \
2593         $(AM_CFLAGS) \
2594         $(CAP_CFLAGS)
2595
2596 noinst_LTLIBRARIES += \
2597         libsystemd-dump.la
2598
2599 EXTRA_DIST += \
2600         src/libsystemd/libsystemd.sym.m4 \
2601         src/libsystemd/libsystemd.pc.in \
2602         src/libsystemd/sd-bus/bus-error-mapping.gperf \
2603         src/libsystemd/sd-bus/DIFFERENCES \
2604         src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
2605
2606 CLEANFILES += \
2607         src/libsystemd/libsystemd.sym \
2608         src/libsystemd/sd-bus/bus-error-mapping.c
2609
2610 BUILT_SOURCES += \
2611         src/libsystemd/libsystemd.sym
2612
2613 libsystemd_la_SOURCES = \
2614         $(libsystemd_internal_la_SOURCES) \
2615         $(libsystemd_resolve_la_SOURCES) \
2616         $(libsystemd_journal_internal_la_SOURCES)
2617
2618 nodist_libsystemd_la_SOURCES = \
2619         $(nodist_libsystemd_internal_la_SOURCES)
2620
2621 libsystemd_la_CFLAGS = \
2622         $(libsystemd_internal_la_CFLAGS) \
2623         $(libsystemd_resolve_la_CFLAGS) \
2624         $(libsystemd_journal_internal_la_CFLAGS)
2625
2626 libsystemd_la_LDFLAGS = \
2627         $(AM_LDFLAGS) \
2628         -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
2629         -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
2630
2631 libsystemd_la_LIBADD = \
2632         libsystemd-shared.la \
2633         $(libsystemd_internal_la_LIBADD) \
2634         $(libsystemd_journal_internal_la_LIBADD) \
2635         $(libsystemd_resolve_la_LIBADD)
2636
2637 libsystemd-install-hook:
2638         libname=libsystemd.so && $(move-to-rootlibdir)
2639
2640 libsystemd-uninstall-hook:
2641         rm -f $(DESTDIR)$(rootlibdir)/libsystemd.so*
2642
2643 INSTALL_EXEC_HOOKS += libsystemd-install-hook
2644 UNINSTALL_EXEC_HOOKS += libsystemd-uninstall-hook
2645
2646 pkgconfiglib_DATA += \
2647         src/libsystemd/libsystemd.pc
2648
2649 pkginclude_HEADERS += \
2650         src/systemd/sd-login.h \
2651         src/systemd/sd-id128.h \
2652         src/systemd/sd-daemon.h
2653
2654 if ENABLE_KDBUS
2655 pkginclude_HEADERS += \
2656         src/systemd/sd-bus.h \
2657         src/systemd/sd-bus-protocol.h \
2658         src/systemd/sd-bus-vtable.h \
2659         src/systemd/sd-utf8.h \
2660         src/systemd/sd-event.h \
2661         src/systemd/sd-rtnl.h \
2662         src/systemd/sd-resolve.h \
2663         src/systemd/sd-path.h
2664 endif
2665
2666 lib_LTLIBRARIES += \
2667         libsystemd.la
2668
2669 tests += \
2670         test-bus-marshal \
2671         test-bus-signature \
2672         test-bus-chat \
2673         test-bus-cleanup \
2674         test-bus-server \
2675         test-bus-match \
2676         test-bus-kernel \
2677         test-bus-kernel-bloom \
2678         test-bus-kernel-benchmark \
2679         test-bus-zero-copy \
2680         test-bus-introspect \
2681         test-bus-objects \
2682         test-bus-error \
2683         test-bus-creds \
2684         test-bus-gvariant \
2685         test-event \
2686         test-rtnl \
2687         test-resolve
2688
2689 bin_PROGRAMS += \
2690         busctl
2691
2692 test_bus_marshal_SOURCES = \
2693         src/libsystemd/sd-bus/test-bus-marshal.c
2694
2695 test_bus_marshal_LDADD = \
2696         libsystemd-internal.la \
2697         libsystemd-shared.la \
2698         libsystemd-dump.la \
2699         libsystemd-capability.la \
2700         $(GLIB_LIBS) \
2701         $(DBUS_LIBS) \
2702         $(CAP_LIBS)
2703
2704 test_bus_marshal_CFLAGS = \
2705         $(AM_CFLAGS) \
2706         $(GLIB_CFLAGS) \
2707         $(DBUS_CFLAGS) \
2708         $(CAP_CFLAGS)
2709
2710 test_bus_signature_SOURCES = \
2711         src/libsystemd/sd-bus/test-bus-signature.c
2712
2713 test_bus_signature_LDADD = \
2714         libsystemd-shared.la \
2715         libsystemd-internal.la
2716
2717 test_bus_chat_SOURCES = \
2718         src/libsystemd/sd-bus/test-bus-chat.c
2719
2720 test_bus_chat_CFLAGS = \
2721         $(AM_CFLAGS) \
2722         -pthread
2723
2724 test_bus_chat_LDADD = \
2725         libsystemd-internal.la \
2726         libsystemd-shared.la
2727
2728 test_bus_cleanup_SOURCES = \
2729         src/libsystemd/sd-bus/test-bus-cleanup.c
2730
2731 test_bus_cleanup_CFLAGS = \
2732         $(AM_CFLAGS) \
2733         $(SECCOMP_CFLAGS)
2734
2735 test_bus_cleanup_LDADD = \
2736         libsystemd-internal.la \
2737         libsystemd-shared.la
2738
2739 test_bus_server_SOURCES = \
2740         src/libsystemd/sd-bus/test-bus-server.c
2741
2742 test_bus_server_CFLAGS = \
2743         $(AM_CFLAGS) \
2744         -pthread
2745
2746 test_bus_server_LDADD = \
2747         libsystemd-internal.la \
2748         libsystemd-shared.la
2749
2750 test_bus_objects_SOURCES = \
2751         src/libsystemd/sd-bus/test-bus-objects.c
2752
2753 test_bus_objects_CFLAGS = \
2754         $(AM_CFLAGS) \
2755         $(CAP_CFLAGS) \
2756         -pthread
2757
2758 test_bus_objects_LDADD = \
2759         libsystemd-internal.la \
2760         libsystemd-shared.la \
2761         libsystemd-dump.la \
2762         libsystemd-capability.la \
2763         $(CAP_LIBS)
2764
2765 test_bus_error_SOURCES = \
2766         src/libsystemd/sd-bus/test-bus-error.c
2767
2768 test_bus_error_LDADD = \
2769         libsystemd-internal.la \
2770         libsystemd-shared.la
2771
2772 test_bus_gvariant_SOURCES = \
2773         src/libsystemd/sd-bus/test-bus-gvariant.c
2774
2775 test_bus_gvariant_LDADD = \
2776         libsystemd-internal.la \
2777         libsystemd-shared.la \
2778         libsystemd-dump.la \
2779         libsystemd-capability.la \
2780         $(GLIB_LIBS) \
2781         $(CAP_LIBS)
2782
2783 test_bus_gvariant_CFLAGS = \
2784         $(AM_CFLAGS) \
2785         $(GLIB_CFLAGS)
2786         $(CAP_CFLAGS)
2787
2788 test_bus_creds_SOURCES = \
2789         src/libsystemd/sd-bus/test-bus-creds.c
2790
2791 test_bus_creds_LDADD = \
2792         libsystemd-internal.la \
2793         libsystemd-shared.la \
2794         libsystemd-dump.la \
2795         libsystemd-capability.la
2796
2797 test_bus_match_SOURCES = \
2798         src/libsystemd/sd-bus/test-bus-match.c
2799
2800 test_bus_match_LDADD = \
2801         libsystemd-internal.la \
2802         libsystemd-shared.la
2803
2804 test_bus_kernel_SOURCES = \
2805         src/libsystemd/sd-bus/test-bus-kernel.c
2806
2807 test_bus_kernel_LDADD = \
2808         libsystemd-internal.la \
2809         libsystemd-shared.la \
2810         libsystemd-dump.la \
2811         libsystemd-capability.la \
2812         $(CAP_LIBS)
2813
2814 test_bus_kernel_CFLAGS = \
2815         $(AM_CFLAGS) \
2816         $(CAP_CFLAGS)
2817
2818 test_bus_kernel_bloom_SOURCES = \
2819         src/libsystemd/sd-bus/test-bus-kernel-bloom.c
2820
2821 test_bus_kernel_bloom_LDADD = \
2822         libsystemd-internal.la \
2823         libsystemd-shared.la
2824
2825 test_bus_kernel_benchmark_SOURCES = \
2826         src/libsystemd/sd-bus/test-bus-kernel-benchmark.c
2827
2828 test_bus_kernel_benchmark_LDADD = \
2829         libsystemd-internal.la \
2830         libsystemd-shared.la
2831
2832 test_bus_zero_copy_SOURCES = \
2833         src/libsystemd/sd-bus/test-bus-zero-copy.c
2834
2835 test_bus_zero_copy_LDADD = \
2836         libsystemd-internal.la \
2837         libsystemd-shared.la \
2838         libsystemd-dump.la \
2839         libsystemd-capability.la \
2840         $(CAP_LIBS)
2841
2842 test_bus_zero_copy_CFLAGS = \
2843         $(AM_CFLAGS) \
2844         $(CAP_CFLAGS)
2845
2846 test_bus_introspect_SOURCES = \
2847         src/libsystemd/sd-bus/test-bus-introspect.c
2848
2849 test_bus_introspect_LDADD = \
2850         libsystemd-internal.la \
2851         libsystemd-shared.la
2852
2853 test_event_SOURCES = \
2854         src/libsystemd/sd-event/test-event.c
2855
2856 test_event_LDADD = \
2857         libsystemd-internal.la \
2858         libsystemd-shared.la
2859
2860 test_rtnl_SOURCES = \
2861         src/libsystemd/sd-rtnl/test-rtnl.c
2862
2863 test_rtnl_LDADD = \
2864         libsystemd-internal.la \
2865         libsystemd-shared.la
2866
2867 test_resolve_SOURCES = \
2868         src/libsystemd/sd-resolve/test-resolve.c
2869
2870 test_resolve_LDADD = \
2871         libsystemd-resolve.la \
2872         libsystemd-internal.la \
2873         libsystemd-shared.la
2874
2875 test_resolve_CFLAGS = \
2876         $(AM_CFLAGS) \
2877         -pthread
2878
2879 busctl_SOURCES = \
2880         src/libsystemd/sd-bus/busctl.c
2881
2882 busctl_LDADD = \
2883         libsystemd-internal.la \
2884         libsystemd-shared.la \
2885         libsystemd-dump.la \
2886         libsystemd-capability.la \
2887         $(CAP_LIBS)
2888
2889 busctl_CFLAGS = \
2890         $(AM_CFLAGS) \
2891         $(CAP_CFLAGS)
2892
2893 # ------------------------------------------------------------------------------
2894 noinst_LTLIBRARIES += \
2895         libsystemd-network.la
2896
2897 libsystemd_network_la_CFLAGS = \
2898         $(AM_CFLAGS) \
2899         $(KMOD_CFLAGS)
2900
2901 libsystemd_network_la_SOURCES = \
2902         src/systemd/sd-dhcp-client.h \
2903         src/systemd/sd-dhcp-server.h \
2904         src/systemd/sd-dhcp-lease.h \
2905         src/systemd/sd-ipv4ll.h \
2906         src/systemd/sd-icmp6-nd.h \
2907         src/systemd/sd-dhcp6-client.h \
2908         src/systemd/sd-dhcp6-lease.h \
2909         src/libsystemd-network/sd-dhcp-client.c \
2910         src/libsystemd-network/sd-dhcp-server.c \
2911         src/libsystemd-network/dhcp-network.c \
2912         src/libsystemd-network/dhcp-option.c \
2913         src/libsystemd-network/dhcp-packet.c \
2914         src/libsystemd-network/dhcp-internal.h \
2915         src/libsystemd-network/dhcp-server-internal.h \
2916         src/libsystemd-network/dhcp-protocol.h \
2917         src/libsystemd-network/dhcp-lease-internal.h \
2918         src/libsystemd-network/sd-dhcp-lease.c \
2919         src/libsystemd-network/sd-ipv4ll.c \
2920         src/libsystemd-network/ipv4ll-network.c \
2921         src/libsystemd-network/ipv4ll-packet.c \
2922         src/libsystemd-network/ipv4ll-internal.h \
2923         src/libsystemd-network/network-internal.c \
2924         src/libsystemd-network/network-internal.h \
2925         src/libsystemd-network/sd-icmp6-nd.c \
2926         src/libsystemd-network/sd-dhcp6-client.c \
2927         src/libsystemd-network/dhcp6-internal.h \
2928         src/libsystemd-network/dhcp6-protocol.h \
2929         src/libsystemd-network/dhcp6-network.c \
2930         src/libsystemd-network/dhcp6-option.c \
2931         src/libsystemd-network/dhcp6-lease-internal.h \
2932         src/libsystemd-network/sd-dhcp6-lease.c
2933
2934 libsystemd_network_la_LIBADD = \
2935         libudev-internal.la \
2936         libsystemd-label.la \
2937         libsystemd-internal.la \
2938         libsystemd-shared.la \
2939         $(KMOD_LIBS)
2940
2941 test_dhcp_option_SOURCES = \
2942         src/libsystemd-network/dhcp-protocol.h \
2943         src/libsystemd-network/dhcp-internal.h \
2944         src/libsystemd-network/test-dhcp-option.c
2945
2946 test_dhcp_option_LDADD = \
2947         libsystemd-network.la \
2948         libsystemd-internal.la \
2949         libsystemd-shared.la
2950
2951 test_dhcp_client_SOURCES = \
2952         src/systemd/sd-dhcp-client.h \
2953         src/libsystemd-network/dhcp-protocol.h \
2954         src/libsystemd-network/dhcp-internal.h \
2955         src/libsystemd-network/test-dhcp-client.c
2956
2957 test_dhcp_client_LDADD = \
2958         libsystemd-network.la \
2959         libsystemd-label.la \
2960         libsystemd-internal.la \
2961         libsystemd-shared.la
2962
2963 test_dhcp_server_SOURCES = \
2964         src/libsystemd-network/test-dhcp-server.c
2965
2966 test_dhcp_server_LDADD = \
2967         libsystemd-network.la \
2968         libsystemd-internal.la \
2969         libsystemd-shared.la
2970
2971 test_ipv4ll_SOURCES = \
2972         src/systemd/sd-ipv4ll.h \
2973         src/libsystemd-network/ipv4ll-internal.h \
2974         src/libsystemd-network/test-ipv4ll.c
2975
2976 test_ipv4ll_LDADD = \
2977         libsystemd-network.la \
2978         libsystemd-label.la \
2979         libsystemd-internal.la \
2980         libsystemd-shared.la
2981
2982 test_icmp6_rs_SOURCES = \
2983         src/systemd/sd-dhcp6-client.h \
2984         src/systemd/sd-icmp6-nd.h \
2985         src/libsystemd-network/dhcp6-internal.h \
2986         src/libsystemd-network/test-icmp6-rs.c
2987
2988 test_icmp6_rs_LDADD = \
2989         libsystemd-network.la \
2990         libsystemd-internal.la \
2991         libsystemd-shared.la
2992
2993 test_dhcp6_client_SOURCES = \
2994         src/systemd/sd-dhcp6-client.h \
2995         src/libsystemd-network/dhcp6-internal.h \
2996         src/libsystemd-network/test-dhcp6-client.c
2997
2998 test_dhcp6_client_LDADD = \
2999         libsystemd-network.la \
3000         libsystemd-internal.la \
3001         libsystemd-shared.la
3002
3003 tests += \
3004         test-dhcp-option \
3005         test-dhcp-client \
3006         test-dhcp-server \
3007         test-ipv4ll \
3008         test-icmp6-rs \
3009         test-dhcp6-client
3010
3011 # ------------------------------------------------------------------------------
3012 if ENABLE_TERMINAL
3013 noinst_LTLIBRARIES += \
3014         libsystemd-terminal.la
3015
3016 noinst_PROGRAMS += \
3017         systemd-evcat \
3018         systemd-modeset \
3019         systemd-subterm
3020
3021 unifontdatadir=$(datadir)/unifont
3022
3023 dist_unifontdata_DATA = \
3024         src/libsystemd-terminal/unifont-glyph-array.bin
3025
3026 tests += \
3027         test-term-page \
3028         test-term-parser \
3029         test-unifont
3030 endif
3031
3032 libsystemd_terminal_la_CFLAGS = \
3033         $(AM_CFLAGS) \
3034         $(TERMINAL_CFLAGS)
3035
3036 libsystemd_terminal_la_SOURCES = \
3037         src/libsystemd-terminal/grdev.h \
3038         src/libsystemd-terminal/grdev-internal.h \
3039         src/libsystemd-terminal/grdev.c \
3040         src/libsystemd-terminal/grdev-drm.c \
3041         src/libsystemd-terminal/idev.h \
3042         src/libsystemd-terminal/idev-internal.h \
3043         src/libsystemd-terminal/idev.c \
3044         src/libsystemd-terminal/idev-evdev.c \
3045         src/libsystemd-terminal/idev-keyboard.c \
3046         src/libsystemd-terminal/sysview.h \
3047         src/libsystemd-terminal/sysview-internal.h \
3048         src/libsystemd-terminal/sysview.c \
3049         src/libsystemd-terminal/term-internal.h \
3050         src/libsystemd-terminal/term-charset.c \
3051         src/libsystemd-terminal/term-page.c \
3052         src/libsystemd-terminal/term-parser.c \
3053         src/libsystemd-terminal/term-screen.c \
3054         src/libsystemd-terminal/term-wcwidth.c \
3055         src/libsystemd-terminal/unifont-internal.h \
3056         src/libsystemd-terminal/unifont.c
3057
3058 libsystemd_terminal_la_LIBADD = \
3059         libudev-internal.la \
3060         libsystemd-internal.la \
3061         libsystemd-shared.la \
3062         $(TERMINAL_LIBS)
3063
3064 systemd_evcat_CFLAGS = \
3065         $(AM_CFLAGS) \
3066         $(TERMINAL_CFLAGS)
3067
3068 systemd_evcat_SOURCES = \
3069         src/libsystemd-terminal/evcat.c
3070
3071 systemd_evcat_LDADD = \
3072         libsystemd-terminal.la \
3073         libsystemd-internal.la \
3074         libsystemd-shared.la \
3075         $(TERMINAL_LIBS)
3076
3077 systemd_modeset_CFLAGS = \
3078         $(AM_CFLAGS) \
3079         $(TERMINAL_CFLAGS)
3080
3081 systemd_modeset_SOURCES = \
3082         src/libsystemd-terminal/modeset.c
3083
3084 systemd_modeset_LDADD = \
3085         libsystemd-terminal.la \
3086         libsystemd-internal.la \
3087         libsystemd-shared.la \
3088         $(TERMINAL_LIBS)
3089
3090 systemd_subterm_SOURCES = \
3091         src/libsystemd-terminal/subterm.c
3092
3093 systemd_subterm_LDADD = \
3094         libsystemd-terminal.la \
3095         libsystemd-internal.la \
3096         libsystemd-shared.la
3097
3098 test_term_page_SOURCES = \
3099         src/libsystemd-terminal/test-term-page.c
3100
3101 test_term_page_LDADD = \
3102         libsystemd-terminal.la \
3103         libsystemd-internal.la \
3104         libsystemd-shared.la
3105
3106 test_term_parser_SOURCES = \
3107         src/libsystemd-terminal/test-term-parser.c
3108
3109 test_term_parser_LDADD = \
3110         libsystemd-terminal.la \
3111         libsystemd-internal.la \
3112         libsystemd-shared.la
3113
3114 test_unifont_SOURCES = \
3115         src/libsystemd-terminal/test-unifont.c
3116
3117 test_unifont_LDADD = \
3118         libsystemd-terminal.la \
3119         libsystemd-internal.la \
3120         libsystemd-shared.la
3121
3122 .PHONY: update-unifont
3123 update-unifont: tools/compile-unifont.py
3124         $(AM_V_GEN)$(PYTHON) $< \
3125                 <$(top_srcdir)/src/libsystemd-terminal/unifont.hex \
3126                 >$(top_srcdir)/src/libsystemd-terminal/unifont-glyph-array.bin
3127         @echo "unifont-glyph-array.bin has been regenerated"
3128
3129 # ------------------------------------------------------------------------------
3130 if ENABLE_GTK_DOC
3131 SUBDIRS += \
3132         docs/libudev
3133
3134 noinst_DATA += \
3135         docs/html/libudev \
3136         docs/html/gudev
3137 endif
3138
3139 include_HEADERS += \
3140         src/libudev/libudev.h
3141
3142 lib_LTLIBRARIES += \
3143         libudev.la
3144
3145 libudev_la_SOURCES =\
3146         src/libudev/libudev.sym \
3147         src/libudev/libudev-private.h \
3148         src/libudev/libudev.c \
3149         src/libudev/libudev-list.c \
3150         src/libudev/libudev-util.c \
3151         src/libudev/libudev-device.c \
3152         src/libudev/libudev-enumerate.c \
3153         src/libudev/libudev-monitor.c \
3154         src/libudev/libudev-queue.c \
3155         src/libudev/libudev-hwdb-def.h \
3156         src/libudev/libudev-hwdb.c
3157
3158 libudev_la_CFLAGS = \
3159         $(AM_CFLAGS) \
3160         -fvisibility=hidden
3161
3162 libudev_la_LDFLAGS = \
3163         $(AM_LDFLAGS) \
3164         -version-info $(LIBUDEV_CURRENT):$(LIBUDEV_REVISION):$(LIBUDEV_AGE) \
3165         -Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
3166
3167 libudev_la_LIBADD = \
3168         libsystemd-internal.la \
3169         libsystemd-shared.la
3170
3171 pkgconfiglib_DATA += \
3172         src/libudev/libudev.pc
3173
3174 EXTRA_DIST += \
3175         src/libudev/libudev.pc.in
3176
3177 CLEANFILES += \
3178         src/libudev/libudev.pc \
3179         docs/html/libudev \
3180         docs/html/gudev
3181
3182 docs/html/libudev:
3183         $(AM_V_at)$(MKDIR_P) $(dir $@)
3184         $(AM_V_LN)$(LN_S) -f ../libudev/html $@
3185
3186 docs/html/gudev:
3187         $(AM_V_at)$(MKDIR_P) $(dir $@)
3188         $(AM_V_LN)$(LN_S) -f ../gudev/html $@
3189
3190 # move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
3191 libudev-install-hook:
3192         libname=libudev.so && $(move-to-rootlibdir)
3193
3194 libudev-uninstall-hook:
3195         rm -f $(DESTDIR)$(rootlibdir)/libudev.so*
3196
3197 INSTALL_EXEC_HOOKS += libudev-install-hook
3198 UNINSTALL_EXEC_HOOKS += libudev-uninstall-hook
3199
3200 # ------------------------------------------------------------------------------
3201 noinst_LTLIBRARIES += \
3202         libudev-internal.la
3203
3204 libudev_internal_la_SOURCES =\
3205         $(libudev_la_SOURCES) \
3206         src/libudev/libudev-device-private.c
3207
3208 libudev_internal_la_CFLAGS = \
3209         $(AM_CFLAGS) \
3210         -fvisibility=default
3211
3212 # ------------------------------------------------------------------------------
3213 INSTALL_DIRS += \
3214         $(sysconfdir)/udev/rules.d \
3215         $(sysconfdir)/udev/hwdb.d
3216
3217 dist_network_DATA = \
3218         network/99-default.link \
3219         network/80-container-host0.network \
3220         network/80-container-ve.network
3221
3222 dist_udevrules_DATA += \
3223         rules/42-usb-hid-pm.rules \
3224         rules/50-udev-default.rules \
3225         rules/60-drm.rules \
3226         rules/60-keyboard.rules \
3227         rules/60-persistent-storage-tape.rules \
3228         rules/60-persistent-serial.rules \
3229         rules/60-persistent-input.rules \
3230         rules/60-persistent-alsa.rules \
3231         rules/60-persistent-storage.rules \
3232         rules/64-btrfs.rules \
3233         rules/75-net-description.rules \
3234         rules/75-tty-description.rules \
3235         rules/78-sound-card.rules \
3236         rules/80-net-setup-link.rules \
3237         rules/95-udev-late.rules
3238
3239 nodist_udevrules_DATA += \
3240         rules/99-systemd.rules
3241
3242 dist_udevhwdb_DATA = \
3243         hwdb/20-pci-vendor-model.hwdb \
3244         hwdb/20-pci-classes.hwdb \
3245         hwdb/20-usb-vendor-model.hwdb \
3246         hwdb/20-usb-classes.hwdb \
3247         hwdb/20-sdio-vendor-model.hwdb \
3248         hwdb/20-sdio-classes.hwdb \
3249         hwdb/20-bluetooth-vendor-product.hwdb \
3250         hwdb/20-acpi-vendor.hwdb \
3251         hwdb/20-OUI.hwdb \
3252         hwdb/20-net-ifname.hwdb \
3253         hwdb/60-keyboard.hwdb
3254
3255 udevconfdir = $(sysconfdir)/udev
3256 dist_udevconf_DATA = \
3257         src/udev/udev.conf
3258
3259 sharepkgconfigdir = $(datadir)/pkgconfig
3260 sharepkgconfig_DATA = \
3261         src/udev/udev.pc
3262
3263 EXTRA_DIST += \
3264         rules/99-systemd.rules.in \
3265         src/udev/udev.pc.in
3266
3267 CLEANFILES += \
3268         rules/99-systemd.rules \
3269         src/udev/udev.pc
3270
3271 EXTRA_DIST += \
3272         units/systemd-udevd.service.in \
3273         units/systemd-udev-trigger.service.in \
3274         units/systemd-udev-settle.service.in \
3275         units/systemd-udev-hwdb-update.service.in
3276
3277 CLEANFILES += \
3278         units/systemd-udevd.service \
3279         units/systemd-udev-trigger.service \
3280         units/systemd-udev-settle.service \
3281         units/systemd-udev-hwdb-update.service
3282
3283 SOCKETS_TARGET_WANTS += \
3284         systemd-udevd-control.socket \
3285         systemd-udevd-kernel.socket
3286
3287 SYSINIT_TARGET_WANTS += \
3288         systemd-udevd.service \
3289         systemd-udev-trigger.service \
3290         systemd-udev-hwdb-update.service
3291
3292 rootbin_PROGRAMS += \
3293         udevadm
3294
3295 rootlibexec_PROGRAMS += \
3296         systemd-udevd
3297
3298 noinst_LTLIBRARIES += \
3299         libudev-core.la
3300
3301 src/udev/keyboard-keys.txt:
3302         $(AM_V_at)$(MKDIR_P) $(dir $@)
3303         $(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/' > $@
3304
3305 src/udev/keyboard-keys-from-name.gperf: src/udev/keyboard-keys.txt
3306         $(AM_V_GEN)$(AWK) 'BEGIN{ print "struct key { const char* name; unsigned short id; };"; print "%null-strings"; print "%%";} { print tolower(substr($$1 ,5)) ", " $$1 }' < $< > $@
3307
3308 src/udev/keyboard-keys-from-name.h: src/udev/keyboard-keys-from-name.gperf
3309         $(AM_V_GPERF)$(GPERF) -L ANSI-C -t -N keyboard_lookup_key -H hash_key_name -p -C < $< > $@
3310
3311 src/udev/keyboard-keys-to-name.h: src/udev/keyboard-keys.txt
3312         $(AM_V_GEN)$(AWK) 'BEGIN{ print "const char* const key_names[KEY_CNT] = { "} { print "[" $$1 "] = \"" $$1 "\"," } END{print "};"}' < $< > $@
3313
3314 libudev_core_la_SOURCES = \
3315         src/udev/udev.h \
3316         src/udev/udev-event.c \
3317         src/udev/udev-watch.c \
3318         src/udev/udev-node.c \
3319         src/udev/udev-rules.c \
3320         src/udev/udev-ctrl.c \
3321         src/udev/udev-builtin.c \
3322         src/udev/udev-builtin-btrfs.c \
3323         src/udev/udev-builtin-hwdb.c \
3324         src/udev/udev-builtin-input_id.c \
3325         src/udev/udev-builtin-keyboard.c \
3326         src/udev/udev-builtin-net_id.c \
3327         src/udev/udev-builtin-net_setup_link.c \
3328         src/udev/udev-builtin-path_id.c \
3329         src/udev/udev-builtin-usb_id.c \
3330         src/udev/net/link-config.h \
3331         src/udev/net/link-config.c \
3332         src/udev/net/ethtool-util.h \
3333         src/udev/net/ethtool-util.c
3334
3335 nodist_libudev_core_la_SOURCES = \
3336         src/udev/keyboard-keys-from-name.h \
3337         src/udev/keyboard-keys-to-name.h \
3338         src/udev/net/link-config-gperf.c
3339
3340 BUILT_SOURCES += \
3341         $(nodist_libudev_core_la_SOURCES)
3342
3343 CLEANFILES += \
3344         src/udev/keyboard-keys-from-name.gperf \
3345         src/udev/keyboard-keys.txt \
3346         src/udev/net/link-config-gperf.c
3347
3348 EXTRA_DIST += \
3349         src/udev/net/link-config-gperf.gperf
3350
3351 libudev_core_la_CFLAGS = \
3352         $(AM_CFLAGS) \
3353         $(BLKID_CFLAGS) \
3354         $(KMOD_CFLAGS)
3355
3356 libudev_core_la_LIBADD = \
3357         libudev-internal.la \
3358         libsystemd-label.la \
3359         libsystemd-internal.la \
3360         libsystemd-network.la \
3361         libsystemd-shared.la \
3362         $(BLKID_LIBS) \
3363         $(KMOD_LIBS)
3364
3365 if HAVE_KMOD
3366 libudev_core_la_SOURCES += \
3367         src/udev/udev-builtin-kmod.c
3368
3369 dist_udevrules_DATA += \
3370         rules/80-drivers.rules
3371 endif
3372
3373 if HAVE_BLKID
3374 libudev_core_la_SOURCES += \
3375         src/udev/udev-builtin-blkid.c
3376 endif
3377
3378 if HAVE_ACL
3379 libudev_core_la_SOURCES += \
3380         src/udev/udev-builtin-uaccess.c \
3381         src/login/logind-acl.c \
3382         src/libsystemd/sd-login/sd-login.c \
3383         src/systemd/sd-login.h
3384
3385 libudev_core_la_LIBADD += \
3386         libsystemd-acl.la
3387 endif
3388
3389 systemd_udevd_SOURCES = \
3390         src/udev/udevd.c
3391
3392 systemd_udevd_LDADD = \
3393         libudev-core.la
3394
3395 udevadm_SOURCES = \
3396         src/udev/udevadm.c \
3397         src/udev/udevadm-info.c \
3398         src/udev/udevadm-control.c \
3399         src/udev/udevadm-monitor.c \
3400         src/udev/udevadm-hwdb.c \
3401         src/udev/udevadm-settle.c \
3402         src/udev/udevadm-trigger.c \
3403         src/udev/udevadm-test.c \
3404         src/udev/udevadm-test-builtin.c
3405
3406 udevadm_LDADD = \
3407         libudev-core.la
3408
3409 # Update hwdb on installation. Do not bother if installing
3410 # in DESTDIR, since this is likely for packaging purposes.
3411 hwdb-update-hook:
3412         -test -n "$(DESTDIR)" || $(rootbindir)/udevadm hwdb --update
3413
3414 INSTALL_DATA_HOOKS += \
3415         hwdb-update-hook
3416
3417 hwdb-remove-hook:
3418         -test -n "$(DESTDIR)" || rm -f /etc/udev/hwdb.bin
3419
3420 # ------------------------------------------------------------------------------
3421 TESTS += \
3422         test/udev-test.pl \
3423         test/rules-test.sh
3424
3425 manual_tests += \
3426         test-libudev \
3427         test-udev
3428
3429 test_libudev_SOURCES = \
3430         src/test/test-libudev.c
3431
3432 test_libudev_LDADD = \
3433         libsystemd-label.la \
3434         libudev-internal.la \
3435         libsystemd-shared.la
3436
3437 test_udev_SOURCES = \
3438         src/test/test-udev.c
3439
3440 test_udev_LDADD = \
3441         libudev-core.la \
3442         $(BLKID_LIBS) \
3443         $(KMOD_LIBS) \
3444         $(SELINUX_LIBS)
3445
3446 if HAVE_ACL
3447 test_udev_LDADD += \
3448         libsystemd-acl.la
3449 endif
3450
3451 check_DATA += \
3452         test/sys
3453
3454 # packed sysfs test tree
3455 test/sys:
3456         $(AM_V_at)$(MKDIR_P) $(dir $@)
3457         $(AM_V_GEN)tar -C test/ -xJf $(top_srcdir)/test/sys.tar.xz
3458
3459 test-sys-distclean:
3460         -rm -rf test/sys
3461 DISTCLEAN_LOCAL_HOOKS += test-sys-distclean
3462
3463 EXTRA_DIST += \
3464         test/sys.tar.xz \
3465         test/udev-test.pl \
3466         test/rules-test.sh \
3467         test/rule-syntax-check.py
3468
3469 # ------------------------------------------------------------------------------
3470 ata_id_SOURCES = \
3471         src/udev/ata_id/ata_id.c
3472
3473 ata_id_LDADD = \
3474         libudev-internal.la \
3475         libsystemd-shared.la
3476
3477 udevlibexec_PROGRAMS += \
3478         ata_id
3479
3480 # ------------------------------------------------------------------------------
3481 cdrom_id_SOURCES = \
3482         src/udev/cdrom_id/cdrom_id.c
3483
3484 cdrom_id_LDADD = \
3485         libudev-internal.la \
3486         libsystemd-shared.la
3487
3488 udevlibexec_PROGRAMS += \
3489         cdrom_id
3490
3491 dist_udevrules_DATA += \
3492         rules/60-cdrom_id.rules
3493
3494 # ------------------------------------------------------------------------------
3495 collect_SOURCES = \
3496         src/udev/collect/collect.c
3497
3498 collect_LDADD = \
3499         libudev-internal.la \
3500         libsystemd-shared.la
3501
3502 udevlibexec_PROGRAMS += \
3503         collect
3504
3505 # ------------------------------------------------------------------------------
3506 scsi_id_SOURCES =\
3507         src/udev/scsi_id/scsi_id.c \
3508         src/udev/scsi_id/scsi_serial.c \
3509         src/udev/scsi_id/scsi.h \
3510         src/udev/scsi_id/scsi_id.h
3511
3512 scsi_id_LDADD = \
3513         libudev-internal.la \
3514         libsystemd-shared.la
3515
3516 udevlibexec_PROGRAMS += \
3517         scsi_id
3518
3519 EXTRA_DIST += \
3520         src/udev/scsi_id/README
3521
3522 # ------------------------------------------------------------------------------
3523 v4l_id_SOURCES = \
3524         src/udev/v4l_id/v4l_id.c
3525
3526 v4l_id_LDADD = \
3527         libudev-internal.la
3528
3529 udevlibexec_PROGRAMS += \
3530         v4l_id
3531
3532 dist_udevrules_DATA += \
3533         rules/60-persistent-v4l.rules
3534
3535 # ------------------------------------------------------------------------------
3536 accelerometer_SOURCES = \
3537         src/udev/accelerometer/accelerometer.c
3538
3539 accelerometer_LDADD = \
3540         libudev-internal.la -lm \
3541         libsystemd-shared.la
3542
3543 udevlibexec_PROGRAMS += \
3544         accelerometer
3545
3546 dist_udevrules_DATA += \
3547         rules/61-accelerometer.rules
3548
3549 # ------------------------------------------------------------------------------
3550 if ENABLE_GUDEV
3551 if ENABLE_GTK_DOC
3552 SUBDIRS += \
3553         docs/gudev
3554 endif
3555
3556 libgudev_includedir = \
3557         $(includedir)/gudev-1.0/gudev
3558
3559 libgudev_include_HEADERS = \
3560         src/gudev/gudev.h \
3561         src/gudev/gudevenums.h \
3562         src/gudev/gudevenumtypes.h \
3563         src/gudev/gudevtypes.h \
3564         src/gudev/gudevclient.h \
3565         src/gudev/gudevdevice.h \
3566         src/gudev/gudevenumerator.h
3567
3568 lib_LTLIBRARIES += libgudev-1.0.la
3569
3570 pkgconfiglib_DATA += \
3571         src/gudev/gudev-1.0.pc
3572
3573 CLEANFILES += \
3574         src/gudev/gudev-1.0.pc
3575
3576 libgudev_1_0_la_SOURCES = \
3577         src/gudev/libgudev-1.0.sym \
3578         src/gudev/gudevenums.h \
3579         src/gudev/gudevenumtypes.h \
3580         src/gudev/gudevenumtypes.h\
3581         src/gudev/gudevtypes.h \
3582         src/gudev/gudevclient.h \
3583         src/gudev/gudevclient.c \
3584         src/gudev/gudevdevice.h \
3585         src/gudev/gudevdevice.c \
3586         src/gudev/gudevenumerator.h \
3587         src/gudev/gudevenumerator.c \
3588         src/gudev/gudevprivate.h
3589
3590 nodist_libgudev_1_0_la_SOURCES = \
3591         src/gudev/gudevmarshal.h \
3592         src/gudev/gudevmarshal.c \
3593         src/gudev/gudevenumtypes.h \
3594         src/gudev/gudevenumtypes.c
3595
3596 BUILT_SOURCES += \
3597         $(nodist_libgudev_1_0_la_SOURCES)
3598
3599 libgudev_1_0_la_CPPFLAGS = \
3600         $(AM_CPPFLAGS) \
3601         -I$(top_builddir)/src\
3602         -I$(top_srcdir)/src\
3603         -I$(top_builddir)/src/gudev \
3604         -I$(top_srcdir)/src/gudev \
3605         -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
3606         -D_GUDEV_COMPILATION \
3607         -DG_LOG_DOMAIN=\"GUdev\"
3608
3609 libgudev_1_0_la_CFLAGS = \
3610         $(AM_CFLAGS) \
3611         -fvisibility=default \
3612         $(GLIB_CFLAGS)
3613
3614 libgudev_1_0_la_LIBADD = \
3615         libudev.la \
3616         $(GLIB_LIBS)
3617
3618 libgudev_1_0_la_LDFLAGS = \
3619         $(AM_LDFLAGS) \
3620         -version-info $(LIBGUDEV_CURRENT):$(LIBGUDEV_REVISION):$(LIBGUDEV_AGE) \
3621         -export-dynamic \
3622         -no-undefined \
3623         -Wl,--version-script=$(top_srcdir)/src/gudev/libgudev-1.0.sym
3624
3625 src/gudev/gudevmarshal.h: src/gudev/gudevmarshal.list
3626         $(AM_V_at)$(MKDIR_P) $(dir $@)
3627         $(AM_V_GEN)glib-genmarshal $< --prefix=g_udev_marshal --header > $@
3628
3629 src/gudev/gudevmarshal.c: src/gudev/gudevmarshal.list
3630         $(AM_V_at)$(MKDIR_P) $(dir $@)
3631         $(AM_V_GEN)echo '#include "gudevmarshal.h"' > $@ && \
3632         glib-genmarshal $< --prefix=g_udev_marshal --body >> $@
3633
3634 src/gudev/gudevenumtypes.%: src/gudev/gudevenumtypes.%.template src/gudev/gudevenums.h
3635         $(AM_V_at)$(MKDIR_P) $(dir $@)
3636         $(AM_V_GEN)glib-mkenums --template $^ > $@
3637
3638 if HAVE_INTROSPECTION
3639 -include $(INTROSPECTION_MAKEFILE)
3640
3641 src/gudev/GUdev-1.0.gir: libgudev-1.0.la
3642
3643 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
3644
3645 src_gudev_GUdev_1_0_gir_CFLAGS = \
3646         $(AM_CFLAGS) \
3647         $(INCLUDES) \
3648         -D_GUDEV_COMPILATION \
3649         -D_GUDEV_WORK_AROUND_DEV_T_BUG \
3650         -I$(top_srcdir)/src \
3651         -I$(top_builddir)/src \
3652         -I$(top_srcdir)/src/gudev \
3653         -I$(top_builddir)/src/gudev
3654
3655 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
3656
3657 src_gudev_GUdev_1_0_gir_SCANNERFLAGS = \
3658         --pkg-export=gudev-1.0 \
3659         --warn-all
3660
3661 src_gudev_GUdev_1_0_gir_FILES = \
3662         src/gudev/gudev.h \
3663         src/gudev/gudevtypes.h \
3664         src/gudev/gudevenums.h \
3665         src/gudev/gudevenumtypes.h \
3666         src/gudev/gudevclient.h \
3667         src/gudev/gudevdevice.h \
3668         src/gudev/gudevenumerator.h \
3669         src/gudev/gudevclient.c \
3670         src/gudev/gudevdevice.c \
3671         src/gudev/gudevenumerator.c
3672
3673 INTROSPECTION_GIRS = src/gudev/GUdev-1.0.gir
3674 INTROSPECTION_SCANNER_ARGS = --c-include=gudev/gudev.h
3675
3676 girdir = $(datadir)/gir-1.0
3677 gir_DATA = \
3678         src/gudev/GUdev-1.0.gir
3679
3680 typelibsdir = $(libdir)/girepository-1.0
3681 typelibs_DATA = \
3682         src/gudev/GUdev-1.0.typelib
3683
3684 CLEANFILES += $(gir_DATA) $(typelibs_DATA)
3685 endif # HAVE_INTROSPECTION
3686 endif
3687
3688 EXTRA_DIST += \
3689         src/gudev/gudev-1.0.pc.in \
3690         src/gudev/gudevmarshal.list \
3691         src/gudev/gudevenumtypes.h.template \
3692         src/gudev/gudevenumtypes.c.template \
3693         src/gudev/gjs-example.js \
3694         src/gudev/seed-example-enum.js \
3695         src/gudev/seed-example.js
3696
3697 # ------------------------------------------------------------------------------
3698 mtd_probe_SOURCES =  \
3699         src/udev/mtd_probe/mtd_probe.c \
3700         src/udev/mtd_probe/mtd_probe.h \
3701         src/udev/mtd_probe/probe_smartmedia.c
3702
3703 dist_udevrules_DATA += \
3704         rules/75-probe_mtd.rules
3705
3706 udevlibexec_PROGRAMS += \
3707         mtd_probe
3708
3709 # ------------------------------------------------------------------------------
3710 test_id128_SOURCES = \
3711         src/test/test-id128.c
3712
3713 test_id128_LDADD = \
3714         libsystemd-internal.la \
3715         libsystemd-shared.la
3716
3717 tests += \
3718         test-id128
3719
3720 # ------------------------------------------------------------------------------
3721
3722 rootlibexec_PROGRAMS += \
3723         systemd-activate
3724
3725 systemd_activate_SOURCES = \
3726         src/activate/activate.c
3727
3728 systemd_activate_LDADD = \
3729         libsystemd-label.la \
3730         libsystemd-internal.la \
3731         libsystemd-shared.la
3732
3733 # ------------------------------------------------------------------------------
3734 systemd_journald_SOURCES = \
3735         src/journal/journald.c \
3736         src/journal/journald-server.h
3737
3738 systemd_journald_LDADD = \
3739         libsystemd-journal-core.la \
3740         libsystemd-internal.la \
3741         libsystemd-shared.la
3742
3743 systemd_cat_SOURCES = \
3744         src/journal/cat.c
3745
3746 systemd_cat_LDADD = \
3747         libsystemd-journal-core.la
3748
3749 if HAVE_MICROHTTPD
3750 rootlibexec_PROGRAMS += \
3751         systemd-journal-remote
3752
3753 systemd_journal_remote_SOURCES = \
3754         src/journal-remote/journal-remote-parse.h \
3755         src/journal-remote/journal-remote-parse.c \
3756         src/journal-remote/journal-remote-write.h \
3757         src/journal-remote/journal-remote-write.c \
3758         src/journal-remote/journal-remote.h \
3759         src/journal-remote/journal-remote.c
3760
3761 systemd_journal_remote_LDADD = \
3762         libsystemd-internal.la \
3763         libsystemd-journal-core.la
3764
3765 systemd_journal_remote_SOURCES += \
3766         src/journal-remote/microhttpd-util.h \
3767         src/journal-remote/microhttpd-util.c
3768
3769 systemd_journal_remote_CFLAGS = \
3770         $(AM_CFLAGS) \
3771         $(MICROHTTPD_CFLAGS)
3772
3773 systemd_journal_remote_LDADD += \
3774         $(MICROHTTPD_LIBS)
3775
3776 if HAVE_GNUTLS
3777 systemd_journal_remote_LDADD += \
3778         $(GNUTLS_LIBS)
3779
3780 # systemd-journal-remote make sense mostly with full crypto stack
3781 dist_systemunit_DATA += \
3782         units/systemd-journal-remote.socket
3783
3784 nodist_systemunit_DATA += \
3785         units/systemd-journal-remote.service
3786
3787 EXTRA_DIST += \
3788         units/systemd-journal-remote.service.in
3789
3790 journal-remote-install-hook: journal-install-hook
3791         -$(MKDIR_P) $(DESTDIR)/var/log/journal/remote
3792         -chown 0:0 $(DESTDIR)/var/log/journal/remote
3793         -chmod 755 $(DESTDIR)/var/log/journal/remote
3794
3795 INSTALL_EXEC_HOOKS += journal-remote-install-hook
3796
3797 endif
3798
3799 nodist_pkgsysconf_DATA += \
3800         src/journal-remote/journal-remote.conf
3801
3802 EXTRA_DIST += \
3803         src/journal-remote/journal-remote.conf.in
3804
3805 CLEANFILES += \
3806         src/journal-remote/journal-remote.conf
3807 endif
3808
3809 if HAVE_LIBCURL
3810 rootlibexec_PROGRAMS += \
3811         systemd-journal-upload
3812
3813 systemd_journal_upload_SOURCES = \
3814         src/journal-remote/journal-upload.h \
3815         src/journal-remote/journal-upload.c \
3816         src/journal-remote/journal-upload-journal.c
3817
3818 systemd_journal_upload_CFLAGS = \
3819         $(AM_CFLAGS) \
3820         $(LIBCURL_CFLAGS)
3821
3822 systemd_journal_upload_LDADD = \
3823         libsystemd-core.la \
3824         libsystemd-internal.la \
3825         libsystemd-journal-internal.la \
3826         libsystemd-shared.la \
3827         $(LIBCURL_LIBS)
3828
3829 nodist_systemunit_DATA += \
3830         units/systemd-journal-upload.service
3831
3832 EXTRA_DIST += \
3833         units/systemd-journal-upload.service.in
3834
3835 nodist_pkgsysconf_DATA += \
3836         src/journal-remote/journal-upload.conf
3837
3838 EXTRA_DIST += \
3839         src/journal-remote/journal-upload.conf.in
3840
3841 CLEANFILES += \
3842         src/journal-remote/journal-upload.conf
3843 endif
3844