summaryrefslogtreecommitdiff
path: root/src/modules/Makefile
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-10-22 13:26:29 +0200
committerantirez <antirez@gmail.com>2019-10-23 18:39:53 +0200
commitcf52e0ad446638fd4ae64e035c52001a98b1e415 (patch)
treed3cc39380c2126ccf78af5321ce2e5760b1635c6 /src/modules/Makefile
parent94c50314f18eeb987c458091dd60843d95308426 (diff)
downloadredis-cf52e0ad446638fd4ae64e035c52001a98b1e415.tar.gz
Module hooks: fixes and an example module.
Diffstat (limited to 'src/modules/Makefile')
-rw-r--r--src/modules/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/Makefile b/src/modules/Makefile
index 4f6b50f2e..9fb84cff8 100644
--- a/src/modules/Makefile
+++ b/src/modules/Makefile
@@ -13,7 +13,7 @@ endif
.SUFFIXES: .c .so .xo .o
-all: helloworld.so hellotype.so helloblock.so testmodule.so hellocluster.so hellotimer.so hellodict.so
+all: helloworld.so hellotype.so helloblock.so testmodule.so hellocluster.so hellotimer.so hellodict.so hellohook.so
.c.xo:
$(CC) -I. $(CFLAGS) $(SHOBJ_CFLAGS) -fPIC -c $< -o $@
@@ -46,6 +46,12 @@ hellotimer.so: hellotimer.xo
hellodict.xo: ../redismodule.h
hellodict.so: hellodict.xo
+ $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lc
+
+hellohook.xo: ../redismodule.h
+
+hellohook.so: hellohook.xo
+ $(LD) -o $@ $< $(SHOBJ_LDFLAGS) $(LIBS) -lc
testmodule.xo: ../redismodule.h