From 61277d09251cfef4f768ea5d263145248e2c3a83 Mon Sep 17 00:00:00 2001 From: Erik Dubbelboer Date: Tue, 4 Jun 2013 15:06:43 +0200 Subject: Added libuv adapter --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 16b8767..56800b5 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 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}/libuv.a -lrt $(STLIBNAME) +endif + hiredis-%: %.o $(STLIBNAME) $(CC) -o $@ $(REAL_LDFLAGS) $< $(STLIBNAME) -- cgit v1.2.3 From efe990d07d5a4293929246fe932bcf29ef9d41e0 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 10 Jul 2013 21:47:44 -0700 Subject: Fix path to static libuv library --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 56800b5..3357112 100644 --- a/Makefile +++ b/Makefile @@ -82,7 +82,7 @@ hiredis-example-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}/libuv.a -lrt $(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) -- cgit v1.2.3