X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/5b19e727c7bea32ddd68896bc5c4fdccf0c8a2d5..7ea870c09205c93b6e0677ad466bf46a6f11a9ea:/Makefile diff --git a/Makefile b/Makefile index ba3d5009..9e687d25 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,10 @@ ifeq ($(uname_S),SunOS) CFLAGS?= -std=c99 -pedantic -O2 -Wall -W -D__EXTENSIONS__ -D_XPG6 CCLINK?= -ldl -lnsl -lsocket -lm else - CFLAGS?= -std=c99 -pedantic -O2 -Wall -W $(ARCH) + CFLAGS?= -std=c99 -pedantic -O2 -Wall -W $(ARCH) $(PROF) CCLINK?= -lm endif -CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) +CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF) DEBUG?= -g -rdynamic -ggdb OBJ = adlist.o ae.o anet.o dict.o redis.o sds.o zmalloc.o lzf_c.o lzf_d.o pqsort.o @@ -60,6 +60,9 @@ clean: dep: $(CC) -MM *.c +staticsymbols: + tclsh utils/build-static-symbols.tcl > staticsymbols.h + test: tclsh test-redis.tcl @@ -71,3 +74,9 @@ log: 32bit: make ARCH="-arch i386" + +gprof: + make PROF="-pg" + +32bitgprof: + make PROF="-pg" ARCH="-arch i386"