Skip to content

Commit d9bf8a0

Browse files
authored
Create makefile
1 parent 6e43b6e commit d9bf8a0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
CXX := g++
2+
CXXFLAGS := -std=c++17 -Wall -O2
3+
BUILD_DIR := build
4+
TARGET := $(BUILD_DIR)/CacheSimulation.exe
5+
SRC := src/main.cpp
6+
7+
main: $(TARGET)
8+
9+
$(TARGET): $(SRC) | $(BUILD_DIR)
10+
$(CXX) $(CXXFLAGS) -o $@ $^
11+
12+
$(BUILD_DIR):
13+
mkdir -p $(BUILD_DIR)
14+
15+
clean:
16+
rm -rf $(BUILD_DIR)

0 commit comments

Comments
 (0)