]> git.lyx.org Git - lyx.git/blob - src/client/Makefile.am
fix client linking
[lyx.git] / src / client / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 CLEANFILES += $(man_MANS)
4
5 EXTRA_DIST = pch.h lyxclient.man
6
7 BUILT_SOURCES = $(PCH_FILE)
8
9 man_MANS = lyxclient.1
10
11 bin_PROGRAMS = lyxclient
12
13 AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
14
15 lyxclient_LDADD = \
16         $(top_builddir)/src/support/liblyxsupport.la \
17         $(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS) 
18
19 # everything below the line containing a single backslash and the 
20 # spellchecker stuff is an ugly hack and needed because of the
21 # linking problems described in ../Makefile.am
22 # These four objects are linked as object files as they are not
23 # referenced within the core and therefore are not picked up
24 # by the linker without looping over libs. We do not want that,
25 # and in fact libtools seems not able to do that.
26
27 lyxclient_SOURCES = \
28   boost.cpp \
29   client.cpp \
30   debug.cpp \
31   debug.h \
32   gettext.cpp \
33   Messages.cpp \
34   Messages.h \
35         \
36         ../Box.cpp \
37         ../Box.h \
38         ../Dimension.cpp \
39         ../Dimension.h \
40         ../PrinterParams.cpp \
41         ../PrinterParams.h 
42
43 lyxclient.1:
44         cp -p $(srcdir)/lyxclient.man lyxclient.1