]> git.lyx.org Git - lyx.git/blobdiff - src/client/Makefile.am
enable building of shared libraries. reduces final linktime. also combine boost stuff...
[lyx.git] / src / client / Makefile.am
index 84c754b7c41df6200bc96e490ca349570471a683..ee58e5c37bbb39ef5e5f63a7eac103ac0803a3c3 100644 (file)
@@ -1,28 +1,36 @@
 include $(top_srcdir)/config/common.am
 
-EXTRA_DIST = lyxclient.man
+CLEANFILES += $(man_MANS)
+
+EXTRA_DIST = pch.h lyxclient.man
+
+BUILT_SOURCES = $(PCH_FILE)
 
 man_MANS = lyxclient.1
 
 bin_PROGRAMS = lyxclient
 
-AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
-
-BOOST_LIBS = $(BOOST_REGEX) $(BOOST_FILESYSTEM)
+AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
 
 lyxclient_LDADD = \
-       $(top_builddir)/src/support/libsupport.la \
-       $(BOOST_LIBS) $(INTLLIBS)
+       $(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 = \
-       boost.C \
-       client.C \
-       debug.C \
-       debug.h \
-       gettext.C \
-       gettext.h \
-       messages.C \
-       messages.h
+  boost.cpp \
+  client.cpp \
+  debug.cpp \
+  debug.h \
+  gettext.cpp \
+  Messages.cpp \
+  Messages.h
 
 lyxclient.1:
        cp -p $(srcdir)/lyxclient.man lyxclient.1