aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-11-20 16:38:12 +0100
committermarha <marha@users.sourceforge.net>2012-11-20 16:38:12 +0100
commit589f5feba1e7968b7318b02f4f2bdea81937f0e1 (patch)
treecb66bfd5efb59eb4b66cee9370cf30a136fc2df4
parentfc83ab987c84518c31793515c4f99a0df8ccd1cc (diff)
downloadvcxsrv-589f5feba1e7968b7318b02f4f2bdea81937f0e1.tar.gz
vcxsrv-589f5feba1e7968b7318b02f4f2bdea81937f0e1.tar.bz2
vcxsrv-589f5feba1e7968b7318b02f4f2bdea81937f0e1.zip
Now the software can be compiled from inside a cygwin terminal
-rwxr-xr-xbuildall.sh62
-rwxr-xr-x[-rw-r--r--]openssl/ms/do_nasm.bat12
-rwxr-xr-x[-rw-r--r--]tools/mhmake/addstdafxh.py0
-rwxr-xr-x[-rw-r--r--]tools/mhmake/bison.exebin279552 -> 279552 bytes
-rwxr-xr-x[-rw-r--r--]tools/mhmake/cygwin1.dllbin2608311 -> 2608311 bytes
-rwxr-xr-x[-rw-r--r--]tools/mhmake/flex++.exebin485280 -> 485280 bytes
-rwxr-xr-x[-rw-r--r--]tools/mhmake/libiconv2.dllbin1008128 -> 1008128 bytes
-rwxr-xr-x[-rw-r--r--]tools/mhmake/libintl3.dllbin103424 -> 103424 bytes
-rwxr-xr-x[-rw-r--r--]tools/mhmake/m4.exebin158208 -> 158208 bytes
-rwxr-xr-x[-rw-r--r--]tools/mhmake/makebison.bat0
-rwxr-xr-x[-rw-r--r--]tools/mhmake/makelex.bat0
-rwxr-xr-x[-rw-r--r--]xkbcomp/bison.bat0
-rwxr-xr-x[-rw-r--r--]xorg-server/hw/xwin/doflexbison.bat0
-rwxr-xr-x[-rw-r--r--]xorg-server/hw/xwin/glx/buildsimpledib.bat0
-rwxr-xr-x[-rw-r--r--]xorg-server/installer/packageall.bat10
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml1_s.bat9
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml1_s.sh19
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml1v1_s.bat7
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml1v1_s.sh11
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml1v_s.bat7
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml1v_s.sh11
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml_s.bat9
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/ml_s.sh15
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/mln_s.bat10
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/mln_s.sh22
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/mlnvn_s.bat8
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh14
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/mlv_s.bat7
-rwxr-xr-xxorg-server/xkeyboard-config/rules/bin/mlv_s.sh11
-rw-r--r--xorg-server/xkeyboard-config/rules/compat/makefile51
-rw-r--r--xorg-server/xkeyboard-config/xkbrules.mak6
-rwxr-xr-x[-rw-r--r--]zlib/contrib/masmx64/bld_ml64.bat0
-rwxr-xr-x[-rw-r--r--]zlib/contrib/masmx86/bld_ml32.bat0
33 files changed, 234 insertions, 67 deletions
diff --git a/buildall.sh b/buildall.sh
new file mode 100755
index 000000000..fee6ddbb7
--- /dev/null
+++ b/buildall.sh
@@ -0,0 +1,62 @@
+function check-error {
+ if [ $? -ne 0 ]; then
+ echo $1
+ exit
+ fi
+}
+
+which nasm > /dev/null 2>&1
+check-error 'Please install nasm'
+
+which devenv.com > /dev/null 2>&1
+check-error 'Please install/set environment for visual studio 2010'
+
+# echo script lines from now one
+#set -v
+
+devenv.com freetype/freetypevc10.sln /build "Release Multithreaded|Win32"
+check-error 'Error compiling freetype'
+
+devenv.com freetype/freetypevc10.sln /build "Debug Multithreaded|Win32"
+check-error 'Error compiling freetype'
+
+cd openssl
+
+perl Configure VC-WIN32
+check-error 'Error executing perl'
+
+ms/do_nasm.bat
+check-error 'Error configuring openssl for nasm'
+
+nmake -f ms/nt.mak
+check-error 'Error compiling openssl for release'
+
+nmake DEBUG=1 -f ms/nt.mak
+check-error 'Error compiling openssl for debug'
+
+cd ../pthreads
+nmake VC-static
+check-error 'Error compiling pthreads for release'
+
+nmake VC-static-debug
+check-error 'Error compiling pthreads for debug'
+
+cd ..
+
+devenv.com tools/mhmake/mhmakevc10.sln /build "Release|Win32"
+check-error 'Error compiling mhmake for release'
+
+devenv.com tools/mhmake/mhmakevc10.sln /build "Debug|Win32"
+check-error 'Error compiling mhmake for debug'
+
+export MHMAKECONF=`cygpath -da .`
+
+tools/mhmake/release/mhmake -C xorg-server MAKESERVER=1 DEBUG=1
+check-error 'Error compiling vcxsrv for debug'
+
+tools/mhmake/release/mhmake.exe -C xorg-server MAKESERVER=1
+check-error 'Error compiling vcxsrv for release'
+
+cd xorg-server/installer
+./packageall.bat
+
diff --git a/openssl/ms/do_nasm.bat b/openssl/ms/do_nasm.bat
index 7b3f3edbf..7f4325b3f 100644..100755
--- a/openssl/ms/do_nasm.bat
+++ b/openssl/ms/do_nasm.bat
@@ -1,8 +1,8 @@
-perl util\mkfiles.pl >MINFO
-perl util\mk1mf.pl nasm VC-WIN32 >ms\nt.mak
-perl util\mk1mf.pl dll nasm VC-WIN32 >ms\ntdll.mak
-perl util\mk1mf.pl nasm BC-NT >ms\bcb.mak
+perl util/mkfiles.pl >MINFO
+perl util/mk1mf.pl nasm VC-WIN32 >ms/nt.mak
+perl util/mk1mf.pl dll nasm VC-WIN32 >ms/ntdll.mak
+perl util/mk1mf.pl nasm BC-NT >ms/bcb.mak
-perl util\mkdef.pl 32 libeay > ms\libeay32.def
-perl util\mkdef.pl 32 ssleay > ms\ssleay32.def
+perl util/mkdef.pl 32 libeay > ms/libeay32.def
+perl util/mkdef.pl 32 ssleay > ms/ssleay32.def
diff --git a/tools/mhmake/addstdafxh.py b/tools/mhmake/addstdafxh.py
index 45413a474..45413a474 100644..100755
--- a/tools/mhmake/addstdafxh.py
+++ b/tools/mhmake/addstdafxh.py
diff --git a/tools/mhmake/bison.exe b/tools/mhmake/bison.exe
index a56f1cb36..a56f1cb36 100644..100755
--- a/tools/mhmake/bison.exe
+++ b/tools/mhmake/bison.exe
Binary files differ
diff --git a/tools/mhmake/cygwin1.dll b/tools/mhmake/cygwin1.dll
index 116037f1b..116037f1b 100644..100755
--- a/tools/mhmake/cygwin1.dll
+++ b/tools/mhmake/cygwin1.dll
Binary files differ
diff --git a/tools/mhmake/flex++.exe b/tools/mhmake/flex++.exe
index 14da34eb0..14da34eb0 100644..100755
--- a/tools/mhmake/flex++.exe
+++ b/tools/mhmake/flex++.exe
Binary files differ
diff --git a/tools/mhmake/libiconv2.dll b/tools/mhmake/libiconv2.dll
index 544dd92f5..544dd92f5 100644..100755
--- a/tools/mhmake/libiconv2.dll
+++ b/tools/mhmake/libiconv2.dll
Binary files differ
diff --git a/tools/mhmake/libintl3.dll b/tools/mhmake/libintl3.dll
index ec11e6b19..ec11e6b19 100644..100755
--- a/tools/mhmake/libintl3.dll
+++ b/tools/mhmake/libintl3.dll
Binary files differ
diff --git a/tools/mhmake/m4.exe b/tools/mhmake/m4.exe
index 20bb51625..20bb51625 100644..100755
--- a/tools/mhmake/m4.exe
+++ b/tools/mhmake/m4.exe
Binary files differ
diff --git a/tools/mhmake/makebison.bat b/tools/mhmake/makebison.bat
index fa23090e5..fa23090e5 100644..100755
--- a/tools/mhmake/makebison.bat
+++ b/tools/mhmake/makebison.bat
diff --git a/tools/mhmake/makelex.bat b/tools/mhmake/makelex.bat
index 66d9255fa..66d9255fa 100644..100755
--- a/tools/mhmake/makelex.bat
+++ b/tools/mhmake/makelex.bat
diff --git a/xkbcomp/bison.bat b/xkbcomp/bison.bat
index 9a0e5aa07..9a0e5aa07 100644..100755
--- a/xkbcomp/bison.bat
+++ b/xkbcomp/bison.bat
diff --git a/xorg-server/hw/xwin/doflexbison.bat b/xorg-server/hw/xwin/doflexbison.bat
index a29508bcb..a29508bcb 100644..100755
--- a/xorg-server/hw/xwin/doflexbison.bat
+++ b/xorg-server/hw/xwin/doflexbison.bat
diff --git a/xorg-server/hw/xwin/glx/buildsimpledib.bat b/xorg-server/hw/xwin/glx/buildsimpledib.bat
index 1e1286bdd..1e1286bdd 100644..100755
--- a/xorg-server/hw/xwin/glx/buildsimpledib.bat
+++ b/xorg-server/hw/xwin/glx/buildsimpledib.bat
diff --git a/xorg-server/installer/packageall.bat b/xorg-server/installer/packageall.bat
index 720c29893..2195223fe 100644..100755
--- a/xorg-server/installer/packageall.bat
+++ b/xorg-server/installer/packageall.bat
@@ -5,8 +5,14 @@ copy %systemroot%\system32\msvcr100.dll
copy %systemroot%\system32\msvcp100.dll
copy %systemroot%\system32\msvcr100d.dll
copy %systemroot%\system32\msvcp100d.dll
-"C:\Program Files\NSIS\makensis.exe" vcxsrv.nsi
-"C:\Program Files\NSIS\makensis.exe" vcxsrv-debug.nsi
+
+if exist "C:\Program Files (x86)\NSIS\Unicode\makensis.exe" (
+ "C:\Program Files (x86)\NSIS\Unicode\makensis.exe" vcxsrv.nsi
+ "C:\Program Files (x86)\NSIS\Unicode\makensis.exe" vcxsrv-debug.nsi
+) else (
+ "C:\Program Files\NSIS\makensis.exe" vcxsrv.nsi
+ "C:\Program Files\NSIS\makensis.exe" vcxsrv-debug.nsi
+)
del msvcr100.dll
del msvcr100d.dll
del msvcp100.dll
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml1_s.bat b/xorg-server/xkeyboard-config/rules/bin/ml1_s.bat
new file mode 100755
index 000000000..b09459a5d
--- /dev/null
+++ b/xorg-server/xkeyboard-config/rules/bin/ml1_s.bat
@@ -0,0 +1,9 @@
+@echo off
+
+set OUTFILE=base.ml1_s.part
+
+if exist %OUTFILE% del %OUTFILE%
+
+gawk "{ if (index($2, """(""") == 0) { printf """ * %%s = pc+%%s%%%%(v[1])\n""", $1, $2; } else { printf """ * %%s = pc+%%s\n""", $1, $2; }}" < layoutsMapping.lst >> %OUTFILE%
+
+gawk "{ printf """ * %%s(%%s) = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml1_s.sh b/xorg-server/xkeyboard-config/rules/bin/ml1_s.sh
index b09459a5d..b2d222432 100755
--- a/xorg-server/xkeyboard-config/rules/bin/ml1_s.sh
+++ b/xorg-server/xkeyboard-config/rules/bin/ml1_s.sh
@@ -1,9 +1,18 @@
-@echo off
+#!/bin/sh
-set OUTFILE=base.ml1_s.part
+INDIR=$1
+OUTFILE=base.ml1_s.part
-if exist %OUTFILE% del %OUTFILE%
+> $OUTFILE
-gawk "{ if (index($2, """(""") == 0) { printf """ * %%s = pc+%%s%%%%(v[1])\n""", $1, $2; } else { printf """ * %%s = pc+%%s\n""", $1, $2; }}" < layoutsMapping.lst >> %OUTFILE%
+awk '{
+ if (index($2, "(") == 0) {
+ printf " * %s = pc+%s%%(v[1])\n", $1, $2;
+ } else {
+ printf " * %s = pc+%s\n", $1, $2;
+ }
+}' < $INDIR/layoutsMapping.lst >> $OUTFILE
-gawk "{ printf """ * %%s(%%s) = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
+awk '{
+ printf " * %s(%s) = pc+%s(%s)\n", $1, $2, $3, $4;
+}' < $INDIR/variantsMapping.lst >> $OUTFILE
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml1v1_s.bat b/xorg-server/xkeyboard-config/rules/bin/ml1v1_s.bat
new file mode 100755
index 000000000..4d492e02b
--- /dev/null
+++ b/xorg-server/xkeyboard-config/rules/bin/ml1v1_s.bat
@@ -0,0 +1,7 @@
+@echo off
+
+set OUTFILE=base.ml1v1_s.part
+
+if exist %OUTFILE% del %OUTFILE%
+
+gawk "{ printf """ * %%s %%s = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml1v1_s.sh b/xorg-server/xkeyboard-config/rules/bin/ml1v1_s.sh
index 4d492e02b..7c2b1a84c 100755
--- a/xorg-server/xkeyboard-config/rules/bin/ml1v1_s.sh
+++ b/xorg-server/xkeyboard-config/rules/bin/ml1v1_s.sh
@@ -1,7 +1,10 @@
-@echo off
+#!/bin/sh
-set OUTFILE=base.ml1v1_s.part
+INDIR=$1
+OUTFILE=base.ml1v1_s.part
-if exist %OUTFILE% del %OUTFILE%
+> $OUTFILE
-gawk "{ printf """ * %%s %%s = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
+awk '{
+ printf " * %s %s = pc+%s(%s)\n", $1, $2, $3, $4;
+}' < $INDIR/variantsMapping.lst >> $OUTFILE
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml1v_s.bat b/xorg-server/xkeyboard-config/rules/bin/ml1v_s.bat
new file mode 100755
index 000000000..cec1334c0
--- /dev/null
+++ b/xorg-server/xkeyboard-config/rules/bin/ml1v_s.bat
@@ -0,0 +1,7 @@
+@echo off
+
+set OUTFILE=base.ml1v_s.part
+
+if exist %OUTFILE% del %OUTFILE%
+
+gawk "{ printf """ * %%s %%s = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh b/xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh
index cec1334c0..084d4c0be 100755
--- a/xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh
+++ b/xorg-server/xkeyboard-config/rules/bin/ml1v_s.sh
@@ -1,7 +1,10 @@
-@echo off
+#!/bin/sh
-set OUTFILE=base.ml1v_s.part
+INDIR=$1
+OUTFILE=base.ml1v_s.part
-if exist %OUTFILE% del %OUTFILE%
+> $OUTFILE
-gawk "{ printf """ * %%s %%s = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
+awk '{
+ printf " * %s %s = pc+%s(%s)\n", $1, $2, $3, $4;
+}' < $INDIR/variantsMapping.lst >> $OUTFILE
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml_s.bat b/xorg-server/xkeyboard-config/rules/bin/ml_s.bat
new file mode 100755
index 000000000..b7f0d9c46
--- /dev/null
+++ b/xorg-server/xkeyboard-config/rules/bin/ml_s.bat
@@ -0,0 +1,9 @@
+@echo off
+
+set OUTFILE=base.ml_s.part
+
+if exist %OUTFILE% del %OUTFILE%
+
+gawk "{ printf """ * %%s = pc+%%s\n""", $1, $2; }" < layoutsMapping.lst >> %OUTFILE%
+
+gawk "{ printf """ * %%s(%%s) = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
diff --git a/xorg-server/xkeyboard-config/rules/bin/ml_s.sh b/xorg-server/xkeyboard-config/rules/bin/ml_s.sh
index b7f0d9c46..666ba870f 100755
--- a/xorg-server/xkeyboard-config/rules/bin/ml_s.sh
+++ b/xorg-server/xkeyboard-config/rules/bin/ml_s.sh
@@ -1,9 +1,14 @@
-@echo off
+#!/bin/sh
-set OUTFILE=base.ml_s.part
+INDIR=$1
+OUTFILE=base.ml_s.part
-if exist %OUTFILE% del %OUTFILE%
+> $OUTFILE
-gawk "{ printf """ * %%s = pc+%%s\n""", $1, $2; }" < layoutsMapping.lst >> %OUTFILE%
+awk '{
+ printf " * %s = pc+%s\n", $1, $2;
+}' < $INDIR/layoutsMapping.lst >> $OUTFILE
-gawk "{ printf """ * %%s(%%s) = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
+awk '{
+ printf " * %s(%s) = pc+%s(%s)\n", $1, $2, $3, $4;
+}' < $INDIR/variantsMapping.lst >> $OUTFILE
diff --git a/xorg-server/xkeyboard-config/rules/bin/mln_s.bat b/xorg-server/xkeyboard-config/rules/bin/mln_s.bat
new file mode 100755
index 000000000..15e0629be
--- /dev/null
+++ b/xorg-server/xkeyboard-config/rules/bin/mln_s.bat
@@ -0,0 +1,10 @@
+@echo off
+set variant=%1
+
+set OUTFILE=base.ml%variant%_s.part
+
+if exist %OUTFILE% del %OUTFILE%
+
+echo "{ if (index($2, """(""") == 0) { printf """ * %%s = +%%s%%%%(v[%variant%]):%variant%\n""", $1, $2; } else { printf """ * %%s = +%%s:%variant%\n""", $1, $2; }}" < layoutsMapping.lst >> %OUTFILE%
+
+gawk "{ printf """ * %%s(%%s) = +%%s(%%s):%variant%\n""", $1, $2, $3, $4;}" < variantsMapping.lst >> %OUTFILE%
diff --git a/xorg-server/xkeyboard-config/rules/bin/mln_s.sh b/xorg-server/xkeyboard-config/rules/bin/mln_s.sh
index 15e0629be..67fd8a06e 100755
--- a/xorg-server/xkeyboard-config/rules/bin/mln_s.sh
+++ b/xorg-server/xkeyboard-config/rules/bin/mln_s.sh
@@ -1,10 +1,20 @@
-@echo off
-set variant=%1
+#!/bin/sh
-set OUTFILE=base.ml%variant%_s.part
+variant=$1
-if exist %OUTFILE% del %OUTFILE%
+INDIR=$2
+OUTFILE=base.ml${variant}_s.part
-echo "{ if (index($2, """(""") == 0) { printf """ * %%s = +%%s%%%%(v[%variant%]):%variant%\n""", $1, $2; } else { printf """ * %%s = +%%s:%variant%\n""", $1, $2; }}" < layoutsMapping.lst >> %OUTFILE%
+> $OUTFILE
-gawk "{ printf """ * %%s(%%s) = +%%s(%%s):%variant%\n""", $1, $2, $3, $4;}" < variantsMapping.lst >> %OUTFILE%
+awk '{
+ if (index($2, "(") == 0) {
+ printf " * %s = +%s%%(v['${variant}']):'${variant}'\n", $1, $2;
+ } else {
+ printf " * %s = +%s:'${variant}'\n", $1, $2;
+ }
+}' < $INDIR/layoutsMapping.lst >> $OUTFILE
+
+awk '{
+ printf " * %s(%s) = +%s(%s):'${variant}'\n", $1, $2, $3, $4;
+}' < $INDIR/variantsMapping.lst >> $OUTFILE
diff --git a/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.bat b/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.bat
new file mode 100755
index 000000000..78119bcc7
--- /dev/null
+++ b/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.bat
@@ -0,0 +1,8 @@
+@echo off
+set variant=%1
+
+set OUTFILE=base.ml%variant%v%variant%_s.part
+
+if exist %OUTFILE% del %OUTFILE%
+
+gawk "{ printf """ * %%s %%s = +%%s(%%s):%variant%\n""", $1, $2, $3, $4;}" < variantsMapping.lst >> %OUTFILE%
diff --git a/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh b/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh
index 78119bcc7..1a5f40f25 100755
--- a/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh
+++ b/xorg-server/xkeyboard-config/rules/bin/mlnvn_s.sh
@@ -1,8 +1,12 @@
-@echo off
-set variant=%1
+#!/bin/sh
-set OUTFILE=base.ml%variant%v%variant%_s.part
+variant=$1
-if exist %OUTFILE% del %OUTFILE%
+INDIR=$2
+OUTFILE=base.ml${variant}v${variant}_s.part
-gawk "{ printf """ * %%s %%s = +%%s(%%s):%variant%\n""", $1, $2, $3, $4;}" < variantsMapping.lst >> %OUTFILE%
+> $OUTFILE
+
+awk '{
+ printf " * %s %s = +%s(%s):'${variant}'\n", $1, $2, $3, $4;
+}' < $INDIR/variantsMapping.lst >> $OUTFILE
diff --git a/xorg-server/xkeyboard-config/rules/bin/mlv_s.bat b/xorg-server/xkeyboard-config/rules/bin/mlv_s.bat
new file mode 100755
index 000000000..573cb930f
--- /dev/null
+++ b/xorg-server/xkeyboard-config/rules/bin/mlv_s.bat
@@ -0,0 +1,7 @@
+@echo off
+
+set OUTFILE=base.mlv_s.part
+
+if exist %OUTFILE% del %OUTFILE%
+
+gawk "{ printf """ * %%s %%s = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
diff --git a/xorg-server/xkeyboard-config/rules/bin/mlv_s.sh b/xorg-server/xkeyboard-config/rules/bin/mlv_s.sh
index 573cb930f..5b466d59c 100755
--- a/xorg-server/xkeyboard-config/rules/bin/mlv_s.sh
+++ b/xorg-server/xkeyboard-config/rules/bin/mlv_s.sh
@@ -1,7 +1,10 @@
-@echo off
+#!/bin/sh
-set OUTFILE=base.mlv_s.part
+INDIR=$1
+OUTFILE=base.mlv_s.part
-if exist %OUTFILE% del %OUTFILE%
+> $OUTFILE
-gawk "{ printf """ * %%s %%s = pc+%%s(%%s)\n""", $1, $2, $3, $4; }" < variantsMapping.lst >> %OUTFILE%
+awk '{
+ printf " * %s %s = pc+%s(%s)\n", $1, $2, $3, $4;
+}' < $INDIR/variantsMapping.lst >> $OUTFILE
diff --git a/xorg-server/xkeyboard-config/rules/compat/makefile b/xorg-server/xkeyboard-config/rules/compat/makefile
index 832ef5f80..e14430c74 100644
--- a/xorg-server/xkeyboard-config/rules/compat/makefile
+++ b/xorg-server/xkeyboard-config/rules/compat/makefile
@@ -14,40 +14,43 @@ base.ml1_s.part \
base.mlv_s.part \
base.ml1v1_s.part
-
+# Here we make a distinction when compiling from cygwin or from cmd
+ifdef SHLVL
+SH=sh
+SHEXT=.sh
+else
SH=cmd /c
+SHEXT=.bat
+endif
-base.ml2_s.part: mln_s.bat $(transform_files)
- $(SH) $< 2
-
-base.ml3_s.part: mln_s.bat $(transform_files)
- $(SH) $< 3
+base.ml2_s.part: $(scripts_dir)\mln_s$(SHEXT) $(transform_files)
+ $(SH) $< 2 .
-base.ml4_s.part: mln_s.bat $(transform_files)
- $(SH) $< 4
+base.ml3_s.part: $(scripts_dir)\mln_s$(SHEXT) $(transform_files)
+ $(SH) $< 3 .
-base.ml2v2_s.part: mlnvn_s.bat $(transform_files)
- $(SH) $< 2
+base.ml4_s.part: $(scripts_dir)\mln_s$(SHEXT) $(transform_files)
+ $(SH) $< 4 .
-base.ml3v3_s.part: mlnvn_s.bat $(transform_files)
- $(SH) $< 3
+base.ml2v2_s.part: $(scripts_dir)\mlnvn_s$(SHEXT) $(transform_files)
+ $(SH) $< 2 .
-base.ml4v4_s.part: mlnvn_s.bat $(transform_files)
- $(SH) $< 4
+base.ml3v3_s.part: $(scripts_dir)\mlnvn_s$(SHEXT) $(transform_files)
+ $(SH) $< 3 .
-base.ml_s.part: ml_s.bat $(transform_files)
- $(SH) $<
+base.ml4v4_s.part: $(scripts_dir)\mlnvn_s$(SHEXT) $(transform_files)
+ $(SH) $< 4 .
-base.ml1_s.part: ml1_s.bat $(transform_files)
- $(SH) $<
+base.ml_s.part: $(scripts_dir)\ml_s$(SHEXT) $(transform_files)
+ $(SH) $< .
-base.mlv_s.part: mlv_s.bat $(transform_files)
- $(SH) $<
+base.ml1_s.part: $(scripts_dir)\ml1_s$(SHEXT) $(transform_files)
+ $(SH) $< .
-base.ml1v1_s.part: ml1v1_s.bat $(transform_files)
- $(SH) $<
+base.mlv_s.part: $(scripts_dir)\mlv_s$(SHEXT) $(transform_files)
+ $(SH) $< .
-%.bat: $(scripts_dir)\%.sh
- copy $< $@
+base.ml1v1_s.part: $(scripts_dir)\ml1v1_s$(SHEXT) $(transform_files)
+ $(SH) $< .
all: $(SCRIPTS)
diff --git a/xorg-server/xkeyboard-config/xkbrules.mak b/xorg-server/xkeyboard-config/xkbrules.mak
index 8c1efbec9..c117b30c5 100644
--- a/xorg-server/xkeyboard-config/xkbrules.mak
+++ b/xorg-server/xkeyboard-config/xkbrules.mak
@@ -18,7 +18,9 @@ ifneq ($(DIRFILE),)
PATH:=$(relpath $(MHMAKECONF)\libxcb\src\$(OBJDIR))\;$(relpath $(MHMAKECONF)\libX11\$(OBJDIR))\;$(relpath $(MHMAKECONF)\libXau\$(OBJDIR))\;$(PATH)
export PATH
-$(DIRFILE): extrastuff $(DATA_FILES)
+load_makefile ..\..\..\xkbcomp\makefile MAKESERVER=0 DEBUG=0
+
+$(DIRFILE): extrastuff $(DATA_FILES) ..\..\..\xkbcomp\obj\release\xkbcomp.exe
-del -e $@
- cd $(DESTDIR) & ..\..\xkbcomp.exe -lfhlpR -o $(relpath $@) *
+ cd $(DESTDIR) & ..\..\..\xkbcomp\obj\release\xkbcomp.exe -lfhlpR -o $(relpath $@) *
endif
diff --git a/zlib/contrib/masmx64/bld_ml64.bat b/zlib/contrib/masmx64/bld_ml64.bat
index 8f9343d0a..8f9343d0a 100644..100755
--- a/zlib/contrib/masmx64/bld_ml64.bat
+++ b/zlib/contrib/masmx64/bld_ml64.bat
diff --git a/zlib/contrib/masmx86/bld_ml32.bat b/zlib/contrib/masmx86/bld_ml32.bat
index e1b86bf68..e1b86bf68 100644..100755
--- a/zlib/contrib/masmx86/bld_ml32.bat
+++ b/zlib/contrib/masmx86/bld_ml32.bat