From f0f76ac2702bb960f230c315c074e445f91ce56e Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 30 Jun 2004 02:46:55 +0000 Subject: [PATCH] (X_LD_FLAGS): New variable. (medit_LDADD, mview_LDADD, mdump_LDADD): Add all depending libraries. (medit_LDFLAGS, mview_LDFLAGS, mdump_LDFLAGS): Delete them. (libmimx_anthy_la_LIBADD): Add @ANTHY_LD_FLAGS@. (libmimx_anthy_la_LDFLAGS): Delete @ANTHY_LD_FLAGS@. --- example/Makefile.am | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/example/Makefile.am b/example/Makefile.am index 1ad7104..0279fcd 100644 --- a/example/Makefile.am +++ b/example/Makefile.am @@ -33,17 +33,16 @@ mdate_LDADD = ${common_ldflags} mconv_SOURCES = mconv.c mconv_LDADD = ${common_ldflags} +X_LD_FLAGS = ${X_PRE_LIBS} ${X_LIBS} -lX11 -lXt -lXaw -lXmu ${X_EXTRA_LIBS} + medit_SOURCES = medit.c linebreak.c -medit_LDADD = ${common_ldflags_gui} -medit_LDFLAGS = ${X_PRE_LIBS} ${X_LIBS} -lXaw -lXmu ${X_EXTRA_LIBS} @WORDCUT_LD_FLAGS@ +medit_LDADD = ${X_LD_FLAGS} ${top_srcdir}/src/libm17n-X.la @WORDCUT_LD_FLAGS@ mview_SOURCES = mview.c -mview_LDADD = ${common_ldflags_gui} -mview_LDFLAGS = ${X_PRE_LIBS} ${X_LIBS} -lXaw -lXmu ${X_EXTRA_LIBS} +mview_LDADD = ${X_LD_FLAGS} ${top_srcdir}/src/libm17n-X.la mdump_SOURCES = mdump.c linebreak.c -mdump_LDADD = ${common_ldflags_gui} -mdump_LDFLAGS = @GD_LD_FLAGS@ @WORDCUT_LD_FLAGS@ +mdump_LDADD = @GD_LD_FLAGS@ @WORDCUT_LD_FLAGS@ ${top_srcdir}/src/libm17n-gd.la # Input method data files. @@ -63,8 +62,8 @@ libmimx_ispell_la_SOURCES = mimx-ispell.c libmimx_ispell_la_LIBADD = ${common_ldflags_gui} libmimx_ispell_la_LDFLAGS = -module ${VINFO} libmimx_anthy_la_SOURCES = mimx-anthy.c -libmimx_anthy_la_LIBADD = ${common_ldflags} -libmimx_anthy_la_LDFLAGS = -module @ANTHY_LD_FLAGS@ ${VINFO} +libmimx_anthy_la_LIBADD = ${common_ldflags} @ANTHY_LD_FLAGS@ +libmimx_anthy_la_LDFLAGS = -module ${VINFO} # Special targets to test the m17n library with Purify. They are for # the maintainers only. -- 1.7.10.4