chiark / gitweb /
STRV_FOREACH_BACWARDS: start at the tail of the list
[elogind.git] / Makefile.am
index a29a32a5d2d5de2f66d62fc419278a5a99d287c8..c41fdd7fe30ef43051f7ff007f6a4a5c52cd6f9b 100644 (file)
@@ -63,7 +63,6 @@ LIBSYSTEMD_JOURNAL_AGE=11
 dbuspolicydir=@dbuspolicydir@
 dbussessionservicedir=@dbussessionservicedir@
 dbussystemservicedir=@dbussystemservicedir@
-dbusinterfacedir=@dbusinterfacedir@
 pamlibdir=@pamlibdir@
 pamconfdir=@pamconfdir@
 pkgconfigdatadir=$(datadir)/pkgconfig
@@ -127,7 +126,6 @@ nodist_udevrules_DATA =
 dist_pkgsysconf_DATA =
 dist_pkgdata_DATA =
 dist_dbuspolicy_DATA =
-dbusinterface_DATA =
 dist_dbussystemservice_DATA =
 check_PROGRAMS =
 check_DATA =
@@ -328,17 +326,6 @@ systemgenerator_PROGRAMS = \
        systemd-fstab-generator \
        systemd-system-update-generator
 
-systemd_analyze_SOURCES = \
-       src/analyze/systemd-analyze.c
-
-systemd_analyze_CFLAGS = \
-       $(AM_CFLAGS) \
-       $(DBUS_CFLAGS)
-
-systemd_analyze_LDADD = \
-       libsystemd-shared.la \
-       libsystemd-dbus.la
-
 dist_bashcompletion_DATA = \
        shell-completion/bash/journalctl \
        shell-completion/bash/systemctl \
@@ -499,8 +486,7 @@ EXTRA_DIST += \
        units/initrd-cleanup.service.in \
        units/initrd-udevadm-cleanup-db.service.in \
        units/initrd-switch-root.service.in \
-       units/systemd-nspawn@.service.in \
-       introspect.awk
+       units/systemd-nspawn@.service.in
 
 CLEANFILES += \
        units/console-shell.service.m4 \
@@ -1078,29 +1064,9 @@ dist_dbuspolicy_DATA += \
 dist_dbussystemservice_DATA += \
        src/core/org.freedesktop.systemd1.service
 
-dbusinterface_DATA += \
-       org.freedesktop.systemd1.Manager.xml \
-       org.freedesktop.systemd1.Job.xml \
-       org.freedesktop.systemd1.Unit.xml \
-       org.freedesktop.systemd1.Service.xml \
-       org.freedesktop.systemd1.Socket.xml \
-       org.freedesktop.systemd1.Timer.xml \
-       org.freedesktop.systemd1.Target.xml \
-       org.freedesktop.systemd1.Device.xml \
-       org.freedesktop.systemd1.Mount.xml \
-       org.freedesktop.systemd1.Automount.xml \
-       org.freedesktop.systemd1.Snapshot.xml \
-       org.freedesktop.systemd1.Swap.xml \
-       org.freedesktop.systemd1.Path.xml
-
 polkitpolicy_in_in_files += \
        src/core/org.freedesktop.systemd1.policy.in.in
 
-org.freedesktop.systemd1.%.xml: systemd
-       $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.$* $< $@.tmp && \
-               $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
-               $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
-
 pkgconfigdata_DATA = \
        src/core/systemd.pc
 
@@ -1139,6 +1105,7 @@ tests += \
        test-utf8 \
        test-ellipsize \
        test-util \
+       test-namespace \
        test-date \
        test-sleep \
        test-replace-var \
@@ -1259,6 +1226,12 @@ test_util_SOURCES = \
 test_util_LDADD = \
        libsystemd-core.la
 
+test_namespace_SOURCES = \
+       src/test/test-namespace.c
+
+test_namespace_LDADD = \
+       libsystemd-core.la
+
 test_hashmap_SOURCES = \
        src/test/test-hashmap.c
 
@@ -1466,6 +1439,18 @@ lcov-run lcov-report:
        echo "Need to reconfigure with --enable-coverage"
 endif
 
+# ------------------------------------------------------------------------------
+systemd_analyze_SOURCES = \
+       src/analyze/analyze.c
+
+systemd_analyze_CFLAGS = \
+       $(AM_CFLAGS) \
+       $(DBUS_CFLAGS)
+
+systemd_analyze_LDADD = \
+       libsystemd-shared.la \
+       libsystemd-bus.la
+
 # ------------------------------------------------------------------------------
 systemd_initctl_SOURCES = \
        src/initctl/initctl.c
@@ -1771,10 +1756,6 @@ systemd_remount_fs_LDADD = \
 systemd_cgroups_agent_SOURCES = \
        src/cgroups-agent/cgroups-agent.c
 
-systemd_cgroups_agent_CFLAGS = \
-       $(AM_CFLAGS) \
-       $(DBUS_CFLAGS)
-
 systemd_cgroups_agent_LDADD = \
        libsystemd-shared.la \
        libsystemd-bus.la
@@ -2629,13 +2610,14 @@ src/gudev/GUdev-1.0.gir: libgudev-1.0.la
 src_gudev_GUdev_1_0_gir_INCLUDES = GObject-2.0
 
 src_gudev_GUdev_1_0_gir_CFLAGS = \
+       $(AM_CFLAGS) \
        $(INCLUDES) \
        -D_GUDEV_COMPILATION \
        -D_GUDEV_WORK_AROUND_DEV_T_BUG \
        -I$(top_srcdir)/src \
        -I$(top_builddir)/src \
-       -I$(top_srcdir)/src/gdev \
-       -I$(top_builddir)/src/gdev
+       -I$(top_srcdir)/src/gudev \
+       -I$(top_builddir)/src/gudev
 
 src_gudev_GUdev_1_0_gir_LIBS = libgudev-1.0.la
 
@@ -2789,7 +2771,9 @@ systemd_cat_LDADD = \
        libsystemd-shared.la \
        libsystemd-journal-internal.la
 
-journalctl_CFLAGS = $(AM_CFLAGS)
+# using _CFLAGS = in the conditional below would suppress AM_CFLAGS
+journalctl_CFLAGS = \
+       $(AM_CFLAGS)
 
 journalctl_SOURCES = \
        src/journal/journalctl.c
@@ -2964,6 +2948,7 @@ libsystemd_journal_internal_la_SOURCES = \
        src/journal/journald-rate-limit.h \
        src/journal/journal-internal.h
 
+# using _CFLAGS = in the conditional below would suppress AM_CFLAGS
 libsystemd_journal_internal_la_CFLAGS = \
        $(AM_CFLAGS)
 
@@ -3149,8 +3134,8 @@ systemd_journal_gatewayd_LDADD = \
        $(MICROHTTPD_LIBS)
 
 systemd_journal_gatewayd_CFLAGS = \
-       -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
        $(AM_CFLAGS) \
+       -DDOCUMENT_ROOT=\"$(gatewayddocumentrootdir)\" \
        $(MICROHTTPD_CFLAGS)
 
 dist_systemunit_DATA += \
@@ -3483,14 +3468,6 @@ dist_dbussystemservice_DATA += \
 polkitpolicy_files += \
        src/hostname/org.freedesktop.hostname1.policy
 
-dbusinterface_DATA += \
-       org.freedesktop.hostname1.xml
-
-org.freedesktop.hostname1.xml: systemd-hostnamed
-       $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.hostname1 $< $@.tmp && \
-               $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
-               $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
-
 SYSTEM_UNIT_ALIASES += \
        systemd-hostnamed.service dbus-org.freedesktop.hostname1.service
 
@@ -3528,15 +3505,11 @@ if ENABLE_LOCALED
 systemd_localed_SOURCES = \
        src/locale/localed.c
 
-systemd_localed_CFLAGS = \
-       $(AM_CFLAGS) \
-       $(DBUS_CFLAGS)
-
 systemd_localed_LDADD = \
        libsystemd-label.la \
        libsystemd-shared.la \
        libsystemd-daemon.la \
-       libsystemd-dbus.la
+       libsystemd-bus.la
 
 nodist_systemunit_DATA += \
        units/systemd-localed.service
@@ -3553,14 +3526,6 @@ dist_dbussystemservice_DATA += \
 polkitpolicy_files += \
        src/locale/org.freedesktop.locale1.policy
 
-dbusinterface_DATA += \
-       org.freedesktop.locale1.xml
-
-org.freedesktop.locale1.xml: systemd-localed
-       $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.locale1 $< $@.tmp && \
-               $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
-               $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
-
 SYSTEM_UNIT_ALIASES += \
        systemd-localed.service dbus-org.freedesktop.locale1.service
 
@@ -3628,14 +3593,6 @@ nodist_systemunit_DATA += \
 polkitpolicy_files += \
        src/timedate/org.freedesktop.timedate1.policy
 
-org.freedesktop.timedate1.xml: systemd-timedated
-       $(AM_V_GEN)$(LIBTOOL) --mode=execute $(OBJCOPY) -O binary -j introspect.timedate1 $< $@.tmp && \
-               $(STRINGS) $@.tmp | $(AWK) -f $(srcdir)/introspect.awk | \
-               $(DBUS_PREPROCESS) -o $@ - && rm $@.tmp
-
-dbusinterface_DATA += \
-       org.freedesktop.timedate1.xml
-
 INSTALL_DIRS += \
        $(prefix)/lib/systemd/ntp-units.d \
        $(sysconfdir)/systemd/ntp-units.d
@@ -3822,7 +3779,7 @@ libsystemd_logind_core_la_SOURCES = \
 
 libsystemd_logind_core_la_CFLAGS = \
        $(AM_CFLAGS) \
-        $(DBUS_CFLAGS)
+       $(DBUS_CFLAGS)
 
 libsystemd_logind_core_la_LIBADD = \
        libsystemd-label.la \
@@ -3886,7 +3843,7 @@ systemd_inhibit_CFLAGS = \
 
 systemd_inhibit_LDADD = \
        libsystemd-shared.la \
-       libsystemd-dbus.la
+       libsystemd-bus.la
 
 rootbin_PROGRAMS += \
        systemd-inhibit
@@ -4400,11 +4357,6 @@ EXTRA_DIST += \
        man/custom-man.xsl
 
 # ------------------------------------------------------------------------------
-DBUS_PREPROCESS = $(CPP) -P $(CFLAGS) $(DBUS_CFLAGS) -imacros dbus/dbus-protocol.h
-
-CLEANFILES += \
-       $(dbusinterface_DATA)
-
 if HAVE_SYSV_COMPAT
 sysvinit_DATA = \
        docs/sysvinit/README
@@ -4538,7 +4490,6 @@ DISTCHECK_CONFIGURE_FLAGS = \
        --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
        --with-dbussessionservicedir=$$dc_install_base/$(dbussessionservicedir) \
        --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
-       --with-dbusinterfacedir=$$dc_install_base/$(dbusinterfacedir) \
        --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \
        --with-zshcompletiondir=$$dc_install_base/$(zshcompletiondir) \
        --with-pamlibdir=$$dc_install_base/$(pamlibdir) \