Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion subprojects/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: default all clean

DEPS=sdb qjs
DEPS=sdb qjs zydis

ifeq ($(WANT_V35),1)
DEPS += binaryninja
Expand All @@ -23,4 +23,22 @@ all: $(ALL)
clean:
rm -rf $(ALL)

ifeq (1,1)
include *.mk
else
include sdb.mk
ifeq ($(WANT_V35),1)
include binaryninja.mk
endif
ifeq ($(USE_CS4),1)
include capstone-v4.mk
else ifeq ($(USE_CSNEXT),1)
include capstone-next.mk
else
include capstone-v5.mk
endif
include qjs.mk

include zydis.mk
endif
zydis: ${WRAP_wrap_file_directory}
2 changes: 1 addition & 1 deletion subprojects/binaryninja.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WRAP_wrap_git_directory:=binaryninja
WRAP_wrap_git_patch_directory:=binaryninja
WRAP_wrap_git_depth:=1

.PHONY: binaryninja_clean binaryninja_all
.PHONY: binaryninja binaryninja_clean binaryninja_all

binaryninja:
if [ ! -d "binaryninja" -o "c40a5f04deec68d388b2072dc42b29141089f9ce" != "$(shell cd binaryninja 2>/dev/null && git rev-parse HEAD)" ]; then rm -rf "binaryninja"; ${MAKE} binaryninja_all; fi
Expand Down
4 changes: 4 additions & 0 deletions subprojects/capstone-next.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ WRAP_wrap_git_directory:=capstone-next
WRAP_wrap_git_diff_files:=capstone-next/capstone-patches/fix-x86-16.patch
WRAP_wrap_git_depth:=1

<<<<<<< HEAD
.PHONY: capstone-next_clean capstone-next_all
=======
.PHONY: capstone-next capstone-next_clean capstone-next_all
>>>>>>> bce843e5af (Import the zydis subproject - not yet used)

capstone-next:
if [ ! -d "capstone-next" -o "ccbc41d3dadb2953deed9e050abfae146876288d" != "$(shell cd capstone-next 2>/dev/null && git rev-parse HEAD)" ]; then rm -rf "capstone-next"; ${MAKE} capstone-next_all; fi
Expand Down
4 changes: 4 additions & 0 deletions subprojects/capstone-v4.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ WRAP_wrap_git_directory:=capstone-v4
WRAP_wrap_git_diff_files:=capstone-v4/capstone-patches/v4/capstone-calloc.patch,capstone-v4/capstone-patches/v4/fix-x86-16.patch,capstone-v4/capstone-patches/v4/sparc-crash.patch,capstone-v4/capstone-patches/v4/sstream-null.patch
WRAP_wrap_git_depth:=1

<<<<<<< HEAD
.PHONY: capstone-v4_clean capstone-v4_all
=======
.PHONY: capstone-v4 capstone-v4_clean capstone-v4_all
>>>>>>> bce843e5af (Import the zydis subproject - not yet used)

capstone-v4:
if [ ! -d "capstone-v4" -o "d7e459d026b19d6c3a7b743bfc475d919ff03f74" != "$(shell cd capstone-v4 2>/dev/null && git rev-parse HEAD)" ]; then rm -rf "capstone-v4"; ${MAKE} capstone-v4_all; fi
Expand Down
4 changes: 4 additions & 0 deletions subprojects/capstone-v5.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ WRAP_wrap_git_directory:=capstone-v5
WRAP_wrap_git_diff_files:=capstone-v5/capstone-patches/fix-x86-16.patch
WRAP_wrap_git_depth:=1

<<<<<<< HEAD
.PHONY: capstone-v5_clean capstone-v5_all
=======
.PHONY: capstone-v5 capstone-v5_clean capstone-v5_all
>>>>>>> bce843e5af (Import the zydis subproject - not yet used)

capstone-v5:
if [ ! -d "capstone-v5" -o "accf4df62f1fba6f92cae692985d27063552601c" != "$(shell cd capstone-v5 2>/dev/null && git rev-parse HEAD)" ]; then rm -rf "capstone-v5"; ${MAKE} capstone-v5_all; fi
Expand Down
4 changes: 4 additions & 0 deletions subprojects/qjs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ WRAP_wrap_git_directory:=qjs
WRAP_wrap_git_patch_directory:=qjs
WRAP_wrap_git_depth:=1

<<<<<<< HEAD
.PHONY: qjs_clean qjs_all
=======
.PHONY: qjs qjs_clean qjs_all
>>>>>>> bce843e5af (Import the zydis subproject - not yet used)

qjs:
if [ ! -d "qjs" -o "7238ee64dbc2fbdea044555cda8cda78785a93ed" != "$(shell cd qjs 2>/dev/null && git rev-parse HEAD)" ]; then rm -rf "qjs"; ${MAKE} qjs_all; fi
Expand Down
4 changes: 4 additions & 0 deletions subprojects/sdb.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ WRAP_wrap_git_revision:=2.2.0
WRAP_wrap_git_directory:=sdb
WRAP_wrap_git_depth:=1

<<<<<<< HEAD
.PHONY: sdb_clean sdb_all
=======
.PHONY: sdb sdb_clean sdb_all
>>>>>>> bce843e5af (Import the zydis subproject - not yet used)

sdb:
if [ ! -d "sdb" -o "2.2.0" != "$(shell cd sdb 2>/dev/null && git rev-parse HEAD)" ]; then rm -rf "sdb"; ${MAKE} sdb_all; fi
Expand Down
20 changes: 20 additions & 0 deletions subprojects/zydis.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file is autogenerated by acr-wrap

WRAP_wrap_file_directory:=zydis-4.1.1
WRAP_wrap_file_source_url:=https://github.com/zyantific/zydis/archive/refs/tags/v4.1.1.tar.gz
WRAP_wrap_file_source_filename:=zydis-v4.1.1.tar.gz
WRAP_wrap_file_source_hash:=943f91eb9ab2a8cc01ab9f8b785e769a273502071e0ee8011cdfcaad93947cec

.PHONY: zydis-4.1.1_clean zydis-4.1.1_all

zydis-4.1.1:
${MAKE} ${MAKE_FLAGS} zydis-4.1.1_all

zydis-4.1.1_all:
curl -Lo zydis-v4.1.1.tar.gz https://github.com/zyantific/zydis/archive/refs/tags/v4.1.1.tar.gz
echo Check 943f91eb9ab2a8cc01ab9f8b785e769a273502071e0ee8011cdfcaad93947cec
tar xzf zydis-v4.1.1.tar.gz
cd zydis-4.1.1

zydis-4.1.1_clean:
rm -rf zydis-4.1.1
5 changes: 5 additions & 0 deletions subprojects/zydis.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[wrap-file]
directory = zydis-4.1.1
source_url = https://github.com/zyantific/zydis/archive/refs/tags/v4.1.1.tar.gz
source_filename = zydis-v4.1.1.tar.gz
source_hash = 943f91eb9ab2a8cc01ab9f8b785e769a273502071e0ee8011cdfcaad93947cec
Loading