X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fclient%2FMakefile.am;h=f1d766bd26c30b10d4622acdf3a9f0c68565ca90;hb=acc1cc394fd53747983be156b78736c0a4d8e9ff;hp=a79b720aa3c7e849d96c0a266cb8e5d7b4aa8d7f;hpb=2e25a65c25b5faa7bc82a1a44eef96ef1ef98b10;p=lyx.git diff --git a/src/client/Makefile.am b/src/client/Makefile.am index a79b720aa3..f1d766bd26 100644 --- a/src/client/Makefile.am +++ b/src/client/Makefile.am @@ -1,56 +1,46 @@ include $(top_srcdir)/config/common.am -CLEANFILES += $(man_MANS) +CLEANFILES = $(man_MANS) man_MANS = lyxclient.1 bin_PROGRAMS = lyxclient -EXTRA_DIST = lyxclient.1in +EXTRA_DIST = lyxclient.1in CMakeLists.txt -AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES) +AM_CPPFLAGS += -I$(srcdir)/.. \ + $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) lyxclient_LDADD = \ $(top_builddir)/src/support/liblyxsupport.a \ - $(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS) \ - $(QT4_LIB) $(QT4_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI) + $(BOOST_LIBS) @LIBS@ $(ICONV_LIBS) $(ZLIB_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 = \ boost.cpp \ client.cpp -HEADERFILES = +HEADERFILES = lyxclient.cpp: - @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@ + $(AM_V_GEN)for file in $(SOURCEFILES) ; do echo '#include "'$${file}'"' ; done >$@ if MONOLITHIC_CLIENT -AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES) +AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES) $(ZLIB_INCLUDES) BUILT_SOURCES = lyxclient.cpp CLEANFILES += lyxclient.cpp -lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES) +nodist_lyxclient_SOURCES = lyxclient.cpp +lyxclient_SOURCES = $(HEADERFILES) else -EXTRA_DIST += pch.h -AM_CPPFLAGS += $(PCH_FLAGS) -BUILT_SOURCES = $(PCH_FILE) - lyxclient_SOURCES = $(SOURCEFILES) $(HEADERFILES) endif