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