Skip to content
Snippets Groups Projects
Commit e366688f authored by Nguyen Anh Quynh's avatar Nguyen Anh Quynh
Browse files

better readability for docs/COMPILE*

parent aaa6e778
No related branches found
No related tags found
Loading
...@@ -8,30 +8,30 @@ CMake is required as dependency. ...@@ -8,30 +8,30 @@ CMake is required as dependency.
- On Mac OS X, you can install "cmake" with "brew". - On Mac OS X, you can install "cmake" with "brew".
$ brew install cmake $ brew install cmake
- On Utunbu Linux, install "cmake" with. - On Utunbu Linux, install "cmake" with.
$ sudo apt-get install cmake $ sudo apt-get install cmake
1. From the root directory of Keystone source, compile dynamic library 1. From the root directory of Keystone source, compile dynamic library
with below commands. with below commands.
$ mkdir build $ mkdir build
$ cd build $ cd build
$ ../make-share.sh $ ../make-share.sh
You can also compile static libray with. You can also compile static libray with.
$ mkdir build $ mkdir build
$ cd build $ cd build
$ ../make-lib.sh $ ../make-lib.sh
2. Right after building step, install Keystone. 2. Right after building step, install Keystone.
$ sudo make install $ sudo make install
Besides the libraries & C header files under directory "include/keystone", Besides the libraries & C header files under directory "include/keystone",
this step also installs a tool named "kstool" into the system. this step also installs a tool named "kstool" into the system.
...@@ -40,7 +40,7 @@ CMake is required as dependency. ...@@ -40,7 +40,7 @@ CMake is required as dependency.
3. Test Keystone with "kstool" like below. 3. Test Keystone with "kstool" like below.
$ kstool x32 "add eax, ebx" $ kstool x32 "add eax, ebx"
Run "kstool" without any option to find out how to use this handy tool. Run "kstool" without any option to find out how to use this handy tool.
......
...@@ -14,16 +14,16 @@ https://www.visualstudio.com ...@@ -14,16 +14,16 @@ https://www.visualstudio.com
1. Open the Visual Studio Command Promplt, and from the root directory 1. Open the Visual Studio Command Promplt, and from the root directory
of Keystone source, do: of Keystone source, do:
$ mkdir build $ mkdir build
$ cd build $ cd build
To build DLL file, run: To build DLL file, run:
$ ..\nmake-dll.bat $ ..\nmake-dll.bat
To build LIB file, run: To build LIB file, run:
$ ..\nmake-lib.bat $ ..\nmake-lib.bat
Find the generated libraries in build\llvm\lib\keystone.{dll,lib} Find the generated libraries in build\llvm\lib\keystone.{dll,lib}
...@@ -34,7 +34,7 @@ https://www.visualstudio.com ...@@ -34,7 +34,7 @@ https://www.visualstudio.com
2. Test Keystone with "kstool" like below. 2. Test Keystone with "kstool" like below.
> kstool x32 "add eax, ebx" $ kstool x32 "add eax, ebx"
Run "kstool" without any option to find out how to use this handy tool. Run "kstool" without any option to find out how to use this handy tool.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment