summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2018-12-04Makefile: use predefined ARJörg Thalheim
This allows to override it for cross compilation.
2018-09-26Add CPPFLAGS to REAL_CFLAGSTom Lee
2018-05-31Use -dynamiclib instead of -shared on macOSRyan Schmidt
-dynamiclib is the correct documented flag to use to create dynamic libraries on macOS. Newer toolchains recognize -shared as a synonym of -dynamiclib but older toolchains don't.
2018-05-16Merge branch 'master' of github.com:redis/hiredismichael-grunder
2018-05-16Make sure we've got a path separator before the actual dylib namemichael-grunder
2018-05-14Use cp -pPR instead of cp -aRyan Schmidt
This should be equivalent but compatible with older versions of cp.
2018-05-14Use absolute install_nameRyan Schmidt
Fixes #437.
2018-01-05Merge pull request #561 from zshipko/masterJan-Erik Rediger
Fix "make install" on OpenBSD
2017-12-28Strip compiler options from the CC variableDmitri Vorobiev
The Makefile checks validity of the compiler command in the CC variable by feeding the contents of that variable to the `type' utility. Some environments include compiler options in the CC variable such as architecture specific tuning flags. For such cases it is necessary to first strip everything except the command itself from the contents of the CC variable prior to checking the command with the type utility, which is what this patch is introducing. We use shell parameter expansion mechanism for this purpose. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
2017-12-27Remove $(ARCH) expansion from the MakefileDmitri Vorobiev
Some compilation environments (such as Yocto) define the ARCH environment variable to indicate the target architecture. For such enviroments, hiredis build fails, because the expanded $(ARCH) variable in the Makefile gets erroneously interpreted as an argument to the `-ggdb' command line option during the compilation stage or as an input file name during the linking stage. This patch removes $(ARCH) expansions from the Makefile. This doesn't harm cross-compilation, the latter goes fine with the properly assigned CC environment variable. For native builds, this patch does not imply any changes. Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@movial.com>
2017-11-28Fix "make install" on OpenBSDZach Shipko
2017-10-30build: do not assume that INSTALL is cpIgor Gnatenko
INSTALL is supposed to be `install` in most of the cases which doesn't work with directories, but works perfectly with files. Don't do this assumption. Reported-by: Jiří Vymazal <jvymazal@redhat.com> References: https://bugzilla.redhat.com/show_bug.cgi?id=1506251 Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-10-10Build error patch with glib-2.0Trustfarm-heart
In case of some glib-2.0 linker error , make examples can't link with glib2.0, in this case -lglib-2.0 to after includes and move to last will solve the issues.
2016-04-20fix: Rename DEBUG to DEBUG_FLAGSJan-Erik Rediger
This avoids issues with environments where DEBUG is set to an arbitrary value to force debug mode in other tools. BREAKING CHANGE: This breaks builds that explicitely set `DEBUG` to some value (even the empty value). To get back the old behaviour change the `DEBUG_FLAGS` variable now.
2015-08-24Merge branch 'soname-stable' into unstableJan-Erik Rediger
2015-07-28Use container-based Travis by installing packages through the addonJan-Erik Rediger
2015-07-27Added MacOS X addapter and corresponding example.Dmitry Bakhvalov
Added MacOS X support via CoreFoundation run loop.
2015-07-27Add Qt adapter and relative example.Pietro Cerutti
2015-07-27Add an Ivykis adapterGergely Nagy
This adds a new adapter and an example for using hiredis with the ivykis async I/O library. Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-07-27Use stable soname versionJan-Erik Rediger
2015-05-30Update Makefilew359405949
fix link error while run "make hiredis-example-libuv": undefined reference to `clock_gettime' undefined reference to `clock_getres'
2015-05-03Make sure to compile example to trigger edge-cases in compilingJan-Erik Rediger
2015-05-03Revert "Always compile with C99 standard."Jan-Erik Rediger
This reverts commit d8145d79ce715054980938c751067ebaa541573c.
2015-04-16Always compile with C99 standard.Jan-Erik Rediger
Turns out: gnu9x defines `unix` to 1, making it unusable as a variable name.
2015-03-28Add PKGCONFNAME to install dependencies.David Watson
Attempting to use the install target before the make target works fine, except for the missing pkgconfig file. Adding that file to the dependencies for the install target to make sure it gets created first.
2015-03-19Correct escaping for prefix in pkgconf fileJan-Erik Rediger
2015-03-18Fix hiredis.pc generation.Dan Skorupski
2015-03-03Fix pkgconf file: escaping neededDominique Leuenberger
Due to the various processors going over the command, we need more escaping. 1) Make parses it, so $${libdir} becomes ${libdir} 2) 'shell' parses it for the 'echo command', whereas echo ${libdir} would be an empty string; escape it as \${libdir} to ensure we get what we want. Closes #312
2015-02-12Fix pkgconf when used with DESTDIRMatt Stancliff
Closes #302
2015-01-26Build test binary by defaultMatt Stancliff
This is the only way to force a 32-bit build of the test binary
2015-01-26Fix pkgconf build dependencyMatt Stancliff
We need to re-gen pkgconf when the version changes, and the version is kept in hiredis.h, so make pkgconf depend on hiredis.h.
2015-01-26Fix Makefile install problemsSebastian Wiedenroth
Adds DESTDIR support Fixes INSTALL_PKGCONF_PATH Properly copies {read,shs}.h now during make install Closes #297
2015-01-22Add valgrind to TravisCI testingMatt Stancliff
2015-01-05Update dependency list in MakefileMatt Stancliff
2015-01-05Build static library by defaultMatt Stancliff
2015-01-05Generate pkgconf during buildMatt Stancliff
The pkgconf source is localized to the Makefile, so we're not dropping an unnecessary "hiredis.pc.in" in the source directory. Closes #129 Closes #136
2015-01-05Refactor reading code into read.ctzickel
Makes hiredis reading functions easier to include in external projects [fixed all merge conflicts against current version] Closes #249
2015-01-05Add GLib 2.0 adapterChristian Hergert
[Cleaned up Makefile and header includes. Didn't change crazy coding style because it's the convention for GLib systems.] Closes #83 Closes #71
2014-04-09Fix HIREDIS_MINORPieter Noordhuis
Closes #219.
2014-04-09Fix Makefile test to use more compatible syntaxEddy Jansson
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
2013-07-10Move examples into their own folderAaron Bedra
Closes #166.
2013-07-10Merge branch 'libuv'Pieter Noordhuis
Closes #172.
2013-07-10Fix path to static libuv libraryPieter Noordhuis
2013-07-10Remove unused Makefile variablesPieter Noordhuis
Fixes #176.
2013-07-02Made example-ae work againErik Dubbelboer
2013-06-04Added libuv adapterErik Dubbelboer
2012-08-21Add ARCH to Makefile CFLAGS / LDFLAGS.antirez
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.
2011-06-19Fix gprof targetPieter Noordhuis
2011-06-19Coverage reportPieter Noordhuis
2011-06-19Use CFLAGS and LDFLAGS instead of custom variablesPieter Noordhuis