From 2922c8a4db2392b01e8ab9c703c2aaa179732cbb Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 21 Nov 2005 10:32:02 +0000 Subject: [PATCH] (bin_PROGRAMS, lib_LTLIBRARIES): Define them conditionally on WITH_GUI. --- example/Makefile.am | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/example/Makefile.am b/example/Makefile.am index 87b0b7e..88f8b7e 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -25,7 +25,10 @@ ## Note: Source files have preifx "m" but executables have prefix ## "m17n-" to avoid confliction of program names. -bin_PROGRAMS = m17n-conv m17n-view m17n-date m17n-dump m17n-edit +bin_PROGRAMS = m17n-conv +if WITH_GUI +bin_PROGRAMS += m17n-view m17n-date m17n-dump m17n-edit +endif common_ldflags = ${top_srcdir}/src/libm17n-core.la ${top_srcdir}/src/libm17n.la common_ldflags_gui = ${common_ldflags} ${top_srcdir}/src/libm17n-gui.la @@ -60,7 +63,11 @@ EXTRA_DIST = \ VINFO = -version-info @API_VERSION@ -lib_LTLIBRARIES = libmimx-ispell.la libmimx-anthy.la +BUILD_LIBS = libmimx-anthy.la +if WITH_GUI +BUILD_LIBS += libmimx-ispell.la +endif +lib_LTLIBRARIES = $(BUILD_LIBS) libmimx_ispell_la_SOURCES = mimx-ispell.c libmimx_ispell_la_LIBADD = ${common_ldflags_gui} -- 1.7.10.4