2012-07-09 23:14:35 +02:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2013-06-22 17:56:55 +02:00
|
|
|
GENPLUS_SRC_DIR := ../../core
|
2014-04-29 23:49:47 +02:00
|
|
|
TREMOR_SRC_DIR := $(GENPLUS_SRC_DIR)/tremor
|
2012-09-10 04:46:54 +02:00
|
|
|
LIBRETRO_DIR := ../
|
2012-07-09 23:14:35 +02:00
|
|
|
|
2012-09-10 04:46:54 +02:00
|
|
|
LOCAL_MODULE := retro
|
2012-12-02 17:37:12 +01:00
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH),arm)
|
|
|
|
LOCAL_CFLAGS += -DANDROID_ARM
|
|
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
endif
|
|
|
|
|
2012-07-09 23:14:35 +02:00
|
|
|
LOCAL_SRC_FILES := $(GENPLUS_SRC_DIR)/genesis.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/vdp_ctrl.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/vdp_render.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/system.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/io_ctrl.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/loadrom.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/mem68k.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/state.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/memz80.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/membnk.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/activator.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/gamepad.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/input.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/lightgun.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/mouse.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/paddle.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/sportspad.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/teamplayer.c \
|
2014-08-09 19:04:05 +02:00
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/xe_1ap.c \
|
2012-07-09 23:14:35 +02:00
|
|
|
$(GENPLUS_SRC_DIR)/input_hw/terebi_oekaki.c \
|
2012-09-10 04:46:54 +02:00
|
|
|
$(GENPLUS_SRC_DIR)/cd_hw/cd_cart.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cd_hw/cdc.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cd_hw/cdd.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cd_hw/gfx.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cd_hw/pcm.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cd_hw/scd.c \
|
2012-07-09 23:14:35 +02:00
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/areplay.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/md_cart.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/sms_cart.c \
|
2012-10-16 21:08:55 +02:00
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/eeprom_93c.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/eeprom_i2c.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/eeprom_spi.c \
|
2012-07-09 23:14:35 +02:00
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/ggenie.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/sram.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/svp/ssp16.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/cart_hw/svp/svp.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/ntsc/md_ntsc.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/ntsc/sms_ntsc.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/sound/eq.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/sound/sound.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/sound/ym2612.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/sound/ym2413.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/sound/sn76489.c \
|
2012-10-16 21:08:55 +02:00
|
|
|
$(GENPLUS_SRC_DIR)/sound/blip_buf.c \
|
2012-07-09 23:14:35 +02:00
|
|
|
$(GENPLUS_SRC_DIR)/z80/z80.c \
|
|
|
|
$(GENPLUS_SRC_DIR)/m68k/m68kcpu.c \
|
2012-09-10 04:46:54 +02:00
|
|
|
$(GENPLUS_SRC_DIR)/m68k/s68kcpu.c \
|
2014-04-29 23:49:47 +02:00
|
|
|
$(TREMOR_SRC_DIR)/bitwise.c \
|
|
|
|
$(TREMOR_SRC_DIR)/block.c \
|
|
|
|
$(TREMOR_SRC_DIR)/codebook.c \
|
|
|
|
$(TREMOR_SRC_DIR)/floor0.c \
|
|
|
|
$(TREMOR_SRC_DIR)/floor1.c \
|
|
|
|
$(TREMOR_SRC_DIR)/framing.c \
|
|
|
|
$(TREMOR_SRC_DIR)/info.c \
|
|
|
|
$(TREMOR_SRC_DIR)/mapping0.c \
|
|
|
|
$(TREMOR_SRC_DIR)/mdct.c \
|
|
|
|
$(TREMOR_SRC_DIR)/registry.c \
|
|
|
|
$(TREMOR_SRC_DIR)/res012.c \
|
|
|
|
$(TREMOR_SRC_DIR)/sharedbook.c \
|
|
|
|
$(TREMOR_SRC_DIR)/synthesis.c \
|
|
|
|
$(TREMOR_SRC_DIR)/vorbisfile.c \
|
|
|
|
$(TREMOR_SRC_DIR)/window.c \
|
2012-09-10 04:46:54 +02:00
|
|
|
$(LIBRETRO_DIR)/libretro.c \
|
|
|
|
$(LIBRETRO_DIR)/scrc32.c
|
2012-07-09 23:14:35 +02:00
|
|
|
|
|
|
|
LOCAL_C_INCLUDES = $(LOCAL_PATH)/$(GENPLUS_SRC_DIR) \
|
|
|
|
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/sound \
|
|
|
|
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/input_hw \
|
2012-09-10 04:46:54 +02:00
|
|
|
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/cd_hw \
|
2012-07-09 23:14:35 +02:00
|
|
|
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/cart_hw \
|
|
|
|
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/cart_hw/svp \
|
|
|
|
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/m68k \
|
|
|
|
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/z80 \
|
|
|
|
$(LOCAL_PATH)/$(GENPLUS_SRC_DIR)/ntsc \
|
|
|
|
$(LOCAL_PATH)/$(LIBRETRO_DIR)
|
|
|
|
|
2014-04-29 23:49:47 +02:00
|
|
|
LOCAL_CFLAGS = -ffast-math -O2 -funroll-loops -DINLINE="static inline" -DUSE_LIBTREMOR -DUSE_16BPP_RENDERING -DLSB_FIRST -DBYTE_ORDER=LITTLE_ENDIAN -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DALIGN_LONG -DALIGN_WORD
|
2012-09-10 04:46:54 +02:00
|
|
|
|
2012-07-09 23:14:35 +02:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|