112439Sshunhsingou@google.comLOCAL_PATH := $(call my-dir)
212439Sshunhsingou@google.cominclude $(CLEAR_VARS)
312439Sshunhsingou@google.com
412439Sshunhsingou@google.comLOCAL_MODULE := m5
512439Sshunhsingou@google.comLOCAL_SRC_FILES := \
612439Sshunhsingou@google.com    m5.c
712439Sshunhsingou@google.com
812439Sshunhsingou@google.comifeq ($(TARGET_ARCH),x86)
912439Sshunhsingou@google.com    LOCAL_SRC_FILES += \
1012439Sshunhsingou@google.com        m5op_x86.S
1112439Sshunhsingou@google.comelse ifeq ($(TARGET_ARCH),arm)
1212439Sshunhsingou@google.com    LOCAL_SRC_FILES += \
1312439Sshunhsingou@google.com        m5op_arm.S
1412439Sshunhsingou@google.comelse ifeq ($(TARGET_ARCH),arm64)
1512439Sshunhsingou@google.com    LOCAL_SRC_FILES += \
1612439Sshunhsingou@google.com        m5op_arm_A64.S
1712439Sshunhsingou@google.comelse
1812439Sshunhsingou@google.com    $(error "Unsupported TARGET_ARCH $(TARGET_ARCH)")
1912439Sshunhsingou@google.comendif
2012439Sshunhsingou@google.com
2112439Sshunhsingou@google.cominclude $(BUILD_EXECUTABLE)
22