You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
330 B
Makefile

#set environment variable RM_INCLUDE_DIR to the location of redismodule.h
ifndef RM_INCLUDE_DIR
RM_INCLUDE_DIR=../
endif
CFLAGS = -g -fPIC -lc -lm -O3 -std=gnu99 -I$(RM_INCLUDE_DIR)
CC=gcc
.SUFFIXES: .c .so .xo .o
OBJS=util.o strings.o sds.o
all: librmutil.a
clean:
rm -rf *.xo *.so *.o
librmutil.a: $(OBJS)
ar rcs $@ $^