include $(top_srcdir)/config/common.am
-EXTRA_DIST = lyxclient.man
+CLEANFILES += $(man_MANS)
+
+EXTRA_DIST = pch.h lyxclient.man
+
+BUILT_SOURCES = $(PCH_FILE)
man_MANS = lyxclient.1
bin_PROGRAMS = lyxclient
-AM_CPPFLAGS = $(PCH_FLAGS) -I$(srcdir)/../ $(BOOST_INCLUDES)
+AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
-if USE_INCLUDED_BOOST
-BOOST_LIBS = $(top_builddir)/boost/libs/filesystem/src/libboostfilesystem.la \
- $(top_builddir)/boost/libs/regex/src/libboostregex.la
-else
-BOOST_LIBS = -lboost_regex -lboost_filesystem
-endif
+BOOST_LIBS = $(BOOST_REGEX) $(BOOST_FILESYSTEM)
lyxclient_LDADD = \
$(top_builddir)/src/support/libsupport.la \
- $(BOOST_LIBS) $(INTLLIBS)
+ $(BOOST_LIBS) $(INTLLIBS) @LIBS@ $(SOCKET_LIBS)
lyxclient_SOURCES = \
- boost.C \
- client.C \
- debug.C \
+ boost.cpp \
+ client.cpp \
+ debug.cpp \
debug.h \
- gettext.C \
- gettext.h \
- messages.C \
- messages.h
+ gettext.cpp \
+ Messages.cpp \
+ Messages.h
lyxclient.1:
cp -p $(srcdir)/lyxclient.man lyxclient.1