分类: LINUX
2012-02-28 18:36:19
具体例子:
下面的红色语句就是输出BOARD_USE_PMEM_TO_SIMULATE_BMM 的值。
直接输入mm就可以在屏幕上看到。
include $(CLEAR_VARS)
$(warning "/nthe value of BOARD_USE_PMEM_TO_SIMULATE_BMM $(BOARD_USE_PMEM_TO_SIMULATE_BMM)")
ifeq ($(BOARD_USE_PMEM_TO_SIMULATE_BMM), true)
LOCAL_SRC_FILES := /
bmm_lib.pmem.c
else
$(warning "this is using the bmm_lib.c"
LOCAL_SRC_FILES := /
bmm_lib.c
endif
LOCAL_MODULE := libbmm
LOCAL_SHARED_LIBRARIES := libutils
LOCAL_PRELINK_MODULE := false
include $(BUILD_SHARED_LIBRARY)
COMPILE_BMM_TEST := true
ifeq ($(COMPILE_BMM_TEST), true)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := /
bmm_test.c
LOCAL_MODULE := bmmtest
LOCAL_SHARED_LIBRARIES += libbmm
include $(BUILD_EXECUTABLE)
endif
原文地址:http://blog.csdn.net/learnrose/article/details/6223329