lyx_mirror/src/client/Makefile.am
Jean-Marc Lasgouttes 0576973b8d Make monolithic build code portable to Mac OS
"echo -e" is definitely not portable. Use a plain loop instead.

Also use the automake silent rule mechanism to make the generation of monolithic source files visible.
2016-04-18 18:20:06 +02:00

53 lines
1.2 KiB
Makefile

include $(top_srcdir)/config/common.am
CLEANFILES = $(man_MANS)
man_MANS = lyxclient.1
bin_PROGRAMS = lyxclient
EXTRA_DIST = lyxclient.1in CMakeLists.txt
AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
lyxclient_LDADD = \
$(top_builddir)/src/support/liblyxsupport.a \
$(BOOST_LIBS) @LIBS@ $(SOCKET_LIBS) \
$(QT_LIB) $(QT_LDFLAGS) $(LIBSHLWAPI) $(LIBPSAPI)
if INSTALL_MACOSX
lyxclient_LDFLAGS = -framework AppKit
endif
# everything below the line containing the single backslashs
# an ugly hack and needed because of the
# linking problems described in ../Makefile.am
# These four objects are linked as object files as they are not
# referenced within the core and therefore are not picked up
# by the linker without looping over libs. We do not want that,
# and in fact libtools seems not able to do that.
SOURCEFILES = \
boost.cpp \
client.cpp
HEADERFILES =
lyxclient.cpp:
$(AM_V_GEN)for file in $(SOURCEFILES) ; do echo '#include "'$${file}'"' ; done >$@
if MONOLITHIC_CLIENT
AM_CPPFLAGS += -I$(srcdir)/.. $(BOOST_INCLUDES)
BUILT_SOURCES = lyxclient.cpp
CLEANFILES += lyxclient.cpp
lyxclient_SOURCES = lyxclient.cpp $(HEADERFILES)
else
lyxclient_SOURCES = $(SOURCEFILES) $(HEADERFILES)
endif