summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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) $<