]> git.lyx.org Git - lyx.git/blobdiff - src/client/Makefile.am
Fix bug #12561
[lyx.git] / src / client / Makefile.am
index 91beb72e2aaaab8c35b36376fd7588e9eef7a162..580556d6b14fe8d58b5e57fe011b02772b319ca8 100644 (file)
@@ -1,58 +1,33 @@
 include $(top_srcdir)/config/common.am
 
-CLEANFILES += $(man_MANS)
+CLEANFILES = $(man_MANS)
 
 man_MANS = lyxclient.1
 
 bin_PROGRAMS = lyxclient
 
-EXTRA_DIST = lyxclient.man
+EXTRA_DIST = lyxclient.1in CMakeLists.txt
 
-AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
-
-lyxclient.1:
-       cp -p $(srcdir)/lyxclient.man lyxclient.1
+AM_CPPFLAGS += -I$(srcdir)/.. \
+       $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES) $(NOD_INCLUDES)
 
 lyxclient_LDADD = \
-       $(top_builddir)/src/support/liblyxsupport.la \
-       $(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS) 
-
-# 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.
+       $(top_builddir)/src/support/liblyxsupport.a \
+       @LIBS@ $(ICONV_LIBS) $(ZLIB_LIBS) $(SOCKET_LIBS) \
+       $(QT_LIB) $(QT_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI)
+
+if INSTALL_MACOSX
+lyxclient_LDFLAGS = -framework AppKit \
+       -Wl,-rpath,@loader_path/../Frameworks \
+       -Wl,-rpath,@executable_path/../Frameworks \
+       -Wl,-headerpad_max_install_names
+endif
 
 SOURCEFILES = \
   boost.cpp \
-  client.cpp \
-  debug.cpp \
-  gettext.cpp \
-  Messages.cpp 
-
-HEADERFILES = \
-  debug.h \
-  Messages.h 
-
+  client.cpp
 
-if MONOLITHIC_CLIENT
-
-client.cpp:
-       @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
-
-AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
-BUILT_SOURCES = client.cpp
-lyxclient_SOURCES = client.cpp $(HEADERFILES)
-
-else
-
-EXTRA_DIST += pch.h
-AM_CPPFLAGS += $(PCH_FLAGS)
-BUILT_SOURCES = $(PCH_FILE)
+HEADERFILES =
 
 lyxclient_SOURCES = $(SOURCEFILES) $(HEADERFILES)
 
-endif