mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-12-02 10:36:38 +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
83 lines
3.3 KiB
Makefile
83 lines
3.3 KiB
Makefile
# This file contains all customized compile options for Capstone.
|
|
# Consult COMPILE.TXT & docs/README for details.
|
|
|
|
################################################################################
|
|
# Specify which archs you want to compile in. By default, we build all archs.
|
|
|
|
CAPSTONE_ARCHS ?= arm aarch64 m68k mips powerpc sparc systemz x86 xcore tms320c64x m680x evm riscv mos65xx wasm bpf sh tricore alpha hppa
|
|
|
|
|
|
################################################################################
|
|
# Comment out the line below ('CAPSTONE_USE_SYS_DYN_MEM = yes'), or change it to
|
|
# 'CAPSTONE_USE_SYS_DYN_MEM = no' if do NOT use malloc/calloc/realloc/free/
|
|
# vsnprintf() provided by system for internal dynamic memory management.
|
|
#
|
|
# NOTE: in that case, specify your own malloc/calloc/realloc/free/vsnprintf()
|
|
# functions in your program via API cs_option(), using CS_OPT_MEM option type.
|
|
|
|
CAPSTONE_USE_SYS_DYN_MEM ?= yes
|
|
|
|
|
|
################################################################################
|
|
# Change 'CAPSTONE_DIET = no' to 'CAPSTONE_DIET = yes' to make the library
|
|
# more compact: use less memory & smaller in binary size.
|
|
# This setup will remove the @mnemonic & @op_str data, plus semantic information
|
|
# such as @regs_read/write & @group. The amount of binary size reduced is
|
|
# up to 50% in some individual archs.
|
|
#
|
|
# NOTE: we still keep all those related fileds @mnemonic, @op_str, @regs_read,
|
|
# @regs_write, @groups, etc in fields in cs_insn structure regardless, but they
|
|
# will not be updated (i.e empty), thus become irrelevant.
|
|
|
|
CAPSTONE_DIET ?= no
|
|
|
|
|
|
################################################################################
|
|
# Change 'CAPSTONE_X86_REDUCE = no' to 'CAPSTONE_X86_REDUCE = yes' to remove
|
|
# non-critical instruction sets of X86, making the binary size smaller by ~60%.
|
|
# This is desired in special cases, such as OS kernel, where these kind of
|
|
# instructions are not used.
|
|
#
|
|
# The list of instruction sets to be removed includes:
|
|
# - Floating Point Unit (FPU)
|
|
# - MultiMedia eXtension (MMX)
|
|
# - Streaming SIMD Extensions (SSE)
|
|
# - 3DNow
|
|
# - Advanced Vector Extensions (AVX)
|
|
# - Fused Multiply Add Operations (FMA)
|
|
# - eXtended Operations (XOP)
|
|
# - Transactional Synchronization Extensions (TSX)
|
|
#
|
|
# Due to this removal, the related instructions are nolonger supported.
|
|
#
|
|
# By default, Capstone is compiled with 'CAPSTONE_X86_REDUCE = no',
|
|
# thus supports complete X86 instructions.
|
|
|
|
CAPSTONE_X86_REDUCE ?= no
|
|
|
|
################################################################################
|
|
# Change 'CAPSTONE_X86_ATT_DISABLE = no' to 'CAPSTONE_X86_ATT_DISABLE = yes' to
|
|
# disable AT&T syntax on x86 to reduce library size.
|
|
|
|
CAPSTONE_X86_ATT_DISABLE ?= no
|
|
|
|
################################################################################
|
|
# Change 'CAPSTONE_STATIC = yes' to 'CAPSTONE_STATIC = no' to avoid building
|
|
# a static library.
|
|
|
|
CAPSTONE_STATIC ?= yes
|
|
|
|
|
|
################################################################################
|
|
# Change 'CAPSTONE_SHARED = yes' to 'CAPSTONE_SHARED = no' to avoid building
|
|
# a shared library.
|
|
|
|
CAPSTONE_SHARED ?= yes
|
|
|
|
################################################################################
|
|
# Change 'CAPSTONE_HAS_OSXKERNEL = no' to 'CAPSTONE_HAS_OSXKERNEL = yes' to
|
|
# enable OS X kernel embedding support. If 'CAPSTONE_USE_SYS_DYN_MEM = yes',
|
|
# then kern_os_* functions are used for memory management.
|
|
|
|
CAPSTONE_HAS_OSXKERNEL ?= no
|