mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 13:39:46 +00:00
9daa1ffbac
* Refactor HPPA * Add full HPPA 1.1 instructions support * Add HPPA 1.1 cs tests * Fix HPPA dissassembler * Add HPPA 2.0 instructions * Add HPPA tests * Fix HPPA disasm & printer * Update HPPA tests * Remove unused code * Add implicit register access info & Refactor HPPA main files * Add python bindings/tests and cstests * Fix HPPA disasm wrong decoding * Rewrite invalid test cases * Update HPPA python constants * Make HPPA python test executable * Change HPPA python tests sequence to match c tests * Refactor HPPA main files * Write target instead of offset in details * Add HPPA detail function support in cstest * Rewrite targets in branch tests * Make correct string modifier addition * Add hppa test calls * Add zero operands check * Remove MCOperand array * Change immediate values printing * Add HPPA 2.0 wide support * Fix invalid break instruction decode Remove unused code * Add HPPA to fuzzing tests * Add HPPA to options * Add HPPA to docs * Refactor HPPA * Fix invalid branch insn decoding * Add HPPA to labeler * clang-format hppa files * Document internal structures and minor refactoring * Add missing default statements * Fix invalid default statement
79 lines
1.2 KiB
Bash
Executable File
79 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Capstone disassembler engine (www.capstone-engine.org)
|
|
# Build Capstone libs for specified architecture, or all if none is specified (libcapstone.so & libcapstone.a) on *nix with CMake & make
|
|
# By Nguyen Anh Quynh, Jorn Vernee, 2019
|
|
|
|
CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=Release"
|
|
# Uncomment below line to compile in Diet mode
|
|
# CMAKE_FLAGS+=" -DCAPSTONE_BUILD_DIET=ON"
|
|
|
|
case $1 in
|
|
ARM)
|
|
ARCH=ARM
|
|
;;
|
|
ARM64)
|
|
ARCH=AARCH64
|
|
;;
|
|
AARCH64)
|
|
ARCH=AARCH64
|
|
;;
|
|
M68K)
|
|
ARCH=M68K
|
|
;;
|
|
MIPS)
|
|
ARCH=MIPS
|
|
;;
|
|
PowerPC)
|
|
ARCH=PPC
|
|
;;
|
|
Sparc)
|
|
ARCH=SPARC
|
|
;;
|
|
SystemZ)
|
|
ARCH=SYSZ
|
|
;;
|
|
XCore)
|
|
ARCH=XCORE
|
|
;;
|
|
x86)
|
|
ARCH=X86
|
|
;;
|
|
TMS320C64x)
|
|
ARCH=TMS320C64X
|
|
;;
|
|
M680x)
|
|
ARCH=M680X
|
|
;;
|
|
EVM)
|
|
ARCH=EVM
|
|
;;
|
|
MOS65XX)
|
|
ARCH=MOS65XX
|
|
;;
|
|
WASM)
|
|
ARCH=WASM
|
|
;;
|
|
BPF)
|
|
ARCH=BPF
|
|
;;
|
|
RISCV)
|
|
ARCH=RISCV
|
|
;;
|
|
HPPA)
|
|
ARCH=HPPA
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
if [ -z "${ARCH}" ]; then
|
|
CMAKE_FLAGS="${CMAKE_FLAGS} -DCAPSTONE_ARCHITECTURE_DEFAULT=ON"
|
|
else
|
|
CMAKE_FLAGS="${CMAKE_FLAGS} -DCAPSTONE_ARCHITECTURE_DEFAULT=OFF -DCAPSTONE_${ARCH}_SUPPORT=ON"
|
|
fi
|
|
|
|
cmake ${CMAKE_FLAGS} ..
|
|
|
|
make -j8
|