diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2013-06-04 15:06:43 +0200 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2013-06-04 15:06:43 +0200 |
commit | 61277d09251cfef4f768ea5d263145248e2c3a83 (patch) | |
tree | 78f4886d8fd5ea459bd4b7c34cd123614f1577e1 /Makefile | |
parent | bcf83543762577a9b0f5625c848b7061cc980f30 (diff) |
Added libuv adapter
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |