Skip to content

Commit

Permalink
Cleanup Makefiles a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgfnet committed May 19, 2021
1 parent ea26088 commit 261b2db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
13 changes: 5 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
DEBUG=0
HAVE_GRIFFIN=0
FRONTEND_SUPPORTS_RGB565=1
FORCE_32BIT_ARCH=0
HAVE_MMAP=0
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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 =
Expand Down
4 changes: 0 additions & 4 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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)

Expand Down

0 comments on commit 261b2db

Please sign in to comment.