chiark / gitweb /
terminal: only build if --enable-terminal was specified
[elogind.git] / Makefile.am
index 0de60148d8883c8bb8a9aad530a59a8f2e42aa0f..012e2e99055a5f3a6474f8fdf37e856359e6874c 100644 (file)
@@ -2831,9 +2831,18 @@ tests += \
        test-dhcp6-client
 
 # ------------------------------------------------------------------------------
+if ENABLE_TERMINAL
 noinst_LTLIBRARIES += \
        libsystemd-terminal.la
 
+noinst_PROGRAMS += \
+       systemd-subterm
+
+tests += \
+       test-term-page \
+       test-term-parser
+endif
+
 libsystemd_terminal_la_CFLAGS = \
        $(AM_CFLAGS)
 
@@ -2849,6 +2858,14 @@ libsystemd_terminal_la_LIBADD = \
        libsystemd-internal.la \
        libsystemd-shared.la
 
+systemd_subterm_SOURCES = \
+       src/libsystemd-terminal/subterm.c
+
+systemd_subterm_LDADD = \
+       libsystemd-terminal.la \
+       libsystemd-internal.la \
+       libsystemd-shared.la
+
 test_term_page_SOURCES = \
        src/libsystemd-terminal/test-term-page.c
 
@@ -2865,10 +2882,6 @@ test_term_parser_LDADD = \
        libsystemd-internal.la \
        libsystemd-shared.la
 
-tests += \
-       test-term-page \
-       test-term-parser
-
 # ------------------------------------------------------------------------------
 if ENABLE_GTK_DOC
 SUBDIRS += \