221 Commits

Author SHA1 Message Date
Stephen
c27f326dcc Move functionality from make.sh to Makefile (#1142)
simplifies builds, prevents overriding of options
2018-05-17 16:30:05 +08:00
Stephen
b0733cd36c Cleanup build process (#1023)
avoiding bash subshells (which happen in for loops) because they
like to selectively inherit environment variables
2018-05-17 07:54:46 +08:00
Stephen
dcd06519e3 Cleanup makefile (#1132) 2018-05-12 11:37:16 +08:00
Nguyen Anh Quynh
9c7a094b58 add Ethereum VM architecture 2018-03-31 17:29:22 +08:00
Nguyen Anh Quynh
236b70ce5c cleanup Makefile for M680K. also include its INC files in dependency 2017-10-21 14:05:02 +07:00
Stephen
891ef94819 more makefile cleanup (#1039)
* more makefile cleanup

* fix spelling mistake
2017-10-21 21:47:38 +08:00
Wolfgang Schwotzer
e8d1f1d4d2 M680X: Target ready for pull request (#1034)
* Added new M680X target. Supports M6800/1/2/3/9, HD6301

* M680X: Reformat for coding guide lines. Set alphabetical order in HACK.TXT

* M680X: Prepare for python binding. Move cs_m680x, m680x_insn to m680x_info. Chec
> k cpu type, no default.

* M680X: Add python bindings. Added python tests.

* M680X: Added cpu types to usage message.

* cstool: Avoid segfault for invalid <arch+mode>.

* Make test_m680x.c/test_m680x.py output comparable (diff params: -bu). Keep xprint.py untouched.

* M680X: Update CMake/make for m680x support. Update .gitignore.

* M680X: Reduce compiler warnings.

* M680X: Reduce compiler warnings.

* M680X: Reduce compiler warnings.

* M680X: Make test_m680x.c/test_m680x.py output comparable (diff params: -bu).

* M680X: Add ocaml bindings and tests.

* M680X: Add java bindings and tests.

* M680X: Added tests for all indexed addressing modes. C/Python/Ocaml

* M680X: Naming, use page1 for PAGE1 instructions (without prefix).

* M680X: Naming, use page1 for PAGE1 instructions (without prefix).

* M680X: Used M680X_FIRST_OP_IN_MNEM in tests C/python/java/ocaml.

* M680X: Added access property to cs_m680x_op.

* M680X: Added operand size.

* M680X: Remove compiler warnings.

* M680X: Added READ/WRITE access property per operator.

* M680X: Make reg_inherent_hdlr independent of CPU type.

* M680X: Add HD6309 support + bug fixes

* M680X: Remove errors and warning.

* M680X: Add Bcc/LBcc to group BRAREL (relative branch).

* M680X: Add group JUMP to BVS/BVC/LBVS/LBVC. Remove BRAREL from BRN/LBRN.

* M680X: Remove LBRN from group BRAREL.

* M680X: Refactored cpu_type initialization for better readability.

* M680X: Add two operands for insn having two reg. in mnemonic. e.g. ABX.

* M680X: Remove typo in cstool.c

* M680X: Some format improvements in changed_regs.

* M680X: Remove insn id string list from tests (C/python/java/ocaml).

* M680X: SEXW, set access of reg. D to WRITE.

* M680X: Sort changed_regs in increasing m680x_insn order.

* M680X: Add M68HC11 support + Reduced from two to one INDEXED operand.

* M680X: cstool, also write '(in mnemonic)' for second reg. operand.

* M680X: Add BRN/LBRN to group JUMP and BRAREL.

* M680X: For Bcc/LBcc/BRSET/BRCLR set reg. CC to read access.

* M680X: Correctly print negative immediate values with option CS_OPT_UNSIGNED.

* M680X: Rename some instruction handlers.

* M680X: Add M68HC05 support.

* M680X: Dont print prefix '<' for direct addr. mode.

* M680X: Add M68HC08 support + resorted tables + bug fixes.

* M680X: Add Freescale HCS08 support.

* M680X: Changed group names, avoid spaces.

* M680X: Refactoring, rename addessing mode handlers.

* M680X: indexed addr. mode, changed pre/post inc-/decrement representation.

* M680X: Rename some M6809/HD6309 specific functions.

* M680X: Add CPU12 (68HC12/HCS12) support.

* M680X: Correctly display illegal instruction as FCB .

* M680X: bugfix: BRA/BRN/BSR/LBRA/LBRN/LBSR does not read CC reg.

* M680X: bugfix: Correctly check for sufficient code size for M6809 indexed addressing.

* M680X: Better support for changing insn id within handler for addessing mode.

* M680X: Remove warnings.

* M680X: In set_changed_regs_read_write_counts use own access_mode.

* M680X: Split cpu specific tables into separate *.inc files.

* M680X: Remove warnings.

* M680X: Removed address_mode. Addressing mode is available in operand.type

* M680X: Bugfix: BSET/BCLR/BRSET/BRCLR correct read/modify CC reg.

* M680X: Remove register TMP1. It is first visible in CPU12X.

* M680X: Performance improvement + bug fixes.

* M680X: Performance improvement, make cpu_tables const static.

* M680X: Simplify operand decoding by using two handlers.

* M680X: Replace M680X_OP_INDEX by M680X_OP_CONSTANT + bugfix in java/python/ocaml bindings.

* M680X: Format with astyle.

* M680X: Update documentation.

* M680X: Corrected author for m680x specific files.

* M680X: Make max. number of architectures single source.
2017-10-21 21:44:36 +08:00
Stephen
ae616f901c cleanup makefile (#1038)
use wildcards
2017-10-20 23:17:30 +08:00
Jonas
ca71fc1155 Add posibility to disable universal build for osx 2017-09-05 21:51:07 +07:00
Adrian Herrera
42b3ef0233 mingw build: cstool fails to build with mingw (#941)
The correct compiler was not being passed to cstool/Makefile. The expected name
for the capstone lib was also incorrect - there is no "lib" prefix when
compiling with mingw.
2017-06-02 21:49:59 +08:00
Nguyen Anh Quynh
fdca2f7cf8 Makefile: do not delete capstone.pc.in 2017-05-05 09:47:19 +08:00
Fotis Loukos
ae6f2d1411 Added support for the TMS320C64x architecture. 2017-04-14 17:00:40 +03:00
Nguyen Anh Quynh
788de6a9ad Makefile install works even when pkg-config is missing 2017-04-14 18:43:06 +08:00
pancake
b8c84ad01b Silent CC warnings 2017-02-06 13:24:33 +01:00
Hank Leininger
c159015174 Make sure bindir exists before installing to it.
Without this, installing to a temporary directory tree (as done by
some package managers) installs cstool as the file /usr/bin.

This brings next in line with the behavior of master.
2016-12-10 20:52:08 -05:00
Nguyen Anh Quynh
3f1df56bf1 improve dependency on header files *.h, and remove clean from make.sh. see PR #793 2016-10-23 02:09:14 +08:00
Nguyen Anh Quynh
2eefba3bf7 Makefile: remove extra / letter for install target 2016-10-13 20:45:24 +08:00
Nguyen Anh Quynh
2dbd079321 cstool: compile/clean/install/uninstall from Makefile 2016-10-11 00:01:29 +08:00
Akihiko Odaki
efb07f3816 Fix check target for Unix-like environment
# Conflicts:
#	Makefile
2016-09-11 09:00:32 +09:00
Pranith Kumar
82c738e578 Fix linking step for new lib name 2016-05-03 11:02:28 -04:00
Pranith Kumar
e07720f0e2 Fix generated library name 2016-04-30 12:32:59 -04:00
Pranith Kumar
31f55f9139 Fix library install for tests 2016-03-01 00:09:48 -05:00
Nguyen Anh Quynh
96866c1c9a Merge pull request #592 from pranith/fix_check
Update available tests
2016-03-01 12:44:05 +08:00
Nguyen Anh Quynh
7c7a53c0a9 arm64: add AArch64MappingInsnOp.inc as dependency to Makefile 2016-03-01 12:39:42 +08:00
Pranith Kumar
83fb35cbf4 Update available tests
test and test.basic are now test_basic and test_basic.static. Rename them in the
Makefile as such to avoid 'make check' error.
2016-02-29 23:00:32 -05:00
kevemueller
82ceac5ae0 fix setting cross compilation variables 2015-12-14 16:55:53 +01:00
Nguyen Anh Quynh
bcdab9b002 Merge branch 'next' of https://github.com/aquynh/capstone into next 2015-11-10 22:59:36 +08:00
Nguyen Anh Quynh
06ab24f9b5 Merge branch 'next' of https://github.com/07151129/capstone into 07151129-next 2015-11-10 22:56:01 +08:00
Nguyen Anh Quynh
bfc0566e3a Merge pull request #532 from radare/destdir-fix
Fix #184 - properly handle DESTDIR in pkgconfig file
2015-11-10 22:15:43 +08:00
pancake
91659c0d55 Fix #184 - properly handle DESTDIR in pkgconfig file 2015-11-08 12:05:41 +01:00
Pb
2769c772ce Correct build settings for xnu kext. Changed calloc name to avoid potential conflicts 2015-11-06 14:44:55 +01:00
Nguyen Anh Quynh
0d394aa374 Makefile: x86 depends on X86ImmSize.inc 2015-11-06 10:34:27 +08:00
Nicolas PLANEL
f01e0c93f9 [M68K] remove reference to M68KConf.h file
M68KConf.h as been removed, cleanup all reference to it.

Signed-off-by: Nicolas PLANEL <nplanel@gmail.com>
2015-10-10 19:37:35 +11:00
Nguyen Anh Quynh
8deb6d9eed m68k: rename M68Kconf.h to M68KConf.h for consistency 2015-10-04 21:59:03 +08:00
Nguyen Anh Quynh
7d5badd641 m68k: more cleanup & fix code style 2015-10-04 21:45:50 +08:00
Daniel Collin
2ee675c10a This adds M68K support to Capstone 2015-10-02 20:47:00 +02:00
Kamil Rytarowski
b08f4614c5 Allow to build capstone in pkgsrc for FreeBSD and DragonflyBSD 2015-07-27 10:33:15 +08:00
Nguyen Anh Quynh
f0677abb8f pkg-config can be unavailable, leading to empty PKGCFGDIR, thus 'mkdir -p' fails. fixed by checking if PKGCFGDIR is empty 2015-05-21 15:09:09 +08:00
Ole André Vadla Ravnås
495a4f5df9 Improve the pkgconfig generation logic
The destination directory may not exist, so we need to mkdir just
in case.
2015-04-23 17:55:06 +02:00
reverser
160e198584 Add support to embed Capstone 3.x branch into OS X kernel extensions. 2015-04-09 18:28:19 +01:00
Nguyen Anh Quynh
29f777bdd9 arm: support cs_regs_access() API 2015-04-07 11:59:26 +08:00
Nguyen Anh Quynh
19ba71a6ae Makefile: add X86MappingInsnOp_reduce.inc to DEP_X86 2015-03-25 15:22:12 +08:00
Nguyen Anh Quynh
efffe787d1 Add new API and start to provide access information for instruction operands
- New API cs_regs_access() that provide registers being read & modified by instruction

- New field cs_x86_op.access provides access info (READ, WRITE) for each operand

- New field cs_x86.eflags provides EFLAGS affected by instruction

- Extend cs_detail.{regs_read, regs_write} from uint8_t to uint16_t type
2015-03-25 15:02:13 +08:00
Nguyen Anh Quynh
367d438d6a Merge branch 'makesh' of https://github.com/radare/capstone into test3 2015-03-03 11:36:29 +08:00
Nguyen Anh Quynh
96ee76fa2a Merge branch 'next' of https://github.com/radare/capstone into test2 2015-02-28 08:29:21 +08:00
pancake
63414a490e Rewrite make.sh to make it shorter, faster and more portable
- Remove bashisms (use posix shell)
- Use only two space indentation (no mixed tabs)
- Honor $0 and autogenerate help message
- Correct use of exported and local vars
- Simplify spaguetti (-30LOC)
- Update copyright year
- Quote all vars to avoid command injection
- Cache uname value and allow to override it
- Honor user environment
- Support MAKE_JOBS (by default is 4)
2015-02-27 17:57:53 +01:00
Hilko Bengen
e0352d69d8 Limit exported symbols
Make sure that only symbols that are part of the API are exported by
the library -- similar to __declspec(dllexport) for the MSVC
compiler
2015-02-27 15:52:55 +08:00
pancake
9c10ace558 Make pkg-config and source consistent with installation 2015-02-24 05:03:04 +01:00
Nguyen Anh Quynh
794a706b3e Makefile: rename BUILD_CORE_ONLY to CAPSTONE_BUILD_CORE_ONLY for consistency 2015-01-30 09:07:51 +08:00
Nguyen Anh Quynh
8aa6fce278 Revert "Makefile: avoid generating capstone.pc if BUILD_CORE_ONLY=yes"
This reverts commit 35d4e449e1817da5818700dfd1edbaaafa263525.
2015-01-28 05:21:18 +08:00