blob: 437c148b7768a5ccf965a3cd6936333a3fc54863 [file] [log] [blame]
Nguyen Anh Quynhd03edf42014-03-02 10:20:37 +08001# This file contains all customized compile options for Capstone.
Nguyen Anh Quynh838b3782014-03-04 18:20:28 +08002# Modify it before building step. Consult docs/README for details.
Nguyen Anh Quynhd03edf42014-03-02 10:20:37 +08003
Nguyen Anh Quynhfc83a432014-02-22 23:26:27 +08004################################################################################
Nguyen Anh Quynh3b53fc42014-02-28 11:05:01 +08005# Specify which archs you want to compile in. By default, we build all archs.
Nguyen Anh Quynhcf4df4b2014-01-13 11:18:45 +08006# DO NOT touch the line below.
Nguyen Anh Quynh5219f642013-12-22 13:00:48 +08007CAPSTONE_ARCHS =
danghvu6f52bf92013-12-19 22:43:01 -06008
Nguyen Anh Quynhcf4df4b2014-01-13 11:18:45 +08009# Comment out the line below if you don't want to support ARM
Nguyen Anh Quynhf954f872013-12-22 18:49:22 +080010CAPSTONE_ARCHS += arm
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 ARM64
Nguyen Anh Quynhf954f872013-12-22 18:49:22 +080013CAPSTONE_ARCHS += aarch64
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 Mips
Nguyen Anh Quynhf954f872013-12-22 18:49:22 +080016CAPSTONE_ARCHS += mips
Nguyen Anh Quynh5219f642013-12-22 13:00:48 +080017
Nguyen Anh Quynhcf4df4b2014-01-13 11:18:45 +080018# Comment out the line below if you don't want to support PowerPC
Nguyen Anh Quynh0f9cb0f2013-12-28 14:12:54 +080019CAPSTONE_ARCHS += powerpc
Nguyen Anh Quynhf6060b82014-02-22 04:57:38 +080020
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080021# 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 +080022CAPSTONE_ARCHS += x86
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080023
24
25################################################################################
Nguyen Anh Quynh951e8e52014-03-01 23:24:09 +080026# Comment out the line below ('USE_SYS_DYN_MEM = yes'), or change it to
Nguyen Anh Quynhb6ece8d2014-03-07 21:46:45 +080027# 'USE_SYS_DYN_MEM = no' if do NOT use malloc/calloc/realloc/free/vsnprintf()
Nguyen Anh Quynh951e8e52014-03-01 23:24:09 +080028# provided by system for internal dynamic memory management.
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080029#
Nguyen Anh Quynhb6ece8d2014-03-07 21:46:45 +080030# NOTE: in that case, specify your own malloc/calloc/realloc/free/vsnprintf()
Nguyen Anh Quynh951e8e52014-03-01 23:24:09 +080031# functions in your program via API cs_option(), using CS_OPT_MEM option type.
Nguyen Anh Quynhd03edf42014-03-02 10:20:37 +080032
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080033USE_SYS_DYN_MEM = yes
34
35
36################################################################################
37# Change 'CAPSTONE_DIET = no' to 'CAPSTONE_DIET = yes' to make the library
38# more compact: use less memory & smaller in binary size.
Nguyen Anh Quynhd5ca1452014-02-24 22:13:29 +080039# This setup will remove the @mnemonic & @op_str data, plus semantic information
Nguyen Anh Quynh838b3782014-03-04 18:20:28 +080040# such as @regs_read/write & @group. The amount of binary size reduced is
41# up to 50% in some individual archs.
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080042#
43# NOTE: we still keep all those related fileds @mnemonic, @op_str, @regs_read,
Nguyen Anh Quynhd5ca1452014-02-24 22:13:29 +080044# @regs_write, @groups, etc in fields in cs_insn structure regardless, but they
Nguyen Anh Quynh838b3782014-03-04 18:20:28 +080045# will not be updated (i.e empty), thus become irrelevant.
Nguyen Anh Quynhd03edf42014-03-02 10:20:37 +080046
Nguyen Anh Quynh7e5a6b52014-02-23 00:47:38 +080047CAPSTONE_DIET = no