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