diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-01 13:47:58 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-12-01 13:47:58 +0100 |
commit | 9af1574d6e65bac7b39e7036056cb326064f1ac4 (patch) | |
tree | 30209c7241b94a2ce8c98ddede4e6f5f54b158c7 /Makefile | |
parent | 8322162e5267a6a7d0935a9719ab83f78de383f4 (diff) |
Add adapter for the Redis-bundled ae event library
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -64,6 +64,15 @@ hiredis-example-libevent: example-libevent.c adapters/libevent.h ${DYLIBNAME} hiredis-example-libev: example-libev.c adapters/libev.h ${DYLIBNAME} $(CC) -o $@ $(CCOPT) $(DEBUG) -L. -lhiredis -lev -Wl,-rpath,. example-libev.c +ifndef AE_DIR +hiredis-example-ae: + @echo "Please specify AE_DIR (e.g. <redis repository>/src)" + @false +else +hiredis-example-ae: example-ae.c adapters/ae.h ${DYLIBNAME} + $(CC) -o $@ $(CCOPT) $(DEBUG) -I$(AE_DIR) -L. -lhiredis -Wl,-rpath,. example-ae.c $(AE_DIR)/ae.o $(AE_DIR)/zmalloc.o +endif + hiredis-%: %.o ${DYLIBNAME} $(CC) -o $@ $(CCOPT) $(DEBUG) -L. -lhiredis -Wl,-rpath,. $< |