blob: 27e43ac36da18f726d93af61917f49775a10746d (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
LOCAL_PATH := $(call my-dir)
CORE_DIR := $(LOCAL_PATH)/..
CORE_LDLIBS :=
CPU_ARCH :=
HAVE_DYNAREC :=
USE_LIBCO := 1
COREFLAGS := -DINLINE=inline -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DUSE_LIBCO
ifeq ($(TARGET_ARCH),arm)
COREFLAGS += -DARM_ARCH -DARM_MEMORY_DYNAREC
CPU_ARCH := arm
HAVE_DYNAREC := 1
else ifeq ($(TARGET_ARCH),x86)
COREFLAGS += -DHAVE_MMAP
CPU_ARCH := x86_32
HAVE_DYNAREC := 1
endif
ifeq ($(HAVE_DYNAREC),1)
COREFLAGS += -DHAVE_DYNAREC
CORE_LDLIBS += -Wl,--no-warn-shared-textrel
endif
include $(CORE_DIR)/Makefile.common
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
include $(CLEAR_VARS)
LOCAL_MODULE := retro
LOCAL_SRC_FILES := $(SOURCES_C) $(SOURCES_ASM)
LOCAL_CFLAGS := $(COREFLAGS) $(INCFLAGS)
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/link.T
LOCAL_LDLIBS := $(CORE_LDLIBS)
include $(BUILD_SHARED_LIBRARY)
|