blob: fbafe5a37c1ab51cd7307d9cfe5f301d301e3737 [file] [log] [blame]
Nguyen Anh Quynhfc83a432014-02-22 23:26:27 +08001################################################################################
Nguyen Anh Quynh3b53fc42014-02-28 11:05:01 +08002# Specify which archs you want to compile in. By default, we build all archs.
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################################################################################
Nguyen Anh Quynh951e8e52014-03-01 23:24:09 +080023# Comment out the line below ('USE_SYS_DYN_MEM = yes'), or change it to
24# 'USE_SYS_DYN_MEM = no' if do NOT use malloc()/calloc()/realloc()/free()
25# provided by system for internal dynamic memory management.
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080026#
Nguyen Anh Quynh951e8e52014-03-01 23:24:09 +080027# NOTE: in that case, you must specify your own malloc/calloc/realloc/free
28# functions in your program via API cs_option(), using CS_OPT_MEM option type.
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080029USE_SYS_DYN_MEM = yes
30
31
32################################################################################
33# Change 'CAPSTONE_DIET = no' to 'CAPSTONE_DIET = yes' to make the library
34# more compact: use less memory & smaller in binary size.
Nguyen Anh Quynhd5ca1452014-02-24 22:13:29 +080035# This setup will remove the @mnemonic & @op_str data, plus semantic information
36# such as @regs_read/write & @group. The amount of reduced size in the binary
37# is up to 50% in some individual archs.
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080038#
39# NOTE: we still keep all those related fileds @mnemonic, @op_str, @regs_read,
Nguyen Anh Quynhd5ca1452014-02-24 22:13:29 +080040# @regs_write, @groups, etc in fields in cs_insn structure regardless, but they
41# will not be updated (i.e empty) at the output of related APIs.
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080042CAPSTONE_DIET = no