Another minor change, but this should almost get us to the point that we
[lyx.git] / src / client / Makefile.am
blob49ded9fd651317b32f6c4e38a648629be13b6930
1 include $(top_srcdir)/config/common.am
3 CLEANFILES += $(man_MANS)
5 man_MANS = lyxclient.1
7 bin_PROGRAMS = lyxclient
9 EXTRA_DIST = lyxclient.1in
11 AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
13 lyxclient_LDADD = \
14         $(top_builddir)/src/support/liblyxsupport.a \
15         $(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS) \
16         $(QT4_LIB) $(QT4_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI)
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.
26 SOURCEFILES = \
27   boost.cpp \
28   client.cpp \
29   gettext.cpp \
30   Messages.cpp
32 HEADERFILES = \
33   Messages.h
36 lyxclient.cpp:
37         @echo -e '$(SOURCEFILES:%=\n#include "%")\n' > $@
39 if MONOLITHIC_CLIENT
41 AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
42 BUILT_SOURCES = lyxclient.cpp
44 lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES)
46 else
48 EXTRA_DIST += pch.h
49 AM_CPPFLAGS += $(PCH_FLAGS)
50 BUILT_SOURCES = $(PCH_FILE)
52 lyxclient_SOURCES = $(SOURCEFILES) $(HEADERFILES)
54 endif