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