forked from BinaryAnalysisPlatform/bap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (37 loc) · 843 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
ifeq (is$(BAP_DEBUG), $(filter is$(BAP_DEBUG),is is0 isno isdisable isfalse))
SETUP = ocaml setup.ml -quiet
else
SETUP = ocaml setup.ml
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
test: build
ifeq ("$(BAP_RUN_TEST)","true")
$(SETUP) -test $(BAPTESTFLAGS)
endif
check:
ifeq ("$(BAP_RUN_CHECK)","true")
if [ -d .git ]; then git submodule init; git submodule update; fi
make -C testsuite
endif