makefile多条件写法

TARGET_ARCH ?= x86

ifeq ($(TARGET_ARCH), arm)
    LOCAL_SRC_FILES += ...
else ifeq ($(TARGET_ARCH), x86)
    LOCAL_SRC_FILES += ...
else ifeq ($(TARGET_ARCH), mips)
    LOCAL_SRC_FILES += ...
else
    LOCAL_SRC_FILES += ...
endif

你可能感兴趣的:(makefile多条件写法)