summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDmitry Bakhvalov <dizzus@gmail.com>2015-07-13 20:26:41 +0300
committerJan-Erik Rediger <janerik@fnordig.de>2015-07-27 23:19:14 +0200
commitc18a5648181801aa6fddd1856940b7dd20cdf74a (patch)
treeabd8b01a55c461dd5936c282fce466ed6cd78070 /Makefile
parent4a632a6038f37b4d72c52f580d6a396c5ee3fe12 (diff)
Added MacOS X addapter and corresponding example.
Added MacOS X support via CoreFoundation run loop.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 97cdc8a..b15b725 100644
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,9 @@ hiredis-example-glib: examples/example-glib.c adapters/glib.h $(STLIBNAME)
hiredis-example-ivykis: examples/example-ivykis.c adapters/ivykis.h $(STLIBNAME)
$(CC) -o examples/$@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I. $< -livykis $(STLIBNAME)
+hiredis-example-macosx: examples/example-macosx.c adapters/macosx.h $(STLIBNAME)
+ $(CC) -o examples/$@ $(REAL_CFLAGS) $(REAL_LDFLAGS) -I. $< -framework CoreFoundation $(STLIBNAME)
+
ifndef AE_DIR
hiredis-example-ae:
@echo "Please specify AE_DIR (e.g. <redis repository>/src)"