-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (22 loc) · 741 Bytes
/
Copy pathMakefile
File metadata and controls
52 lines (22 loc) · 741 Bytes
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
LIB_DIR=-L/usr/local/systemc-2.3.2/lib-linux64
INC_DIR=-I/usr/local/systemc-2.3.2/include
LIB=-lsystemc
APP=4_core
all: main.o alu.o bus.o save.o thread.o RAM.o cache.o
g++ -o $(APP) $(LIB_DIR) $(LIB) main.o alu.o bus.o save.o thread.o RAM.o cache.o
alu.o: alu.cpp alu.h cache.h
g++ $(INC_DIR) -c alu.cpp
main.o: main.cpp thread.h bus.h alu.h save.h bus_if.h RAM.h
g++ $(INC_DIR) -c main.cpp
bus.o : bus.cpp bus.h bus_if.h
g++ $(INC_DIR) -c bus.cpp
save.o : save.cpp save.h
g++ $(INC_DIR) -c save.cpp
thread.o : thread.cpp alu.h save.h bus_if.h thread.h
g++ $(INC_DIR) -c thread.cpp
RAM.o : RAM.h
g++ $(INC_DIR) -c RAM.cpp
cache.o : cache.h
g++ $(INC_DIR) -c cache.cpp
clean:
rm -rf $(APP) *.o