blob: 2e463cd029618482c71a81018b65e61ccc88dc92 [file] [log] [blame]
Nguyen Anh Quynhfc83a432014-02-22 23:26:27 +08001################################################################################
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +08002# Specify which archs you want to compile in.
Nguyen Anh Quynhcf4df4b2014-01-13 11:18:45 +08003# DO NOT touch the line below.
Nguyen Anh Quynh5219f642013-12-22 13:00:48 +08004CAPSTONE_ARCHS =
danghvu6f52bf92013-12-19 22:43:01 -06005
Nguyen Anh Quynhcf4df4b2014-01-13 11:18:45 +08006# Comment out the line below if you don't want to support ARM
Nguyen Anh Quynhf954f872013-12-22 18:49:22 +08007CAPSTONE_ARCHS += arm
Nguyen Anh Quynh5219f642013-12-22 13:00:48 +08008
Nguyen Anh Quynhcf4df4b2014-01-13 11:18:45 +08009# Comment out the line below if you don't want to support ARM64
Nguyen Anh Quynhf954f872013-12-22 18:49:22 +080010CAPSTONE_ARCHS += aarch64
Nguyen Anh Quynh5219f642013-12-22 13:00:48 +080011
Nguyen Anh Quynhcf4df4b2014-01-13 11:18:45 +080012# Comment out the line below if you don't want to support Mips
Nguyen Anh Quynhf954f872013-12-22 18:49:22 +080013CAPSTONE_ARCHS += mips
Nguyen Anh Quynh5219f642013-12-22 13:00:48 +080014
Nguyen Anh Quynhcf4df4b2014-01-13 11:18:45 +080015# Comment out the line below if you don't want to support PowerPC
Nguyen Anh Quynh0f9cb0f2013-12-28 14:12:54 +080016CAPSTONE_ARCHS += powerpc
Nguyen Anh Quynhf6060b82014-02-22 04:57:38 +080017
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080018# Comment out the line below if you don't want to support Intel (16/32/64-bit)
Nguyen Anh Quynhf6060b82014-02-22 04:57:38 +080019CAPSTONE_ARCHS += x86
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080020
21
22################################################################################
23# Comment out the line below ('USE_SYS_DYN_MEM = yes') if you do not want to use
24# system's malloc()/calloc()/realloc()/free() for internal dynamic memory management.
25#
26# NOTE: in that case, your program must specify your own malloc/calloc/realloc/free
27# functions via API cs_option(), using CS_OPT_MEM option type.
28USE_SYS_DYN_MEM = yes
29
30
31################################################################################
32# Change 'CAPSTONE_DIET = no' to 'CAPSTONE_DIET = yes' to make the library
33# more compact: use less memory & smaller in binary size.
34# This setup will remove the mnemonic & op_str data, plus semantic information
35# such as regs_read/write & group. The amount of reduced size in the binary
36# is around 40%.
37#
38# NOTE: we still keep all those related fileds @mnemonic, @op_str, @regs_read,
39# @regs_write, @groups in fields in cs_insn structure regardless, but they
40# will not be updated (i.e empty) at the output of disassemble APIs.
41CAPSTONE_DIET = no