From aef91917f7ae66da1e93e1f4c1b21f5b2555ad35 Mon Sep 17 00:00:00 2001 From: João Silva Date: Wed, 16 Aug 2017 17:59:11 +0100 Subject: Changed compile-time flags to use C89 and fixed new warnings raised. --- Makefile.common | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile.common') 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) -- cgit v1.2.3