]> git.lyx.org Git - lyx.git/blob - src/client/Makefile.am
3874376ab4fecdba9136672d6f5de0e95586a3fd
[lyx.git] / src / client / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 CLEANFILES = $(man_MANS)
4
5 man_MANS = lyxclient.1
6
7 bin_PROGRAMS = lyxclient
8
9 EXTRA_DIST = lyxclient.1in CMakeLists.txt
10
11 AM_CPPFLAGS += -I$(srcdir)/.. \
12         $(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES)
13
14 lyxclient_LDADD = \
15         $(top_builddir)/src/support/liblyxsupport.a \
16         $(BOOST_LIBS) @LIBS@ $(ICONV_LIBS) $(ZLIB_LIBS) $(SOCKET_LIBS) \
17         $(QT_LIB) $(QT_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI)
18
19 if INSTALL_MACOSX
20 lyxclient_LDFLAGS = -framework AppKit
21 endif
22
23 # everything below the line containing the single backslashs
24 # an ugly hack and needed because of the
25 # linking problems described in ../Makefile.am
26 # These four objects are linked as object files as they are not
27 # referenced within the core and therefore are not picked up
28 # by the linker without looping over libs. We do not want that,
29 # and in fact libtools seems not able to do that.
30
31 SOURCEFILES = \
32   boost.cpp \
33   client.cpp
34
35 HEADERFILES =
36
37
38 lyxclient.cpp:
39         $(AM_V_GEN)for file in $(SOURCEFILES) ; do echo '#include "'$${file}'"' ; done >$@
40
41 if MONOLITHIC_CLIENT
42
43 AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES) $(ZLIB_INCLUDES)
44 BUILT_SOURCES = lyxclient.cpp
45 CLEANFILES += lyxclient.cpp
46
47 lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES)
48
49 else
50
51 lyxclient_SOURCES = $(SOURCEFILES) $(HEADERFILES)
52
53 endif