forked from radareorg/radare2-extras
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.acr
77 lines (69 loc) · 2.05 KB
/
Makefile.acr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
VERSION=@VERSION@
HAVE_LIB_YARA=@HAVE_LIB_YARA@
PREFIX=@PREFIX@
DESTDIR?=
TAR=tar -cvf
CZ=xz -f
DIRS=
ifeq ($(HAVE_LIB_YARA),1)
DIRS+=yara/yara
DIRS+=libr/asm/p
DIRS+=libr/anal/p
endif
help:
@echo "Usage make [target] .. Targets:"
@echo " all - build everything"
@echo " baleful - build baleful r2 plugin"
@echo " asm - build armthumb, ppc, psosvm, x86bea, m68k plugins"
@echo " anal - build analysis plugins (RAnal)"
@echo " bin - build binary plugins (RBin)"
@echo " debug - build debugger plugins (RDebug)"
@echo " yara - build yara3 r2 plugin"
@echo " (target)-install - install given plugin"
@echo " (target)-clean - clean given plugin"
@echo " install-yara{2,3} - install Yara 2 or 3 from Git"
baleful:
$(MAKE) -C baleful
debug unicorn:
$(MAKE) -C libr/debug/p
anal:
$(MAKE) -C libr/anal/p
asm:
$(MAKE) -C libr/asm/p
asm-install:
$(MAKE) -C libr/asm/p install DESTDIR=$(DESTDIR)
asm-clean:
$(MAKE) -C libr/asm/p clean
bin:
$(MAKE) -C libr/bin/p
bin-install:
$(MAKE) -C libr/bin/p install DESTDIR=$(DESTDIR)
yara:
cd yara/$@ ; ./configure --prefix=$(PREFIX)
$(MAKE) -C yara/$@
yara-clean:
$(MAKE) -C yara/yara clean
baleful-install:
$(MAKE) -C baleful install DESTDIR=$(DESTDIR)
debug-install unicorn-install:
$(MAKE) -C libr/debug/p install DESTDIR=$(DESTDIR)
debug-uninstall unicorn-uninstall:
$(MAKE) -C libr/debug/p uninstall DESTDIR=$(DESTDIR)
yara3-install:
$(MAKE) -C yara/yara install DESTDIR=$(DESTDIR)
all:
for a in $(DIRS) ; do \
( cd $$a ; ./configure --prefix=$(PREFIX) ; $(MAKE) ) ; \
done
clean mrproper install symstall uninstall deinstall:
for a in $(DIRS) ; do ( cd $$a ; $(MAKE) $@ ) ; done
dist:
DIR=`basename $$PWD` ; \
FILES=`git ls-files | sed -e s,^,radare2-extras-${VERSION}/,` ; \
cd .. && mv $${DIR} radare2-extras-${VERSION} && \
${TAR} radare2-extras-${VERSION}.tar $${FILES} ; \
${CZ} radare2-extras-${VERSION}.tar ; \
mv radare2-extras-${VERSION} $${DIR}
w32dist:
@echo TODO: w32dist
.PHONY: dist all