]> git.lyx.org Git - lyx.git/blob - src/client/Makefile.am
add ugly hack to make client link again
[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/liblyxcore.la \
17         $(top_builddir)/src/liblyxinsets.la \
18         $(top_builddir)/src/liblyxmathed.la \
19         $(top_builddir)/src/liblyxgraphics.la \
20         $(top_builddir)/src/frontends/liblyxfrontends.la \
21         $(top_builddir)/src/frontends/controllers/liblyxcontrollers.la \
22         $(top_builddir)/src/frontends/qt4/liblyxqt4.la \
23         $(top_builddir)/src/support/liblyxsupport.la \
24         $(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS)  $(QT4_LIB) $(AIKSAURUS_LIBS)
25
26 # everything below the line containing a single backslash and the 
27 # spellchecker stuff is an ugly hack and needed because of the
28 # linking problems described in ../Makefile.am
29 # These four objects are linked as object files as they are not
30 # referenced within the core and therefore are not picked up
31 # by the linker without looping over libs. We do not want that,
32 # and in fact libtools seems not able to do that.
33
34 if USE_ASPELL
35 ASPELL = ../ASpell.cpp ../ASpell_local.h
36 endif
37 if USE_PSPELL
38 PSPELL = ../PSpell.cpp ../PSpell.h
39 endif
40 if USE_ISPELL
41 ISPELL = ../ISpell.cpp ../ISpell.h
42 endif
43
44 lyxclient_SOURCES = \
45   boost.cpp \
46   client.cpp \
47   debug.cpp \
48   debug.h \
49   gettext.cpp \
50   Messages.cpp \
51   Messages.h \
52         \
53         $(ASPELL) $(PSPELL) $(ISPELL) ../SpellBase.cpp \
54         ../Box.cpp \
55         ../Box.h \
56         ../Dimension.cpp \
57         ../Dimension.h \
58         ../PrinterParams.cpp \
59         ../PrinterParams.h \
60         ../Thesaurus.cpp \
61         ../Thesaurus.h
62
63 lyxclient.1:
64         cp -p $(srcdir)/lyxclient.man lyxclient.1