Merge pull request #14 from daTokenizer/master
add Makefile in root dir that builds everythingmaster
commit
17405f6272
@ -0,0 +1,26 @@
|
|||||||
|
#set environment variable RM_INCLUDE_DIR to the location of redismodule.h
|
||||||
|
ifndef RM_INCLUDE_DIR
|
||||||
|
RM_INCLUDE_DIR=./
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef RMUTIL_LIBDIR
|
||||||
|
RMUTIL_LIBDIR=rmutil
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifndef SRC_DIR
|
||||||
|
SRC_DIR=example
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
all: module.so
|
||||||
|
|
||||||
|
module.so:
|
||||||
|
$(MAKE) -C ./$(SRC_DIR)
|
||||||
|
cp ./$(SRC_DIR)/module.so .
|
||||||
|
|
||||||
|
clean: FORCE
|
||||||
|
rm -rf *.xo *.so *.o
|
||||||
|
rm -rf ./$(SRC_DIR)/*.xo ./$(SRC_DIR)/*.so ./$(SRC_DIR)/*.o
|
||||||
|
rm -rf ./$(RMUTIL_LIBDIR)/*.so ./$(RMUTIL_LIBDIR)/*.o ./$(RMUTIL_LIBDIR)/*.a
|
||||||
|
|
||||||
|
FORCE:
|
Loading…
Reference in New Issue