Permalink
Browse files

Use hiredis from redis-cli

  • Loading branch information...
pietern committed Nov 3, 2010
1 parent 24f753a commit 7fc4ce13ed7ece2a24d110d9e97725eb719b30af
Showing with 155 additions and 223 deletions.
  1. +5 −1 src/Makefile
  2. +150 −222 src/redis-cli.c
View
@@ -114,7 +114,11 @@ redis-benchmark: $(BENCHOBJ)
$(CC) -o $(BENCHPRGNAME) $(CCOPT) $(DEBUG) $(BENCHOBJ)
redis-cli: $(CLIOBJ)
- $(CC) -o $(CLIPRGNAME) $(CCOPT) $(DEBUG) $(CLIOBJ)
+ cd ../deps/hiredis && make static
+ $(CC) -o $(CLIPRGNAME) $(CCOPT) $(DEBUG) $(CLIOBJ) ../deps/hiredis/libhiredis.a
+
+redis-cli.o:
+ $(CC) -c $(CFLAGS) -I../deps/hiredis $(DEBUG) $(COMPILE_TIME) $<
redis-check-dump: $(CHECKDUMPOBJ)
$(CC) -o $(CHECKDUMPPRGNAME) $(CCOPT) $(DEBUG) $(CHECKDUMPOBJ)
Oops, something went wrong.

0 comments on commit 7fc4ce1

Please sign in to comment.