Make it possible to compile without griffin too
This commit is contained in:
@@ -2,4 +2,37 @@ INCFLAGS := -I$(CORE_DIR)/drivers/libretro -I$(CORE_DIR) -I$(CORE_DIR)/input -I$
|
||||
|
||||
FCEU_SRC_DIRS := $(CORE_DIR)/boards $(CORE_DIR)/input $(CORE_DIR)/mappers
|
||||
SOURCES_C := $(foreach dir,$(FCEU_SRC_DIRS),$(wildcard $(dir)/*.c))
|
||||
SOURCES_C += $(CORE_DIR)/drivers/libretro/griffin.c $(CORE_DIR)/ines.c $(CORE_DIR)/unif.c $(CORE_DIR)/x6502.c
|
||||
|
||||
ifeq ($(HAVE_GRIFFIN),1)
|
||||
SOURCES_C += $(CORE_DIR)/drivers/libretro/griffin.c
|
||||
else
|
||||
SOURCES_C += \
|
||||
$(CORE_DIR)/drivers/libretro/libretro.c \
|
||||
$(CORE_DIR)/drivers/libretro/memstream.c \
|
||||
$(CORE_DIR)/drivers/libretro/crc32-zlib.c \
|
||||
$(CORE_DIR)/cart.c \
|
||||
$(CORE_DIR)/cheat.c \
|
||||
$(CORE_DIR)/crc32.c \
|
||||
$(CORE_DIR)/debug.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
|
||||
endif
|
||||
|
||||
SOURCES_C += \
|
||||
$(CORE_DIR)/ines.c \
|
||||
$(CORE_DIR)/unif.c $(CORE_DIR)/x6502.c
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
DEBUG = 0
|
||||
EXTERNAL_ZLIB = 0
|
||||
HAVE_GRIFFIN = 1
|
||||
|
||||
ifeq ($(platform),)
|
||||
platform = unix
|
||||
|
||||
Reference in New Issue
Block a user