diff options
| author | Your Name <[email protected]> | 2026-07-30 13:18:55 -0700 |
|---|---|---|
| committer | Your Name <[email protected]> | 2026-07-30 13:18:55 -0700 |
| commit | d016db5ce883778042b1c97b6f3d3dde088e801b (patch) | |
| tree | 65bdbb0dc8fc464716982c477ea2f809f6c474f4 /src/makefile | |
| parent | f4854ae4c816a7718c88b3b0d230c24786553f26 (diff) | |
clean up file tree
Diffstat (limited to 'src/makefile')
| -rw-r--r-- | src/makefile | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/makefile b/src/makefile deleted file mode 100644 index 9603d7d..0000000 --- a/src/makefile +++ /dev/null @@ -1,37 +0,0 @@ -CC := clang - -TARGET := main -SPIRES_DIR := ../spires - -SOURCES := main.c spires_interface.c crossbar_generator.c read_crossbar.c -OBJECTS := $(SOURCES:.c=.a) - -PLPLOT_LIBS := $(shell pkg-config --libs plplot) - -CPPFLAGS := -I. -I$(SPIRES_DIR)/include -CFLAGS := -Wall -Wextra -Wpedantic -std=c11 -g -fopenmp -LDFLAGS := -L$(SPIRES_DIR)/lib -Wl,-rpath,'$$ORIGIN/../spires/lib' -LDLIBS := -lspires -lopenblas -llapacke -lm -fopenmp $(PLPLOT_LIBS) - -PLPLOT_CFLAGS := $(shell pkg-config --cflags plplot) -CFLAGS += $(PLPLOT_CFLAGS) - -.PHONY: all run clean debug - -all: $(TARGET) - -$(TARGET): $(OBJECTS) - $(CC) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(TARGET) - -%.a: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ - -run: $(TARGET) - LD_LIBRARY_PATH=$(SPIRES_DIR)/lib:$$LD_LIBRARY_PATH ./$(TARGET) - -debug: CFLAGS += -fsanitize=address,undefined -fno-omit-frame-pointer -debug: LDFLAGS += -fsanitize=address,undefined -debug: clean $(TARGET) - -clean: - rm -f $(OBJECTS) $(TARGET) |
