summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-10-19 17:10:01 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-10-19 21:24:24 +0200
commite245ab48ec8f766e589771b976761a0a41b6442d (patch)
treea1412036f29a8d6fce9a0e1f08aa5c2c8ebd6596 /Makefile
parent206868de060bbfeb2745dad2f410691ad2fc62f8 (diff)
Added header file and example for usage from libev
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d3d4f28..3c1b651 100644
--- a/Makefile
+++ b/Makefile
@@ -61,11 +61,14 @@ test: hiredis-test
libevent-example: extra/hiredis/libevent.h libevent-example.c ${DYLIBNAME}
$(CC) -o $@ $(CCOPT) $(DEBUG) -I. -Iextra -L. -lhiredis -levent libevent-example.c
+libev-example: extra/hiredis/libev.h libev-example.c ${DYLIBNAME}
+ $(CC) -o $@ $(CCOPT) $(DEBUG) -I. -Iextra -L. -lhiredis -lev libev-example.c
+
.c.o:
$(CC) -c $(CFLAGS) $(DEBUG) $(COMPILE_TIME) $<
clean:
- rm -rf ${DYLIBNAME} ${STLIBNAME} $(BINS) libevent-example *.o *.gcda *.gcno *.gcov
+ rm -rf ${DYLIBNAME} ${STLIBNAME} $(BINS) *-example *.o *.gcda *.gcno *.gcov
dep:
$(CC) -MM *.c