]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - Makefile.am
DHCP DUID, IAID configuration options
[thirdparty/systemd.git] / Makefile.am
index a0043c2e4a12b8438a87319eb35c9344649da57d..350416af305cc2f77cd5ab623fb3690a02e43308 100644 (file)
@@ -131,8 +131,12 @@ TEST_EXTENSIONS = .py
 PY_LOG_COMPILER = $(PYTHON)
 DISABLE_HARD_ERRORS = yes
 if ENABLE_TESTS
-noinst_PROGRAMS = $(manual_tests) $(tests)
+noinst_PROGRAMS = $(manual_tests) $(tests) $(unsafe_tests)
 TESTS = $(tests)
+if ENABLE_UNSAFE_TESTS
+TESTS += \
+       $(unsafe_tests)
+endif
 else
 noinst_PROGRAMS =
 TESTS =
@@ -740,6 +744,7 @@ noinst_LTLIBRARIES += \
 
 libbasic_la_SOURCES = \
        src/basic/missing.h \
+       src/basic/missing_syscall.h \
        src/basic/capability-util.c \
        src/basic/capability-util.h \
        src/basic/c-rbtree.c \
@@ -1387,19 +1392,17 @@ EXTRA_DIST += \
 
 manual_tests += \
        test-ns \
-       test-loopback \
-       test-hostname \
-       test-daemon \
        test-cgroup \
        test-install \
-       test-watchdog \
-       test-log \
-       test-ipcrm \
        test-btrfs \
        test-acd \
        test-ipv4ll-manual \
        test-ask-password-api
 
+unsafe_tests = \
+       test-hostname \
+       test-ipcrm
+
 if HAVE_LIBIPTC
 manual_tests += \
        test-firewall-util
@@ -1411,10 +1414,14 @@ manual_tests += \
 endif
 
 tests += \
+       test-daemon \
+       test-log \
+       test-loopback \
        test-engine \
+       test-watchdog \
        test-cgroup-mask \
        test-job-type \
-       test-env-replace \
+       test-env-util \
        test-strbuf \
        test-strv \
        test-path \
@@ -1426,6 +1433,18 @@ tests += \
        test-utf8 \
        test-ellipsize \
        test-util \
+       test-cpu-set-util \
+       test-hexdecoct \
+       test-escape \
+       test-alloc-util \
+       test-proc-cmdline \
+       test-io-util \
+       test-glob-util \
+       test-xattr-util \
+       test-fs-util \
+       test-web-util \
+       test-stat-util \
+       test-fd-util \
        test-string-util \
        test-extract-word \
        test-parse-util \
@@ -1448,6 +1467,7 @@ tests += \
        test-prioq \
        test-fileio \
        test-time \
+       test-clock \
        test-hashmap \
        test-set \
        test-bitmap \
@@ -1478,7 +1498,9 @@ tests += \
        test-dns-domain \
        test-install-root \
        test-rlimit-util \
-       test-signal-util
+       test-signal-util \
+       test-selinux \
+       test-sizeof
 
 if HAVE_ACL
 tests += \
@@ -1541,6 +1563,7 @@ EXTRA_DIST += \
        test/test-execute/exec-passenvironment-repeated.service \
        test/test-execute/exec-passenvironment.service \
        test/test-execute/exec-group.service \
+       test/test-execute/exec-group-nfsnobody.service \
        test/test-execute/exec-ignoresigpipe-no.service \
        test/test-execute/exec-ignoresigpipe-yes.service \
        test/test-execute/exec-personality-x86-64.service \
@@ -1550,12 +1573,16 @@ EXTRA_DIST += \
        test/test-execute/exec-privatedevices-yes.service \
        test/test-execute/exec-privatetmp-no.service \
        test/test-execute/exec-privatetmp-yes.service \
+       test/test-execute/exec-spec-interpolation.service \
        test/test-execute/exec-systemcallerrornumber.service \
        test/test-execute/exec-systemcallfilter-failing2.service \
        test/test-execute/exec-systemcallfilter-failing.service \
        test/test-execute/exec-systemcallfilter-not-failing2.service \
        test/test-execute/exec-systemcallfilter-not-failing.service \
+       test/test-execute/exec-systemcallfilter-system-user.service \
+       test/test-execute/exec-systemcallfilter-system-user-nfsnobody.service \
        test/test-execute/exec-user.service \
+       test/test-execute/exec-user-nfsnobody.service \
        test/test-execute/exec-workingdirectory.service \
        test/test-execute/exec-umask-0177.service \
        test/test-execute/exec-umask-default.service \
@@ -1571,6 +1598,14 @@ EXTRA_DIST += \
        test/test-execute/exec-capabilityboundingset-merge.service \
        test/test-execute/exec-capabilityboundingset-reset.service \
        test/test-execute/exec-capabilityboundingset-simple.service \
+       test/test-execute/exec-capabilityambientset.service \
+       test/test-execute/exec-capabilityambientset-nfsnobody.service \
+       test/test-execute/exec-capabilityambientset-merge.service \
+       test/test-execute/exec-capabilityambientset-merge-nfsnobody.service \
+       test/test-execute/exec-runtimedirectory.service \
+       test/test-execute/exec-runtimedirectory-mode.service \
+       test/test-execute/exec-runtimedirectory-owner.service \
+       test/test-execute/exec-runtimedirectory-owner-nfsnobody.service \
        test/bus-policy/hello.conf \
        test/bus-policy/methods.conf \
        test/bus-policy/ownerships.conf \
@@ -1642,13 +1677,13 @@ test_dns_domain_LDADD = \
 
 
 if ENABLE_EFI
-manual_tests += \
-       test-boot-timestamp
+tests += \
+       test-boot-timestamps
 
-test_boot_timestamp_SOURCES = \
+test_boot_timestamps_SOURCES = \
        src/test/test-boot-timestamps.c
 
-test_boot_timestamp_LDADD = \
+test_boot_timestamps_LDADD = \
        libshared.la
 endif
 
@@ -1746,6 +1781,78 @@ test_util_SOURCES = \
 test_util_LDADD = \
        libshared.la
 
+test_hexdecoct_SOURCES = \
+       src/test/test-hexdecoct.c
+
+test_hexdecoct_LDADD = \
+       libbasic.la
+
+test_alloc_util_SOURCES = \
+       src/test/test-alloc-util.c
+
+test_alloc_util_LDADD = \
+       libbasic.la
+
+test_xattr_util_SOURCES = \
+       src/test/test-xattr-util.c
+
+test_xattr_util_LDADD = \
+       libbasic.la
+
+test_io_util_SOURCES = \
+       src/test/test-io-util.c
+
+test_io_util_LDADD = \
+       libbasic.la
+
+test_glob_util_SOURCES = \
+       src/test/test-glob-util.c
+
+test_glob_util_LDADD = \
+       libbasic.la
+
+test_fs_util_SOURCES = \
+       src/test/test-fs-util.c
+
+test_fs_util_LDADD = \
+       libbasic.la
+
+test_proc_cmdline_SOURCES = \
+       src/test/test-proc-cmdline.c
+
+test_proc_cmdline_LDADD = \
+       libbasic.la
+
+test_fd_util_SOURCES = \
+       src/test/test-fd-util.c
+
+test_fd_util_LDADD = \
+       libbasic.la
+
+test_web_util_SOURCES = \
+       src/test/test-web-util.c
+
+test_web_util_LDADD = \
+       libbasic.la
+
+test_cpu_set_util_SOURCES = \
+       src/test/test-cpu-set-util.c
+
+test_cpu_set_util_LDADD = \
+       libbasic.la
+
+test_stat_util_SOURCES = \
+       src/test/test-stat-util.c
+
+test_stat_util_LDADD = \
+       libbasic.la
+
+test_escape_SOURCES = \
+       src/test/test-escape.c
+
+test_escape_LDADD = \
+       libbasic.la
+
 test_string_util_SOURCES = \
        src/test/test-string-util.c
 
@@ -1866,6 +1973,18 @@ test_signal_util_SOURCES = \
 test_signal_util_LDADD = \
        libshared.la
 
+test_selinux_SOURCES = \
+       src/test/test-selinux.c
+
+test_selinux_LDADD = \
+       libshared.la
+
+test_sizeof_SOURCES = \
+       src/test/test-sizeof.c
+
+test_sizeof_LDADD = \
+       libshared.la
+
 BUILT_SOURCES += \
        src/test/test-hashmap-ordered.c
 
@@ -1955,6 +2074,12 @@ test_time_SOURCES = \
 test_time_LDADD = \
        libshared.la
 
+test_clock_SOURCES = \
+       src/test/test-clock.c
+
+test_clock_LDADD = \
+       libshared.la
+
 test_architecture_SOURCES = \
        src/test/test-architecture.c
 
@@ -2072,10 +2197,10 @@ test_cgroup_util_SOURCES = \
 test_cgroup_util_LDADD = \
        libshared.la
 
-test_env_replace_SOURCES = \
-       src/test/test-env-replace.c
+test_env_util_SOURCES = \
+       src/test/test-env-util.c
 
-test_env_replace_LDADD = \
+test_env_util_LDADD = \
        libshared.la
 
 test_strbuf_SOURCES = \
@@ -3676,8 +3801,10 @@ endif
 endif
 endif
 
+tests += \
+       test-libudev
+
 manual_tests += \
-       test-libudev \
        test-udev
 
 test_libudev_SOURCES = \
@@ -3825,6 +3952,34 @@ systemd_cat_SOURCES = \
 systemd_cat_LDADD = \
        libjournal-core.la
 
+if HAVE_LIBCURL
+rootlibexec_PROGRAMS += \
+        systemd-journal-upload
+
+systemd_journal_upload_SOURCES = \
+        src/journal-remote/journal-upload.h \
+        src/journal-remote/journal-upload.c \
+        src/journal-remote/journal-upload-journal.c
+
+systemd_journal_upload_CFLAGS = \
+        $(AM_CFLAGS) \
+        $(LIBCURL_CFLAGS)
+
+systemd_journal_upload_LDADD = \
+        libshared.la \
+        $(LIBCURL_LIBS)
+
+nodist_systemunit_DATA += \
+        units/systemd-journal-upload.service
+
+nodist_pkgsysconf_DATA += \
+        src/journal-remote/journal-upload.conf
+endif
+
+EXTRA_DIST += \
+        units/systemd-journal-upload.service.in \
+        src/journal-remote/journal-upload.conf.in
+
 if HAVE_MICROHTTPD
 rootlibexec_PROGRAMS += \
        systemd-journal-remote
@@ -3884,34 +4039,6 @@ EXTRA_DIST += \
        src/journal-remote/log-generator.py
 endif
 
-if HAVE_LIBCURL
-rootlibexec_PROGRAMS += \
-       systemd-journal-upload
-
-systemd_journal_upload_SOURCES = \
-       src/journal-remote/journal-upload.h \
-       src/journal-remote/journal-upload.c \
-       src/journal-remote/journal-upload-journal.c
-
-systemd_journal_upload_CFLAGS = \
-       $(AM_CFLAGS) \
-       $(LIBCURL_CFLAGS)
-
-systemd_journal_upload_LDADD = \
-       libshared.la \
-       $(LIBCURL_LIBS)
-
-nodist_systemunit_DATA += \
-       units/systemd-journal-upload.service
-
-nodist_pkgsysconf_DATA += \
-       src/journal-remote/journal-upload.conf
-endif
-
-EXTRA_DIST += \
-       units/systemd-journal-upload.service.in \
-       src/journal-remote/journal-upload.conf.in
-
 # using _CFLAGS = in the conditional below would suppress AM_CFLAGS
 journalctl_CFLAGS = \
        $(AM_CFLAGS)
@@ -4088,11 +4215,9 @@ catalog-remove-hook:
 UNINSTALL_DATA_HOOKS += \
        catalog-remove-hook
 
-manual_tests += \
-       test-journal-enum
-
 tests += \
        test-journal \
+       test-journal-enum \
        test-journal-send \
        test-journal-syslog \
        test-journal-match \
@@ -4415,32 +4540,6 @@ EXTRA_DIST += \
        src/vconsole/90-vconsole.rules.in \
        units/systemd-vconsole-setup.service.in
 
-# ------------------------------------------------------------------------------
-if ENABLE_BOOTCHART
-systemd_bootchart_SOURCES = \
-       src/bootchart/bootchart.c \
-       src/bootchart/bootchart.h \
-       src/bootchart/store.c \
-       src/bootchart/store.h \
-       src/bootchart/svg.c \
-       src/bootchart/svg.h
-
-systemd_bootchart_LDADD = \
-       libshared.la
-
-rootlibexec_PROGRAMS += \
-       systemd-bootchart
-
-dist_pkgsysconf_DATA += \
-       src/bootchart/bootchart.conf
-
-nodist_systemunit_DATA += \
-       units/systemd-bootchart.service
-endif
-
-EXTRA_DIST += \
-       units/systemd-bootchart.service.in
-
 # ------------------------------------------------------------------------------
 if ENABLE_QUOTACHECK
 rootlibexec_PROGRAMS += \
@@ -5299,6 +5398,8 @@ libnetworkd_core_la_CFLAGS = \
 libnetworkd_core_la_SOURCES = \
        src/libsystemd-network/network-internal.h \
        src/network/networkd.h \
+       src/network/networkd-conf.h \
+       src/network/networkd-conf.c \
        src/network/networkd-link.h \
        src/network/networkd-link.c \
        src/network/networkd-netdev.h \
@@ -5347,6 +5448,7 @@ libnetworkd_core_la_SOURCES = \
        src/network/networkd-lldp-tx.c
 
 nodist_libnetworkd_core_la_SOURCES = \
+       src/network/networkd-gperf.c \
        src/network/networkd-network-gperf.c \
        src/network/networkd-netdev-gperf.c
 
@@ -5443,6 +5545,7 @@ BUSNAMES_TARGET_WANTS += \
 endif
 
 gperf_gperf_sources += \
+       src/network/networkd-gperf.gperf \
        src/network/networkd-network-gperf.gperf \
        src/network/networkd-netdev-gperf.gperf
 
@@ -6066,7 +6169,6 @@ DISTCHECK_CONFIGURE_FLAGS += \
 endif
 
 .PHONY: dist-check-help
-
 dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
        for i in $(abspath $^); do                                             \
             if $$i  --help | grep -v 'default:' | grep -E -q '.{80}.' ; then   \
@@ -6075,6 +6177,18 @@ dist-check-help: $(rootbin_PROGRAMS) $(bin_PROGRAMS)
                exit 1;                                                        \
             fi; done
 
+include_compilers = "$(CC)" "$(CC) -ansi" "$(CC) -std=iso9899:1990"
+public_headers = $(filter-out src/systemd/_sd-common.h, $(pkginclude_HEADERS) $(include_HEADERS))
+.PHONY: dist-check-includes
+dist-check-includes: $(public_headers)
+       @res=0;                                                                 \
+       for i in $(abspath $^); do                                              \
+           for cc in $(include_compilers); do                                  \
+               echo "$$cc -o/dev/null -c -x c -include "$$i" - </dev/null";    \
+               $$cc -o/dev/null -c -x c -include "$$i" - </dev/null || res=1;  \
+           done;                                                               \
+       done; exit $$res
+
 .PHONY: hwdb-update
 hwdb-update:
        ( cd $(top_srcdir)/hwdb && \