Nguyen Anh Quynh | fc83a43 | 2014-02-22 23:26:27 +0800 | [diff] [blame^] | 1 | ################################################################################ |
| 2 | # Change 'CAPSTONE_DIET = no' to 'CAPSTONE_DIET = yes' to make the library |
| 3 | # more compact. |
| 4 | # This setup will remove all the mnemonic & op_str data, thus reduces the binary |
| 5 | # size by around 200KB. |
| 6 | # NOTE: we still keep @mnemonic & @op_str fields in cs_insn structure regardless, |
| 7 | # but they will not be updated (i.e blank) at the output of disassemble APIs. |
| 8 | CAPSTONE_DIET = no |
| 9 | |
| 10 | |
| 11 | ################################################################################ |
Nguyen Anh Quynh | 59492c2 | 2014-01-05 23:41:31 +0800 | [diff] [blame] | 12 | # Comment out the line below 'USE_SYS_DYN_MEM = yes' if you do not want to use |
| 13 | # system's malloc()/calloc()/realloc()/free() for internal dynamic memory management. |
| 14 | # NOTE: in that case, your program must specify your own malloc/calloc/realloc/free |
| 15 | # functions with cs_option(), using CS_OPT_MEM option type. |
| 16 | USE_SYS_DYN_MEM = yes |
| 17 | |
Nguyen Anh Quynh | fc83a43 | 2014-02-22 23:26:27 +0800 | [diff] [blame^] | 18 | |
| 19 | ################################################################################ |
Nguyen Anh Quynh | 5219f64 | 2013-12-22 13:00:48 +0800 | [diff] [blame] | 20 | # Specify which archs you want to compile in |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 21 | # DO NOT touch the line below. |
Nguyen Anh Quynh | 5219f64 | 2013-12-22 13:00:48 +0800 | [diff] [blame] | 22 | CAPSTONE_ARCHS = |
danghvu | 6f52bf9 | 2013-12-19 22:43:01 -0600 | [diff] [blame] | 23 | |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 24 | # Comment out the line below if you don't want to support ARM |
Nguyen Anh Quynh | f954f87 | 2013-12-22 18:49:22 +0800 | [diff] [blame] | 25 | CAPSTONE_ARCHS += arm |
Nguyen Anh Quynh | 5219f64 | 2013-12-22 13:00:48 +0800 | [diff] [blame] | 26 | |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 27 | # Comment out the line below if you don't want to support ARM64 |
Nguyen Anh Quynh | f954f87 | 2013-12-22 18:49:22 +0800 | [diff] [blame] | 28 | CAPSTONE_ARCHS += aarch64 |
Nguyen Anh Quynh | 5219f64 | 2013-12-22 13:00:48 +0800 | [diff] [blame] | 29 | |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 30 | # Comment out the line below if you don't want to support Mips |
Nguyen Anh Quynh | f954f87 | 2013-12-22 18:49:22 +0800 | [diff] [blame] | 31 | CAPSTONE_ARCHS += mips |
Nguyen Anh Quynh | 5219f64 | 2013-12-22 13:00:48 +0800 | [diff] [blame] | 32 | |
Nguyen Anh Quynh | cf4df4b | 2014-01-13 11:18:45 +0800 | [diff] [blame] | 33 | # Comment out the line below if you don't want to support PowerPC |
Nguyen Anh Quynh | 0f9cb0f | 2013-12-28 14:12:54 +0800 | [diff] [blame] | 34 | CAPSTONE_ARCHS += powerpc |
Nguyen Anh Quynh | f6060b8 | 2014-02-22 04:57:38 +0800 | [diff] [blame] | 35 | |
| 36 | # Comment out the line below if you don't want to support Intel |
| 37 | CAPSTONE_ARCHS += x86 |