summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Guillen Fandos2021-05-19 20:09:44 +0200
committerDavid G. F2021-05-19 20:11:35 +0200
commit261b2db9bb65b63d4968f89deecdf92f1975011f (patch)
treebd88118ca3eb8170f790e2b2d1887cbfe67d1002
parentea2608812f157007e4b0ba8f86913eb4e780122b (diff)
downloadpicogpsp-261b2db9bb65b63d4968f89deecdf92f1975011f.tar.gz
picogpsp-261b2db9bb65b63d4968f89deecdf92f1975011f.tar.bz2
picogpsp-261b2db9bb65b63d4968f89deecdf92f1975011f.zip
Cleanup Makefiles a bit
-rw-r--r--Makefile13
-rw-r--r--Makefile.common4
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)