forked from SWP-Ubau-SoSe2014/SWPSoSe14
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
99 lines (67 loc) · 4.01 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
SUBDIRS = io
# c.ebinger, 28-04-2014
# Usage: make fu-rail
CC=g++
CFLAGS=-c -g -Wall -Wextra -Wtype-limits -pedantic -std=c++0x -Iprojekt-compiler/src
LDFLAGS=-lrt
all: rail jail++ tests compile run
tests: unittest_constantpool unittest_classfile_writer_test
constant_pool.o:
$(CC) $(CFLAGS) projekt-compiler/src/backend/classfile/constant_pool.cc
Lambda_classfile_writer.o:
$(CC) $(CFLAGS) projekt-compiler/src/backend/classfile/Lambda_classfile_writer.cpp
Lambda_interface_writer.o:
$(CC) $(CFLAGS) projekt-compiler/src/backend/classfile/Lambda_interface_writer.cpp
classfile_writer.o:
$(CC) $(CFLAGS) projekt-compiler/src/backend/classfile/classfile_writer.cc
Graphs.o:
$(CC) $(CFLAGS) projekt-compiler/src/frontend/Graphs.cpp
Bytecode_writer.o:
$(CC) $(CFLAGS) projekt-compiler/src/backend/classfile/Bytecode_writer.cpp
local_variable_stash.o:
$(CC) $(CFLAGS) projekt-compiler/src/backend/codegen/local_variable_stash.cpp
Bytecode.o: local_variable_stash.o
$(CC) $(CFLAGS) projekt-compiler/src/backend/codegen/Bytecode.cpp local_variable_stash.o
adjacency_list.o:
$(CC) $(CFLAGS) projekt-compiler/src/frontend/adjacency_list.cpp
Lexer.o:
$(CC) $(CFLAGS) projekt-compiler/src/frontend/lexer/Lexer.cpp
Parser.o:
$(CC) $(CFLAGS) projekt-compiler/src/frontend/parser/Parser.cpp
backend.o: Lexer.o Parser.o
$(CC) $(CFLAGS) projekt-compiler/src/backend/backend.cc
Env.o:
$(CC) $(CFLAGS) projekt-compiler/src/common/Env.cpp
main.o: constant_pool.o classfile_writer.o Graphs.o Bytecode_writer.o Bytecode.o\
adjacency_list.o Lexer.o Parser.o backend.o Env.o
$(CC) $(CFLAGS) -D STANDALONE_BACKEND projekt-compiler/src/main.cpp
jail++: constant_pool.o Lambda_classfile_writer.o Lambda_interface_writer.o classfile_writer.o Graphs.o Bytecode_writer.o Bytecode.o\
adjacency_list.o Lexer.o Parser.o backend.o Env.o main.o
$(CC) constant_pool.o Lambda_classfile_writer.o Lambda_interface_writer.o classfile_writer.o Graphs.o Bytecode_writer.o local_variable_stash.o Bytecode.o\
adjacency_list.o Lexer.o Parser.o backend.o Env.o main.o $(LDFLAGS) -o jail++
rail: rail-interpreter/src/*.cpp
g++ -o rail -pedantic rail-interpreter/src/*.cpp
constant_pool_test.o:
$(CC) $(CFLAGS) -D TESTS projekt-compiler/src/backend/unittest/constant_pool_test.cc
unittest_constantpool: Env.o constant_pool.o Bytecode_writer.o Bytecode.o constant_pool_test.o
$(CC) Env.o constant_pool.o Bytecode_writer.o local_variable_stash.o Bytecode.o constant_pool_test.o -o unittest_constantpool
classfile_writer_test.o: constant_pool.o classfile_writer.o Graphs.o Bytecode_writer.o Bytecode.o adjacency_list.o Lexer.o Parser.o backend.o Env.o
$(CC) $(CFLAGS) -D TESTS projekt-compiler/src/backend/unittest/classfile_writer_test.cc
unittest_classfile_writer_test: constant_pool.o Lambda_classfile_writer.o Lambda_interface_writer.o classfile_writer.o Graphs.o Bytecode_writer.o Bytecode.o adjacency_list.o Lexer.o Parser.o backend.o Env.o classfile_writer_test.o projekt-compiler/src/backend/unittest/classfile_writer_test.cc
$(CC) constant_pool.o Lambda_classfile_writer.o Lambda_interface_writer.o classfile_writer.o Graphs.o Bytecode_writer.o local_variable_stash.o Bytecode.o adjacency_list.o Lexer.o Parser.o backend.o Env.o classfile_writer_test.o -o unittest_classfile_writer_test
compile:
./jail++ -i projekt-compiler/test/movement/y_junction/junctest.rail -g io/junctest.dot -s io/junctest.csv -o junctest.class
compile2:
./jail++ -i projekt-compiler/test/movement/rail/endless_WithRails.rail -g io/endless_WithRails.dot -s io/endless_WithRails.csv -o endless_WithRails.class
compile3:
./jail++ -i projekt-compiler/test/movement/rail/endless_WithNodes.rail -g io/endless_WithNodes.dot -s io/endless_WithNodes.csv -o endless_WithNodes.class
run:
java -XX:-UseSplitVerifier junctest
run2:
java -XX:-UseSplitVerifier endless_WithRails
run3:
java -XX:-UseSplitVerifier endless_WithNodes
clean:
rm *.class *.o rail jail++ unittest_constantpool unittest_classfile_writer_test
cleanJail:
rm *.class *.o jail++ unittest_constantpool unittest_classfile_writer_test