aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorJoão Silva2017-08-16 17:59:11 +0100
committerJoão Silva2017-08-16 17:59:11 +0100
commitaef91917f7ae66da1e93e1f4c1b21f5b2555ad35 (patch)
treef1d740e45522954e48e036103268c5ccb5dcbef2 /Makefile.common
parentaa610b2ba997a945c77ce06e9a33638dedb480da (diff)
downloadsnes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.gz
snes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.tar.bz2
snes9x2005-aef91917f7ae66da1e93e1f4c1b21f5b2555ad35.zip
Changed compile-time flags to use C89 and fixed new warnings raised.
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.common b/Makefile.common
index 21e319e..0a44db3 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -3,7 +3,6 @@ LIBRETRO_COMM_DIR := $(LIBRETRO_DIR)/libretro-common
INCFLAGS := -I$(CORE_DIR) -I$(LIBRETRO_DIR) -I$(LIBRETRO_COMM_DIR)/include
SOURCES_C := \
- $(CORE_DIR)/apu.c \
$(CORE_DIR)/c4.c \
$(CORE_DIR)/c4emu.c \
$(CORE_DIR)/cheats2.c \
@@ -30,17 +29,20 @@ SOURCES_C := \
$(CORE_DIR)/seta011.c \
$(CORE_DIR)/seta018.c \
$(CORE_DIR)/seta.c \
- $(CORE_DIR)/soundux.c \
- $(CORE_DIR)/spc700.c \
$(CORE_DIR)/spc7110.c \
$(CORE_DIR)/spc7110dec.c \
$(CORE_DIR)/srtc.c \
$(CORE_DIR)/tile.c \
- $(CORE_DIR)/apu_blargg.c \
$(LIBRETRO_DIR)/libretro.c
ifeq ($(USE_BLARGG_APU),1)
+ SOURCES_C += $(CORE_DIR)/apu_blargg.c
FLAGS += -DUSE_BLARGG_APU
+else
+ SOURCES_C += \
+ $(CORE_DIR)/apu.c \
+ $(CORE_DIR)/soundux.c \
+ $(CORE_DIR)/spc700.c
endif
ifeq ($(LOAD_FROM_MEMORY_TEST),1)