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