beetle-psx-libretro/Makefile.common

102 lines
2.6 KiB
Makefile
Raw Normal View History

2014-11-02 06:47:01 +00:00
ifeq ($(HAVE_GRIFFIN),1)
CORE_SOURCES := beetle_psx_griffin.cpp \
$(CORE_DIR)/dma.cpp \
$(CORE_DIR)/sio.cpp
else
CORE_SOURCES := $(CORE_DIR)/irq.cpp \
$(CORE_DIR)/timer.cpp \
$(CORE_DIR)/dma.cpp \
$(CORE_DIR)/frontio.cpp \
$(CORE_DIR)/sio.cpp \
$(CORE_DIR)/cpu.cpp \
$(CORE_DIR)/gte.cpp \
$(CORE_DIR)/dis.cpp \
$(CORE_DIR)/cdc.cpp \
$(CORE_DIR)/spu.cpp \
$(CORE_DIR)/gpu.cpp \
$(CORE_DIR)/mdec.cpp \
$(CORE_DIR)/input/gamepad.cpp \
$(CORE_DIR)/input/dualanalog.cpp \
$(CORE_DIR)/input/dualshock.cpp \
$(CORE_DIR)/input/justifier.cpp \
$(CORE_DIR)/input/guncon.cpp \
$(CORE_DIR)/input/negcon.cpp \
$(CORE_DIR)/input/memcard.cpp \
$(CORE_DIR)/input/multitap.cpp \
$(CORE_DIR)/input/mouse.cpp
endif
ifeq ($(NEED_THREADING), 1)
FLAGS += -DWANT_THREADING
THREAD_SOURCES += threads.c
endif
ifeq ($(NEED_CRC32), 1)
FLAGS += -DWANT_CRC32
CRC32_SOURCES += scrc32.c
endif
ifeq ($(NEED_DEINTERLACER), 1)
FLAGS += -DNEED_DEINTERLACER
endif
ifeq ($(NEED_CD), 1)
ifneq ($(HAVE_GRIFFIN),1)
CDROM_SOURCES += $(MEDNAFEN_DIR)/cdrom/CDAccess.cpp \
$(MEDNAFEN_DIR)/cdrom/CDAccess_Image.cpp \
$(MEDNAFEN_DIR)/cdrom/CDAccess_CCD.cpp \
$(MEDNAFEN_DIR)/cdrom/CDUtility.cpp \
$(MEDNAFEN_DIR)/cdrom/lec.cpp \
$(MEDNAFEN_DIR)/cdrom/SimpleFIFO.cpp \
$(MEDNAFEN_DIR)/cdrom/audioreader.cpp \
$(MEDNAFEN_DIR)/cdrom/galois.cpp \
$(MEDNAFEN_DIR)/cdrom/recover-raw.cpp \
$(MEDNAFEN_DIR)/cdrom/l-ec.cpp \
$(MEDNAFEN_DIR)/cdrom/crc32.cpp \
$(MEDNAFEN_DIR)/cdrom/cdromif.cpp
endif
FLAGS += -DNEED_CD
endif
ifeq ($(NEED_TREMOR), 1)
TREMOR_SRC := $(wildcard $(MEDNAFEN_DIR)/tremor/*.c)
FLAGS += -DNEED_TREMOR
endif
ifneq ($(HAVE_GRIFFIN), 1)
2015-07-25 16:06:37 +00:00
MEDNAFEN_SOURCES := \
$(MEDNAFEN_DIR)/error.cpp \
2014-11-02 06:47:01 +00:00
$(MEDNAFEN_DIR)/settings.cpp \
$(MEDNAFEN_DIR)/general.cpp \
$(MEDNAFEN_DIR)/FileWrapper.cpp \
$(MEDNAFEN_DIR)/FileStream.cpp \
$(MEDNAFEN_DIR)/MemoryStream.cpp \
$(MEDNAFEN_DIR)/Stream.cpp \
$(MEDNAFEN_DIR)/state.cpp \
2015-07-25 16:06:37 +00:00
$(MEDNAFEN_DIR)/endian.cpp \
$(CDROM_SOURCES) \
$(MEDNAFEN_DIR)/mempatcher.cpp \
2014-11-02 06:47:01 +00:00
$(MEDNAFEN_DIR)/video/Deinterlacer.cpp \
$(MEDNAFEN_DIR)/video/surface.cpp \
$(RESAMPLER_SOURCES) \
$(OKIADPCM_SOURCES) \
$(MEDNAFEN_DIR)/md5.cpp
2015-07-25 16:06:37 +00:00
MEDNAFEN_SOURCES_C += \
$(MEDNAFEN_DIR)/file.c
2014-11-02 06:47:01 +00:00
LIBRETRO_SOURCES += libretro.cpp
endif
TRIO_SOURCES += $(MEDNAFEN_DIR)/trio/trio.c \
$(MEDNAFEN_DIR)/trio/triostr.c
ifeq ($(HAVE_GRIFFIN), 1)
SOURCES_C := beetle_psx_griffin_c.c
else
2015-07-25 16:06:37 +00:00
SOURCES_C := $(TREMOR_SRC) $(LIBRETRO_SOURCES_C) $(TRIO_SOURCES) $(THREAD_SOURCES) $(CRC32_SOURCES) $(MEDNAFEN_SOURCES_C)
2014-11-02 06:47:01 +00:00
endif
SOURCES := $(LIBRETRO_SOURCES) $(CORE_SOURCES) $(MEDNAFEN_SOURCES) $(HW_CPU_SOURCES) $(HW_MISC_SOURCES) $(HW_SOUND_SOURCES) $(HW_VIDEO_SOURCES)