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
64ef0ad7
Unverified
Commit
64ef0ad7
authored
Jan 09, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Jan 09, 2020
Browse files
Merge pull request #6724 from JohnSully/incremental
Add support for incremental build with header files
parents
0f3c353d
e5565a79
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
64ef0ad7
.*.swp
.*.swp
*.o
*.o
*.d
*.log
*.log
dump.rdb
dump.rdb
redis-benchmark
redis-benchmark
...
...
src/Makefile
View file @
64ef0ad7
...
@@ -283,14 +283,18 @@ $(REDIS_BENCHMARK_NAME): $(REDIS_BENCHMARK_OBJ)
...
@@ -283,14 +283,18 @@ $(REDIS_BENCHMARK_NAME): $(REDIS_BENCHMARK_OBJ)
dict-benchmark
:
dict.c zmalloc.c sds.c siphash.c
dict-benchmark
:
dict.c zmalloc.c sds.c siphash.c
$(REDIS_CC)
$(FINAL_CFLAGS)
$^
-D
DICT_BENCHMARK_MAIN
-o
$@
$(FINAL_LIBS)
$(REDIS_CC)
$(FINAL_CFLAGS)
$^
-D
DICT_BENCHMARK_MAIN
-o
$@
$(FINAL_LIBS)
DEP
=
$(REDIS_SERVER_OBJ:%.o=%.d)
$(REDIS_CLI_OBJ:%.o=%.d)
$(REDIS_BENCHMARK_OBJ:%.o=%.d)
-include
$(DEP)
# Because the jemalloc.h header is generated as a part of the jemalloc build,
# Because the jemalloc.h header is generated as a part of the jemalloc build,
# building it should complete before building any other object. Instead of
# building it should complete before building any other object. Instead of
# depending on a single artifact, build all dependencies first.
# depending on a single artifact, build all dependencies first.
%.o
:
%.c .make-prerequisites
%.o
:
%.c .make-prerequisites
$(REDIS_CC)
-c
$<
$(REDIS_CC)
-MMD
-o
$@
-c
$<
clean
:
clean
:
rm
-rf
$(REDIS_SERVER_NAME)
$(REDIS_SENTINEL_NAME)
$(REDIS_CLI_NAME)
$(REDIS_BENCHMARK_NAME)
$(REDIS_CHECK_RDB_NAME)
$(REDIS_CHECK_AOF_NAME)
*
.o
*
.gcda
*
.gcno
*
.gcov redis.info lcov-html Makefile.dep dict-benchmark
rm
-rf
$(REDIS_SERVER_NAME)
$(REDIS_SENTINEL_NAME)
$(REDIS_CLI_NAME)
$(REDIS_BENCHMARK_NAME)
$(REDIS_CHECK_RDB_NAME)
$(REDIS_CHECK_AOF_NAME)
*
.o
*
.gcda
*
.gcno
*
.gcov redis.info lcov-html Makefile.dep dict-benchmark
rm
-f
$(DEP)
.PHONY
:
clean
.PHONY
:
clean
...
...
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