summaryrefslogtreecommitdiff
path: root/Makefile
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 /Makefile
parentea2608812f157007e4b0ba8f86913eb4e780122b (diff)
downloadpicogpsp-261b2db9bb65b63d4968f89deecdf92f1975011f.tar.gz
picogpsp-261b2db9bb65b63d4968f89deecdf92f1975011f.tar.bz2
picogpsp-261b2db9bb65b63d4968f89deecdf92f1975011f.zip
Cleanup Makefiles a bit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 5 insertions, 8 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 =