added cygwin targets to the script and made cross-win* targets explicit
diff --git a/COMPILE b/COMPILE
index da07a17..3163419 100644
--- a/COMPILE
+++ b/COMPILE
@@ -45,20 +45,29 @@
if you want 64-bit binaries) are required.
- To cross-compile Windows 32-bit binary, simply run
- $ ./compile.sh win32
+ $ ./compile.sh cross-win32
- To cross-compile Windows 64-bit binary, simply run
- $ ./compile.sh win64
+ $ ./compile.sh cross-win64
Resulted files "capstone.dll" and "tests/test*.exe" can then be used on Windows machine.
-(4) By default, gcc is used as compiler. If you want to use "clang" instead, compile
+(4) To compile under Cygwin gcc-mingw-w64-i686 or x86_64-w64-mingw32 run:
+
+ - To compile Windows 32-bit binary under Cygwin, simply run
+ $ ./compile.sh cygwin-mingw32
+
+ - To compile Windows 64-bit binary under Cygwin, simply run
+ $ ./compile.sh cygwin-mingw64
+
+
+(5) By default, gcc is used as compiler. If you want to use "clang" instead, compile
the code with:
$ ./compile.sh clang
-(5) So far Python, Ruby, Ocaml, Java, C# and Go are supported by bindings. Look for the bindings
+(6) So far, Python, Ruby, Ocaml, Java, C# and Go are supported by bindings. Look for the bindings
under directory bindings/, and refer to README file of corresponding languages.