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