From 9491b1f1a453f1c3b52b170e28cce6203f7231b5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 17 Jan 2018 00:21:02 +0100 Subject: Update --- Makefile | 6 ++++++ Makefile.common | 58 ++++++++++++++++++++++++++------------------------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Makefile b/Makefile index e39c6d4..a8a9d91 100644 --- a/Makefile +++ b/Makefile @@ -163,6 +163,12 @@ endif CORE_DIR := ./src LIBRETRO_DIR := ./libretro +ifeq ($(DEBUG), 1) +DEFINES += -O0 -g +else +DEFINES += -O2 -DNDEBUG=1 +endif + include Makefile.common OBJS := $(SOURCES:.c=.o) diff --git a/Makefile.common b/Makefile.common index 568ae31..0b23655 100644 --- a/Makefile.common +++ b/Makefile.common @@ -1,37 +1,31 @@ LIBRETRO_COMM_DIR = $(LIBRETRO_DIR)/libretro-common -ifeq ($(DEBUG), 1) -DEFINES += -O0 -g -else -DEFINES += -O3 -DNDEBUG=1 -endif -SOURCES := -SOURCES += $(CORE_DIR)/apu.c -SOURCES += $(CORE_DIR)/apuaux.c -SOURCES += $(CORE_DIR)/c4.c -SOURCES += $(CORE_DIR)/c4emu.c -SOURCES += $(CORE_DIR)/cheats.c -SOURCES += $(CORE_DIR)/cheats2.c -SOURCES += $(CORE_DIR)/clip.c -SOURCES += $(CORE_DIR)/data.c -SOURCES += $(CORE_DIR)/dsp1.c -SOURCES += $(CORE_DIR)/fxemu.c -SOURCES += $(CORE_DIR)/fxinst.c -SOURCES += $(CORE_DIR)/globals.c -SOURCES += $(CORE_DIR)/dma.c -SOURCES += $(CORE_DIR)/memmap.c -SOURCES += $(CORE_DIR)/cpu.c -SOURCES += $(CORE_DIR)/cpuexec.c -SOURCES += $(CORE_DIR)/cpuops.c -SOURCES += $(CORE_DIR)/sa1.c -SOURCES += $(CORE_DIR)/sa1cpu.c -SOURCES += $(CORE_DIR)/sdd1.c -SOURCES += $(CORE_DIR)/sdd1emu.c -SOURCES += $(CORE_DIR)/snapshot.c -SOURCES += $(CORE_DIR)/soundux.c -SOURCES += $(CORE_DIR)/spc700.c -SOURCES += $(CORE_DIR)/srtc.c -SOURCES += $(LIBRETRO_DIR)/libretro.c +SOURCES := $(CORE_DIR)/apu.c \ + $(CORE_DIR)/apuaux.c \ + $(CORE_DIR)/c4.c \ + $(CORE_DIR)/c4emu.c \ + $(CORE_DIR)/cheats.c \ + $(CORE_DIR)/cheats2.c \ + $(CORE_DIR)/clip.c \ + $(CORE_DIR)/data.c \ + $(CORE_DIR)/dsp1.c \ + $(CORE_DIR)/fxemu.c \ + $(CORE_DIR)/fxinst.c \ + $(CORE_DIR)/globals.c \ + $(CORE_DIR)/dma.c \ + $(CORE_DIR)/memmap.c \ + $(CORE_DIR)/cpu.c \ + $(CORE_DIR)/cpuexec.c \ + $(CORE_DIR)/cpuops.c \ + $(CORE_DIR)/sa1.c \ + $(CORE_DIR)/sa1cpu.c \ + $(CORE_DIR)/sdd1.c \ + $(CORE_DIR)/sdd1emu.c \ + $(CORE_DIR)/snapshot.c \ + $(CORE_DIR)/soundux.c \ + $(CORE_DIR)/spc700.c \ + $(CORE_DIR)/srtc.c \ + $(LIBRETRO_DIR)/libretro.c ifeq ($(STATIC_LINKING), 1) else -- cgit v1.2.3