2014-03-02 10:20:37 +08:00
|
|
|
# This file contains all customized compile options for Capstone.
|
2015-05-17 00:52:12 +08:00
|
|
|
# Consult COMPILE.TXT & docs/README for details.
|
2014-03-02 10:20:37 +08:00
|
|
|
|
2014-02-22 23:26:27 +08:00
|
|
|
################################################################################
|
2014-02-28 11:05:01 +08:00
|
|
|
# Specify which archs you want to compile in. By default, we build all archs.
|
2013-12-22 00:49:16 +08:00
|
|
|
|
M680X: Target ready for pull request (#1034)
* Added new M680X target. Supports M6800/1/2/3/9, HD6301
* M680X: Reformat for coding guide lines. Set alphabetical order in HACK.TXT
* M680X: Prepare for python binding. Move cs_m680x, m680x_insn to m680x_info. Chec
> k cpu type, no default.
* M680X: Add python bindings. Added python tests.
* M680X: Added cpu types to usage message.
* cstool: Avoid segfault for invalid <arch+mode>.
* Make test_m680x.c/test_m680x.py output comparable (diff params: -bu). Keep xprint.py untouched.
* M680X: Update CMake/make for m680x support. Update .gitignore.
* M680X: Reduce compiler warnings.
* M680X: Reduce compiler warnings.
* M680X: Reduce compiler warnings.
* M680X: Make test_m680x.c/test_m680x.py output comparable (diff params: -bu).
* M680X: Add ocaml bindings and tests.
* M680X: Add java bindings and tests.
* M680X: Added tests for all indexed addressing modes. C/Python/Ocaml
* M680X: Naming, use page1 for PAGE1 instructions (without prefix).
* M680X: Naming, use page1 for PAGE1 instructions (without prefix).
* M680X: Used M680X_FIRST_OP_IN_MNEM in tests C/python/java/ocaml.
* M680X: Added access property to cs_m680x_op.
* M680X: Added operand size.
* M680X: Remove compiler warnings.
* M680X: Added READ/WRITE access property per operator.
* M680X: Make reg_inherent_hdlr independent of CPU type.
* M680X: Add HD6309 support + bug fixes
* M680X: Remove errors and warning.
* M680X: Add Bcc/LBcc to group BRAREL (relative branch).
* M680X: Add group JUMP to BVS/BVC/LBVS/LBVC. Remove BRAREL from BRN/LBRN.
* M680X: Remove LBRN from group BRAREL.
* M680X: Refactored cpu_type initialization for better readability.
* M680X: Add two operands for insn having two reg. in mnemonic. e.g. ABX.
* M680X: Remove typo in cstool.c
* M680X: Some format improvements in changed_regs.
* M680X: Remove insn id string list from tests (C/python/java/ocaml).
* M680X: SEXW, set access of reg. D to WRITE.
* M680X: Sort changed_regs in increasing m680x_insn order.
* M680X: Add M68HC11 support + Reduced from two to one INDEXED operand.
* M680X: cstool, also write '(in mnemonic)' for second reg. operand.
* M680X: Add BRN/LBRN to group JUMP and BRAREL.
* M680X: For Bcc/LBcc/BRSET/BRCLR set reg. CC to read access.
* M680X: Correctly print negative immediate values with option CS_OPT_UNSIGNED.
* M680X: Rename some instruction handlers.
* M680X: Add M68HC05 support.
* M680X: Dont print prefix '<' for direct addr. mode.
* M680X: Add M68HC08 support + resorted tables + bug fixes.
* M680X: Add Freescale HCS08 support.
* M680X: Changed group names, avoid spaces.
* M680X: Refactoring, rename addessing mode handlers.
* M680X: indexed addr. mode, changed pre/post inc-/decrement representation.
* M680X: Rename some M6809/HD6309 specific functions.
* M680X: Add CPU12 (68HC12/HCS12) support.
* M680X: Correctly display illegal instruction as FCB .
* M680X: bugfix: BRA/BRN/BSR/LBRA/LBRN/LBSR does not read CC reg.
* M680X: bugfix: Correctly check for sufficient code size for M6809 indexed addressing.
* M680X: Better support for changing insn id within handler for addessing mode.
* M680X: Remove warnings.
* M680X: In set_changed_regs_read_write_counts use own access_mode.
* M680X: Split cpu specific tables into separate *.inc files.
* M680X: Remove warnings.
* M680X: Removed address_mode. Addressing mode is available in operand.type
* M680X: Bugfix: BSET/BCLR/BRSET/BRCLR correct read/modify CC reg.
* M680X: Remove register TMP1. It is first visible in CPU12X.
* M680X: Performance improvement + bug fixes.
* M680X: Performance improvement, make cpu_tables const static.
* M680X: Simplify operand decoding by using two handlers.
* M680X: Replace M680X_OP_INDEX by M680X_OP_CONSTANT + bugfix in java/python/ocaml bindings.
* M680X: Format with astyle.
* M680X: Update documentation.
* M680X: Corrected author for m680x specific files.
* M680X: Make max. number of architectures single source.
2017-10-21 21:44:36 +08:00
|
|
|
CAPSTONE_ARCHS ?= arm aarch64 m68k mips powerpc sparc systemz x86 xcore tms320c64x m680x
|
2014-02-23 00:47:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
2014-04-29 14:25:15 +08:00
|
|
|
# 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.
|
2014-02-23 00:47:38 +08:00
|
|
|
#
|
2014-03-07 21:46:45 +08:00
|
|
|
# NOTE: in that case, specify your own malloc/calloc/realloc/free/vsnprintf()
|
2014-03-01 23:24:09 +08:00
|
|
|
# functions in your program via API cs_option(), using CS_OPT_MEM option type.
|
2014-03-02 10:20:37 +08:00
|
|
|
|
2014-04-29 14:25:15 +08:00
|
|
|
CAPSTONE_USE_SYS_DYN_MEM ?= yes
|
2014-02-23 00:47:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Change 'CAPSTONE_DIET = no' to 'CAPSTONE_DIET = yes' to make the library
|
|
|
|
# more compact: use less memory & smaller in binary size.
|
2014-02-24 22:13:29 +08:00
|
|
|
# This setup will remove the @mnemonic & @op_str data, plus semantic information
|
2014-03-04 18:20:28 +08:00
|
|
|
# such as @regs_read/write & @group. The amount of binary size reduced is
|
|
|
|
# up to 50% in some individual archs.
|
2014-02-23 00:47:38 +08:00
|
|
|
#
|
|
|
|
# NOTE: we still keep all those related fileds @mnemonic, @op_str, @regs_read,
|
2014-02-24 22:13:29 +08:00
|
|
|
# @regs_write, @groups, etc in fields in cs_insn structure regardless, but they
|
2014-03-04 18:20:28 +08:00
|
|
|
# will not be updated (i.e empty), thus become irrelevant.
|
2014-03-02 10:20:37 +08:00
|
|
|
|
2014-04-29 12:59:01 +08:00
|
|
|
CAPSTONE_DIET ?= no
|
2014-03-25 23:20:41 +08:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
2014-03-27 10:54:44 +08:00
|
|
|
# Change 'CAPSTONE_X86_REDUCE = no' to 'CAPSTONE_X86_REDUCE = yes' to remove
|
2014-03-27 15:38:23 +08:00
|
|
|
# non-critical instruction sets of X86, making the binary size smaller by ~60%.
|
2014-03-25 23:20:41 +08:00
|
|
|
# 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:
|
2014-03-26 14:49:19 +08:00
|
|
|
# - 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)
|
2014-03-25 23:20:41 +08:00
|
|
|
#
|
|
|
|
# Due to this removal, the related instructions are nolonger supported.
|
|
|
|
#
|
2014-03-27 10:54:44 +08:00
|
|
|
# By default, Capstone is compiled with 'CAPSTONE_X86_REDUCE = no',
|
2014-03-26 16:20:25 +08:00
|
|
|
# thus supports complete X86 instructions.
|
2014-03-25 23:20:41 +08:00
|
|
|
|
2014-04-29 12:59:01 +08:00
|
|
|
CAPSTONE_X86_REDUCE ?= no
|
2014-05-01 22:00:52 +08:00
|
|
|
|
2014-08-18 02:59:05 +08:00
|
|
|
################################################################################
|
|
|
|
# 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
|
2014-05-01 22:00:52 +08:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# 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
|
2015-11-06 05:59:45 +08:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# 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
|