forked from codespecs/daikon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-dist
70 lines (60 loc) · 1.51 KB
/
Makefile-dist
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
# Main Makefile for Daikon
all:
$(MAKE) -C scripts
ifdef DAIKONCLASS_SOURCES
$(MAKE) -C java
endif
$(MAKE) java/dcomp_rt.jar
ifeq (Linux i686,$(shell uname -sm))
$(MAKE) kvasir
else
ifeq (Linux i586,$(shell uname -sm))
$(MAKE) kvasir
else
ifeq (Linux i486,$(shell uname -sm))
$(MAKE) kvasir
else
ifeq (Linux i386,$(shell uname -sm))
$(MAKE) kvasir
else
ifeq (Linux x86_64,$(shell uname -sm))
$(MAKE) kvasir
else
@echo "Not building Kvasir: it's only for Linux x86 and x86-64"
@echo "and this appears to be" `uname -sm`
endif
endif
endif
endif
endif
ifeq (cygwin,$(OSTYPE))
CP:=`cygpath -wp ../../../daikon.jar:.`
else
CP:=../../../daikon.jar:.
endif
installation-test:
cd examples/java-examples/StackAr; \
javac -g DataStructures/*.java; \
java -cp $(CP) daikon.Chicory --daikon DataStructures.StackArTester
clean:
$(MAKE) -C scripts clean
ifdef DAIKONCLASS_SOURCES
$(MAKE) -C java clean
endif
$(MAKE) -C fjalar/valgrind clean
java/dcomp_rt.jar:
$(MAKE) -C java dcomp_rt.jar
kvasir:
cd fjalar && ./auto-everything.sh
.PHONY: kvasir
plume-lib:
rm -rf java/utilMDE java/lib/utilMDE.jar
git clone https://github.com/mernst/plume-lib.git plume-lib
# the plume-lib in the distribution is an archive and can't be updated
.PHONY: plume-lib-update
plume-lib-update: plume-lib
#(cd plume-lib && git pull)
# The file is real, but the commands should always be re-run even if it exists.
.PHONY: plume-lib/java/plume.jar
plume-lib/java/plume.jar: plume-lib-update
$(MAKE) -C plume-lib/java plume.jar CLASSPATH=.:./daikon.jar