From 261b2db9bb65b63d4968f89deecdf92f1975011f Mon Sep 17 00:00:00 2001 From: David Guillen Fandos Date: Wed, 19 May 2021 20:09:44 +0200 Subject: Cleanup Makefiles a bit --- Makefile | 13 +++++-------- Makefile.common | 4 ---- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index f4c758f..6edf65c 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ DEBUG=0 -HAVE_GRIFFIN=0 FRONTEND_SUPPORTS_RGB565=1 FORCE_32BIT_ARCH=0 HAVE_MMAP=0 @@ -74,7 +73,7 @@ ifeq ($(platform), unix) LIBM := endif CFLAGS += $(FORCE_32BIT) - LDFLAGS := -Wl,--no-undefined + LDFLAGS += -Wl,--no-undefined ifeq ($(HAVE_DYNAREC),1) HAVE_MMAP = 1 endif @@ -368,7 +367,7 @@ else ifneq (,$(findstring armv,$(platform))) ifeq (,$(findstring no-dynarec,$(platform))) HAVE_DYNAREC := 1 endif - LDFLAGS := -Wl,--no-undefined + LDFLAGS += -Wl,--no-undefined # MIPS else ifeq ($(platform), mips32) @@ -444,11 +443,6 @@ else OPTIMIZE := -O3 -DNDEBUG endif - -include Makefile.common - -OBJECTS := $(SOURCES_C:.c=.o) $(SOURCES_ASM:.S=.o) - DEFINES := -DHAVE_STRINGS_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -D__LIBRETRO__ -DINLINE=inline -Wall ifeq ($(HAVE_DYNAREC), 1) @@ -463,6 +457,9 @@ else ifeq ($(CPU_ARCH), x86_32) DEFINES += -DX86_ARCH endif +include Makefile.common + +OBJECTS := $(SOURCES_C:.c=.o) $(SOURCES_ASM:.S=.o) WARNINGS_DEFINES = CODE_DEFINES = diff --git a/Makefile.common b/Makefile.common index 0dcbedc..79ae145 100644 --- a/Makefile.common +++ b/Makefile.common @@ -2,9 +2,6 @@ INCFLAGS := -I$(CORE_DIR)/libretro -I$(CORE_DIR)/src SOURCES_ASM := $(CORE_DIR)/bios_data.S -ifeq ($(HAVE_GRIFFIN), 1) -SOURCES_C := $(CORE_DIR)/gpsp_griffin.c -else SOURCES_C := $(CORE_DIR)/main.c \ $(CORE_DIR)/cpu.c \ $(CORE_DIR)/gba_memory.c \ @@ -18,7 +15,6 @@ SOURCES_C := $(CORE_DIR)/main.c \ ifeq ($(HAVE_DYNAREC), 1) SOURCES_C += $(CORE_DIR)/cpu_threaded.c endif -endif ifeq ($(HAVE_DYNAREC), 1) -- cgit v1.2.3