-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
77 lines (64 loc) · 2.74 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
70
71
72
73
74
75
76
77
###########################################################################
### Rules
###
### Default tag
help:
@echo "Targets:"
@echo " build -- build all of valgrind and fjalar (includes kvasir)"
@echo " test -- build and run valgrind regression tests"
@echo " daikon-test -- run Fjalar/Kvasir regression tests from Daikon"
@echo " clean -- remove basic generated files"
@echo " very-clean -- remove (most) all generated files"
@echo " git-update -- add/remove files as result of Valgrind merge"
@echo " doc -- build the valgrind-merge documentation"
@echo " "
build:
bash ./auto-everything.sh
# Valgrind tests
test:
cd valgrind && $(MAKE) regtest
# Kvasir tests
daikon-test: ../daikon
# debugging
ls -l valgrind/inst/bin/valgrind valgrind/inst/libexec/valgrind/fjalar-amd64-linux
ls -l ../daikon/fjalar/valgrind/inst/bin/valgrind ../daikon/fjalar/valgrind/inst/libexec/valgrind/fjalar-amd64-linux
$(MAKE) -C ../daikon compile daikon.jar kvasir
ls -l valgrind/inst/bin/valgrind valgrind/inst/libexec/valgrind/fjalar-amd64-linux
ls -l ../daikon/fjalar/valgrind/inst/bin/valgrind ../daikon/fjalar/valgrind/inst/libexec/valgrind/fjalar-amd64-linux
$(MAKE) -C ../daikon/tests/kvasir-tests clean-all regression-tests
TEMP-daikon-test: ../daikon
$(MAKE) -C ../daikon compile daikon.jar kvasir
$(MAKE) -C ../daikon/tests/kvasir-tests clean-all TEMP-regression-tests
../daikon:
cd .. && git clone https://github.com/codespecs/daikon.git
clean:
cd valgrind && $(MAKE) clean
very-clean:
cd valgrind && $(MAKE) uninstall
cd valgrind && $(MAKE) distclean
rm -rf valgrind/config.h.in
rm -rf valgrind/aclocal.m4
rm -rf valgrind/configure
rm -rf valgrind/autom4te.cache
rm -rf valgrind/Makefile.in
rm -rf valgrind/Makefile.vex.in
git-update:
@grep -q '^\-\-\-.*1969\-12\-31' ../coregrind.patch; \
if [ $$? -eq 0 ]; then \
echo git add `grep '^\-\-\-.*1969\-12\-31' ../coregrind.patch | cut --fields=1 | cut -d ' ' --fields=2 | perl -p -e 's/^valgrind-old/valgrind/g'`; \
fi
@grep -q '^Only in valgrind-old' ../coregrind.patch; \
if [ $$? -eq 0 ]; then \
echo git rm `grep '^Only in valgrind-old' ../coregrind.patch | perl -p -e 's/: /\//g' | cut -d ' ' --fields=3 | perl -p -e 's/^valgrind-old/valgrind/g'`; \
fi
@grep -q '^\-\-\-.*1969\-12\-31' ../memcheck.patch; \
if [ $$? -eq 0 ]; then \
echo add `grep '^\-\-\-.*1969\-12\-31' ../memcheck.patch| cut --fields=1 | cut -d ' ' --fields=2 | perl -p -e 's/^valgrind-old/valgrind/g'`; \
fi
@grep -q '^\+\+\+.*1969\-12\-31' ../memcheck.patch; \
if [ $$? -eq 0 ]; then \
echo remove `grep '^\+\+\+.*1969\-12\-31' ../memcheck.patch| cut --fields=1 | cut -d ' ' --fields=2 | perl -p -e 's/^valgrind-new/valgrind/g'`; \
fi
.PHONY: doc
doc:
cd doc && $(MAKE) all