master
Itamar Haber 9 years ago
parent 1896ff9a64
commit d17147747c

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

Loading…
Cancel
Save