]> git.saurik.com Git - redis.git/blobdiff - Makefile
first skiplist fix, courtesy of valgrind
[redis.git] / Makefile
index fda703e1e2d74ae40c438ab13897761961d22572..4fe428c41fdb8f45a8b81eee92f79d8ff7d3d07a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,8 @@
 # This file is released under the BSD license, see the COPYING file
 
 DEBUG?= -g -rdynamic -ggdb 
-CFLAGS?= -std=c99 -pedantic -O0 -Wall -W -DSDS_ABORT_ON_OOM
-CCOPT= $(CFLAGS)
+CFLAGS?= -std=c99 -O2 -pedantic -Wall -W
+CCOPT= $(CFLAGS) $(ARCH)
 
 OBJ = adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o
 BENCHOBJ = ae.o anet.o benchmark.o sds.o adlist.o zmalloc.o
@@ -61,3 +61,6 @@ bench:
 
 log:
        git log '--pretty=format:%ad %s' --date=short > Changelog
+
+32bit:
+       make ARCH="-arch i386"