summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorYour Name <[email protected]>2026-08-28 13:45:46 -0700
committerYour Name <[email protected]>2026-08-28 13:45:46 -0700
commit2a3cb69b71539953489752cea5f34e87cdb7814a (patch)
tree8fc3668d1813c4e389067c9acb35621f7a5c8ab2 /makefile
parent8671410a0f9bdd4b405762ad4790c15d601b0fba (diff)
merge online to main
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/makefile b/makefile
index 21c8ca4..11fc1b0 100644
--- a/makefile
+++ b/makefile
@@ -6,12 +6,14 @@ BUILD_DIR = build
BIN_DIR = bin
TARGET = $(BIN_DIR)/benchmark
+MODE ?= online
SOURCES = \
$(SRC_DIR)/application.c \
$(SRC_DIR)/spires_interface.c \
$(SRC_DIR)/crossbar_generator.c \
$(SRC_DIR)/read_crossbar.c \
+ $(SRC_DIR)/online_crossbar.c \
$(SRC_DIR)/benchmark.c
OBJECTS = $(SOURCES:$(SRC_DIR)/%.c=$(BUILD_DIR)/%.o)
@@ -38,6 +40,8 @@ LDLIBS = \
-lopenblas \
-llapacke \
-lplplot \
+ -lngspice \
+ -lpthread \
-lm \
-fopenmp
@@ -58,7 +62,7 @@ $(BIN_DIR):
mkdir -p $(BIN_DIR)
run: $(TARGET)
- ./$(TARGET)
+ ./$(TARGET) --$(MODE)
clean:
rm -rf $(BUILD_DIR) $(BIN_DIR)