mirror of
https://github.com/Mr-xn/Penetration_Testing_POC.git
synced 2025-06-20 09:50:19 +00:00
27 lines
476 B
Makefile
27 lines
476 B
Makefile
#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:
|