-
Notifications
You must be signed in to change notification settings - Fork 274
/
Makefile
69 lines (48 loc) · 1.39 KB
/
Makefile
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
ifeq (is$(BAP_DEBUG), $(filter is$(BAP_DEBUG),is is0 isno isdisable isfalse))
SETUP = ./setup.exe -quiet
else
SETUP = ./setup.exe
endif
build: setup.ml
$(SETUP) -build $(BAPBUILDFLAGS)
.PHONY: doc
doc:
@ocamlfind ocamlopt -linkpkg -package bap-plugins,core_kernel,core_kernel.caml_unix tools/bapdoc.ml -o bapdoc.native
make -C doc
all:
$(SETUP) -all $(BAPALLFLAGS)
.PHONY: plugins
install-plugins:
sh tools/build_plugins.sh
if [ -f ./postinstall.native ]; then ./postinstall.native; fi
if [ -f ./postinstall.byte ]; then ./postinstall.byte; fi
if [ -f ./postinstall ]; then ./postinstall; fi
install-libs:
$(SETUP) -install $(BAPINSTALLFLAGS)
reinstall-libs:
$(SETUP) -reinstall $(BAPINSTALLFLAGS)
uninstall:
$(SETUP) -uninstall $(BAPUNINSTALLFLAGS)
install: install-libs install-plugins
reinstall: reinstall-libs install-plugins
clean:
$(SETUP) -clean $(BAPCLEANFLAGS)
distclean:
$(SETUP) -distclean $(BAPDISTCLEANFLAGS)
.PHONY: clean disclean reinstall
.PHONY: test
.PHONY: check
.PHONY: veri
test: build
$(SETUP) -test $(BAPTESTFLAGS)
testsuite:
git clone https://github.com/BinaryAnalysisPlatform/bap-testsuite.git testsuite
check: testsuite
make REVISION=5c65cc07c48ff738e843c0fc6dfb16a0eeb572c3 -C testsuite
.PHONY: indent check-style status-clean
indent:
sh tools/ocp-indent-all.sh
status-clean:
git diff --quiet --exit-code
check-style: status-clean indent
git diff --exit-code