From 1233aa6068600b29717d4fc772ea7388da38cd36 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Fri, 27 Jun 2014 12:52:29 +0000 Subject: texk/web2c: Build SyncTeX parser code as library git-svn-id: svn://tug.org/texlive/trunk@34449 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/synctexdir/am/synctex.am | 44 ++++++++++++++++++++---- Build/source/texk/web2c/synctexdir/synctex.pc.in | 12 +++++++ 2 files changed, 50 insertions(+), 6 deletions(-) create mode 100644 Build/source/texk/web2c/synctexdir/synctex.pc.in (limited to 'Build/source/texk/web2c/synctexdir') diff --git a/Build/source/texk/web2c/synctexdir/am/synctex.am b/Build/source/texk/web2c/synctexdir/am/synctex.am index 1ceb750a504..1482aa5ebc4 100644 --- a/Build/source/texk/web2c/synctexdir/am/synctex.am +++ b/Build/source/texk/web2c/synctexdir/am/synctex.am @@ -5,21 +5,53 @@ ## The SyncTeX tool +if SYNCTEX bin_PROGRAMS += synctex +endif SYNCTEX +EXTRA_PROGRAMS += synctex synctex_SOURCES = \ - synctexdir/synctex_main.c \ + synctexdir/synctex_main.c + +synctex_CPPFLAGS = -I$(srcdir)/synctexdir + +synctex_LDADD = libsynctex.la $(ZLIB_LIBS) + +$(synctex_OBJECTS): libsynctex.la + +## The SyncTeX parser library + +EXTRA_LTLIBRARIES = libsynctex.la + +libsynctex_la_CPPFLAGS = -I$(srcdir)/synctexdir $(ZLIB_INCLUDES) -DSYNCTEX_USE_LOCAL_HEADER + +libsynctex_la_LDFLAGS = -rpath @libdir@ -bindir @bindir@ -no-undefined -version-info $(SYNCTEX_LT_VERSINFO) + +libsynctex_la_SOURCES = \ synctexdir/synctex_parser.c \ - synctexdir/synctex_parser.h \ synctexdir/synctex_parser_local.h \ - synctexdir/synctex_parser_utils.h \ synctexdir/synctex_parser_utils.c -synctex_CPPFLAGS = -I$(srcdir)/synctexdir $(ZLIB_INCLUDES) -DSYNCTEX_USE_LOCAL_HEADER +libsynctex_la_LIBADD = $(ZLIB_LIBS) + +$(libsynctex_la_OBJECTS): $(ZLIB_DEPEND) + +if SYNCTEX +install-exec-local: libsynctex.la + $(MKDIR_P) "$(DESTDIR)$(libdir)" + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) \ + libsynctex.la "$(DESTDIR)$(libdir)" + +nobase_include_HEADERS = \ + synctexdir/synctex_parser.h \ + synctexdir/synctex_parser_utils.h +endif SYNCTEX -synctex_LDADD = $(ZLIB_LIBS) +pkgconfigdir = ${libdir}/pkgconfig -$(synctex_OBJECTS): $(ZLIB_DEPEND) +if SYNCTEX +pkgconfig_DATA = synctexdir/synctex.pc +endif SYNCTEX dist_man_MANS += synctexdir/man1/synctex.1 synctexdir/man5/synctex.5 diff --git a/Build/source/texk/web2c/synctexdir/synctex.pc.in b/Build/source/texk/web2c/synctexdir/synctex.pc.in new file mode 100644 index 00000000000..65532875038 --- /dev/null +++ b/Build/source/texk/web2c/synctexdir/synctex.pc.in @@ -0,0 +1,12 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: synctex +Description: SyncTeX parser library +Version: @SYNCTEXVERSION@ +Requires.private: zlib +Libs: -L${libdir} -lsynctex +Cflags: -I${includedir} + -- cgit v1.2.3