-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 896 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 896 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
# Compiler settings
CXX = g++
CXXFLAGS = -Wall -Wextra --pedantic -std=c++11
# Target executable name
EXEC = cacheSim
# Source files
SRCS = block.cpp set.cpp dll.cpp cacheSim.cpp cache.cpp
# Default target
# all: $(EXEC)
all: $(EXEC)
# Compiling and linking the executable in one step
all:
$(CXX) $(CXXFLAGS) block.cpp set.cpp dll.cpp cacheSim.cpp cache.cpp -o $(EXEC)
# Clean target
clean:
rm -f $(EXEC)
test:
./cacheSim 256 4 16 write-allocate write-back lru < gcc.trace
./cacheSim 256 4 16 write-allocate write-back fifo < gcc.trace
./cacheSim 256 4 16 write-allocate write-through lru < gcc.trace
./cacheSim 256 4 16 write-allocate write-through fifo < gcc.trace
./cacheSim 256 4 16 no-write-allocate write-through fifo < gcc.trace
./cacheSim 256 4 16 no-write-allocate write-through lru < gcc.trace
# Phony targets
.PHONY: all cacheSim clean