antirez/redis — pull request #403 by pietern (2012-03-26 17:31:09+00:00)
Title: Makefile spring cleaning (2.6)

Instead of overriding non-standard variables such as `ARCH` and `PROF`, use standard variables `CFLAGS` and `LDFLAGS` to override Makefile settings. Move dependencies generated by `make dep` to a separate file.

Verified (built and ran tests) that this works on OSX, Linux and Solaris, for both the 64-bit and 32-bit build, with latest `make` and `make` 3.80.

This should also cleanly apply to unstable. I can submit another PR for that if you want. I have a similar branch for 2.4, but that should only be used by people who really need to override `CFLAGS` and/or `LDFLAGS` (users running Solaris).