summaryrefslogtreecommitdiff
path: root/jni/Android.mk
blob: bb8d2095e9b0dd2d99d75048ca090b13b841d2b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
LOCAL_PATH := $(call my-dir)

ROOT_DIR     := $(LOCAL_PATH)/..
CORE_DIR     := $(ROOT_DIR)/src
LIBRETRO_DIR := $(ROOT_DIR)/libretro

ARM_ASM        := 0
DEFINES        :=
COMMON_DEFINES :=

ifeq ($(TARGET_ARCH),arm)
  ARM_ASM := 1
endif

include $(ROOT_DIR)/Makefile.common

COREFLAGS := $(DEFINES) $(COMMON_DEFINES) $(INCLUDES)

include $(CLEAR_VARS)
LOCAL_MODULE    := retro
LOCAL_SRC_FILES := $(SOURCES)
LOCAL_CFLAGS    := -std=c99 $(COREFLAGS)
LOCAL_LDFLAGS   := -Wl,-version-script=$(LIBRETRO_DIR)/link.T
LOCAL_ARM_MODE  := arm
include $(BUILD_SHARED_LIBRARY)