libm17n_gui_la_LDFLAGS = ${OPTIONAL_LD_FLAGS} ${VINFO}
libm17n_X_la_SOURCES = m17n-X.h m17n-X.c
-libm17n_X_la_LIBADD = libm17n-gui.la
-libm17n_X_la_LDFLAGS = -module ${X_LD_FLAGS} @XFT2_LD_FLAGS@ ${VINFO}
+libm17n_X_la_LIBADD = libm17n-gui.la ${X_LD_FLAGS} @XFT2_LD_FLAGS@
+libm17n_X_la_LDFLAGS = ${VINFO}
-libm17n_gd_la_SOURCES = m17n-gd.c
-libm17n_gd_la_LDFLAGS = -module @GD_LD_FLAGS@ ${VINFO}
+libm17n_gd_la_SOURCES = m17n-gd.h m17n-gd.c
+libm17n_gd_la_LIBADD = libm17n-gui.la @GD_LD_FLAGS@
+libm17n_gd_la_LDFLAGS = ${VINFO}
AM_CPPFLAGS = -DM17NDIR="\"@M17NDIR@\""
-include_HEADERS = m17n-core.h m17n.h m17n-misc.h m17n-gui.h m17n-X.h
+include_HEADERS = m17n-core.h m17n.h m17n-misc.h m17n-gui.h m17n-X.h m17n-gd.h
noinst_PROGRAMS = linkcore linkshell linkgui