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