]> git.lyx.org Git - lyx.git/blob - src/client/Makefile.am
Fix cppcheck variable scope warnings
[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 CMakeLists.txt
10
11 AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
12
13 lyxclient_LDADD = \
14         $(top_builddir)/src/support/liblyxsupport.a \
15         $(BOOST_LIBS) @LIBS@ $(SOCKET_LIBS) \
16         $(QT_LIB) $(QT_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI)
17
18 if INSTALL_MACOSX
19 lyxclient_LDFLAGS = -framework AppKit
20 endif
21
22 # everything below the line containing the single backslashs
23 # an ugly hack and needed because of the
24 # linking problems described in ../Makefile.am
25 # These four objects are linked as object files as they are not
26 # referenced within the core and therefore are not picked up
27 # by the linker without looping over libs. We do not want that,
28 # and in fact libtools seems not able to do that.
29
30 SOURCEFILES = \
31   boost.cpp \
32   client.cpp
33
34 HEADERFILES = 
35
36
37 lyxclient.cpp:
38         @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
39
40 if MONOLITHIC_CLIENT
41
42 AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
43 BUILT_SOURCES = lyxclient.cpp
44 CLEANFILES += 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