- $(top_builddir)/src/liblyxcore.la \
- $(top_builddir)/src/insets/liblyxinsets.la \
- $(top_builddir)/src/mathed/liblyxmathed.la \
- $(top_builddir)/src/graphics/liblyxgraphics.la \
- $(top_builddir)/src/frontends/liblyxfrontends.la \
- $(top_builddir)/src/frontends/controllers/liblyxcontrollers.la \
- $(top_builddir)/src/frontends/qt4/liblyxqt4.la \
- $(top_builddir)/src/support/liblyxsupport.la \
- $(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS)
-
-lyxclient_SOURCES = \
+ $(top_builddir)/src/support/liblyxsupport.a \
+ $(BOOST_LIBS) @LIBS@ $(SOCKET_LIBS) \
+ $(QT_LIB) $(QT_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI)
+
+if INSTALL_MACOSX
+lyxclient_LDFLAGS = -framework AppKit
+endif
+
+# everything below the line containing the single backslashs
+# 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.
+
+SOURCEFILES = \