forked from BinaryAnalysisPlatform/bap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (37 loc) · 873 Bytes
/
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
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:
@ocamlbuild -pkg bap bapdoc.native
make -C doc
all:
$(SETUP) -all $(BAPALLFLAGS)
install:
$(SETUP) -install $(BAPINSTALLFLAGS)
sh tools/build_plugins.sh
uninstall:
$(SETUP) -uninstall $(BAPUNINSTALLFLAGS)
reinstall:
make uninstall
make install
clean:
$(SETUP) -clean $(BAPCLEANFLAGS)
distclean:
$(SETUP) -distclean $(BAPDISTCLEANFLAGS)
.PHONY: clean disclean reinstall
.PHONY: test
.PHONY: check
.PHONY: veri
test: build
$(SETUP) -test $(BAPTESTFLAGS)
check:
if [ -d .git ]; then git submodule init; git submodule update; fi
make -C testsuite
veri:
if [ -d .git ]; then git submodule init; git submodule update; fi
make -C testsuite veri