summaryrefslogtreecommitdiff
path: root/Build/source/texk/msvc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-17 21:41:51 +0000
committerKarl Berry <karl@freefriends.org>2006-01-17 21:41:51 +0000
commit487ca4806cc046076293cf6cc5fbba0db282bac7 (patch)
tree847b412ab5158dd7bdd7ed7e5a4cc3fbca94be32 /Build/source/texk/msvc
parenta3d3111bfe26b8e5f5bc6049dfb2a4ca2edc7881 (diff)
texk 1
git-svn-id: svn://tug.org/texlive/trunk@1485 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/msvc')
-rw-r--r--Build/source/texk/msvc/clean.mak59
-rw-r--r--Build/source/texk/msvc/common.mak575
-rw-r--r--Build/source/texk/msvc/config.mak57
-rw-r--r--Build/source/texk/msvc/gnupaths.mak26
-rw-r--r--Build/source/texk/msvc/install.mak84
-rw-r--r--Build/source/texk/msvc/libsdef.mak758
-rw-r--r--Build/source/texk/msvc/libsrul.mak149
-rw-r--r--Build/source/texk/msvc/man.mak206
-rw-r--r--Build/source/texk/msvc/mansedscript.sed2
-rw-r--r--Build/source/texk/msvc/mfmp.sed4
-rw-r--r--Build/source/texk/msvc/netpbmpaths.mak25
-rw-r--r--Build/source/texk/msvc/paths.mak125
-rw-r--r--Build/source/texk/msvc/paths_h_aux.sed1
-rw-r--r--Build/source/texk/msvc/rdepend.mak146
-rw-r--r--Build/source/texk/msvc/splitup.pl62
-rw-r--r--Build/source/texk/msvc/subdirs.mak42
-rw-r--r--Build/source/texk/msvc/template-dll.rc32
-rw-r--r--Build/source/texk/msvc/template-exe.rc29
-rw-r--r--Build/source/texk/msvc/tex-deopt.sed16
-rw-r--r--Build/source/texk/msvc/texc-script.sed3
-rw-r--r--Build/source/texk/msvc/texi.mak172
-rw-r--r--Build/source/texk/msvc/texlive-version.h36
-rw-r--r--Build/source/texk/msvc/texlive.inc99
-rw-r--r--Build/source/texk/msvc/texlive.version120
-rw-r--r--Build/source/texk/msvc/texmfsed.sed3
-rw-r--r--Build/source/texk/msvc/version.mak53
-rw-r--r--Build/source/texk/msvc/version.sed2
-rw-r--r--Build/source/texk/msvc/win32-rec-skel.mak28
-rw-r--r--Build/source/texk/msvc/win32-skel.mak56
-rw-r--r--Build/source/texk/msvc/xemacspaths.mak25
-rw-r--r--Build/source/texk/msvc/xemtexpaths.mak28
31 files changed, 3023 insertions, 0 deletions
diff --git a/Build/source/texk/msvc/clean.mak b/Build/source/texk/msvc/clean.mak
new file mode 100644
index 00000000000..916a2539811
--- /dev/null
+++ b/Build/source/texk/msvc/clean.mak
@@ -0,0 +1,59 @@
+################################################################################
+#
+# Makefile : Clean, remove build files
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <04/01/07 11:50:03 popineau>
+#
+################################################################################
+
+!CMDSWITCHES +S
+
+clean::
+ -@echo $(verbose) & ( \
+ echo Cleaning up exe and obj files in $(MAKEDIR) & \
+ $(del) $(objdir)\*.* \
+ ) $(redir_stderr)
+
+extraclean::
+ -@echo $(verbose) & ( \
+ echo Cleaning up files in $(MAKEDIR) & \
+ $(del) *.aux *.bak *.bbl *.blg *.dvi *.log *.toc *.tfm *.vf *.vpl & \
+ $(del) *.[0-9]*gf *.[0-9]*pk *.lj & \
+ $(del) *.mpx *.i *.s *~ *.orig *.rej \#* & \
+ $(del) *.pbi *.pbo *.pbt *.pdb & \
+ $(del) CONTENTS.tex a.out core mfput.* texput.* mpout.* & \
+ $(del) *.cp *.fn *.ky *.pg *.tp *.vr *.op *.fl & \
+ $(del) *.cps *.fns *.kys *.pg *.tps *.vrs & \
+ $(del) config.status config.cache config.log ) 2>nul
+
+distclean:: clean extraclean configclean
+ -@echo $(verbose) & ( \
+ echo Cleaning up distribution in $(MAKEDIR) & \
+# $(del) config.status config.log config.cache & \
+# $(del) stamp-* & \
+ for %i in ($(objtargets)) do $(deldir) %i ) 2>nul
+
+!if exist(c-auto.in)
+configclean::
+ -@echo $(verbose) & ( \
+ echo Cleaning up configuration in $(MAKEDIR) & \
+ $(del) c-auto.h ) 2>nul
+!endif
+
+!if exist(config.h.in) || exist(config.hin)
+configclean::
+ -@echo $(verbose) & ( \
+ echo Cleaning up configuration in $(MAKEDIR) & \
+ $(del) config.h ) 2>nul
+!endif
+
+configclean::
+
+!CMDSWITCHES -S
+
+# End of clean.mk.
+#
+# Local Variables:
+# mode: Makefile
+# End: \ No newline at end of file
diff --git a/Build/source/texk/msvc/common.mak b/Build/source/texk/msvc/common.mak
new file mode 100644
index 00000000000..782e79a5c83
--- /dev/null
+++ b/Build/source/texk/msvc/common.mak
@@ -0,0 +1,575 @@
+################################################################################
+#
+# Makefile : Common, definitions to build win32 tools
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <04/03/20 15:59:52 popineau>
+#
+################################################################################
+
+################################################################################
+#
+# Version numbers
+#
+################################################################################
+
+!include <msvc/texlive.inc>
+
+################################################################################
+#
+# Configurable section
+#
+################################################################################
+
+# MSVC main variables
+CPU=i386
+MSDEV=C:\Program Files\Microsoft Visual Studio .NET 2003
+MSVCROOT=$(MSDEV)\VC7
+# Change to 'on' if you want verbose builds
+verbose = off
+# Define for profiling
+#PROFILE = 1
+# define for optimized code
+#NODEBUG = 1
+# define for static binaries (no kpathsea.dll, standalone exe files)
+#STATIC=
+# define for debug malloc
+#MEMDBG=1
+# define for BoundsChecker FinalCheck
+#BOUNDSCHECKER=1
+#
+#INTEL_COMPILER = 1
+
+!ifndef NODEBUG
+DEBUG = 1
+!endif
+
+# Configurable section
+
+# Where to install things
+# This would be better if it where
+# relative to the main directory, but it clutters
+# things too much.
+#
+prefix = c:\Progra~1\TeXLive
+texprefix = c:\Progra~1\TeXLive
+webdir = c:\InetPub\htdocs\fptex
+ftpdir = c:\InetPub\ftp\fptex
+masterdir = c:\source\TeXLive\Master
+
+fptexversion = 0.7
+
+#
+# Source directories
+#
+fptex_srcdir = c:\Source\fpTeX
+
+!ifndef root_srcdir
+root_srcdir = $(fptex_srcdir)
+!endif
+
+!ifdef DEVELOPMENT
+development = .development
+!endif
+
+libs_srcdir = $(root_srcdir)\libs
+texk_srcdir = $(root_srcdir)\texk$(development)
+gnuroot_srcdir = $(root_srcdir)\gnu
+graphics_srcdir = $(root_srcdir)\graphics
+utils_srcdir = $(root_srcdir)\utils
+
+srcdir = .
+msvcdir = $(texk_srcdir)\msvc
+
+#
+# Tools
+#
+gnutools = c:\Local\Gnu
+netpbmtools = c:\Local\NetPBM
+perltools = c:\Local\Perl
+xemacstools = c:\Progra~1\XEmacs
+xemtextools = c:\Progra~1\TeXLive\xemtex
+xemacsversion = xemacs-21.5
+
+# Cmd commands
+copy = copy /y
+copydir = xcopy /q/y/r/i/e/k
+sync = $(perl) -I$(win32perldir) $(win32perldir)\sync.pl
+del = del /f/q
+deldir = rmdir /q/s
+echo = echo
+make = nmake -f win32.mak -nologo -$(MAKEFLAGS) verbose=$(verbose)
+mkdir = mkdir
+move = move /y
+shell = cmd /x
+
+# Gnu and various commands
+awk = $(gnubin)\gawk
+diff = $(gnubin)\diff.exe -u
+eqn = $(gnubin)\eqn
+expand = $(gnubin)\expand
+grep = $(gnubin)\grep.exe
+grodvi = $(gnubin)\grodvi
+grops = $(gnubin)\grops
+gzip = $(gnubin)\gzip -f
+lex = $(gnubin)\flex
+# if DYNAMIC, just copy the executable (because TeX engines are stored
+# in the companion DLL)
+!ifdef STATIC
+# Make it absolute !
+lnexe = $(fptex_srcdir)\texk$(development)\contrib\$(objdir)\irun.exe
+!else
+lnexe = copy /y
+!endif
+makedepend = $(gnubin)\makedepend # -Y
+perl = c:\Local\Perl\bin\perl -I$(win32perldir)
+rman = $(gnubin)\rman
+runperl = $(texk_srcdir)\contrib\$(objdir)\irun.exe
+sed = $(gnubin)\sed.exe
+sort = $(gnubin)\sort.exe
+tbl = $(gnubin)\tbl
+touch = $(gnubin)\touch.exe
+tr = $(gnubin)\tr.exe
+troff = $(gnubin)\groff
+yacc = $(gnubin)\bison -y
+
+###############################################################################
+#
+# End of configurable section
+#
+###############################################################################
+
+#
+# Subdirectories of win32
+#
+win32perldir = $(root_srcdir)\mswin32
+win32makedir = $(msvcdir)
+win32seddir = $(msvcdir)
+win32rcdir = . # $(msvcdir)\rc
+
+#
+# Where to find gnu tools and to put other stuff ?
+# tr, sed, grep, cat are needed
+#
+gnuroot = $(gnutools)^\
+gnubin = $(gnutools)\bin
+gnuinclude = $(gnutools)\include
+gnulib = $(gnutools)\lib
+gnushare = $(gnutools)\share
+gnuinfo = $(gnutools)\info
+gnuman = $(gnutools)\man
+
+perlbin = $(perltools)\bin
+perllib = $(perltools)\lib
+
+#
+# To make the build process more silent
+#
+!if ("$(verbose)" == "on")
+!else
+silent = @
+redir_stdout = >nul
+redir_stderr = 2>nul
+!endif
+
+!if "$(OS)" == "Windows_NT"
+null=
+!else
+null=nul
+!endif
+
+################################################################################
+#
+# Several targets:
+# * debug means non optimized
+# * static means statically linked
+# * profile implies static
+# Choose one obj target among these
+#
+################################################################################
+#
+objtargets = static dynamic static-debug dynamic-debug profile profile-debug
+#
+CONFIG_MT=1
+!ifndef STATIC
+MSVC_DLL=1
+!endif
+!ifdef PROFILE
+# Profile implies Static. Too much complicated otherwise
+objdir=profile
+!elseifdef STATIC
+objdir=static
+!else
+objdir=dynamic
+!endif
+
+
+#
+!ifndef NODEBUG
+objdir=$(objdir)-debug
+!endif
+!ifdef STATIC
+make = $(make) STATIC=1
+!endif
+!ifdef NODEBUG
+make = $(make) NODEBUG=1
+!endif
+!ifdef PROFILE
+make = $(make) PROFILE=1
+!endif
+!ifdef MEMDBG
+make = $(make) MEMDBG=1
+!endif
+!ifdef BOUNDSCHECKER
+make = $(make) BOUNDSCHECKER=1
+!endif
+
+#
+################################################################################
+
+
+################################################################################
+#
+# The Perl Compiler
+#
+################################################################################
+
+perlcomp = perlapp
+perlcompflags = --force --freestanding --lib $(texmf)/context/perltk;$(texmf:-development=)/context/perltk --xclude --exe $@ --verbose --explain all
+
+################################################################################
+#
+# Your C Compiler
+#
+################################################################################
+# Build libraries
+AR = $(silent)lib
+# resource compiler
+RC = $(silent)rc
+#
+# BoundsChecker
+#
+!ifdef BOUNDSCHECKER
+BOUNDSCHECKERPATH = C:\Program Files\Compuware\BoundsChecker
+PATH = $(BOUNDSCHECKERPATH);$(PATH)
+CC = $(silent)nmcl
+CCLD = $(silent)nmlink
+optlibs = "$(BOUNDSCHECKER)"\bcinterf.lib
+!elseifdef INTEL_COMPILER
+#
+# Intel compiler definitions
+#
+INTEL_COMPILER80=C:\Program Files\Intel\CPP\Compiler80
+INTEL_SHARED=C:\Program Files\Common Files\Intel\Shared Files
+INTEL_LICENSE_FILE=C:\Program Files\Common Files\Intel\Licenses
+PATH=$(INTEL_COMPILER80)\Ia32\Bin;$(INTEL_SHARED)\Ia32\Bin;$(PATH)
+LIB=$(INTEL_COMPILER80)\Ia32\Lib;$(INTEL_SHARED)\Ia32\Lib;$(LIB)
+INCLUDE=$(INTEL_COMPILER80)\Ia32\Include;$(INCLUDE)
+CC = $(silent)icl /Qvc7.1
+CCLD = $(silent)xilink
+AR = $(silent)xilib
+optlibs = libircmt.lib
+!else
+#
+# Microsoft C/C++ Compiler
+#
+CC = $(silent)cl
+CCLD = $(silent)link
+!endif
+################################################################################
+
+# Define to get strict Ansi conformance
+!ifndef STRICT_ANSI
+STRICT_ANSI = 1
+!endif
+# Define to use oldnames.lib instead of macros
+!ifndef USE_OLDNAMES
+USE_OLDNAMES = 1
+!endif
+
+# Ensure that if MSVCRT is choosen, MT is defined.
+!ifdef MSVC_DLL
+!ifndef CONFIG_MT
+CONFIG_MT=1
+!endif
+!endif
+
+cvars =
+
+!IF "$(CPU)" == "i386"
+cvars = $(cvars) -D_X86_=1
+lflags = /MACHINE:IX86
+libflags = /MACHINE:IX86
+!ELSE
+!IF "$(CPU)" == "MIPS"
+cvars = $(cvars) -D_MIPS_=1
+!ELSE
+!IF "$(CPU)" == "PPC"
+cvars = $(cvars) -D_PPC_=1
+!ELSE
+!IF "$(CPU)" == "ALPHA"
+cvars = $(cvars) -D_ALPHA_=1
+!endif
+!endif
+!endif
+!endif
+
+# For this release, for all values of APPVER, WINVER is 0x0400
+cvars = $(cvars) -DWINVER=0x0400
+
+# For Windows applications that use the C Run-Time libraries
+# Use the DLL MultiThread C Library
+cvars = $(cvars) -DWIN32 -D_WIN32 -D_WINDOWS
+!ifdef CONFIG_MT
+cvars = $(cvars) -D_MT
+!endif
+!ifdef MSVC_DLL
+cvars = $(cvars) -D_DLL
+!endif
+
+# Compilation flags.
+!ifdef NODEBUG
+
+!ifdef INTEL_COMPILER
+optflags = -GL -O3 -Gr -Gy -Zi -QaxWNB -Qunroll -Qopt_report -Qinline_debug_info # Intel specific
+!else
+optflags = -O2x -G7 -Gr -Gy -GL $(optflags)
+ldebug = /LTCG
+!endif
+
+!else
+optflags = -Od -G7r -Zi $(optflags)
+#optflags = -O2x -G5rs -Gy -Zi
+!endif
+
+!ifdef PROFILE
+optflags = $(optflags) -Gh -Fm
+lmap = /MAP /FIXED:NO /PROFILE
+!endif
+
+#
+# Preprocessor flags
+#
+!if !defined(FPTEX)
+FPTEX=1
+!endif
+!if $(FPTEX)
+XCFLAGS = -DFPTEX=1
+!endif
+!ifdef MEMDBG
+XCFLAGS = $(XCFLAGS) -D_DEBUG -D_CRTDBG_MAP_ALLOC
+!endif
+
+CFLAGS = -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo \
+ $(optflags) $(XCFLAGS)
+CPPFLAGS = $(XCPPFLAGS)
+DEFS = $(XDEFS) $(cvars) -I.
+
+!if $(STRICT_ANSI)
+#CFLAGS = $(CFLAGS) -Za
+DEFS = $(DEFS) -D__STDC__=1
+!endif
+
+# The default `compile' command
+CFLAGS = $(CFLAGS) $(DEFS)
+
+compile = $(CC) $(CFLAGS) -c /Fo$@
+
+makedepend_cflags = -I. -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -D_M_IX86=1 $(XCFLAGS) $(DEFS)
+
+!ifdef NODEBUG
+ldebug = $(ldebug) /RELEASE /OPT:REF /VERSION:$(major_version_number).$(minor_version_number)
+!ELSE
+ldebug = $(ldebug) -debug:full -debugtype:cv
+# ldebug = -debug:full -debugtype:cv -opt:ref
+!endif
+
+lflags = $(lflags) /NODEFAULTLIB /INCREMENTAL:NO /NOLOGO \
+ $(ldebug) $(lmap)
+conlflags = $(lflags) -subsystem:console -entry:mainCRTStartup
+dlllflags = $(lflags) -entry:_DllMainCRTStartup@12 -dll
+guilflags = $(lflags) -subsystem:windows -entry:WinMainCRTStartup
+
+!ifdef PROFILE
+optlibs = $(optlibs) cap.lib
+!endif
+
+basewinlibs = kernel32.lib $(optlibs)
+
+!if $(USE_OLDNAMES)
+basewinlibs = oldnames.lib $(basewinlibs)
+!else
+DEFS = $(DEFS) -DOLDNAMES_WITH_MACROS=1
+!endif
+
+!if (defined(NODEBUG) && !defined(MEMDBG))
+! ifdef MSVC_DLL
+libc = msvcrt.lib $(basewinlibs)
+! else
+! ifdef CONFIG_MT
+libc = libcmt.lib $(basewinlibs)
+! else
+libc = libc.lib $(basewinlibs)
+! endif
+! endif
+!else
+! ifdef MSVC_DLL
+libc = msvcrtd.lib $(basewinlibs)
+! else
+! ifdef CONFIG_MT
+libc = libcmtd.lib $(basewinlibs)
+! else
+libc = libcd.lib $(basewinlibs)
+! endif
+! endif
+!endif /* NODEBUG */
+
+winlibs = user32.lib gdi32.lib comdlg32.lib winspool.lib \
+ version.lib comctl32.lib
+
+!if defined(USE_GSW32)
+USE_ADVAPI = 1
+!endif
+
+!ifdef USE_ADVAPI
+advapiflags = /delayload:advapi32.dll
+advapilibs = advapi32.lib
+
+libc = $(libc) $(advapilibs)
+lflags = $(lflags) $(advapiflags)
+!endif
+
+!if defined(USE_NETWORK) || defined(USE_NETWORK2)
+USE_INET = 1
+!endif
+
+# Delay load wsock32 and wininet when required
+!ifdef USE_NETWORK
+networklibs = wsock32.lib
+networkflags = /delayload:wsock32.dll
+
+libc = $(libc) $(networklibs)
+lflags = $(lflags) $(networkflags)
+!endif
+
+!ifdef USE_NETWORK2
+network2libs = ws2_32.lib
+network2flags = /delayload:ws2_32.dll
+
+libc = $(libc) $(network2libs)
+lflags = $(lflags) $(network2flags)
+!endif
+
+!ifdef USE_INET
+inetlibs = wininet.lib
+inetflags = /delayload:wininet.dll
+
+libc = $(libc) $(inetlibs)
+lflags = $(lflags) $(inetflags)
+!endif
+
+
+!if defined(USE_ADVAPI) || defined(USE_NETWORK) || defined(USE_NETWORK2)
+libc = $(libc) delayimp.lib
+!endif
+#
+# This is stupid with MSVC7 : using winsock2
+# you need to define WIN32_LEAN_AND_MEAN
+# else winsock2.h conflicts with winsock.h !
+#
+!if defined(USE_NETWORK)
+DEFS = $(DEFS) -DUSE_WINSOCK
+!else
+DEFS = $(DEFS) -DWIN32_LEAN_AND_MEAN
+!endif
+
+rcflags = /r /I$(win32makedir)
+rcvars = -DWIN32 -D_WIN32 -DWINVER=0x0400 $(xrcvars)
+
+.SUFFIXES: .c .cc .obj .l .y .res .rc .pl # in case the suffix list has been cleared, e.g., by web2c
+
+{}.c{$(objdir)}.obj:
+ $(compile) $<
+
+{}.cc{$(objdir)}.obj:
+ $(compile) /EHsc /GR /Tp $<
+
+{}.cpp{$(objdir)}.obj:
+ $(compile) /EHsc /GR /Tp $<
+
+{}.pl{$(objdir)}.exe:
+ $(perlcomp) $(perlcompflags) $< >>$(win32perldir)\perlfiles.lst
+ irun -f $< $(bindir)\$(<:.pl=.exe)
+
+.l.c:
+ $(lex) -t $< | $(SED) "/^extern int isatty YY/d" > $@
+
+.y.c:
+ $(yacc) -d -v $< -o $@
+
+{$(win32rcdir)}.rc{$(objdir)}.res:
+ $(RC) $(rcvars) $(rcflags) /fo$@ $<
+
+{}.rc{$(objdir)}.res:
+ $(RC) $(rcvars) $(rcflags) /fo$@ $<
+
+# We might link :
+# - by default for console programs
+# - for building dlls
+# - for building gui apps
+link = $(CCLD) /OUT:$@ $(conlflags)
+link_dll = $(CCLD) /OUT:$@ $(dlllflags)
+link_gui = $(CCLD) /OUT:$@ $(guilflags)
+
+conlibs = $(libc) user32.lib $(XLIBS)
+guilibs = $(libc) $(winlibs) $(XLIBS)
+
+# for OLE applications
+olelibs = ole32.lib uuid.lib oleaut32.lib
+
+archive = $(AR) -nologo $(libflags) /OUT:$@
+
+################################################################################
+#
+# Various paths definitions
+#
+################################################################################
+!ifdef GNU
+!include <msvc/gnupaths.mak>
+!elseifdef NETPBM
+!include <msvc/netpbmpaths.mak>
+!elseifdef XEMTEX
+!include <msvc/xemtexpaths.mak>
+!elseifdef XEMACS
+!include <msvc/xemacspaths.mak>
+!else
+!include <msvc/paths.mak>
+!endif
+
+################################################################################
+#
+# Various personal libraries definitions
+#
+################################################################################
+!include <msvc/libsdef.mak>
+
+PATH = $(bindir);$(bindir:-static=);$(kpathseadir)\$(objdir);.\$(objdir);c:\Local\ActiveState\Perl\bin;$(PATH)
+
+!ifdef XEMTEX
+TEXMFCNF = $(texprefix)/texmf/web2c
+TEXMFMAIN = $(texprefix)/texmf
+TEXMFDIST = $(texprefix)/texmf-dist
+VARTEXMF = $(texprefix)/texmf-var
+!else
+TEXMFCNF = $(texmf)/web2c
+TEXMFMAIN = $(texmf)
+TEXMFDIST = $(prefix)/texmf-dist
+VARTEXMF = $(prefix)/texmf-var
+!endif
+MKTEXFMT = 1
+TEXMF =
+
+#
+# Local Variables:
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/config.mak b/Build/source/texk/msvc/config.mak
new file mode 100644
index 00000000000..03e41cf8d19
--- /dev/null
+++ b/Build/source/texk/msvc/config.mak
@@ -0,0 +1,57 @@
+################################################################################
+#
+# Makefile : Coonfig, rules to build configuration files
+# : Perl required, relies on Perl script
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <02/07/18 10:10:28 popineau>
+#
+################################################################################
+
+!if exist(config.h.in)
+
+config.h: config.h.in
+ $(perl) $(win32perldir)\conf-cauto.pl config.h.in $@
+
+!else if exist(config.hin)
+
+config.h: config.hin
+ $(perl) $(win32perldir)\conf-cauto.pl config.hin $@
+
+!else if exist(config.in)
+
+config.h: config.in
+ $(perl) $(win32perldir)\conf-cauto.pl config.in $@
+
+!endif
+
+configure:: config.h
+
+!if exist(c-auto.in)
+
+c-auto.h: c-auto.in
+ $(perl) $(win32perldir)\conf-cauto.pl c-auto.in $@
+
+configure:: c-auto.h
+
+!endif
+
+!if defined(USE_KPATHSEA) && !defined(MAKE_KPATHSEA)
+$(kpathseadir)\c-auto.h: $(kpathseadir)\c-auto.in
+ $(perl) $(win32perldir)\conf-cauto.pl $(kpathseadir)\c-auto.in $@
+!endif
+#
+# Add version information
+#
+!include <msvc/version.mak>
+
+#
+# Add libraries build rules
+#
+!include <msvc/libsrul.mak>
+
+# End of config.mk.
+#
+# Local Variables:
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/gnupaths.mak b/Build/source/texk/msvc/gnupaths.mak
new file mode 100644
index 00000000000..f22abcf65f9
--- /dev/null
+++ b/Build/source/texk/msvc/gnupaths.mak
@@ -0,0 +1,26 @@
+################################################################################
+#
+# Makefile : paths definitions for Gnu tools
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <02/08/22 12:09:48 popineau>
+#
+################################################################################
+
+prefix = $(gnuroot)
+bindir = $(gnubin)
+libdir = $(gnulib)
+sharedir = $(gnushare)
+includedir = $(gnuinclude)
+docdir = $(gnuroot)\doc
+mandir = $(gnuroot)\man
+infodir = $(gnuinfo)
+#htmldocdir = $(docdir)\html
+gnuroot_srcdir = $(root_srcdir)\gnu
+
+# End of gnupaths.mak
+#
+# Local variables:
+# page-delimiter: "^# \f"
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/install.mak b/Build/source/texk/msvc/install.mak
new file mode 100644
index 00000000000..95e128f66cf
--- /dev/null
+++ b/Build/source/texk/msvc/install.mak
@@ -0,0 +1,84 @@
+################################################################################
+#
+# Makefile : Install, rules to install things
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <03/02/10 11:31:46 popineau>
+#
+################################################################################
+
+installdirs = "$(bindir)" "$(etcdir)" "$(libdir)" "$(includedir)" $(installdirs)
+
+install:: all install-dirs
+
+install-exec::
+!if ("$(programs)" != "" || "$(scripts)" != "")
+ @echo $(verbose) & ( \
+# if "$(programs) $(scripts)" neq " " ( \
+ echo "Installing program files in $(MAKEDIR)" & \
+ for %i in ($(programs) $(scripts)) do copy %i "$(bindir)\%~nxi" $(redir_stdout) \
+# ) \
+ )
+!endif
+
+install-lib::
+!if ("$(libfiles)" != "")
+ @echo $(verbose) & ( \
+# if "$(libfiles)" neq "" ( \
+ echo "Installing library files in $(MAKEDIR)" & \
+ for %i in ($(libfiles)) do copy %i "$(libdir)\%~nxi" $(redir_stdout) \
+# ) \
+ )
+!endif
+
+install-include::
+!if ("$(includefiles)" != "")
+ @echo $(verbose) & ( \
+# if "$(includefiles)" neq "" ( \
+ echo "Installing include files in $(MAKEDIR)" & \
+ for %i in ($(includefiles)) do copy %i "$(includedir)\%~nxi" $(redir_stdout) \
+# ) \
+ )
+!endif
+
+install-data::
+!if ("$(etcfiles)" != "")
+ @echo $(verbose) & ( \
+# if "$(etcfiles)" neq "" ( \
+ echo "Installing data files in $(MAKEDIR)" & \
+ for %i in ($(etcfiles)) do copy %i "$(etcdir)\%~nxi" $(redir_stdout) \
+# ) \
+ )
+!endif
+
+#
+# Add manual stuff
+#
+!include <msvc/man.mak>
+
+#
+# Add info stuff
+#
+!include <msvc/texi.mak>
+
+"$(objdir)" :
+ -@echo $(verbose) & ( \
+ if not exist "$(objdir)/$(null)" mkdir "$(objdir)" \
+ )
+
+install-dirs::
+#!if ($(installdirs) != "")
+ -@echo $(verbose) & ( \
+ echo "Building install directories in $(MAKEDIR)" & \
+ for %i in ( $(installdirs:/=\) ) do \
+ if %i neq "" ( \
+ $(mkdir) %i $(redir_stderr) \
+ ) \
+ )
+#!endif
+
+# End of install.mak
+#
+# Local Variables:
+# mode: makefile
+# End:
diff --git a/Build/source/texk/msvc/libsdef.mak b/Build/source/texk/msvc/libsdef.mak
new file mode 100644
index 00000000000..4f47da03668
--- /dev/null
+++ b/Build/source/texk/msvc/libsdef.mak
@@ -0,0 +1,758 @@
+################################################################################
+#
+# Makefile : libsdef, definitions for using and building libraries
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <03/09/15 12:23:28 popineau>
+#
+################################################################################
+
+#
+# FIXME: rename all the dll/lib into tlxxxx$(maj)$(min)
+#
+
+#gifver = -0.9
+#jpgver = -6b
+#pngver = -1.0.5
+#regexver = -0.12
+tiffver = -v3.5.7
+#ttfver = -1.3
+#wwwver = -5.2.1
+#xpdfver = -0.90
+#zlibver = -1.1.3
+#bzip2ver = -0.9.0c
+#t1ver = -0.9
+#gnuw32ver = -0.1
+xpmver = -3.4k
+openldapver = -2.0.7
+netpbmver = -10.8
+rxpver = -1.3.0
+
+#
+# No dlls if compiling statically
+#
+!if defined(STATIC) || defined(PROFILE)
+!undef BMEPS_DLL
+!undef BZIP2_DLL
+!undef COMPFACE_DLL
+!undef CURL_DLL
+!undef EXPAT_DLL
+!undef FREETYPE2_DLL
+!undef FREETYPE_DLL
+!undef GETURL_DLL
+!undef GIF_DLL
+!undef GNUW32_DLL
+!undef GSW32_DLL
+!undef JPEG_DLL
+!undef KPSE_DLL
+!undef MD5_DLL
+!undef MKTEX_DLL
+!undef NETPBM_DLL
+!undef OPENLDAP_DLL
+!undef PNG_DLL
+!undef REGEX_DLL
+!undef RXP_DLL
+!undef T1_DLL
+!undef TEX_DLL
+!undef TIFF_DLL
+!undef TTF_DLL
+!undef UNZIP_DLL
+!undef WMF_DLL
+!undef WWW_DLL
+!undef XPDF_DLL
+!undef XPM_DLL
+!undef ZLIB_DLL
+!else
+BMEPS_DLL = 1
+BZIP2_DLL = 1
+CURL_DLL = 1
+COMPFACE_DLL = 1
+# EXPAT_DLL = 1
+FREETYPE_DLL = 1
+FREETYPE2_DLL = 1
+GETURL_DLL = 1
+GIF_DLL = 1
+# GNUW32_DLL = 1
+# GSW32_DLL = 1
+JPEG_DLL = 1
+KPSE_DLL = 1
+MKTEX_DLL = 1
+NETPBM_DLL = 1
+OPENLDAP_DLL = 1
+PNG_DLL = 1
+REGEX_DLL = 1
+T1_DLL = 1
+TEX_DLL = 1
+TIFF_DLL = 1
+TTF_DLL = 1
+UNZIP_DLL = 1
+WMF_DLL = 1
+WWW_DLL = 1
+# XPDF_DLL = 1
+# MD5_DLL = 1
+XPM_DLL = 1
+ZLIB_DLL = 1
+# RXP_DLL = 1
+!endif
+
+library_prefix = tl$(major_version_number)$(minor_version_number)
+
+#
+# The kpathsea library
+#
+# We need to locate it for several reasons in man.mak
+kpathseadir = $(texk_srcdir)\kpathsea
+!ifdef USE_KPATHSEA
+!ifdef DEBUG
+kpathseaname = $(library_prefix)kpsed
+!else
+kpathseaname = $(library_prefix)kpse
+!endif
+kpathsealib = $(kpathseadir)\$(objdir)\$(kpathseaname).lib
+!ifdef KPSE_DLL
+DEFS = $(DEFS) -DKPSE_DLL -DKPATHSEA=1
+PATH = $(kpathsea_dir)\$(objdir);$(PATH)
+kpathseadll = $(kpathsealib:.lib=.dll)
+!else
+DEFS = $(DEFS) -DKPATHSEA=1
+!endif
+DEFS = $(DEFS) -I$(kpathseadir) -I$(kpathseadir)\..
+kpathsea = $(kpathsealib) $(kpathseadll)
+!endif
+
+#
+# The mktex library
+#
+!ifdef USE_MKTEX
+!ifdef DEBUG
+mktexname = $(library_prefix)mktexd
+!else
+mktexname = $(library_prefix)mktex
+!endif
+mktexdir = $(texk_srcdir)\contrib
+mktexlib = $(mktexdir)\$(objdir)\$(mktexname).lib
+!ifdef MKTEX_DLL
+DEFS = $(DEFS) -DMKTEX_DLL -DMKTEX=1
+PATH = $(mktex_dir)\$(objdir);$(PATH)
+mktexdll = $(mktexlib:.lib=.dll)
+!else
+DEFS = $(DEFS) -DMKTEX=1
+!endif
+DEFS = $(DEFS) -I$(mktexdir) -I$(mktexdir)\..
+mktex = $(mktexlib) $(mktexdll)
+!endif
+
+#
+# The bzip2 library
+#
+!ifdef USE_BZIP2
+!ifdef DEBUG
+bzip2name = $(library_prefix)bzip2d
+!else
+bzip2name = $(library_prefix)bzip2
+!endif
+bzip2dir = $(utils_srcdir)\bzip2$(bzip2ver)
+bzip2lib = $(bzip2dir)\$(objdir)\$(bzip2name).lib
+!ifdef BZIP2_DLL
+bzip2dll = $(bzip2lib:.lib=.dll)
+DEFS = $(DEFS) -DBZIP2_DLL
+PATH = $(bzip2dir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(bzip2dir)
+bzip2 = $(bzip2lib) $(bzip2dll)
+!endif
+
+#
+# The md5 library
+#
+!ifdef USE_MD5
+!ifdef DEBUG
+md5name = $(library_prefix)md5d
+!else
+md5name = $(library_prefix)md5
+!endif
+md5dir = $(libs_srcdir)\md5$(md5ver)
+md5lib = $(md5dir)\$(objdir)\$(md5name).lib
+!ifdef MD5_DLL
+md5dll = $(md5lib:.lib=.dll)
+DEFS = $(DEFS) -DMD5_DLL
+PATH = $(md5dir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(md5dir)
+md5 = $(md5lib) $(md5dll)
+!endif
+
+#
+# The gifreader library
+#
+!ifdef USE_GIF
+!ifdef DEBUG
+gifname = $(library_prefix)gifrd
+!else
+gifname = $(library_prefix)gifr
+!endif
+gifdir = $(libs_srcdir)\gifreader$(gifver)
+giflib = $(gifdir)\$(objdir)\$(gifname).lib
+!ifdef GIF_DLL
+gifdll = $(giflib:.lib=.dll)
+DEFS = $(DEFS) -DGIF_DLL
+PATH = $(gifdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(gifdir)
+gif = $(giflib) $(gifdll)
+!endif
+
+#
+# The Gnu W32 unix compatibility library
+#
+!ifdef USE_GNUW32
+!ifdef DEBUG
+gnuw32name = $(library_prefix)gnu
+!else
+gnuw32name = $(library_prefix)gnu
+!endif
+gnuw32dir = $(libs_srcdir)\libgnuw32
+gnuw32lib = $(gnuw32dir)\$(objdir)\$(gnuw32name).lib
+!ifdef GNUW32_DLL
+gnuw32dll = $(gnuw32lib:.lib=.dll)
+DEFS = $(DEFS) -DGNUW32_DLL
+PATH = $(gnuw32dir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(gnuw32dir)
+!ifndef USE_KPATHSEA
+DEFS = $(DEFS) -I$(kpathseadir) -I$(kpathseadir)\..
+!endif
+gnuw32 = $(gnuw32lib) $(gnuw32dll)
+!endif
+
+#
+# The GS W32 unix compatibility library
+#
+!ifdef USE_GSW32
+!ifdef DEBUG
+gsw32name = $(library_prefix)gsd
+!else
+gsw32name = $(library_prefix)gs
+!endif
+gsw32dir = $(libs_srcdir)\libgsw32
+gsw32lib = $(gsw32dir)\$(objdir)\$(gsw32name).lib
+!ifdef GSW32_DLL
+gsw32dll = $(gsw32lib:.lib=.dll)
+DEFS = $(DEFS) -DGSW32_DLL
+PATH = $(gsw32dir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(gsw32dir) -I$(root_srcdir)\gstools\ghostscript\src
+!ifndef USE_KPATHSEA
+DEFS = $(DEFS) -I$(kpathseadir)
+!endif
+gsw32 = $(gsw32lib) $(gsw32dll)
+!endif
+
+#
+# The jpeg library
+#
+!ifdef USE_JPEG
+!ifdef DEBUG
+jpegname = $(library_prefix)jpegd
+!else
+jpegname = $(library_prefix)jpeg
+!endif
+jpegdir = $(libs_srcdir)\jpeg$(jpegver)
+jpeglib = $(jpegdir)\$(objdir)\$(jpegname).lib
+!ifdef JPEG_DLL
+jpegdll = $(jpeglib:.lib=.dll)
+DEFS = $(DEFS) -DJPEG_DLL
+PATH = $(jpegdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(jpegdir)
+jpeg = $(jpeglib) $(jpegdll)
+!endif
+
+#
+# The png library
+#
+!ifdef USE_PNG
+!ifdef DEBUG
+pngname = $(library_prefix)pngd
+!else
+pngname = $(library_prefix)png
+!endif
+pngdir = $(libs_srcdir)\libpng$(pngver)
+pnglib = $(pngdir)\$(objdir)\$(pngname).lib
+!ifdef PNG_DLL
+pngdll = $(pnglib:.lib=.dll)
+DEFS = $(DEFS) -DPNG_DLL
+PATH = $(pngdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -DPNG_NO_GLOBAL_ARRAYS -DPNG_USE_PNGVCRD -D__FLAT__ -I$(pngdir)
+png = $(pnglib) $(pngdll)
+!endif
+
+#
+# The regex library
+#
+!ifdef USE_REGEX
+!ifdef DEBUG
+regexname = $(library_prefix)regexd
+!else
+regexname = $(library_prefix)regex
+!endif
+regexdir = $(libs_srcdir)\regex$(regexver)
+regexlib = $(regexdir)\$(objdir)\$(regexname).lib
+!ifdef REGEX_DLL
+regexdll = $(regexlib:.lib=.dll)
+DEFS = $(DEFS) -DREGEX_DLL
+PATH = $(regexdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(regexdir)
+regex = $(regexlib) $(regexdll)
+!endif
+
+#
+# The Type1 library
+#
+!ifdef USE_T1
+!ifdef DEBUG
+t1name = $(library_prefix)t1d
+!else
+t1name = $(library_prefix)t1
+!endif
+t1dir = $(libs_srcdir)\T1$(t1ver)\lib\t1lib
+t1lib = $(t1dir)\$(objdir)\$(t1name).lib
+!ifdef T1_DLL
+t1dll = $(t1lib:.lib=.dll)
+DEFS = $(DEFS) -DT1_DLL
+PATH = $(t1dir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(t1dir)
+t1 = $(t1lib) $(t1dll)
+!endif
+
+#
+# The TIFF library
+#
+!ifdef USE_TIFF
+!ifdef DEBUG
+tiffname = $(library_prefix)tiffd
+!else
+tiffname = $(library_prefix)tiff
+!endif
+tiffdir = $(graphics_srcdir)\tiff$(tiffver)\libtiff
+tifflib = $(tiffdir)\$(objdir)\$(tiffname).lib
+!ifdef TIFF_DLL
+tiffdll = $(tifflib:.lib=.dll)
+DEFS = $(DEFS) -DTIFF_DLL
+PATH = $(tiffdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(tiffdir)
+tiff = $(tifflib) $(tiffdll)
+!endif
+
+#
+# The TrueType library
+#
+!ifdef USE_TTF
+!ifdef DEBUG
+ttfname = $(library_prefix)ttfd
+!else
+ttfname = $(library_prefix)ttf
+!endif
+ttfdir = $(libs_srcdir)\libttf$(ttfver)
+ttflib = $(ttfdir)\$(objdir)\$(ttfname).lib
+!ifdef TTF_DLL
+ttfdll = $(ttflib:.lib=.dll)
+DEFS = $(DEFS) -DTTF_DLL
+PATH = $(ttfdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(ttfdir)
+ttf = $(ttflib) $(ttfdll)
+!endif
+
+#
+# The Freetype library
+#
+!ifdef USE_FREETYPE
+!ifdef DEBUG
+freetypename = $(library_prefix)ftd
+!else
+freetypename = $(library_prefix)ft
+!endif
+freetypedir = $(libs_srcdir)\freetype$(freetypever)
+freetypelib = $(freetypedir)\lib\$(objdir)\$(freetypename).lib
+!ifdef FREETYPE_DLL
+freetypedll = $(freetypelib:.lib=.dll)
+DEFS = $(DEFS) -DFREETYPE_DLL
+PATH = $(freetypedir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(freetypedir)\lib
+freetype = $(freetypelib) $(freetypedll)
+!endif
+
+#
+# The Freetype2 library
+#
+!ifdef USE_FREETYPE2
+!ifdef DEBUG
+freetype2name = $(library_prefix)freetype2d
+!else
+freetype2name = $(library_prefix)freetype2
+!endif
+freetype2dir = $(libs_srcdir)\freetype2$(freetype2ver)
+freetype2lib = $(freetype2dir)\src\$(objdir)\$(freetype2name).lib
+!ifdef FREETYPE2_DLL
+freetype2dll = $(freetype2lib:.lib=.dll)
+DEFS = $(DEFS) -DFREETYPE2_DLL
+PATH = $(freetype2dir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(freetype2dir)\include
+freetype2 = $(freetype2lib) $(freetype2dll)
+!endif
+
+#
+# The Curl library
+#
+!ifdef USE_CURL
+!ifdef DEBUG
+curlname = $(library_prefix)curld
+!else
+curlname = $(library_prefix)curl
+!endif
+curldir = $(libs_srcdir)\curl$(curlver)
+curllib = $(curldir)\lib\$(objdir)\$(curlname).lib
+!ifdef CURL_DLL
+curldll = $(curllib:.lib=.dll)
+DEFS = $(DEFS) -DCURL_DLL
+PATH = $(curldir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(curldir)\include
+curl = $(curllib) $(curldll)
+!endif
+
+#
+# The www library
+#
+!ifdef USE_WWW
+!ifdef DEBUG
+wwwname = $(library_prefix)wwwd
+!else
+wwwname = $(library_prefix)www
+!endif
+wwwdir = $(libs_srcdir)\libwww$(wwwver)
+wwwlib = $(wwwdir)\$(objdir)\$(wwwname).lib
+!ifdef WWW_DLL
+wwwdll = $(wwwlib:.lib=.dll)
+DEFS = $(DEFS) -DWWW_DLL
+# WWWLIB_FLAGS=-DWWW_WIN_DLL -DWWW_WIN_ASYNC
+PATH = $(wwwdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(wwwdir)
+www = $(wwwlib) $(wwwdll)
+!endif
+
+#
+# The xpdf library
+#
+!ifdef USE_XPDF
+!ifdef DEBUG
+xpdfname = $(library_prefix)xpdfd
+!else
+xpdfname = $(library_prefix)xpdf
+!endif
+xpdfdir = $(libs_srcdir)\xpdf$(xpdfver)
+xpdflib = $(xpdfdir)\xpdf\$(objdir)\$(xpdfname).lib
+!ifdef XPDF_DLL
+xpdfdll = $(xpdflib:.lib=.dll)
+PATH = $(xpdfdir)\xpdf\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(xpdfdir) -I$(xpdfdir)\xpdf -I$(xpdfdir)\Goo
+xpdf = $(xpdflib) $(xpdfdll)
+!endif
+
+#
+# The zlib library
+#
+!ifdef USE_ZLIB
+!ifdef DEBUG
+zlibname = $(library_prefix)zlibd
+!else
+zlibname = $(library_prefix)zlib
+!endif
+zlibdir = $(libs_srcdir)\zlib$(zlibver)
+zliblib = $(zlibdir)\$(objdir)\$(zlibname).lib
+!ifdef ZLIB_DLL
+zlibdll = $(zliblib:.lib=.dll)
+DEFS = $(DEFS) -DZLIB_DLL
+PATH = $(zlibdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(zlibdir)
+zlib = $(zliblib) $(zlibdll)
+!endif
+
+#
+# The expat library
+#
+!ifdef USE_EXPAT
+!ifdef DEBUG
+expatname = $(library_prefix)expatd
+!else
+expatname = $(library_prefix)expat
+!endif
+expatdir = $(libs_srcdir)\expat$(expatver)\lib
+expatlib = $(expatdir)\$(objdir)\$(expatname).lib
+!ifdef EXPAT_DLL
+expatdll = $(expatlib:.lib=.dll)
+DEFS = $(DEFS) -DEXPAT_DLL
+PATH = $(expatdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(expatdir)
+expat = $(expatlib) $(expatdll)
+!endif
+
+#
+# The unzip library
+#
+!ifdef USE_UNZIP
+!ifdef DEBUG
+unzipname = $(library_prefix)unzipd
+!else
+unzipname = $(library_prefix)unzip
+!endif
+unzipdir = $(libs_srcdir)\unzip$(unzipver)
+unziplib = $(unzipdir)\$(objdir)\$(unzipname).lib
+!ifdef UNZIP_DLL
+unzipdll = $(unziplib:.lib=.dll)
+DEFS = $(DEFS) -DUNZIP_DLL
+PATH = $(unzipdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(unzipdir) -I$(unzipdir)\windll
+unzip = $(unziplib) $(unzipdll)
+!endif
+
+#
+# The geturl library
+#
+!ifdef USE_GETURL
+!ifdef DEBUG
+geturlname = $(library_prefix)geturld
+!else
+geturlname = $(library_prefix)geturl
+!endif
+geturldir = $(libs_srcdir)\geturl$(geturlver)
+geturllib = $(geturldir)\$(objdir)\$(geturlname).lib
+!ifdef GETURL_DLL
+geturldll = $(geturllib:.lib=.dll)
+DEFS = $(DEFS) -DGETURL_DLL
+PATH = $(geturldir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(geturldir)
+geturl = $(geturllib) $(geturldll)
+!endif
+
+#
+# The netpbm library
+#
+!ifdef USE_NETPBM
+!ifdef DEBUG
+netpbmname = $(library_prefix)netpbmd
+!else
+netpbmname = $(library_prefix)netpbm
+!endif
+netpbmdir = $(graphics_srcdir)\netpbm$(netpbmver)
+netpbmlib = $(netpbmdir)\lib\$(objdir)\$(netpbmname).lib
+!ifdef NETPBM_DLL
+netpbmdll = $(netpbmlib:.lib=.dll)
+DEFS = $(DEFS) -DNETPBM_DLL # -DPNM_DLL -DPGM_DLL -DPPM_DLL
+PATH = $(netpbmdir)\lib\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(netpbmdir)\lib -I$(netpbmdir)
+netpbm = $(netpbmlib) $(netpbmdll)
+!endif
+
+#
+# The wmf libraries
+#
+!ifdef USE_WMF
+!ifdef DEBUG
+wmfaname = $(library_prefix)wmfad
+wmfiname = $(library_prefix)wmfid
+!else
+wmfaname = $(library_prefix)wmfa
+wmfiname = $(library_prefix)wmfi
+!endif
+wmfdir = $(utils_srcdir)\libwmf
+wmfapidir = $(wmfdir)\src\api
+wmfapilib = $(wmfdir)\$(objdir)\$(wmfaname).lib
+wmfapidll = $(wmfapilib:.lib=.dll)
+wmfipadir = $(wmfdir)\src\ipa
+wmfipalib = $(wmfdir)\$(objdir)\$(wmfiname).lib
+wmfipadll = $(wmfipalib:.lib=.dll)
+wmflib = $(wmfapilib) $(wmfipalib)
+!ifdef WMF_DLL
+wmfdll = $(wmfapidll) $(wmfipadll)
+DEFS = $(DEFS) -DWMF_DLL
+PATH = $(wmfapidir)\$(objdir);$(wmfipadir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(wmfapidir) -I$(wmfipadir) -I$(wmfdir)\src -I$(wmfdir)\include
+wmfapi = $(wmfapilib) $(wmfapidll)
+wmfipa = $(wmfipalib) $(wmfipadll)
+wmf = $(wmflib) $(wmfdll)
+!endif
+
+#
+# The XPM library
+#
+!ifdef USE_XPM
+!ifdef DEBUG
+xpmname = $(library_prefix)xpmd
+!else
+xpmname = $(library_prefix)xpm
+!endif
+xpmdir = $(graphics_srcdir)\xpm$(xpmver)
+xpmlib = $(xpmdir)\lib\$(objdir)\$(xpmname).lib
+!ifdef XPM_DLL
+xpmdll = $(xpmlib:.lib=.dll)
+DEFS = $(DEFS) -DXPM_DLL
+PATH = $(xpmdir)\lib\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -DFOR_MSW -I$(xpmdir)
+xpm = $(xpmlib) $(xpmdll)
+!endif
+
+#
+# The openldap library
+#
+!ifdef USE_OPENLDAP
+openldapdir = $(gnuroot_srcdir)\openldap$(openldapver)
+openlavllib = $(openldapdir)\libraries\libavl\$(objdir)\openlavl.lib
+openlutillib = $(openldapdir)\libraries\liblutil\$(objdir)\openlutil.lib
+openlberlib = $(openldapdir)\libraries\liblber\$(objdir)\openlber.lib
+openldaplib = $(openldapdir)\libraries\libldap\$(objdir)\openldap.lib
+openldap_rlib = $(openldapdir)\libraries\libldap_r\$(objdir)\openldap_r.lib
+openldbmlib = $(openldapdir)\libraries\libldbm\$(objdir)\openldbm.lib
+openldiflib = $(openldapdir)\libraries\libldif\$(objdir)\openldif.lib
+openlunicodelib = $(openldapdir)\libraries\liblunicode\$(objdir)\openlunicode.lib
+!ifdef OPENLDAP_DLL
+openlavldll = $(openldapdir)\libraries\libavl\$(objdir)\openlavl.dll
+openlutildll = $(openldapdir)\libraries\liblutil\$(objdir)\openlutil.dll
+openlberdll = $(openldapdir)\libraries\liblber\$(objdir)\openlber.dll
+openldapdll = $(openldapdir)\libraries\libldap\$(objdir)\openldap.dll
+openldap_rdll = $(openldapdir)\libraries\libldap_r\$(objdir)\openldap_r.dll
+openldbmdll = $(openldapdir)\libraries\libldbm\$(objdir)\openldbm.dll
+openldifdll = $(openldapdir)\libraries\libldif\$(objdir)\openldif.dll
+openlunicodedll = $(openldapdir)\libraries\liblunicode\$(objdir)\openlunicode.dll
+DEFS = $(DEFS) -DOPENLDAP_DLL
+PATH = $(openldapdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(openldapdir)\include
+openlavl = $(openlavllib) $(openlavldll)
+openlutil = $(openlutillib) $(openlutildll)
+openlber = $(openlberlib) $(openlberdll)
+openldap = $(openldaplib) $(openldapdll)
+openldap_r = $(openldap_rlib) $(openldap_rdll)
+openldbm = $(openldbmlib) $(openldbmdll)
+openldif = $(openldiflib) $(openldifdll)
+openlunicode = $(openlunicodelib) $(openlunicodedll)
+!endif
+
+#
+# The compface library
+#
+!ifdef USE_COMPFACE
+!ifdef DEBUG
+compfacename = $(library_prefix)cfaced
+!else
+compfacename = $(library_prefix)cface
+!endif
+compfacedir = $(gnuroot_srcdir)\compface$(compfacever)
+compfacelib = $(compfacedir)\$(objdir)\$(compfacename).lib
+!ifdef COMPFACE_DLL
+compfacedll = $(compfacelib:.lib=.dll)
+DEFS = $(DEFS) -DCOMPFACE_DLL
+PATH = $(compfacedir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(compfacedir)
+compface = $(compfacelib) $(compfacedll)
+!endif
+
+#
+# The RXP library
+#
+!ifdef USE_RXP
+!ifdef DEBUG
+rxpname = $(library_prefix)rxpd
+!else
+rxpname = $(library_prefix)rxp
+!endif
+rxpdir = $(gnuroot_srcdir)\rxp$(rxpver)
+rxplib = $(rxpdir)\$(objdir)\$(rxpname).lib
+!ifdef RXP_DLL
+rxpdll = $(rxplib:.lib=.dll)
+DEFS = $(DEFS) -DRXP_DLL
+PATH = $(rxpdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(rxpdir)
+rxp = $(rxplib) $(rxpdll)
+!endif
+
+#
+# The RLE/URT library
+#
+!ifdef USE_RLE
+!ifdef DEBUG
+rlename = $(library_prefix)rled
+!else
+rlename = $(library_prefix)rle
+!endif
+rledir = $(graphics_srcdir)\netpbm$(netpbmver)\urt$(rlever)
+rlelib = $(rledir)\$(objdir)\$(rlename).lib
+!ifdef RLE_DLL
+rledll = $(rlelib:.lib=.dll)
+DEFS = $(DEFS) -DRLE_DLL
+PATH = $(rledir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(rledir)
+rle = $(rlelib) $(rledll)
+!endif
+
+#
+# The bmeps library
+#
+!ifdef USE_BMEPS
+!ifdef DEBUG
+bmepsname = $(library_prefix)bmepsd
+!else
+bmepsname = $(library_prefix)bmeps
+!endif
+bmepsdir = $(graphics_srcdir)\bmeps$(bmepsver)
+bmepslib = $(bmepsdir)\$(objdir)\$(bmepsname).lib
+!ifdef BMEPS_DLL
+bmepsdll = $(bmepslib:.lib=.dll)
+DEFS = $(DEFS) -DBMEPS_DLL
+PATH = $(bmepsdir)\$(objdir);$(PATH)
+!endif
+DEFS = $(DEFS) -I$(bmepsdir)
+bmeps = $(bmepslib) $(bmepsdll)
+!endif
+
+#
+# The TeX engines
+#
+!ifdef USE_TEX
+!ifdef TEX_DLL
+DEFS = $(DEFS) -DTEX_DLL
+!endif
+!endif
+
+#
+# Setargv expands arguments
+# Unfortunately, when linking with msvcrt.dll (as it is recommended under NT)
+# it is not possible to provide his own setargv() routine. Globbing is hardcoded
+# in the dll and triggered only if you link in the dummy MS setargv.obj
+#
+setargvobj = setargv.obj
+
+# End of libsdef.mak
+#
+# Local Variables:
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/libsrul.mak b/Build/source/texk/msvc/libsrul.mak
new file mode 100644
index 00000000000..db2b1839cb2
--- /dev/null
+++ b/Build/source/texk/msvc/libsrul.mak
@@ -0,0 +1,149 @@
+################################################################################
+#
+# Makefile : libsrul, dependency rules to build libraries
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <03/07/22 05:32:42 popineau>
+#
+################################################################################
+
+!if (defined(USE_GNUW32) && !defined(MAKE_GNUW32))
+$(gnuw32lib):
+ pushd $(gnuw32dir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_GSW32) && !defined(MAKE_GSW32))
+$(gsw32lib):
+ pushd $(gsw32dir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_MKTEX) && !defined(MAKE_MKTEX))
+$(mktexlib):
+ pushd $(mktexdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_KPATHSEA) && !defined(MAKE_KPATHSEA))
+$(kpathsealib):
+ pushd $(kpathseadir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_ZLIB) && !defined(MAKE_ZLIB))
+$(zliblib):
+ pushd $(zlibdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_BZIP2) && !defined(MAKE_BZIP2))
+$(bzip2lib):
+ pushd $(bzip2dir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_MD5) && !defined(MAKE_MD5))
+$(md5lib):
+ pushd $(md5dir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_PNG) && !defined(MAKE_PNG))
+$(pnglib):
+ pushd $(pngdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_XPDF) && !defined(MAKE_XPDF))
+$(xpdflib):
+ pushd $(xpdfdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_TIFF) && !defined(MAKE_TIFF))
+$(tifflib):
+ pushd $(tiffdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_JPEG) && !defined(MAKE_JPEG))
+$(jpeglib):
+ pushd $(jpegdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_GIF) && !defined(MAKE_GIF))
+$(giflib):
+ pushd $(gifdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_REGEX) && !defined(MAKE_REGEX))
+$(regexlib):
+ pushd $(regexdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_WWW) && !defined(MAKE_WWW))
+$(wwwlib):
+ pushd $(wwwdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_EXPAT) && !defined(MAKE_EXPAT))
+$(expatlib):
+ pushd $(expatdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_GETURL) && !defined(MAKE_GETURL))
+$(geturllib):
+ pushd $(geturldir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_UNZIP) && !defined(MAKE_UNZIP))
+$(unziplib):
+ pushd $(unzipdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_NETPBM) && !defined(MAKE_NETPBM))
+$(netpbmlib):
+ pushd $(netpbmdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_WMF) && !defined(MAKE_WMF))
+$(wmflib):
+ pushd $(wmfdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_FREETYPE) && !defined(MAKE_FREETYPE))
+$(freetypelib):
+ pushd $(freetypedir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_FREETYPE2) && !defined(MAKE_FREETYPE2))
+$(freetype2lib):
+ pushd $(freetype2dir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_CURL) && !defined(MAKE_CURL))
+$(curllib):
+ pushd $(curldir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_RLE) && !defined(MAKE_RLE))
+$(rlelib):
+ pushd $(rledir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_COMPFACE) && !defined(MAKE_COMPFACE))
+$(compfacelib):
+ pushd $(compfacedir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_RXP) && !defined(MAKE_RXP))
+$(rxplib):
+ pushd $(rxpdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_BMEPS) && !defined(MAKE_BMEPS))
+$(bmepslib):
+ pushd $(bmepsdir) & $(make) lib & popd
+!endif
+
+!if (defined(USE_XPM) && !defined(MAKE_XPM))
+$(xpmlib):
+ pushd $(xpmdir) & $(make) lib & popd
+!endif
+
+# End of libsrul.mak
+#
+# Local Variables:
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/man.mak b/Build/source/texk/msvc/man.mak
new file mode 100644
index 00000000000..32dd50e8763
--- /dev/null
+++ b/Build/source/texk/msvc/man.mak
@@ -0,0 +1,206 @@
+################################################################################
+#
+# Makefile : man, build man pages in nroff, html and dvi format
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <04/03/20 15:50:40 popineau>
+#
+################################################################################
+
+#
+# Only if manfiles or htmlmanfiles has been defined
+#
+!if ("$(manfiles)" != "" || "$(htmlmanfiles)" != "")
+
+#
+# Beware: these definitions will only override
+# already present definitions in your environment
+#
+GROFF_FONT_PATH=.;$(gnushare:\=/)/groff/font
+GROFF_TMAC_PATH=.;$(gnushare:\=/)/groff/tmac
+
+!ifndef docdir
+docdir = $(texmf)\doc
+!endif
+
+!ifndef mandir
+mandir = $(docdir)\man
+!endif
+
+psmandir = $(docdir)\man
+dvimandir = $(docdir)\man
+htmlmandir = $(docdir)\man
+
+!ifndef mansedscript
+mansedscript = $(win32seddir)\mansedscript
+!endif
+
+# The edited file always has extension .1; we change it when we install.
+.SUFFIXES: .man .1 .3 .5 .8 .txt .ps .dvi .html
+.man.1:
+ $(silent)$(sed) -f $(mansedscript) $< >$@
+
+.1.dvi:
+# $(DITROFF) -Tdvi -man $< >$@
+# echo $(GROFF_FONT_PATH)
+ $(silent)$(troff) -e -t -man -Tdvi $< >$@
+
+.1.ps:
+# $(DITROFF) -Tps -man $< >$@
+ $(silent)$(troff) -e -t -man -Tps $< | $(grops) >$@
+
+.1.txt:
+# $(DITROFF) -Tascii -man $< | col -b | expand >$@
+ $(silent)$(troff) -e -t -man -Tascii $< | $(col) -b | $(expand) >$@
+
+.3.dvi:
+# $(DITROFF) -Tdvi -man $< >$@
+# echo $(GROFF_FONT_PATH)
+ $(silent)$(troff) -e -t -man -Tdvi $< >$@
+
+.3.ps:
+# $(DITROFF) -Tps -man $< >$@
+ $(silent)$(troff) -e -t -man -Tps $< >$@
+
+.3.txt:
+# $(DITROFF) -Tascii -man $< | col -b | expand >$@
+ $(silent)$(troff) -e -t -man -Tascii $< | $(col) -b | $(expand) >$@
+
+.5.dvi:
+# $(DITROFF) -Tdvi -man $< >$@
+# echo $(GROFF_FONT_PATH)
+ $(silent)$(troff) -e -t -man -Tdvi $< >$@
+
+.5.ps:
+# $(DITROFF) -Tps -man $< >$@
+ $(silent)$(troff) -e -t -man -Tps $< >$@
+
+.5.txt:
+# $(DITROFF) -Tascii -man $< | col -b | expand >$@
+ $(silent)$(troff) -e -t -man -Tascii $< | $(col) -b | $(expand) >$@
+
+.8.dvi:
+# $(DITROFF) -Tdvi -man $< >$@
+# echo $(GROFF_FONT_PATH)
+ $(silent)$(troff) -e -t -man -Tdvi $< >$@
+
+.8.ps:
+# $(DITROFF) -Tps -man $< >$@
+ $(silent)$(troff) -e -t -man -Tps $< >$@
+
+.8.txt:
+# $(DITROFF) -Tascii -man $< | col -b | expand >$@
+ $(silent)$(troff) -e -t -man -Tascii $< | $(col) -b | $(expand) >$@
+
+.man.html:
+ $(silent)$(sed) -f $(mansedscript) $< | $(rman) -f HTML -n $(<:.man=.1) | $(perl) $(win32perldir)/fix-rman.pl --title=$(<:.man=.1) > $@
+
+.1.html:
+ $(silent)$(rman) -f HTML -n $(<:.man=.1) $< | $(perl) $(win32perldir)/fix-rman.pl > $@
+
+.3.html:
+ $(silent)$(rman) -f HTML -n $(<:.man=.3) $< | $(perl) $(win32perldir)/fix-rman.pl > $@
+
+.5.html:
+ $(silent)$(rman) -f HTML -n $(<:.man=.5) $< | $(perl) $(win32perldir)/fix-rman.pl > $@
+
+.8.html:
+ $(silent)$(rman) -f HTML -n $(<:.man=.8) $< | $(perl) $(win32perldir)/fix-rman.pl > $@
+
+# dvimanfiles = $(manfiles:.1=.dvi) $(manfiles:.3=.dvi) $(manfiles:.5=.dvi) $(manfiles:.8=.dvi)
+dvimanfiles =
+psmanfiles = $(manfiles:.1=.ps) $(manfiles:.3=.ps) $(manfiles:.5=.ps) $(manfiles:.8=.ps)
+htmlmanfiles = $(manfiles:.1=.html) $(manfiles:.3=.html) $(manfiles:.5=.html) $(manfiles:.8=.html)
+txtmanfiles = $(manfiles:.1=.txt) $(manfiles:.3=.txt) $(manfiles:.5=.txt) $(manfiles:.8=.txt)
+
+$(manfiles): $(mansedscript)
+$(htmlmanfiles): $(mansedscript)
+
+man: $(manfiles) $(htmlmanfiles)
+
+# We do not depend on the top-level Makefile since the top-level
+# Makefile can change for reasons that do not affect the man pages.
+# At present, all but VERSION should be unused.
+$(win32seddir)\mansedscript.sed:
+ @echo off <<$@
+s/"//g
+s/[ ]*\/\*[^*]*\*\///g
+<<KEEP
+
+$(win32seddir)\mansedscript: $(win32seddir)\mansedscript.sed $(kpathseadir)\paths.h
+ -@$(del) $(win32seddir)\mansedscript $(redir_stderr)
+ -@echo $(verbose) & ( \
+ for %f in ($(kpathseadir)/paths.h) do \
+ $(sed) -n -e "/^#define/s/#define[ ][ ]*\([A-Z_a-z][A-Z_a-z]*\)[ ][ ]*\(.*\)/s%@\1@%\2%/p" %f \
+ | $(sed) -f $(win32seddir)\mansedscript.sed >>$(win32seddir)\mansedscript.1 \
+ ) $(redir_stdout)
+ @echo ""<<$(win32seddir)\mansedscript.2 $(redir_stdout)
+s%@VERSION@%$(web2cmaj).$(web2cmin).$(web2cbeta)%
+s%@BINDIR@%$(bindir)%
+s%@INFODIR@%$(infodir)%
+s%@TEXINPUTDIR@%$(texinputdir)%
+s%@MFINPUTDIR@%$(mfinputdir)%
+s%@MPINPUTDIR@%$(mpinputdir)%
+s%@FONTDIR@%$(fontdir)%
+s%@FMTDIR@%$(fmtdir)%
+s%@BASEDIR@%$(basedir)%
+s%@MEMDIR@%$(memdir)%
+s%@TEXPOOLDIR@%$(texpooldir)%
+s%@MFPOOLDIR@%$(mfpooldir)%
+s%@MPPOOLDIR@%$(mppooldir)%
+s%@FONTMAPDIR@%$(dvipsdir)%
+s%@LOCALMODES@%$(localmodes)%
+<<KEEP
+ -@$(copy) $(win32seddir)\mansedscript.1 + $(win32seddir)\mansedscript.2 $(win32seddir)\mansedscript.3 $(redir_stdout)
+ -$(sed) "s!$(prefix:\=\\)!c:\\Program Files\\TeXLive!g" < $(win32seddir)\mansedscript.3 > $(win32seddir)\mansedscript
+ -@$(del) $(win32seddir)\mansedscript.1 $(win32seddir)\mansedscript.2 $(win32seddir)\mansedscript.3 $(redir_stdout)
+
+!if !defined(MAKE_KPATHSEA)
+$(kpathseadir)\paths.h:
+ -@echo $(verbose) & ( \
+ pushd $(kpathseadir) & $(make) paths.h & popd \
+ )
+!endif
+
+installdirs = $(installdirs) $(mandir) $(mandir)\man1 $(mandir)\man3 $(mandir)\man5 $(mandir)\man8 $(htmlmandir)
+
+install:: install-man
+
+install-man:: $(manfiles) $(htmlmanfiles)
+ -@$(del) install-manpages.bat install-manpages.new $(redir_stderr)
+ -@echo $(verbose) & for %i in ($(manfiles)) do \
+ echo $(copy) %i $(mandir)\man%~xi\%~nxi >> install-manpages.bat & \
+ echo $(copy) %~ni.html $(mandir)\man%~xi\%~ni.html >> install-manpages.bat
+ $(silent)$(sed) -e "1,$$s/man\.\([0-9]\)/man\1/g" < install-manpages.bat > install-manpages.new
+ $(silent)$(copy) install-manpages.new install-manpages.bat $(redir_stdout)
+ $(silent)$(del) install-manpages.new
+ -@echo $(verbose) & install-manpages.bat $(redir_stdout)
+ $(silent)$(del) install-manpages.bat
+
+extraclean::
+ -@echo $(verbose) & ( \
+ echo Cleaning up extra man files in $(MAKEDIR) & \
+ $(silent)$(del) mansedscript $(win32seddir)\mansedscript \
+ mansedscript.1 mansedscript.2 $(redir_stderr) & \
+ for %i in ($(manfiles)) do \
+ $(del) %~ni.ps %~ni.html %~ni.pdf $(redir_stderr) \
+ )
+ -@echo $(verbose) & ( \
+ for %i in ($(manfiles)) do \
+ if exist %~ni.man $(del) %~ni.1 $(redir_stderr) \
+ )
+
+!else
+#
+# If no manpages have been declared, do nothing
+#
+install-man::
+
+!endif
+
+# End of man.mak
+#
+# Local variables:
+# page-delimiter: "^# \f"
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/mansedscript.sed b/Build/source/texk/msvc/mansedscript.sed
new file mode 100644
index 00000000000..a53746ba929
--- /dev/null
+++ b/Build/source/texk/msvc/mansedscript.sed
@@ -0,0 +1,2 @@
+s/"//g
+s/[ ]*\/\*[^*]*\*\///g
diff --git a/Build/source/texk/msvc/mfmp.sed b/Build/source/texk/msvc/mfmp.sed
new file mode 100644
index 00000000000..8163ba4d42a
--- /dev/null
+++ b/Build/source/texk/msvc/mfmp.sed
@@ -0,0 +1,4 @@
+/^fraction zmakefraction/s/zmakefraction/__stdcall zmakefraction/
+/^integer ztakefraction/s/ztakefraction/__stdcall ztakefraction/
+/^scaled zmakescaled/s/zmakescaled/__stdcall zmakescaled/
+/^integer ztakescaled/s/ztakescaled/__stdcall ztakescaled/
diff --git a/Build/source/texk/msvc/netpbmpaths.mak b/Build/source/texk/msvc/netpbmpaths.mak
new file mode 100644
index 00000000000..3efc4efbf5b
--- /dev/null
+++ b/Build/source/texk/msvc/netpbmpaths.mak
@@ -0,0 +1,25 @@
+################################################################################
+#
+# Makefile : paths definitions for NetPBM tools
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <02/03/13 11:00:40 popineau>
+#
+################################################################################
+
+prefix = $(netpbmtools)
+bindir = $(prefix)\bin
+libdir = $(prefix)\lib
+sharedir = $(prefix)\share
+includedir = $(prefix)\include
+docdir = $(prefix)\doc
+mandir = $(prefix)\man
+infodir = $(prefix)\info
+#htmldocdir = $(docdir)\html
+
+# End of netpbmpaths.mak
+#
+# Local variables:
+# page-delimiter: "^# \f"
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/paths.mak b/Build/source/texk/msvc/paths.mak
new file mode 100644
index 00000000000..ef40e92945b
--- /dev/null
+++ b/Build/source/texk/msvc/paths.mak
@@ -0,0 +1,125 @@
+################################################################################
+#
+# Makefile : paths, paths definitions for web2c/win32
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <04/03/08 10:11:56 popineau>
+#
+################################################################################
+#
+# The compile-time paths are defined in kpathsea/paths.h, which is built
+# from kpathsea/texmf.in and these definitions. See kpathsea/INSTALL
+# for how the various path-related files are used and created.
+
+# Do not change prefix and exec_prefix in Makefile.in!
+# configure doesn't propagate the change to the other Makefiles.
+# Instead, give the -prefix/-exec-prefix options to configure.
+# (See kpathsea/INSTALL for more details.) This is arguably
+# a bug, but it's not likely to change soon.
+!ifndef prefix
+prefix = c:\Program Files\TeXLive
+!endif
+exec_prefix = $(prefix)
+
+arch = win32
+
+# !ifdef DEVELOPMENT
+# arch = $(arch)-development
+# !endif
+
+!ifdef STATIC
+arch = $(arch)-static
+!endif
+
+# Architecture-dependent executables.
+bindir = $(exec_prefix)\bin\$(arch)
+
+# Architecture-independent executables.
+scriptdir = $(bindir)
+
+# Architecture-dependent files, such as lib*.a files.
+libdir = $(exec_prefix)\lib\$(arch)
+
+# Architecture-independent files.
+datadir = $(prefix)
+
+# Header files.
+includedir = $(prefix)\include\$(arch)
+
+# GNU .info* files.
+infodir = $(texmf)\doc\info
+
+# Unix man pages.
+manext = 1
+mandir = $(texmf)\doc\man
+man1dir = $(texmf)\doc\man\man$(manext)
+man3dir = $(texmf)\doc\man\man3
+man5dir = $(texmf)\doc\man\man5
+
+# TeX system-specific directories. Not all of the following are relevant
+# for all programs, but it seems cleaner to collect everything in one place.
+
+# The default paths are now in kpathsea/texmf.in. Passing all the
+# paths to sub-makes can make the arg list too long on system V.
+# Note that if you make changes below, you will have to make the
+# corresponding changes to texmf.in or texmf.cnf yourself.
+
+# The root of the main tree.
+texmf = $(datadir)\texmf
+texmfdist = $(datadir)\texmf-dist
+
+# !ifdef DEVELOPMENT
+# texmf = $(texmf)-development
+# !endif
+
+# The directory used by varfonts.
+vartexfonts = $$(TEMP)/texfonts
+
+# Regular input files.
+texinputdir = $(texmf)\tex
+mfinputdir = $(texmf)\metafont
+mpinputdir = $(texmf)\metapost
+mftinputdir = $(texmf)\mft
+
+# dvips's epsf.tex, rotate.tex, etc. get installed here;
+# ditto for dvilj's fonts support.
+dvips_plain_macrodir = $(texinputdir)\plain\dvips
+dvilj_latex2e_macrodir = $(texinputdir)\latex\dvilj
+
+# mktex.cnf, texmf.cnf, etc.
+web2cdir = $(texmf)\web2c
+
+# The top-level font directory.
+fontdir = $(texmf)\fonts
+
+# Memory dumps (.fmt/.base/.mem).
+fmtdir = $(web2cdir)
+basedir = $(fmtdir)
+memdir = $(fmtdir)
+
+# Pool files.
+texpooldir = $(web2cdir)
+mfpooldir = $(texpooldir)
+mppooldir = $(texpooldir)
+
+# Where the .map files from fontname are installed.
+fontnamedir = $(texmf)\fontname
+
+# For dvips configuration files, psfonts.map, etc.
+dvipsdir = $(texmf)\dvips
+
+# For dvips .pro files, gsftopk's render.ps, etc.
+psheaderdir = $(dvipsdir)
+
+# If a font can't be found close enough to its stated size, we look for
+# each of these sizes in the order given. This colon-separated list is
+# overridden by the envvar TEXSIZES, and by a program-specific variable
+# (e.g., XDVISIZES), and perhaps by a config file (e.g., in dvips).
+# This list must be sorted in ascending order.
+default_texsizes = 300:600
+
+# End of paths.mak.
+#
+# Local Variables:
+# mode: Makefile
+# End: \ No newline at end of file
diff --git a/Build/source/texk/msvc/paths_h_aux.sed b/Build/source/texk/msvc/paths_h_aux.sed
new file mode 100644
index 00000000000..acbe6b37ed6
--- /dev/null
+++ b/Build/source/texk/msvc/paths_h_aux.sed
@@ -0,0 +1 @@
+s/^\([^ =]*\)[ ]*=*[ ]*\(.*\)/#ifndef DEFAULT_\1@#define DEFAULT_\1 \"\2\"@#endif/
diff --git a/Build/source/texk/msvc/rdepend.mak b/Build/source/texk/msvc/rdepend.mak
new file mode 100644
index 00000000000..521baeeec6c
--- /dev/null
+++ b/Build/source/texk/msvc/rdepend.mak
@@ -0,0 +1,146 @@
+################################################################################
+#
+# Makefile : rdepend, rules to build depend.mak dependencies
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <03/08/19 12:12:54 popineau>
+#
+################################################################################
+#
+# Have to use -M, not -MM, since we use <kpathsea/...> instead of
+# "kpathsea/..." in the sources. But that means we have to remove the
+# directory prefixes and all the system include files.
+# And <kpathsea/paths.h> is generated, not part of the distribution.
+#
+# And, there's no need for any installer/user to ever run this, it can
+# only cause trouble. So comment it out in the distribution.
+# (It doesn't work when the source and build directories are different.)
+!if exist(c-auto.in)
+c_auto_h_dir = .
+!else
+c_auto_h_dir = $(kpathseadir)
+!endif
+
+makedepend_files = $(makedepend_files) *.c *.cc
+
+makedepend_include = $(makedepend_include) -I"$(MSVCROOT:\=/)/include" -I"$(MSVCROOT:\=/)/PlatformSDK/include"
+
+depend:: $(c_auto_h_dir)/c-auto.h $(win32makedir)/rdepend.mak
+ $(makedepend) -f- -p"$$(objdir)\\" $(makedepend_cflags) -I$(c_auto_h_dir) $(makedepend_include) $(makedepend_files) \
+ | $(sed) \
+ -e "s,\\,/,g" \
+ -e "s,/[ ]*$$,\\," \
+ -e "s,$(MSVCROOT:\=/)/include/[^ ]*,,g" \
+ -e "s,$(MSVCROOT:\=/)/PlatformSDK/include/[^ ]*,,g" \
+!ifdef kpathseadir
+ -e "s,$(kpathseadir:\=/)/\.\./kpathsea/,$$(kpathseadir)/,g" \
+!if "$(kpathseadir)" != "."
+ -e "s,$(kpathseadir:\=/)/,$$(kpathseadir)/,g" \
+!endif
+!endif
+!ifdef bmepsdir
+ -e "s,$(bmepsdir:\=/)/,$$(bmepsdir)/,g" \
+!endif
+!ifdef bzip2dir
+ -e "s,$(bzip2dir:\=/)/,$$(bzip2dir)/,g" \
+!endif
+!ifdef compfacedir
+ -e "s,$(compfacedir:\=/)/,$$(compfacedir)/,g" \
+!endif
+!ifdef curldir
+ -e "s,$(curldir:\=/)/,$$(curldir)/,g" \
+!endif
+!ifdef expatdir
+ -e "s,$(expatdir:\=/)/,$$(expatdir)/,g" \
+!endif
+!ifdef freetypedir
+ -e "s,$(freetypedir:\=/)/,$$(freetypedir)/,g" \
+!endif
+!ifdef freetype2dir
+ -e "s,$(freetype2dir:\=/)/,$$(freetype2dir)/,g" \
+!endif
+!ifdef geturldir
+ -e "s,$(geturldir:\=/)/,$$(geturldir)/,g" \
+!endif
+!ifdef gifdir
+ -e "s,$(gifdir:\=/)/,$$(gifdir)/,g" \
+!endif
+!ifdef gnuw32dir
+ -e "s,$(gnuw32dir:\=/)/,$$(gnuw32dir)/,g" \
+!endif
+!ifdef gsw32dir
+ -e "s,$(gsw32dir:\=/)/,$$(gsw32dir)/,g" \
+!endif
+!ifdef jpegdir
+ -e "s,$(jpegdir:\=/)/,$$(jpegdir)/,g" \
+!endif
+!ifdef md5dir
+ -e "s,$(md5dir:\=/)/,$$(md5dir)/,g" \
+!endif
+!ifdef mktexdir
+ -e "s,$(mktexdir:\=/)/,$$(mktexdir)/,g" \
+!endif
+!ifdef netpbmdir
+ -e "s,$(netpbmdir:\=/)/,$$(netpbmdir)/,g" \
+!endif
+!ifdef pngdir
+ -e "s,$(pngdir:\=/)/,$$(pngdir)/,g" \
+!endif
+!ifdef regexdir
+ -e "s,$(regexdir:\=/)/,$$(regexdir)/,g" \
+!endif
+!ifdef t1dir
+ -e "s,$(t1dir:\=/)/,$$(t1dir)/,g" \
+!endif
+!ifdef tiffdir
+ -e "s,$(tiffdir:\=/)/,$$(tiffdir)/,g" \
+!endif
+!ifdef ttfdir
+ -e "s,$(ttfdir:\=/)/,$$(ttfdir)/,g" \
+!endif
+!ifdef unzipdir
+ -e "s,$(unzipdir:\=/)/,$$(unzipdir)/,g" \
+!endif
+!ifdef wmfdir
+ -e "s,$(wmfdir:\=/)/,$$(wmfdir)/,g" \
+!endif
+!ifdef wwwdir
+ -e "s,$(wwwdir:\=/)/,$$(wwwdir)/,g" \
+!endif
+!ifdef xpdfdir
+ -e "s,$(xpdfdir:\=/)/,$$(xpdfdir)/,g" \
+!endif
+!ifdef xpmdir
+ -e "s,$(xpmdir:\=/)/,$$(xpmdir)/,g" \
+!endif
+!ifdef zlibdir
+ -e "s,$(zlibdir:\=/)/,$$(zlibdir)/,g" \
+!endif
+ -e "s,$$(objdir)\\dvi2xx.obj,$$(objdir)\\dvilj.obj $$(objdir)\\dvilj2p.obj $$(objdir)\\dvilj4.obj $$(objdir)\\dvilj4l.obj," \
+ -e "s,lex.yy,$$(LEX_OUTPUT_ROOT),g" \
+ | $(perl) $(win32perldir)/fix-depend.pl \
+ | $(grep) -ve "^[ ]*\\$$" \
+ | $(awk) -f $(texk_srcdir)/unbackslsh.awk \
+ | sed -e "s/texk\.development/texk/g" \
+ >depend.mak
+# If kpathsea, we're making .lo library objects instead of .o's.
+# pwd | grep -v kpathsea >/dev/null \
+# || (sed -e 's/\.o:/.lo:/' -e 's/kpsewhich.lo:/kpsewhich.o:/' \
+# <depend.mk >depend-tmp.mk; mv depend-tmp.mk depend.mk)
+
+# Let's stick a rule for TAGS here, just in case someone wants them.
+# (We don't put them in the distributions, to keep them smaller.)
+#TAGS: *.c *.h
+# pwd | grep kpathsea >/dev/null && append=../kpathsea/TAGS; \
+# etags $$append *.[ch]
+
+depend.mak: depend
+
+# Prevent GNU make 3.[59,63) from overflowing arg limit on system V.
+.NOEXPORT:
+
+# End of rdepend.mak.
+#
+# Local Variables:
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/splitup.pl b/Build/source/texk/msvc/splitup.pl
new file mode 100644
index 00000000000..8248e375eec
--- /dev/null
+++ b/Build/source/texk/msvc/splitup.pl
@@ -0,0 +1,62 @@
+BEGIN { # get our other local perl modules.
+ $mydir = "c:/Local/Perl/lib"; # fabrice
+ unshift (@INC, $mydir) if -d $mydir;
+ $mydir = "c:/Local/Perl/site/lib"; # fabrice
+ unshift (@INC, $mydir) if -d $mydir;
+}
+
+require "newgetopt.pl";
+# use lib "./perl";
+
+$prologue = "#undef TRIP\n#undef TRAP\n#define STAT\n#define INI\n";
+
+%engines = (
+ "tex" => "#define INITEX\n#define TeX\n",
+ "etex" => "#define INITEX\n#define TeX\n#define eTeX\n",
+ "pdftex"=> "#define INITEX\n#define TeX\n#define pdfTeX\n",
+ "pdfetex"=> "#define INITEX\n#define TeX\n#define pdfeTeX\n",
+ "pdfxtex"=> "#define INITEX\n#define TeX\n#define pdfxTeX\n",
+ "omega"=> "#define INITEX\n#define TeX\n#define Omega\n",
+ "eomega"=> "#define INITEX\n#define TeX\n#define eOmega\n",
+ "aleph"=> "#define INITEX\n#define TeX\n#define Aleph\n",
+ "mf"=> "#define INIMF\n#define MF\n",
+ "mp"=> "#define INIMP\n#define MP\n"
+ );
+
+&main;
+
+exit 0;
+
+sub help {
+ print STDERR "Usage: $0 --name=<engine>\n";
+}
+
+sub main {
+ unless (&NGetOpt ("name=s", "dfile", "help")) {
+ print STDERR "Try `$0 --help'";
+ exit 1;
+ }
+
+ open DFILE,">${opt_name}d.h" if ($opt_dfile);
+ print STDOUT $prologue;
+ print DFILE $prologue if ($opt_dfile);
+ print STDOUT $engines{$opt_name};
+ print DFILE $engines{$opt_name} if ($opt_dfile);
+ $coerceline = "^#include \"${opt_name}coerce\.h\"";
+ while (<STDIN>) {
+ print STDOUT $_;
+ print DFILE ($_ =~ m@^(\#|\s|\n|}|\/|typedef)@x ? $_ : "EXTERN $_") if ($opt_dfile);
+ # print STDERR "coerceline = $coerceline\n";
+ if (/${coerceline}/) {
+ # Include $opt_nameextra.c
+ open EXTRA, "<./lib/texmfmp.c";
+ while (<EXTRA>) {
+ s/TEX-OR-MF-OR-MP/${opt_name}/;
+ s@^(#include \"${opt_name}d\.h\")@/* $1 */@;
+ print STDOUT $_;
+ }
+ close EXTRA;
+ close DFILE if ($opt_dfile);
+ }
+ }
+}
diff --git a/Build/source/texk/msvc/subdirs.mak b/Build/source/texk/msvc/subdirs.mak
new file mode 100644
index 00000000000..2e5e354cfd9
--- /dev/null
+++ b/Build/source/texk/msvc/subdirs.mak
@@ -0,0 +1,42 @@
+################################################################################
+#
+# Makefile : subdirs, rules to recursively enter directories
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <02/02/19 02:52:04 popineau>
+#
+################################################################################
+
+default:: all
+
+all::
+ -@echo $(verbose) & for %%d in ($(subdirs)) do \
+ echo Entering %%d for $@ \
+ & pushd %%d & $(make) $@ & popd
+
+lib::
+ -@echo $(verbose) & for %%d in ($(subdirs)) do \
+ echo Entering %%d for $@ \
+ & pushd %%d & $(make) $@ & popd
+
+install::
+ -@echo $(verbose) & for %%d in ($(subdirs)) do \
+ echo Entering %%d for $@ \
+ & pushd %%d & $(make) $@ & popd
+
+depend::
+ -@echo $(verbose) & for %%d in ($(subdirs)) do \
+ echo Entering %%d for $@ \
+ & pushd %%d & $(make) $@ & popd
+
+# Other standard targets for everything.
+clean distclean::
+ -@echo $(verbose) & for %%d in ($(subdirs)) do \
+ echo Entering %%d for $@ \
+ & pushd %%d & $(make) $@ & popd
+
+# End of subdirs.mak
+#
+# Local Variables:
+# mode: makefile
+# End:
diff --git a/Build/source/texk/msvc/template-dll.rc b/Build/source/texk/msvc/template-dll.rc
new file mode 100644
index 00000000000..55482786174
--- /dev/null
+++ b/Build/source/texk/msvc/template-dll.rc
@@ -0,0 +1,32 @@
+/* foo.rc: Foo DLL version number -*- C++ -*-
+
+ Copyright (C) 1996-2002 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+
+ This file is part of the Foo Library (foo.dll).
+
+ The Foo Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ The Foo Library is distributed in the hope that it will be
+ useful, but WITHOUT ANY WARRANTY; without even the implied warranty
+ of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with the Foo Library; if not, write to the Free Software
+ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ USA. */
+
+#define VER_FILEVERSION 0,6,0,0
+#define VER_FILEVERSION_STR "0.6"
+
+#define VER_INTERNALNAME_STR "foo"
+#define VER_ORIGINALFILENAME_STR "foo.dll"
+
+#define VER_FILEDESCRIPTION_STR "Foo Core DLL"
+
+#define VER_FILETYPE VFT_DLL
+
+#include "texlive.version"
diff --git a/Build/source/texk/msvc/template-exe.rc b/Build/source/texk/msvc/template-exe.rc
new file mode 100644
index 00000000000..da8d08423b1
--- /dev/null
+++ b/Build/source/texk/msvc/template-exe.rc
@@ -0,0 +1,29 @@
+/* template-exe.rc: version number -*- C++ -*-
+
+ Copyright (C) 1996-2002 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+
+ This file is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 2, or (at your
+ option) any later version.
+
+ This file is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this file; if not, write to the Free Software
+ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ USA. */
+
+#define VER_FILEVERSION 0,6,0,0
+#define VER_FILEVERSION_STR "0.6 ()"
+
+#define VER_INTERNALNAME_STR "foo"
+#define VER_ORIGINALFILENAME_STR "foo.exe"
+#define VER_FILEDESCRIPTION_STR "Foo program"
+
+#define VER_LEGALCOPYRIGHT_STR "Copyright (C)"
+
+#include "texlive.version" \ No newline at end of file
diff --git a/Build/source/texk/msvc/tex-deopt.sed b/Build/source/texk/msvc/tex-deopt.sed
new file mode 100644
index 00000000000..b251e3680f3
--- /dev/null
+++ b/Build/source/texk/msvc/tex-deopt.sed
@@ -0,0 +1,16 @@
+/^zmakescripts ( q , delta ) /a\
+#pragma optimize ("g", on)
+/^zmakeleftright ( q , style , maxd , maxh ) / a\
+#pragma optimize ("g", on)
+/^zmakeop ( q ) / a\
+#pragma optimize ("g", on)
+/^zmakeord ( q ) / a\
+#pragma optimize ("g", on)
+/^zbegintokenlist ( halfword p , quarterword t )/ i\
+#pragma optimize ("g", off)
+/^backinput ( void ) / i\
+#pragma optimize ("g", on)
+/^getnext ( void ) / i\
+#pragma optimize ("g", off)
+/^firmuptheline ( void ) / i\
+#pragma optimize ("g", on)
diff --git a/Build/source/texk/msvc/texc-script.sed b/Build/source/texk/msvc/texc-script.sed
new file mode 100644
index 00000000000..4f7ba078907
--- /dev/null
+++ b/Build/source/texk/msvc/texc-script.sed
@@ -0,0 +1,3 @@
+/% begin code for uncompressed fonts only/,/% end code for uncompressed fonts only/d
+/% here's the alternate code for unpacking compressed fonts/,/% end of code for unpacking compressed fonts/s/% //
+
diff --git a/Build/source/texk/msvc/texi.mak b/Build/source/texk/msvc/texi.mak
new file mode 100644
index 00000000000..ca625c46c7d
--- /dev/null
+++ b/Build/source/texk/msvc/texi.mak
@@ -0,0 +1,172 @@
+################################################################################
+#
+# Makefile : texi, build info, pdf and html files out of texinfo files
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <04/03/20 15:52:19 popineau>
+#
+################################################################################
+
+# paths to doc directories
+
+!ifndef docdir
+docdir = $(texmf)\doc
+!endif
+
+!ifndef infodir
+infodir = $(docdir)\info
+!endif
+
+!ifndef htmldocdir
+htmldocdir = $(docdir)\$(docsubdir)
+!endif
+
+!ifndef pdfdocdir
+pdfdocdir = $(docdir)\$(docsubdir)
+!endif
+
+#
+# Only if infofiles has been defined
+#
+
+!if ("$(infofiles)" != "" || "$(pdfdocfiles)" != "" || "$(htmldocfiles)" != "")
+
+makeinfo = makeinfo
+makeinfo_flags = --paragraph-indent=2 --no-split -I$(srcdir)
+
+texi2html = perl $(texk_srcdir)\tetex\texi2html
+texi2html_flags = -expandinfo -number -menu -split_chapter
+# If you prefer one big .html file instead of several, remove
+# -split-node or replace it by -split_chapter.
+
+# For making normal text files out of Texinfo source.
+one_info = --no-headers --no-split --no-validate
+
+dvips = dvips
+dvipsflags =
+texflags=-interaction=batchmode
+
+.SUFFIXES: .info .dvi .html .texi .txi .pdf .tex .texinfo
+
+.texinfo.texi:
+ -@$(copy) $< $@
+
+.texi.info:
+ -$(silent)$(makeinfo) $(makeinfo_flags) $< -o $@
+
+.texi.dvi:
+# $(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
+ -@echo $(verbose) & echo "Compiling $@ out of $<" & ( \
+ tex $(texflags) $< & \
+ tex $(texflags) $< & \
+ texindex $(<:.texi=.??) & \
+ tex $(texflags) $< ) $(redir_stdout)
+ -@$(del) $(<:.texi=.aux) $(<:.texi=.log) $(<:.texi=.toc)
+
+.texi.html:
+ $(silent)$(texi2html) $(texi2html_flags) $<
+
+.texi.pdf:
+ -@echo $(verbose) & echo "Compiling $@ out of $<" & ( \
+ pdftex $(texflags) $< & \
+ pdftex $(texflags) $< & \
+ texindex $(<:.texi=.??) & \
+ pdftex $(texflags) $< )
+ -@$(del) $(<:.texi=.aux) $(<:.texi=.log) $(<:.texi=.toc)
+
+.txi.info:
+ -$(makeinfo) $(makeinfo_flags) $< -o $@
+
+.txi.dvi:
+# $(TEXI2DVI) $(TEXI2DVI_FLAGS) $<
+ -tex $(texflags) $<
+ -tex $(texflags) $<
+ -texindex $(<:.txi=.??)
+ -tex $(texflags) $<
+ $(del) $(<:.txi=.aux) $(<:.txi=.log) $(<:.txi=.toc)
+
+.txi.html:
+ $(texi2html) $(texi2html_flags) $<
+
+.txi.pdf:
+ -pdftex $(texflags) $<
+ -pdftex $(texflags) $<
+ -texindex $(<:.txi=.??)
+ -pdftex $(texflags) $<
+ -@$(del) $(<:.txi=.aux) $(<:.txi=.log) $(<:.txi=.toc)
+
+.tex.pdf:
+ -pdflatex $(texflags) $<
+ -pdflatex $(texflags) $<
+
+.tex.html:
+ -if NOT exist "$(htmldocdir)" mkdir "$(htmldocdir)"
+ -htlatex --force --output-dir "$(htmldocdir)" $<
+
+.dvi.ps:
+ -$(dvips) $(dvipsflags) $< -o
+
+doc: $(infofiles) $(htmldocfiles) $(pdfdocfiles)
+
+installdirs = $(installdirs) "$(infodir)" "$(docdir)" "$(htmldocdir)" "$(pdfdocdir)"
+
+install:: install-info install-doc
+
+install-info:: $(infofiles)
+!if !exist("$(infodir)\dir") && exist($(texk_srcdir)\dir-example)
+ if NOT EXIST "$(infodir)\dir" \
+ $(copy) $(texk_srcdir)\dir-example "$(infodir)\dir"
+!endif
+ -@echo $(verbose) & ( \
+ for %i in ($(infofiles)) do ( \
+ $(copy) %i "$(infodir)\%i" & \
+ install-info --version > nul & \
+ if ERRORLEVEL 0 \
+ install-info --info-dir="$(infodir)" $(installinfoflags) "$(infodir)/%i" \
+ ) \
+ )
+
+install-doc:: $(pdfdocfiles) $(htmldocfiles)
+ -@echo $(verbose) & ( \
+ if "$(pdfdocfiles)" neq "" ( \
+ for %i in ($(pdfdocfiles)) do ( \
+ $(copy) %i "$(pdfdocdir)\%i" $(redir_stdout) ) ) & \
+ if "$(htmldocfiles)" neq "" ( \
+ for %i in ($(htmldocfiles:.html=*.html)) do ( \
+ $(copy) %i "$(htmldocdir)\%i" $(redir_stdout) ) ) \
+ )
+
+extraclean::
+ -@echo $(verbose) & ( \
+ for %i in (cm cp fl fn ky op pg toc tp vr) do \
+ $(del) *.%i *.%is ) 2>nul
+
+distclean::
+ -@echo $(verbose) & ( \
+ for %i in ($(infofiles)) do $(del) %i $(redir_stderr) \
+ )
+ -@echo $(verbose) & ( \
+ for %i in ($(htmldocfiles:.html=*.html)) do $(del) %i $(redir_stderr) \
+ )
+ -@echo $(verbose) & ( \
+ for %i in ($(pdfdocfiles)) do $(del) %i $(redir_stderr) \
+ )
+ -@$(del) *.info-? *.info-??
+
+!else
+#
+# Do nothing if no info files
+#
+doc:
+
+install-info::
+
+install-doc::
+
+!endif
+
+# End of texi.mak.
+#
+# Local Variables:
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/texlive-version.h b/Build/source/texk/msvc/texlive-version.h
new file mode 100644
index 00000000000..f87ba45db68
--- /dev/null
+++ b/Build/source/texk/msvc/texlive-version.h
@@ -0,0 +1,36 @@
+/* Made by newbuild.pl; DO NOT EDIT !!! -*- C -*- */
+#ifndef VERSION__9C077E32_49F9_4a99_9A1F_3E4C4DB17C7D__INCLUDED_H_
+#define VERSION__9C077E32_49F9_4a99_9A1F_3E4C4DB17C7D__INCLUDED_H_
+#define TEXLIVE_PRODUCTNAME_STR "TeXLive"
+#define TEXLIVE_COMPANYNAME_STR "TeX Users Group"
+#define TEXLIVE_BUILD_COMMENT_STR "Build 25 (2003); build date: Tue Aug 19 14:51:44 2003; machine: ANSIBLE"
+#define TEXLIVE_BUILD_DATE 1061297504
+#define TEXLIVE_BUILDERNAME_STR "popineau"
+#define TEXLIVE_PRIVATEBUILD_STR "Built by popineau"
+#define TEXLIVE_MAJOR_VERSION 8
+#define TEXLIVE_MINOR_VERSION 0
+#define TEXLIVE_BETA_NUMBER 1
+#define TEXLIVE_BETA_NUMBER_STR "1"
+#define TEXLIVE_ALPHA_NUMBER 0
+#define TEXLIVE_ALPHA_NUMBER_STR "0"
+#define TEXLIVE_PATCH_NUMBER 0
+#define TEXLIVE_PATCH_NUMBER_STR ""
+#define TEXLIVE_BUILD_LABEL "2003"
+#define TEXLIVE_BUILD_NUMBER 25
+#define TEXLIVE_BUILD_SPECIAL_STR ""
+#define TEXLIVE_MAJOR_VERSION_STR "8"
+#define TEXLIVE_MINOR_VERSION_STR "0"
+#define TEXLIVE_BETA_VERSION_STR "1"
+#define TEXLIVE_ALPHA_VERSION_STR "0"
+#define TEXLIVE_BUILD_NUMBER_STR "25"
+#define TEXLIVE_RELEASE_STATE 0
+#define TEXLIVE_RELEASE_MOTTO_STR ""
+#define TEXLIVE_PRODUCTVERSION_STR "8"
+#define TEXLIVE_LIBRARYPREFIX_STR "tl80"
+#ifndef TEXLIVE_LEGALCOPYRIGHT_STR
+#define TEXLIVE_LEGALCOPYRIGHT_STR "Copyright (C) 1996-2003 Fabrice Popineau and the TeX Users Group"
+#endif
+#ifndef TEXLIVE_LEGALTRADEMARKS_STR
+#define TEXLIVE_LEGALTRADEMARKS_STR ""
+#endif
+#endif
diff --git a/Build/source/texk/msvc/texlive.inc b/Build/source/texk/msvc/texlive.inc
new file mode 100644
index 00000000000..20acff2fd50
--- /dev/null
+++ b/Build/source/texk/msvc/texlive.inc
@@ -0,0 +1,99 @@
+## texlive.inc: Texlive -*- Makefile -*- Variables
+##
+## Copyright (C) 2002 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+##
+## This file is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published
+## by the Free Software Foundation; either version 2, or (at your
+## option) any later version.
+##
+## This file is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+## General Public License for more details.
+##
+## You should have received a copy of the GNU General Public License
+## along with this file; if not, write to the Free Software
+## Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+## USA.
+
+
+## See file README for build instructions.
+
+
+## Texlive version number
+major_version_number = 8
+minor_version_number = 0
+
+## the release motto (usually not shown to users)
+release_motto =
+
+## the build label (user friendly display name)
+build_label = 2003
+
+##
+build_special_str =
+build_special_name =
+
+## the beta version number
+beta_number = 1
+
+## the alpha version number
+alpha_number = 0
+
+## patch number
+patch_number = 0
+
+## patch_number_str is the visual representation of patch_number; it
+## should be a lowercase letter (or empty if patch_number == 0)
+patch_number_str =
+
+## release state; one of:
+## 0 official (package repository)
+## 1 pretest (unofficial)
+## 2 beta (field test)
+## 3 performance tuning (inhouse)
+## 4 private (debug symbols)
+state = 0
+
+## version number
+version_number = $(major_version_number).$(minor_version_number)
+
+## the build number
+build_number = 25
+
+## build date (time_t value)
+build_date = 1061297504
+
+## build date (human readable)
+build_date_str = Tue Aug 19 14:51:44 2003
+
+## name of builder
+builder_name_str = $(USERNAME)
+
+## version string (display) and version name (file name)
+version_string = $(version_number)$(patch_number_str)
+version_name = $(version_number)$(patch_number_str)
+!ifdef build_special_str
+version_string = $(version_string) $(build_special_str)
+version_name = $(version_name)-$(build_special_name)
+!endif
+!if $(state) == 0
+!else if $(state) == 1
+version_string = $(version_string) (Snapshot build $(build_number))
+!else if $(state) == 2
+version_string = $(version_string) beta $(beta_number)
+version_name = $(version_name)-beta-$(beta_number)
+!else if $(state) == 3
+version_string = $(version_string) alpha $(alpha_number)
+version_name = $(version_name)-alpha-$(alpha_number)
+!else if $(state) == 4
+version_string = $(version_string) $(builder_name_str) $(build_number)
+version_name = $(version_name)-$(builder_name_str)-$(build_number)
+!endif
+
+## define TUNE macro when tuning
+!if $(state) == 3
+TUNE = 1
+!endif
+
diff --git a/Build/source/texk/msvc/texlive.version b/Build/source/texk/msvc/texlive.version
new file mode 100644
index 00000000000..5236fbae2b6
--- /dev/null
+++ b/Build/source/texk/msvc/texlive.version
@@ -0,0 +1,120 @@
+/* texlive.version: TeXLive version number -*- C++ -*-
+
+ Copyright (C) 1996-2002 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+
+ This file is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 2, or (at your
+ option) any later version.
+
+ This file is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this file; if not, write to the Free Software
+ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ USA. */
+
+#define WIN32_LEAN_AND_MEAN
+
+#include <windows.h>
+
+#ifndef VS_FF_DEBUG
+# include <ver.h>
+#endif
+
+#include <texlive-version.h>
+
+#define VER_PRODUCTNAME_STR TEXLIVE_PRODUCTNAME_STR
+
+#define VER_PRODUCTVERSION_STR TEXLIVE_PRODUCTVERSION_STR
+
+#define VER_PRODUCTVERSION \
+ TEXLIVE_MAJOR_VERSION,TEXLIVE_MINOR_VERSION,0,0
+
+#if ! defined (VER_LEGALCOPYRIGHT_STR)
+#define VER_LEGALCOPYRIGHT_STR TEXLIVE_LEGALCOPYRIGHT_STR
+#endif
+
+#if ! defined (VER_COMPANYNAME_STR)
+# define VER_COMPANYNAME_STR TEXLIVE_COMPANYNAME_STR
+#endif
+
+#if ! defined (VER_COMMENT_STR)
+# define VER_COMMENT_STR TEXLIVE_BUILD_COMMENT_STR
+#endif
+
+#ifndef VER_FILETYPE
+# define VER_FILETYPE VFT_APP
+#endif
+
+#define VER_FILESUBTYPE VFT2_UNKNOWN
+
+#ifndef DEBUG
+# define VER_DEBUG 0
+#else
+# define VER_DEBUG VS_FF_DEBUG
+#endif
+
+#ifndef OFFICIAL
+# define VER_PRIVATEBUILD VS_FF_PRIVATEBUILD
+#else
+# define VER_PRIVATEBUILD 0
+#endif
+
+#ifndef FINAL
+# define VER_PRERELEASE VS_FF_PRERELEASE
+#else
+# define VER_PRERELEASE 0
+#endif
+
+#define VER_FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
+#define VER_FILEFLAGS (VER_PRIVATEBUILD|VER_PRERELEASE|VER_DEBUG)
+
+#define VER_FILEOS VOS__WINDOWS32
+
+#ifdef RC_INVOKED
+
+VS_VERSION_INFO VERSIONINFO
+FILEVERSION VER_FILEVERSION
+PRODUCTVERSION VER_PRODUCTVERSION
+FILEFLAGSMASK VER_FILEFLAGSMASK
+FILEFLAGS VER_FILEFLAGS
+FILEOS VER_FILEOS
+FILETYPE VER_FILETYPE
+FILESUBTYPE VER_FILESUBTYPE
+
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904E4"
+ BEGIN
+#if defined (VER_COMMENT_STR)
+ VALUE "Comment", VER_COMMENT_STR
+#endif
+ VALUE "CompanyName", VER_COMPANYNAME_STR
+ VALUE "FileDescription", VER_FILEDESCRIPTION_STR
+ VALUE "FileVersion", VER_FILEVERSION_STR
+ VALUE "InternalName", VER_INTERNALNAME_STR
+ VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
+#if defined (VER_LEGALTRADEMARKS_STR)
+ VALUE "LegalTrademarks", VER_LEGALTRADEMARKS_STR
+#endif
+ VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
+#ifndef OFFICIAL
+ VALUE "PrivateBuild", "Private build; do not distribute."
+#endif
+ VALUE "ProductName", VER_PRODUCTNAME_STR
+ VALUE "ProductVersion", VER_PRODUCTVERSION_STR
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1252
+ END
+END
+
+#endif
+/* texlive.version ends here */
diff --git a/Build/source/texk/msvc/texmfsed.sed b/Build/source/texk/msvc/texmfsed.sed
new file mode 100644
index 00000000000..b13b99bd56e
--- /dev/null
+++ b/Build/source/texk/msvc/texmfsed.sed
@@ -0,0 +1,3 @@
+s/^/s%@/
+s/=/@%/
+s/$/%g/
diff --git a/Build/source/texk/msvc/version.mak b/Build/source/texk/msvc/version.mak
new file mode 100644
index 00000000000..c4879882c0e
--- /dev/null
+++ b/Build/source/texk/msvc/version.mak
@@ -0,0 +1,53 @@
+################################################################################
+#
+# Makefile : version, dependencies on resource files
+# : holding version information
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <03/01/18 01:13:30 popineau>
+#
+################################################################################
+
+$(win32makedir)\texlive.version: $(win32makedir)\texlive-version.h
+
+$(objdir)\afm2tfm.res: $(win32rcdir)\afm2tfm.rc $(win32makedir)\texlive.version
+$(objdir)\bibtex.res: $(win32rcdir)\bibtex.rc $(win32makedir)\texlive.version
+$(objdir)\dmp.res: $(win32rcdir)\dmp.rc $(win32makedir)\texlive.version
+$(objdir)\dvicopy.res: $(win32rcdir)\dvicopy.rc $(win32makedir)\texlive.version
+$(objdir)\dvihp.res: $(win32rcdir)\dvihp.rc $(win32makedir)\texlive.version
+$(objdir)\dvilj.res: $(win32rcdir)\dvilj.rc $(win32makedir)\texlive.version
+$(objdir)\dvips.res: $(win32rcdir)\dvips.rc $(win32makedir)\texlive.version
+$(objdir)\dvitomp.res: $(win32rcdir)\dvitomp.rc $(win32makedir)\texlive.version
+$(objdir)\dvitype.res: $(win32rcdir)\dvitype.rc $(win32makedir)\texlive.version
+$(objdir)\etex.res: $(win32rcdir)\etex.rc $(win32makedir)\texlive.version
+$(objdir)\gftodvi.res: $(win32rcdir)\gftodvi.rc $(win32makedir)\texlive.version
+$(objdir)\gftopk.res: $(win32rcdir)\gftopk.rc $(win32makedir)\texlive.version
+$(objdir)\gftype.res: $(win32rcdir)\gftype.rc $(win32makedir)\texlive.version
+$(objdir)\kpathsea.res: $(win32rcdir)\kpathsea.rc $(win32makedir)\texlive.version
+$(objdir)\makeindex.res: $(win32rcdir)\makeindex.rc $(win32makedir)\texlive.version
+$(objdir)\makempx.res: $(win32rcdir)\makempx.rc $(win32makedir)\texlive.version
+$(objdir)\maketex.res: $(win32rcdir)\maketex.rc $(win32makedir)\texlive.version
+$(objdir)\mf.res: $(win32rcdir)\mf.rc $(win32makedir)\texlive.version
+$(objdir)\mft.res: $(win32rcdir)\mft.rc $(win32makedir)\texlive.version
+$(objdir)\mpost.res: $(win32rcdir)\mpost.rc $(win32makedir)\texlive.version
+$(objdir)\mpto.res: $(win32rcdir)\mpto.rc $(win32makedir)\texlive.version
+$(objdir)\patgen.res: $(win32rcdir)\patgen.rc $(win32makedir)\texlive.version
+$(objdir)\pdftex.res: $(win32rcdir)\pdftex.rc $(win32makedir)\texlive.version
+$(objdir)\pktogf.res: $(win32rcdir)\pktogf.rc $(win32makedir)\texlive.version
+$(objdir)\pktype.res: $(win32rcdir)\pktype.rc $(win32makedir)\texlive.version
+$(objdir)\pltotf.res: $(win32rcdir)\pltotf.rc $(win32makedir)\texlive.version
+$(objdir)\pooltype.res: $(win32rcdir)\pooltype.rc $(win32makedir)\texlive.version
+$(objdir)\tangle.res: $(win32rcdir)\tangle.rc $(win32makedir)\texlive.version
+$(objdir)\tex.res: $(win32rcdir)\tex.rc $(win32makedir)\texlive.version
+$(objdir)\tie.res: $(win32rcdir)\tie.rc $(win32makedir)\texlive.version
+$(objdir)\tftopl.res: $(win32rcdir)\tftopl.rc $(win32makedir)\texlive.version
+$(objdir)\vftovp.res: $(win32rcdir)\vftovp.rc $(win32makedir)\texlive.version
+$(objdir)\vptovf.res: $(win32rcdir)\vptovf.rc $(win32makedir)\texlive.version
+$(objdir)\weave.res: $(win32rcdir)\weave.rc $(win32makedir)\texlive.version
+$(objdir)\web2c.res: $(win32rcdir)\web2c.rc $(win32makedir)\texlive.version
+
+# End of version.mak
+#
+# Local Variables:
+# mode: makefile
+# End: \ No newline at end of file
diff --git a/Build/source/texk/msvc/version.sed b/Build/source/texk/msvc/version.sed
new file mode 100644
index 00000000000..5ca2e7cff62
--- /dev/null
+++ b/Build/source/texk/msvc/version.sed
@@ -0,0 +1,2 @@
+s,REPLACE-WITH-KPSEVERSION,kpathsea version 3.,
+s,REPLACE-WITH-WEB2CVERSION, (Web2c .),
diff --git a/Build/source/texk/msvc/win32-rec-skel.mak b/Build/source/texk/msvc/win32-rec-skel.mak
new file mode 100644
index 00000000000..868fcee0a60
--- /dev/null
+++ b/Build/source/texk/msvc/win32-rec-skel.mak
@@ -0,0 +1,28 @@
+################################################################################
+#
+# Makefile : recursive call on all subdirs
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <02/07/18 10:10:28 popineau>
+#
+################################################################################
+
+root_srcdir=..
+INCLUDE=$(INCLUDE);$(root_srcdir)\win32
+
+subdirs = #
+
+!include <msvc/common.mak>
+
+default: all
+
+!include <msvc/subdirs.mak>
+
+!include <msvc/clean.mak>
+
+# End of .mak
+#
+# Local Variables:
+# mode: Makefile
+# End:
+# DO NOT DELETE
diff --git a/Build/source/texk/msvc/win32-skel.mak b/Build/source/texk/msvc/win32-skel.mak
new file mode 100644
index 00000000000..62fae598645
--- /dev/null
+++ b/Build/source/texk/msvc/win32-skel.mak
@@ -0,0 +1,56 @@
+################################################################################
+#
+# Makefile :
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <02/07/18 10:10:10 popineau>
+#
+################################################################################
+root_srcdir = ..\..
+INCLUDE=$(INCLUDE);$(root_srcdir)\win32
+
+# This is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License, see the file COPYING.
+
+# USE_GNUW32 = 1
+
+!include <msvc/common.mak>
+
+programs = # $(objdir)\foo.exe
+scripts =
+libfiles =
+includefiles =
+manfiles = # foo.1
+infofiles =
+#
+# Object files
+#
+objects = # $(objdir)\foo.obj
+
+DEFS = $(DEFS) # -DFOO -I../foo
+
+#
+# Main target
+#
+all: $(programs)
+
+#
+# Link target. setargv.obj is provided in the compiler library directory.
+#
+$(objdir)\foo.exe: $(objdir) $(objects)
+ $(link) $(objects) $(LIBS)
+
+!include <msvc/config.mak>
+!include <msvc/install.mak>
+
+install:: install-exec # install-lib install-include
+
+!include <msvc/clean.mak>
+!include <msvc/rdepend.mak>
+!include "./depend.mak"
+
+# End of .mak
+#
+# Local Variables:
+# mode: makefile
+# End:
diff --git a/Build/source/texk/msvc/xemacspaths.mak b/Build/source/texk/msvc/xemacspaths.mak
new file mode 100644
index 00000000000..2458e4fcdeb
--- /dev/null
+++ b/Build/source/texk/msvc/xemacspaths.mak
@@ -0,0 +1,25 @@
+################################################################################
+#
+# Makefile : paths definitions for Xemacs tools
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <04/03/10 16:59:40 popineau>
+#
+################################################################################
+
+prefix = $(xemacstools)
+bindir = $(prefix)\$(xemacsversion)\i586-pc-win32
+#libdir = $(prefix)\lib
+#sharedir = $(prefix)\share
+#includedir = $(prefix)\include
+docdir = $(prefix)\doc
+#mandir = $(prefix)\man
+infodir = $(prefix)\info
+htmldocdir = $(docdir)\html
+
+# End of xemacspaths.mak
+#
+# Local variables:
+# page-delimiter: "^# \f"
+# mode: Makefile
+# End:
diff --git a/Build/source/texk/msvc/xemtexpaths.mak b/Build/source/texk/msvc/xemtexpaths.mak
new file mode 100644
index 00000000000..9d6744f6d85
--- /dev/null
+++ b/Build/source/texk/msvc/xemtexpaths.mak
@@ -0,0 +1,28 @@
+################################################################################
+#
+# Makefile : paths definitions for Xemtex tools
+# Author : Fabrice Popineau <Fabrice.Popineau@supelec.fr>
+# Platform : Win32, Microsoft VC++ 6.0, depends upon fpTeX 0.5 sources
+# Time-stamp: <04/03/13 23:13:03 popineau>
+#
+################################################################################
+
+
+xemtexbin = $(texprefix)\bin\win32
+
+prefix = $(xemtextools)
+bindir = $(xemtexbin)
+#libdir = $(prefix)\lib
+#sharedir = $(prefix)\share
+#includedir = $(prefix)\include
+docdir = $(xemtextools)\doc
+mandir = $(xemtextools)\man
+infodir = $(xemtextools)\info
+htmldocdir = $(docdir)
+
+# End of xemtexpaths.mak
+#
+# Local variables:
+# page-delimiter: "^# \f"
+# mode: Makefile
+# End: