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