diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2026-01-21 22:52:54 +0100 |
| commit | dcacc00e3750300617ba6e16eb346713f91a783a (patch) | |
| tree | 38e2d4fb5ed9d119711d4295c6eda4b014af73fd /examples/redis-unstable/modules/vector-sets/Makefile | |
| parent | 58dac10aeb8f5a041c46bddbeaf4c7966a99b998 (diff) | |
| download | crep-dcacc00e3750300617ba6e16eb346713f91a783a.tar.gz | |
Remove testing data
Diffstat (limited to 'examples/redis-unstable/modules/vector-sets/Makefile')
| -rw-r--r-- | examples/redis-unstable/modules/vector-sets/Makefile | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/examples/redis-unstable/modules/vector-sets/Makefile b/examples/redis-unstable/modules/vector-sets/Makefile deleted file mode 100644 index f8c05c9..0000000 --- a/examples/redis-unstable/modules/vector-sets/Makefile +++ /dev/null @@ -1,87 +0,0 @@ -# Compiler settings -CC = cc - -ifdef SANITIZER -ifeq ($(SANITIZER),address) - SAN=-fsanitize=address -else -ifeq ($(SANITIZER),undefined) - SAN=-fsanitize=undefined -else -ifeq ($(SANITIZER),thread) - SAN=-fsanitize=thread -else - $(error "unknown sanitizer=${SANITIZER}") -endif -endif -endif -endif - -CFLAGS = -O2 -Wall -Wextra -g $(SAN) -std=c11 -LDFLAGS = -lm $(SAN) - -# Detect OS -uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') -uname_M := $(shell sh -c 'uname -m 2>/dev/null || echo not') - -# Shared library compile flags for linux / osx -ifeq ($(uname_S),Linux) - SHOBJ_CFLAGS ?= -W -Wall -fno-common -g -ggdb -std=c11 -O2 - SHOBJ_LDFLAGS ?= -shared -ifneq (,$(findstring armv,$(uname_M))) - SHOBJ_LDFLAGS += -latomic -endif -ifneq (,$(findstring aarch64,$(uname_M))) - SHOBJ_LDFLAGS += -latomic -endif -else - SHOBJ_CFLAGS ?= -W -Wall -dynamic -fno-common -g -ggdb -std=c11 -O3 - SHOBJ_LDFLAGS ?= -bundle -undefined dynamic_lookup -endif - -# OS X 11.x doesn't have /usr/lib/libSystem.dylib and needs an explicit setting. -ifeq ($(uname_S),Darwin) -ifeq ("$(wildcard /usr/lib/libSystem.dylib)","") -LIBS = -L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lsystem -endif -endif - -.SUFFIXES: .c .so .xo .o - -all: vset.so - -.c.xo: - $(CC) -I. $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@ - -vset.xo: ../../src/redismodule.h expr.c - -vset.so: vset.xo hnsw.xo vset_config.xo - $(CC) -o $@ $^ $(SHOBJ_LDFLAGS) $(LIBS) $(SAN) -lc - -# Example sources / objects -SRCS = hnsw.c w2v.c vset_config.c -OBJS = $(SRCS:.c=.o) - -TARGET = w2v -MODULE = vset.so - -# Default target -all: $(TARGET) $(MODULE) - -# Example linking rule -$(TARGET): $(OBJS) - $(CC) $(OBJS) $(LDFLAGS) -o $(TARGET) - -# Compilation rule for object files -%.o: %.c - $(CC) $(CFLAGS) -c $< -o $@ - -expr-test: expr.c fastjson.c fastjson_test.c - $(CC) $(CFLAGS) expr.c -o expr-test -DTEST_MAIN -lm - -# Clean rule -clean: - rm -f $(TARGET) $(OBJS) *.xo *.so - -# Declare phony targets -.PHONY: all clean |
