-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
39 lines (28 loc) · 752 Bytes
/
makefile
File metadata and controls
39 lines (28 loc) · 752 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
CXX = g++
CXXFLAGS = -std=c++20
DEBUGFLAGS = -DDEBUG
BIN_DIR=bin
SRC_DIR=src
TRACE_DIR=trace
WITNESS_DIR=witness
TARGET = $(BIN_DIR)/verify_sc
SRC = $(wildcard $(SRC_DIR)/*.cpp)
DEPS = $(wildcard $(SRC_DIR)/*.hpp)
INPUT = input.txt
NUM_THREADS = 8
all: $(TARGET)
run: clean $(TARGET)
@echo "Running with input file: $(INPUT)"
@echo ""
@./$(TARGET) $(INPUT) -v -o $(WITNESS_DIR) -p $(NUM_THREADS)
debug: clean $(SRC) $(DEPS)
mkdir -p $(BIN_DIR)
$(CXX) $(CXXFLAGS) $(DEBUGFLAGS) -o $(TARGET) $(SRC)
./$(TARGET) $(INPUT) -v -o $(WITNESS_DIR) -p $(NUM_THREADS)
$(TARGET): $(SRC) $(DEPS)
mkdir -p $(BIN_DIR)
$(CXX) $(CXXFLAGS) -o $(TARGET) $(SRC)
# Clean target to remove the compiled files
clean:
rm -f $(TARGET)
rm -rf $(WTINESS_DIR)