2015-07-26 16:05:51 +00:00
|
|
|
SOURCES_CXX :=
|
|
|
|
SOURCES_C :=
|
|
|
|
|
|
|
|
MEDNAFEN_DIR := $(CORE_DIR)/mednafen
|
|
|
|
CORE_EMU_DIR := $(MEDNAFEN_DIR)/wswan
|
2016-06-07 11:04:25 +00:00
|
|
|
LIBRETROCOMM_DIR := $(CORE_DIR)/libretro-common
|
2015-07-26 16:05:51 +00:00
|
|
|
|
2016-06-07 11:04:25 +00:00
|
|
|
INCFLAGS := -I$(CORE_DIR) -I$(MEDNAFEN_DIR) -I$(MEDNAFEN_DIR)/include -I$(MEDNAFEN_DIR)/intl -I$(MEDNAFEN_DIR)/hw_sound -I$(MEDNAFEN_DIR)/hw_cpu -I$(MEDNAFEN_DIR)/hw_misc -I$(LIBRETROCOMM_DIR)/include
|
2015-07-26 16:05:51 +00:00
|
|
|
|
|
|
|
ifneq ($(HAVE_GRIFFIN),1)
|
|
|
|
SOURCES_CXX += \
|
|
|
|
$(CORE_EMU_DIR)/gfx.cpp \
|
|
|
|
$(CORE_EMU_DIR)/wswan-memory.cpp \
|
|
|
|
$(CORE_EMU_DIR)/v30mz.cpp \
|
|
|
|
$(CORE_EMU_DIR)/sound.cpp \
|
|
|
|
$(CORE_EMU_DIR)/tcache.cpp \
|
|
|
|
$(CORE_EMU_DIR)/interrupt.cpp \
|
|
|
|
$(CORE_EMU_DIR)/eeprom.cpp \
|
|
|
|
$(CORE_EMU_DIR)/rtc.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BLIP), 1)
|
|
|
|
SOURCES_CXX += $(MEDNAFEN_DIR)/sound/Blip_Buffer.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_THREADING), 1)
|
|
|
|
FLAGS += -DWANT_THREADING
|
|
|
|
SOURCES_C += $(CORE_DIR)/threads.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_CRC32), 1)
|
|
|
|
FLAGS += -DWANT_CRC32
|
|
|
|
SOURCES_C += $(CORE_DIR)/scrc32.c
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_DEINTERLACER), 1)
|
|
|
|
FLAGS += -DNEED_DEINTERLACER
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BPP), 8)
|
|
|
|
FLAGS += -DWANT_8BPP
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BPP), 16)
|
|
|
|
FLAGS += -DWANT_16BPP
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BPP), 32)
|
|
|
|
FLAGS += -DWANT_32BPP
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NO_COMPUTED_GOTO), 1)
|
|
|
|
FLAGS += -DNO_COMPUTED_GOTO
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_STEREO_SOUND), 1)
|
|
|
|
FLAGS += -DWANT_STEREO_SOUND
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
|
|
|
|
FLAGS += -DFRONTEND_SUPPORTS_RGB565
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(HAVE_GRIFFIN), 1)
|
|
|
|
SOURCES_CXX += \
|
|
|
|
$(MEDNAFEN_DIR)/settings.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/state.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/mempatcher.cpp \
|
|
|
|
$(CORE_DIR)/libretro.cpp
|
2015-07-27 20:10:29 +00:00
|
|
|
|
2017-07-28 01:52:13 +00:00
|
|
|
SOURCES_C += $(MEDNAFEN_DIR)/file.c \
|
2017-08-05 14:10:30 +00:00
|
|
|
$(LIBRETROCOMM_DIR)/streams/file_stream.c \
|
2017-07-28 01:52:13 +00:00
|
|
|
$(LIBRETROCOMM_DIR)/streams/file_stream_transforms.c
|
2015-07-26 16:05:51 +00:00
|
|
|
endif
|