mirror of
https://github.com/libretro/beetle-lynx-libretro.git
synced 2024-11-23 08:10:55 +00:00
30 lines
876 B
Makefile
30 lines
876 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
CORE_DIR := $(LOCAL_PATH)/..
|
|
|
|
DEBUG := 0
|
|
FRONTEND_SUPPORTS_RGB565 := 1
|
|
NEED_BPP := 32
|
|
NEED_BLIP := 1
|
|
NEED_STEREO_SOUND := 1
|
|
NEED_CRC32 := 1
|
|
FLAGS :=
|
|
|
|
include $(CORE_DIR)/Makefile.common
|
|
|
|
COREFLAGS := -funroll-loops $(INCFLAGS) -DMEDNAFEN_VERSION_NUMERIC=926 -D__LIBRETRO__ -DINLINE="inline" $(FLAGS)
|
|
|
|
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_CXX) $(SOURCES_C)
|
|
LOCAL_CFLAGS := $(COREFLAGS)
|
|
LOCAL_CXXFLAGS := $(COREFLAGS)
|
|
LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/link.T
|
|
LOCAL_CPP_FEATURES := exceptions
|
|
include $(BUILD_SHARED_LIBRARY)
|