config.mk revision d03edf49bce1860f061172640a6292e9c9f8ba2e
1# This file contains all customized compile options for Capstone.
2# Modify it before building step. Consult docs/README for instructions.
3
4################################################################################
5# Specify which archs you want to compile in. By default, we build all archs.
6# DO NOT touch the line below.
7CAPSTONE_ARCHS =
8
9# Comment out the line below if you don't want to support ARM
10CAPSTONE_ARCHS += arm
11
12# Comment out the line below if you don't want to support ARM64
13CAPSTONE_ARCHS += aarch64
14
15# Comment out the line below if you don't want to support Mips
16CAPSTONE_ARCHS += mips
17
18# Comment out the line below if you don't want to support PowerPC
19CAPSTONE_ARCHS += powerpc
20
21# Comment out the line below if you don't want to support Intel (16/32/64-bit)
22CAPSTONE_ARCHS += x86
23
24
25################################################################################
26# Comment out the line below ('USE_SYS_DYN_MEM = yes'), or change it to
27# 'USE_SYS_DYN_MEM = no' if do NOT use malloc/calloc/realloc/free/vnsprintf()
28# provided by system for internal dynamic memory management.
29#
30# NOTE: in that case, specify your own malloc/calloc/realloc/free/vnsprintf()
31# functions in your program via API cs_option(), using CS_OPT_MEM option type.
32
33USE_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.
39# This setup will remove the @mnemonic & @op_str data, plus semantic information
40# such as @regs_read/write & @group. The amount of reduced size in the binary
41# is up to 50% in some individual archs.
42#
43# NOTE: we still keep all those related fileds @mnemonic, @op_str, @regs_read,
44# @regs_write, @groups, etc in fields in cs_insn structure regardless, but they
45# will not be updated (i.e empty) at the output of related APIs.
46
47CAPSTONE_DIET = no
48