summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2013-07-10 21:47:53 -0700
committerPieter Noordhuis <pcnoordhuis@gmail.com>2013-07-10 21:47:53 -0700
commitc8234a319320f3d3ce055a9615fc9148e1412c63 (patch)
treee89c4bd16b7c81b2466b3ecb68c8102a10e1be3b /Makefile
parent9d9e4a3b4f203c654240cd66321d93850d129dd0 (diff)
parentefe990d07d5a4293929246fe932bcf29ef9d41e0 (diff)
Merge branch 'libuv'
Closes #172.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e4b858e..1865bdc 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,15 @@ hiredis-example-ae: example-ae.c adapters/ae.h $(STLIBNAME)
$(CC) -o $@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I$(AE_DIR) $(AE_DIR)/ae.o $(AE_DIR)/zmalloc.o $(AE_DIR)/../deps/jemalloc/lib/libjemalloc.a -pthread example-ae.c $(STLIBNAME)
endif
+ifndef LIBUV_DIR
+hiredis-example-libuv:
+ @echo "Please specify LIBUV_DIR (e.g. ../libuv/)"
+ @false
+else
+hiredis-example-libuv: example-libuv.c adapters/libuv.h $(STLIBNAME)
+ $(CC) -o $@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I$(LIBUV_DIR)/include example-libuv.c $(LIBUV_DIR)/.libs/libuv.a -lpthread $(STLIBNAME)
+endif
+
hiredis-%: %.o $(STLIBNAME)
$(CC) -o $@ $(REAL_LDFLAGS) $< $(STLIBNAME)