make.sh: fix instructions in COMPILE.TXT to switch to use make.sh

This commit is contained in:
Nguyen Anh Quynh 2014-01-17 14:20:54 +08:00
parent f63db27831
commit dba00f8628

View File

@ -7,37 +7,25 @@ Capstone requires no prerequisite packages, so it is easy to compile & install.
(0) Tailor Capstone to your need.
Out of 4 archtitectures supported by Capstone (Arm, Arm64, Mips & X86), if
you just need several selected archs, you can choose which ones you want
Out of 5 archtitectures supported by Capstone (Arm, Arm64, Mips, PPC & X86),
if you just need several selected archs, you can choose which ones you want
to compile in by modifying config.mk before going to next steps.
By default, all 4 architectures are compiled.
By default, all 5 architectures are compiled.
(1) Compile from source
On *nix (such as MacOSX, Linux & FreeBSD):
On *nix (such as MacOSX, Linux, *BSD, Solaris):
- To compile for current platform, run either:
$ ./compile.sh
or:
$ make
For FreeBSD/OpenBSD, use 'gmake' instread of 'make':
$ gmake
or:
$ ./compile.sh bsd
Then run "./tests/test*" to see the tests disassembling sample code.
$ ./make.sh
- On 64-bit OS, run command below to cross-compile Capstone for 32-bit binary:
$ ./compile.sh nix32
Then similarly, run "./tests/test*" to see the tests disassembling sample code.
$ ./make.sh nix32
@ -45,15 +33,18 @@ Capstone requires no prerequisite packages, so it is easy to compile & install.
To install Capstone, run:
$ sudo make install
$ sudo ./make.sh install
For FreeBSD/OpenBSD, use 'gmake' instead of 'make':
For FreeBSD/OpenBSD, where sudo is unavailable, run:
$ sudo gmake install
$ su; ./make.sh install
Users are then required to enter root password to copy Capstone into machine
system directories.
Then run "./tests/test*" to see the tests disassembling sample code.
NOTE: The core framework that will be installed by "make install" consist of
only following files:
@ -62,6 +53,7 @@ Capstone requires no prerequisite packages, so it is easy to compile & install.
/usr/include/capstone/arm.h
/usr/include/capstone/arm64.h
/usr/include/capstone/mips.h
/usr/include/capstone/ppc.h
/usr/lib/libcapstone.so (for Linux/*nix), or /usr/lib/libcapstone.dylib (OSX)
/usr/lib/libcapstone.a
@ -73,10 +65,10 @@ Capstone requires no prerequisite packages, so it is easy to compile & install.
for 64-bit binaries) are required.
- To cross-compile Windows 32-bit binary, simply run
$ ./compile.sh cross-win32
$ ./make.sh cross-win32
- To cross-compile Windows 64-bit binary, simply run
$ ./compile.sh cross-win64
$ ./make.sh cross-win64
Resulted files "capstone.dll" and "tests/test*.exe" can then be used on Windows machine.
@ -87,21 +79,21 @@ Capstone requires no prerequisite packages, so it is easy to compile & install.
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
$ ./make.sh cygwin-mingw32
- To compile Windows 64-bit binary under Cygwin, simply run
$ ./compile.sh cygwin-mingw64
$ ./make.sh cygwin-mingw64
(5) By default, cc (default c compiler on the system) is used as compiler.
- To use "clang" compiler instead, run command below:
$ ./compile.sh clang
$ ./make.sh clang
- To use "gcc" compiler instead, run this command:
$ ./compile.sh gcc
$ ./make.sh gcc