代码拉取完成,页面将自动刷新
$(LOCAL_MODULE)_PRIV_C_FLAGS := \
$(addprefix -I$(LOCAL_PATH),$(LOCAL_C_INCLUDES)) \
$(addprefix -I,$(LOCAL_PATH)) \
$(addprefix -I,$(COMMON_C_INCLUDES)) \
$(COMMON_CFLAGS) \
$(LOCAL_CFLAGS)
ifeq ($(STATIC_BUILD),true)
$(LOCAL_MODULE)_LDFLAGS := $(filter-out -l%,$(LOCAL_LDFLAGS))
else
$(LOCAL_MODULE)_LDFLAGS := $(LOCAL_LDFLAGS)
endif
$(LOCAL_MODULE)_PRIV_OBJS := $(addprefix $(LOCAL_PATH),$(LOCAL_SRC_FILES:.c=.o))
$(LOCAL_MODULE)_PRIV_DEPS := $(addprefix $(LOCAL_PATH),$(LOCAL_SRC_FILES:.c=.d))
.PHONY: $(LOCAL_MODULE)
$(LOCAL_MODULE) : $($(LOCAL_MODULE)_PRIV_OBJS)
$($(LOCAL_MODULE)_PRIV_OBJS) : LCFLAGS := $($(LOCAL_MODULE)_PRIV_C_FLAGS)
$($(LOCAL_MODULE)_PRIV_OBJS) : ${@:.o=.c}
$(CC) $(LCFLAGS) ${@:.o=.c} -c -o $@
# sed: change everything before ":" to "${@:.d=.o} $@"
$($(LOCAL_MODULE)_PRIV_DEPS) : LCFLAGS := $($(LOCAL_MODULE)_PRIV_C_FLAGS)
$($(LOCAL_MODULE)_PRIV_DEPS) : ${@:.d=.c}
@$(CC) -MM ${@:.d=.c} $(LCFLAGS) > $@
@sed -i -e 's|^.*:|${@:.d=.o} $@ : |g' $@
# %.o %.d : *.c
# This will cause regeneration of .d files and unselected targets.
# Only include deps when building for selected modules.
ifneq ("$(MAKECMDGOALS)","clean")
ifneq ($(filter $(LOCAL_MODULE),$(BUILD_MODULES)),)
-include $($(LOCAL_MODULE)_PRIV_DEPS)
endif
endif
.PHONY: $(LOCAL_MODULE)_clean
$(LOCAL_MODULE)_clean:
# Use patsubst to get correct filenames!
rm -f $($(patsubst %_clean,%,$@)_PRIV_OBJS) $($(patsubst %_clean,%,$@)_PRIV_DEPS)
.PHONY: clean
clean: $(LOCAL_MODULE)_clean
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。