Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c8061392
Commit
c8061392
authored
Dec 15, 2010
by
Pieter Noordhuis
Browse files
Minor changes to Makefile
parent
53f0efe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Makefile
View file @
c8061392
...
@@ -37,6 +37,9 @@ CHECKDUMPPRGNAME = redis-check-dump
...
@@ -37,6 +37,9 @@ CHECKDUMPPRGNAME = redis-check-dump
CHECKAOFPRGNAME
=
redis-check-aof
CHECKAOFPRGNAME
=
redis-check-aof
all
:
redis-benchmark redis-cli redis-check-dump redis-check-aof redis-server
all
:
redis-benchmark redis-cli redis-check-dump redis-check-aof redis-server
@
echo
""
@
echo
"Hint: To run 'make test' is a good idea ;)"
@
echo
""
# Deps (use make dep to generate this)
# Deps (use make dep to generate this)
adlist.o
:
adlist.c adlist.h zmalloc.h
adlist.o
:
adlist.c adlist.h zmalloc.h
...
@@ -102,22 +105,21 @@ ziplist.o: ziplist.c zmalloc.h ziplist.h
...
@@ -102,22 +105,21 @@ ziplist.o: ziplist.c zmalloc.h ziplist.h
zipmap.o
:
zipmap.c zmalloc.h
zipmap.o
:
zipmap.c zmalloc.h
zmalloc.o
:
zmalloc.c config.h
zmalloc.o
:
zmalloc.c config.h
dependencies
:
cd
../deps/hiredis
&&
$(MAKE)
static
ARCH
=
"
$(ARCH)
"
cd
../deps/linenoise
&&
$(MAKE)
ARCH
=
"
$(ARCH)
"
redis-server
:
$(OBJ)
redis-server
:
$(OBJ)
$(CC)
-o
$(PRGNAME)
$(CCOPT)
$(DEBUG)
$(OBJ)
$(CC)
-o
$(PRGNAME)
$(CCOPT)
$(DEBUG)
$(OBJ)
@
echo
""
@
echo
"Hint: To run 'make test' is a good idea ;)"
@
echo
""
redis-benchmark
:
$(BENCHOBJ)
redis-benchmark
:
dependencies
$(BENCHOBJ)
cd
../deps/hiredis
&&
$(MAKE)
static
cd
../deps/hiredis
&&
$(MAKE)
static
$(CC)
-o
$(BENCHPRGNAME)
$(CCOPT)
$(DEBUG)
$(BENCHOBJ)
../deps/hiredis/libhiredis.a
$(CC)
-o
$(BENCHPRGNAME)
$(CCOPT)
$(DEBUG)
$(BENCHOBJ)
../deps/hiredis/libhiredis.a
redis-benchmark.o
:
redis-benchmark.o
:
$(CC)
-c
$(CFLAGS)
-I
../deps/hiredis
$(DEBUG)
$(COMPILE_TIME)
$<
$(CC)
-c
$(CFLAGS)
-I
../deps/hiredis
$(DEBUG)
$(COMPILE_TIME)
$<
redis-cli
:
$(CLIOBJ)
redis-cli
:
dependencies $(CLIOBJ)
cd
../deps/hiredis
&&
$(MAKE)
static
ARCH
=
"
$(ARCH)
"
cd
../deps/linenoise
&&
$(MAKE)
ARCH
=
"
$(ARCH)
"
$(CC)
-o
$(CLIPRGNAME)
$(CCOPT)
$(DEBUG)
$(CLIOBJ)
../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o
$(CC)
-o
$(CLIPRGNAME)
$(CCOPT)
$(DEBUG)
$(CLIOBJ)
../deps/hiredis/libhiredis.a ../deps/linenoise/linenoise.o
redis-cli.o
:
redis-cli.o
:
...
@@ -134,13 +136,11 @@ redis-check-aof: $(CHECKAOFOBJ)
...
@@ -134,13 +136,11 @@ redis-check-aof: $(CHECKAOFOBJ)
clean
:
clean
:
rm
-rf
$(PRGNAME)
$(BENCHPRGNAME)
$(CLIPRGNAME)
$(CHECKDUMPPRGNAME)
$(CHECKAOFPRGNAME)
*
.o
*
.gcda
*
.gcno
*
.gcov
rm
-rf
$(PRGNAME)
$(BENCHPRGNAME)
$(CLIPRGNAME)
$(CHECKDUMPPRGNAME)
$(CHECKAOFPRGNAME)
*
.o
*
.gcda
*
.gcno
*
.gcov
cd
../deps/hiredis
&&
$(MAKE)
clean
cd
../deps/linenoise
&&
$(MAKE)
clean
dep
:
dep
:
$(CC)
-MM
*
.c
$(CC)
-MM
*
.c
test
:
test
:
redis-server
(
cd
..
;
tclsh8.5 tests/test_helper.tcl
--tags
"
${TAGS}
"
--file
"
${FILE}
"
)
(
cd
..
;
tclsh8.5 tests/test_helper.tcl
--tags
"
${TAGS}
"
--file
"
${FILE}
"
)
bench
:
bench
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment