mirror of
https://github.com/siemens-mobile-hacks/capstone.git
synced 2026-11-25 22:27:31 +00:00
* Fix leaks * Remove unnecessary new lines * Add checks for actual buffer length before attempting reading it. * Xtensa: add xtensa support * Xtensa fixes - fix MCExpr - fix Xtensa_add_cs_detail - add `add_cs_detail` - add `MCExpr *MCOperand_getExpr(const MCOperand *MC)` `void printExpr(const MCExpr *E, SStream *O)` autosync fix - fix StreamOperation.py - replace `report_fatal_error` with `CS_ASSERT` - fix patch StreamOperation.py - replace `assert` with `CS_ASSERT` - fix AddCSDetail.py - fix QualifiedIdentifier * Xtensa fix * Xtensa fix .py * add Xtensa to the fuzzer * Xtensa `LITBASE`: add a basic implementation * Xtensa `LITBASE`: add a integration test * Xtensa: fix cs_v6_release_guide.md * Xtensa: fix `XTENSA_OP_GROUP_MEMOPERAND` * Xtensa: fix * Xtensa: fix Targets.py * Use isUint and isInt all over Xtensa * Add documentation about LITBASE functionality * Fix typo * Replace hard with Capstone assert * Xtensa: fix arch_config.json * Xtensa: fix --------- Co-authored-by: Rot127 <unisono@quyllur.org>
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
PYTHON3 ?= python3
|
|
|
|
.PHONY: gen_const install sdist bdist clean check
|
|
|
|
gen_const:
|
|
cd .. && $(PYTHON3) const_generator.py python
|
|
|
|
install:
|
|
rm -rf src/
|
|
if test -n "${DESTDIR}"; then \
|
|
$(PYTHON3) setup.py build install --root="${DESTDIR}"; \
|
|
else \
|
|
$(PYTHON3) setup.py build install; \
|
|
fi
|
|
|
|
# build & upload PyPi package with source code of the core
|
|
sdist:
|
|
rm -rf src/ dist/
|
|
$(PYTHON3) setup.py sdist register upload
|
|
|
|
# build & upload PyPi package with prebuilt core
|
|
bdist:
|
|
rm -rf src/ dist/
|
|
$(PYTHON3) setup.py bdist_wheel register upload
|
|
|
|
clean:
|
|
rm -rf build/ src/ dist/ *.egg-info
|
|
rm -rf capstone/lib capstone/include pyx/lib pyx/include
|
|
rm -f pyx/*.c pyx/__init__.py
|
|
for f in capstone/*.py; do rm -f pyx/$$(basename $$f)x; done
|
|
rm -f MANIFEST
|
|
rm -f *.pyc capstone/*.pyc
|
|
|
|
|
|
TESTS = test_basic.py test_detail.py test_arm.py test_aarch64.py test_m68k.py test_mips.py
|
|
TESTS += test_ppc.py test_sparc.py test_systemz.py test_x86.py test_xcore.py test_tms320c64x.py
|
|
TESTS += test_m680x.py test_skipdata.py test_mos65xx.py test_bpf.py test_riscv.py
|
|
TESTS += test_evm.py test_tricore.py test_wasm.py test_sh.py test_hppa.py
|
|
TESTS += test_lite.py test_iter.py test_customized_mnem.py test_alpha.py test_xtensa.py
|
|
|
|
check:
|
|
@for t in $(TESTS); do \
|
|
echo Check $$t ... ; \
|
|
./tests/$$t > /dev/null; \
|
|
if [ $$? -eq 0 ]; then echo OK; else echo FAILED; exit 1; fi \
|
|
done
|
|
|