-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
60 lines (36 loc) · 1.08 KB
/
makefile
File metadata and controls
60 lines (36 loc) · 1.08 KB
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
CC = g++
CFLAGS = -g -c -Wall -std=c++11
OBJ = yess.o Tools.o RegisterFile.o Loader.o \
ConditionCodes.o Memory.o PipeRegField.o FetchStage.o F.o \
DecodeStage.o D.o ExecuteStage.o E.o \
MemoryStage.o M.o WritebackStage.o \
W.o Simulate.o PipeReg.o
.C.o:
$(CC) $(CFLAGS) $< -o $@
yess: $(OBJ)
PipeReg.o: PipeReg.h
F.o: PipeReg.h PipeRegField.h F.h
D.o: PipeReg.h PipeRegField.h D.h
E.o: PipeReg.h PipeRegField.h E.h
M.o: PipeReg.h PipeRegField.h M.h
W.o: PipeReg.h PipeRegField.h W.h
FetchStage.o: FetchStage.h
DecodeStage.o: DecodeStage.h
ExecuteStage.o: ExecuteStage.h
MemoryStage.o: MemoryStage.h
WritebackStage.o: WritebackStage.h
PipeRegField.o: PipeRegField.h
yess.o: Simulate.h Memory.h RegisterFile.h ConditionCodes.h Loader.h
Simulate.o: Simulate.h FetchStage.h DecodeStage.h ExecuteStage.h MemoryStage.h \
WritebackStage.h PipeRegField.h F.h D.h E.h M.h W.h
Memory.o: Tools.h Memory.h
Tools.o: Tools.h
RegisterFile.o: RegisterFile.h
ConditionCodes.o: ConditionCodes.h Tools.h
Loader.o: Loader.C Loader.h Memory.h
clean:
rm $(OBJ)
run:
make clean
make yess
./run.sh