## texk/web2c/luatexdir/am/luatex.am: Makefile fragment for luaTeX. ## ## Copyright (C) 2009-2014 Peter Breitenlohner ## You may freely use, modify and/or distribute this file. ## LuaTeX and LuaJITTeX ## if LUATEX bin_PROGRAMS += luatex if WIN32 noinst_PROGRAMS += call_luatex install_exe_links += install-luatex-links uninstall_exe_links += uninstall-luatex-links else !WIN32 bin_links += luatex$(EXEEXT):texlua luatex$(EXEEXT):texluac endif !WIN32 endif LUATEX if LUAJITTEX bin_PROGRAMS += luajittex if WIN32 noinst_PROGRAMS += call_luajittex install_exe_links += install-luajittex-links uninstall_exe_links += uninstall-luajittex-links else !WIN32 bin_links += luajittex$(EXEEXT):texluajit luajittex$(EXEEXT):texluajitc endif !WIN32 endif LUAJITTEX EXTRA_PROGRAMS += luatex luajittex # Force Automake to use CXXLD for linking nodist_EXTRA_luatex_SOURCES = dummy.cxx nodist_EXTRA_luajittex_SOURCES = dummy.cxx luatex_preflags = $(AM_CPPFLAGS) $(ZLIB_INCLUDES) $(LIBPNG_INCLUDES) $(POPPLER_INCLUDES) luatex_postflags = -I$(srcdir)/libmd5 -I$(srcdir)/luatexdir -I$(srcdir)/mplibdir luatex_postflags += -Dextra_version_info=`date +-%Y%m%d%H` luatex_postflags += -I$(srcdir)/synctexdir -DSYNCTEX_ENGINE_H='' luatex_CPPFLAGS = $(luatex_preflags) $(LUA_INCLUDES) $(luatex_postflags) luajittex_CPPFLAGS = $(luatex_preflags) $(LUAJIT_INCLUDES) $(luatex_postflags) luatex_CXXFLAGS = $(WARNING_CXXFLAGS) luajittex_CXXFLAGS = $(WARNING_CXXFLAGS) luatex_ldadd = libluatex.a libff.a libunilib.a libluamisc.a libluasocket.a $(LUA_LIBS) luatex_ldadd += libmd5.a libmplib.a $(CAIRO_LIBS) $(PIXMAN_LIBS) luatex_ldadd += $(ZZIPLIB_LIBS) $(LIBPNG_LIBS) $(ZLIB_LIBS) $(POPPLER_LIBS) luajittex_ldadd = libluajittex.a libjitff.a libunilib.a libluajitmisc.a libluajitsocket.a $(LUAJIT_LIBS) luajittex_ldadd += libmd5.a libmplib.a $(CAIRO_LIBS) $(PIXMAN_LIBS) luajittex_ldadd += $(ZZIPLIB_LIBS) $(LIBPNG_LIBS) $(ZLIB_LIBS) $(POPPLER_LIBS) luatex_LDFLAGS = -export-dynamic luajittex_LDFLAGS = -export-dynamic $(luajittex_extra) luatex_LDADD = $(luatex_ldadd) $(LDADD) $(LIBADD_DLOPEN) $(lua_socketlibs) luajittex_LDADD = $(luajittex_ldadd) $(LDADD) $(LIBADD_DLOPEN) $(lua_socketlibs) luatex_DEPENDENCIES = $(proglib) $(KPATHSEA_DEPEND) libluatex.a luatex_DEPENDENCIES += $(LIBPNG_DEPEND) libmd5.a libmplib.a luajittex_DEPENDENCIES = $(proglib) $(KPATHSEA_DEPEND) libluajittex.a luajittex_DEPENDENCIES += $(LIBPNG_DEPEND) libmd5.a libmplib.a $(luatex_OBJECTS): libluatex.a $(luajittex_OBJECTS): libluajittex.a nodist_luatex_SOURCES = $(luatex_sources) nodist_luajittex_SOURCES = $(luatex_sources) luatex_sources = \ luatexdir/luatex_svnversion.h \ luatexdir/luatex.c \ luatexdir/luatex.h EXTRA_DIST += \ $(luatex_sources) \ luatexdir/getluatexsvnversion.sh call_luatex_CPPFLAGS = -DEXEPROG=\"luatex.exe\" nodist_call_luatex_SOURCES = callexe.c call_luatex_LDADD = call_luajittex_CPPFLAGS = -DEXEPROG=\"luajittex.exe\" nodist_call_luajittex_SOURCES = callexe.c call_luajittex_LDADD = .PHONY: install-luatex-links uninstall-luatex-links .PHONY: install-luajittex-links uninstall-luajittex-links if WIN32 install-luatex-links: call_luatex$(EXEEXT) $(INSTALL_PROGRAM) call_luatex$(EXEEXT) $(DESTDIR)$(bindir)/texlua$(EXEEXT) $(INSTALL_PROGRAM) call_luatex$(EXEEXT) $(DESTDIR)$(bindir)/texluac$(EXEEXT) uninstall-luatex-links: rm -f $(DESTDIR)$(bindir)/texlua$(EXEEXT) rm -f $(DESTDIR)$(bindir)/texluac$(EXEEXT) install-luajittex-links: call_luajittex$(EXEEXT) $(INSTALL_PROGRAM) call_luajittex$(EXEEXT) $(DESTDIR)$(bindir)/texluajit$(EXEEXT) $(INSTALL_PROGRAM) call_luajittex$(EXEEXT) $(DESTDIR)$(bindir)/texluajitc$(EXEEXT) uninstall-luajittex-links: rm -f $(DESTDIR)$(bindir)/texluajit$(EXEEXT) rm -f $(DESTDIR)$(bindir)/texluajitc$(EXEEXT) endif WIN32 # LuaTeX/LuaJITTeX Tests # luatex_tests = luatexdir/luatex.test luatexdir/luaimage.test luajittex_tests = luatexdir/luajittex.test luatexdir/luajitimage.test EXTRA_DIST += $(luatex_tests) $(luajittex_tests) if LUATEX TESTS += $(luatex_tests) endif LUATEX if LUAJITTEX TESTS += $(luajittex_tests) endif LUAJITTEX ## luaimage.test/luajitimage.test EXTRA_DIST += luatexdir/tests/luaimage.tex \ tests/1-4.jpg tests/B.pdf tests/basic.tex tests/lily-ledger-broken.png DISTCLEANFILES += luaimage.* luajitimage.*