]> git.lyx.org Git - features.git/blob - src/client/Makefile.am
remove libtool
[features.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.man
10
11 AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
12
13 lyxclient.1:
14         cp -p $(srcdir)/lyxclient.man lyxclient.1
15
16 lyxclient_LDADD = \
17         $(top_builddir)/src/support/liblyxsupport.a \
18         $(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS) \
19         $(QT4_LIB) $(QT4_LDFLAGS)
20
21 # everything below the line containing the single backslashs
22 # an ugly hack and needed because of the
23 # linking problems described in ../Makefile.am
24 # These four objects are linked as object files as they are not
25 # referenced within the core and therefore are not picked up
26 # by the linker without looping over libs. We do not want that,
27 # and in fact libtools seems not able to do that.
28
29 SOURCEFILES = \
30   boost.cpp \
31   client.cpp \
32   gettext.cpp \
33   Messages.cpp
34
35 HEADERFILES = \
36   Messages.h
37
38
39 lyxclient.cpp:
40         @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
41
42 if MONOLITHIC_CLIENT
43
44 AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
45 BUILT_SOURCES = lyxclient.cpp
46
47 lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES)
48
49 else
50
51 EXTRA_DIST += pch.h
52 AM_CPPFLAGS += $(PCH_FLAGS)
53 BUILT_SOURCES = $(PCH_FILE)
54
55 lyxclient_SOURCES = $(SOURCEFILES) $(HEADERFILES)
56
57 endif