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