summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-09-25 22:34:22 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-09-25 22:34:22 +0200
commit5a38356cc4133c581f2935b38e12abb2a2037419 (patch)
treed45f9c91205fb05e04d06003a04fb812da450625 /Makefile
parent1c245845eda46512ed3eb5f7e502c3b7f535ac89 (diff)
Add example for non-blocking usage of hiredis with libevent
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f9103a5..486f897 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,9 @@ hiredis-%: %.o ${DYLIBNAME}
test: hiredis-test
./hiredis-test
+libevent-example: libevent-example.c ${DYLIBNAME}
+ $(CC) -o $@ $(CCOPT) $(DEBUG) -L. -lhiredis -levent libevent-example.c
+
.c.o:
$(CC) -c $(CFLAGS) $(DEBUG) $(COMPILE_TIME) $<