X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fclient%2FMakefile.am;h=d3c4da45d561f220cbc33894c49ae2d5c38d5935;hb=26910d5ec49395d1372dd5b9259f1bf6ed23de0a;hp=8b0767282cd6728f7a768a41edd58205f5faf5b3;hpb=a4319c2b892dae252e31d5d57d04927d0580597e;p=lyx.git diff --git a/src/client/Makefile.am b/src/client/Makefile.am index 8b0767282c..d3c4da45d5 100644 --- a/src/client/Makefile.am +++ b/src/client/Makefile.am @@ -1,33 +1,56 @@ include $(top_srcdir)/config/common.am -EXTRA_DIST = lyxclient.man +CLEANFILES += $(man_MANS) man_MANS = lyxclient.1 bin_PROGRAMS = lyxclient -AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/../ $(BOOST_INCLUDES) +EXTRA_DIST = lyxclient.1in -if USE_INCLUDED_BOOST -BOOST_LIBS = $(top_builddir)/boost/libs/filesystem/src/libboostfilesystem.la \ - $(top_builddir)/boost/libs/regex/src/libboostregex.la -else -BOOST_LIBS = -lboost_regex -lboost_filesystem -endif +AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES) lyxclient_LDADD = \ - $(top_builddir)/src/support/libsupport.la \ - $(BOOST_LIBS) $(INTLLIBS) - -lyxclient_SOURCES = \ - boost.C \ - client.C \ - debug.C \ - debug.h \ - gettext.C \ - gettext.h \ - messages.C \ - messages.h - -lyxclient.1: - cp -p $(srcdir)/lyxclient.man lyxclient.1 + $(top_builddir)/src/support/liblyxsupport.a \ + $(BOOST_LIBS) @LIBS@ $(SOCKET_LIBS) \ + $(QT4_LIB) $(QT4_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 = \ + boost.cpp \ + client.cpp + +HEADERFILES = + + +lyxclient.cpp: + @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@ + +if MONOLITHIC_CLIENT + +AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES) +BUILT_SOURCES = lyxclient.cpp +CLEANFILES += lyxclient.cpp + +lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES) + +else + +EXTRA_DIST += pch.h +AM_CPPFLAGS += $(PCH_FLAGS) +BUILT_SOURCES = $(PCH_FILE) + +lyxclient_SOURCES = $(SOURCEFILES) $(HEADERFILES) + +endif