Make incremental building work with header files
Former-commit-id: bf500ab44b82e9a3ad7f341b7d2f7f583fdf336f
This commit is contained in:
parent
f12d664374
commit
6d52647e57
@ -294,20 +294,25 @@ $(REDIS_BENCHMARK_NAME): $(REDIS_BENCHMARK_OBJ)
|
|||||||
dict-benchmark: dict.cpp zmalloc.cpp sds.c siphash.c
|
dict-benchmark: dict.cpp zmalloc.cpp 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 -c $<
|
||||||
|
|
||||||
%.o: %.cpp .make-prerequisites
|
%.o: %.cpp .make-prerequisites
|
||||||
$(REDIS_CXX) -c $<
|
$(REDIS_CXX) -MMD -c $<
|
||||||
|
|
||||||
%.o: %.asm .make-prerequisites
|
%.o: %.asm .make-prerequisites
|
||||||
$(KEYDB_AS) $< -o $@
|
$(KEYDB_AS) $< -o $@
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user