Commit Graph

74 Commits

Author SHA1 Message Date
Christian Hergert 0c9ff5bb03 Add GLib 2.0 adapter
[Cleaned up Makefile and header includes.  Didn't change crazy
coding style because it's the convention for GLib systems.]

Closes #83
Closes #71
2015-01-05 16:39:30 -05:00
Pieter Noordhuis f225c276be Fix HIREDIS_MINOR
Closes #219.
2014-04-09 23:16:33 -07:00
Eddy Jansson 05fb7be3ea Fix Makefile test to use more compatible syntax
The existing way is not compatible with a lot of shells, including most
bash installations, because the echos that generates the configuration
sent to redis-server doesn't expand the escapes. Adding '-e' to the
echo works under bash, but breaks on the Travis CI server.

This is my attempt to find an alternative that works everywhere.
[committer note: it doesn't work under Solaris make, but the Makefile
was already broken under Solaris make.  Solaris users must use gmake.]

Closes #224 and Closes #221
2014-04-09 17:02:43 -04:00
Aaron Bedra c552ca6904 Move examples into their own folder
Closes #166.
2013-07-10 22:16:53 -07:00
Pieter Noordhuis c8234a3193 Merge branch 'libuv'
Closes #172.
2013-07-10 21:47:53 -07:00
Pieter Noordhuis efe990d07d Fix path to static libuv library 2013-07-10 21:47:44 -07:00
Pieter Noordhuis 9d9e4a3b4f Remove unused Makefile variables
Fixes #176.
2013-07-10 21:24:46 -07:00
Erik Dubbelboer fc55afb1b6 Made example-ae work again 2013-07-02 19:24:02 +02:00
Erik Dubbelboer 61277d0925 Added libuv adapter 2013-06-04 15:06:43 +02:00
antirez 7f346477c8 Add ARCH to Makefile CFLAGS / LDFLAGS.
This makes builiding with an optional 32 bit target simpler. For
instance Redis (that contains an embedded copy of hiredis) when compiled
with "make 32bit" uses to pass an ARCH parameter to force an hiredis
32 bit build.
2012-08-21 14:29:49 +02:00
Pieter Noordhuis f9a3229873 Fix gprof target 2011-06-19 13:13:39 +02:00
Pieter Noordhuis 54a10a27e7 Coverage report 2011-06-19 13:07:12 +02:00
Pieter Noordhuis be5e943ddd Use CFLAGS and LDFLAGS instead of custom variables 2011-06-19 12:37:45 +02:00
Pieter Noordhuis cc8ed7360e Append to REAL_LDFLAGS so LDFLAGS can be overridden by the user 2011-06-19 12:34:41 +02:00
Pieter Noordhuis 608e29b375 Pass LDFLAGS to linker when creating dynamic library 2011-06-19 12:33:51 +02:00
Pieter Noordhuis ff09caa04a Remove unnecessary overrides 2011-06-19 12:16:47 +02:00
Pieter Noordhuis 888b90d6ea Don't pass CFLAGS when linking 2011-06-19 10:21:05 +02:00
Pieter Noordhuis 3331c22eb9 Add phony target 2011-06-18 17:30:59 +02:00
Pieter Noordhuis b8e0edaabb Remove unused variables
The variable OBJARCH was used to compile objects for both 32-bit and
64-bit architectures. It can be removed because this is only relevant
for the Ruby wrapper for hiredis. This wrapper should put these flags in
CFLAGS to get the same effect.
2011-06-18 17:18:10 +02:00
Pieter Noordhuis 0c2de2525e Swap arguments 2011-06-18 17:17:48 +02:00
Pieter Noordhuis 58ebe7acbd Merge DEBUG in REAL_CFLAGS 2011-06-18 17:17:15 +02:00
Pieter Noordhuis fc810f77d3 Allow *extra* CFLAGS/LDFLAGS via arguments 2011-06-18 17:15:41 +02:00
Pieter Noordhuis 7a9127c938 Move redirection around 2011-06-18 16:46:18 +02:00
Pieter Noordhuis 722c142801 Disallow overriding CFLAGS and LDFLAGS 2011-06-18 16:42:55 +02:00
Pieter Noordhuis 461110e809 Move path variables closer to install target 2011-06-18 16:28:57 +02:00
Pieter Noordhuis b2bf7ba8c0 Move defaults outside if block 2011-06-18 16:28:57 +02:00
Pieter Noordhuis 93329c467e Library variables may not be overridden 2011-06-18 16:28:57 +02:00
Pieter Noordhuis 2ccb6e58ef Merge CCLINK with LDFLAGS 2011-06-18 16:28:57 +02:00
Pieter Noordhuis 367ac44ac1 Remove private feature macros for Solaris from compiler flags 2011-06-18 16:28:57 +02:00
Pieter Noordhuis 2cd46456c0 Add myself to Makefile license 2011-06-18 16:28:57 +02:00
Pieter Noordhuis 8ee630875a Remove unused libraries from link flags 2011-06-18 16:28:57 +02:00
Pieter Noordhuis d7dc9ca7c9 Fallback to gcc when $CC is not in $PATH 2011-06-18 16:28:52 +02:00
Pieter Noordhuis 7a8de1fe25 Exit with a non-zero status when tests failed 2011-05-29 10:03:39 -07:00
Pieter Noordhuis 82ad944412 Test against unix socket connection in make check target 2011-05-22 16:35:20 +02:00
Piotr Sikora 5793b999a9 Add "make check" target (useful for automated tests).
While there, add "-p" option to "hiredis-test", so that we could run
tests without interrupting Redis instance running on the default port.
2011-05-22 15:24:11 +02:00
Pieter Noordhuis df203bc328 cp on Solaris doesn't have -a 2011-04-22 13:00:04 +02:00
Pieter Noordhuis 81c00aab32 Add versioned symlinks for install target 2011-04-22 12:54:19 +02:00
Pieter Noordhuis dd9f0810dc Solaris needs the static lib as last argument 2011-04-22 12:53:23 +02:00
Pieter Noordhuis 1381e22db1 Move OBJ argument 2011-04-22 12:01:46 +02:00
Pieter Noordhuis 595f2f88dd Braces -> parentheses 2011-04-22 12:00:56 +02:00
Pieter Noordhuis 721e390de5 Separate basename and suffix for library filename 2011-04-22 11:54:16 +02:00
Pieter Noordhuis 5c205359d9 Configurable paths for install target 2011-04-22 09:59:30 +02:00
Pieter Noordhuis 4feec1f252 Remove rpath from linker flags; link artifacts statically 2011-04-21 23:24:58 +02:00
Pieter Noordhuis 8f27c9684a Remove util.h from Makefile 2011-04-21 22:50:02 +02:00
Pieter Noordhuis 75bc8595c7 Only use C99 for compiling hiredis itself
The libevent example cannot be compiled when -std=c99 is passed. It is
not necessary that the adapters nor the examples follow this standard,
as long as the code for hiredis itself is compliant.
2011-04-21 18:13:30 +02:00
Pieter Noordhuis df1d693b03 Include fmacros.h to make sure strerror_p is defined on Linux 2011-04-21 16:24:03 +02:00
Pieter Noordhuis 7f11360604 Recompile net.c when hiredis.h changes 2011-04-21 15:04:45 +02:00
Pieter Noordhuis d5b18b5d28 Work with make v3.80 2011-04-07 17:31:23 +02:00
Pieter Noordhuis fbe756d838 Avoid warnings with -Wstrict-prototypes 2011-01-27 12:50:55 +01:00
Pieter Noordhuis c6b8bd77c0 Make dictionary functions static and include the .c file 2011-01-14 12:07:29 +01:00