diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-27 12:52:29 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2014-06-27 12:52:29 +0000 |
commit | 1233aa6068600b29717d4fc772ea7388da38cd36 (patch) | |
tree | 9bf49b7fc7d9e76f71a2135610b746dfd6cedc92 /Build/source/texk/web2c/synctexdir/am | |
parent | c6e1dbe71ce20d9265b4e1228477bdb9de3688e4 (diff) |
texk/web2c: Build SyncTeX parser code as library
git-svn-id: svn://tug.org/texlive/trunk@34449 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/synctexdir/am')
-rw-r--r-- | Build/source/texk/web2c/synctexdir/am/synctex.am | 44 |
1 files changed, 38 insertions, 6 deletions
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 |