- $(top_builddir)/src/support/liblyxsupport.la \
- $(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS)
-
-# everything below the line containing a single backslash and the
-# spellchecker stuff is an ugly hack and needed because of the
-# linking problems described in ../Makefile.am
-# These four objects are linked as object files as they are not
-# referenced within the core and therefore are not picked up
-# by the linker without looping over libs. We do not want that,
-# and in fact libtools seems not able to do that.
-
-lyxclient_SOURCES = \
+ $(top_builddir)/src/support/liblyxsupport.a \
+ $(BOOST_LIBS) @LIBS@ $(ICONV_LIBS) $(ZLIB_LIBS) $(SOCKET_LIBS) \
+ $(QT_LIB) $(QT_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI)
+
+if INSTALL_MACOSX
+lyxclient_LDFLAGS = -framework AppKit
+endif
+
+SOURCEFILES = \