2014-11-02 04:14:23 +01:00
|
|
|
INCFLAGS := -I$(CORE_DIR)/drivers/libretro -I$(CORE_DIR) -I$(CORE_DIR)/input -I$(CORE_DIR)/boards -I$(CORE_DIR)/mappers
|
|
|
|
|
|
|
|
FCEU_SRC_DIRS := $(CORE_DIR)/boards $(CORE_DIR)/input $(CORE_DIR)/mappers
|
|
|
|
SOURCES_C := $(foreach dir,$(FCEU_SRC_DIRS),$(wildcard $(dir)/*.c))
|
2015-08-06 13:27:20 +02:00
|
|
|
|
|
|
|
ifeq ($(HAVE_GRIFFIN),1)
|
|
|
|
SOURCES_C += $(CORE_DIR)/drivers/libretro/griffin.c
|
|
|
|
else
|
|
|
|
SOURCES_C += \
|
|
|
|
$(CORE_DIR)/drivers/libretro/libretro.c \
|
|
|
|
$(CORE_DIR)/cart.c \
|
|
|
|
$(CORE_DIR)/cheat.c \
|
|
|
|
$(CORE_DIR)/crc32.c \
|
|
|
|
$(CORE_DIR)/fceu-endian.c \
|
|
|
|
$(CORE_DIR)/fceu-memory.c \
|
|
|
|
$(CORE_DIR)/misc.c \
|
|
|
|
$(CORE_DIR)/fceu.c \
|
|
|
|
$(CORE_DIR)/fds.c \
|
|
|
|
$(CORE_DIR)/file.c \
|
|
|
|
$(CORE_DIR)/filter.c \
|
|
|
|
$(CORE_DIR)/general.c \
|
|
|
|
$(CORE_DIR)/input.c \
|
|
|
|
$(CORE_DIR)/md5.c \
|
|
|
|
$(CORE_DIR)/nsf.c \
|
|
|
|
$(CORE_DIR)/palette.c \
|
|
|
|
$(CORE_DIR)/ppu.c \
|
|
|
|
$(CORE_DIR)/sound.c \
|
|
|
|
$(CORE_DIR)/state.c \
|
|
|
|
$(CORE_DIR)/video.c \
|
|
|
|
$(CORE_DIR)/vsuni.c
|
2015-08-06 13:37:09 +02:00
|
|
|
|
2016-04-07 01:58:06 +02:00
|
|
|
ifeq ($(STATIC_LINKING),1)
|
|
|
|
else
|
2016-04-07 01:36:54 +02:00
|
|
|
SOURCES_C += $(CORE_DIR)/memstream.c
|
|
|
|
endif
|
|
|
|
|
2015-08-06 13:37:09 +02:00
|
|
|
ifeq ($(DEBUG),1)
|
|
|
|
SOURCES_C += $(CORE_DIR)/debug.c
|
|
|
|
endif
|
2015-08-06 13:27:20 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
SOURCES_C += \
|
|
|
|
$(CORE_DIR)/ines.c \
|
|
|
|
$(CORE_DIR)/unif.c $(CORE_DIR)/x6502.c
|