summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile37
-rw-r--r--berry_fix/Makefile35
-rw-r--r--berry_fix/payload/Makefile35
-rw-r--r--libagbsyscall/Makefile36
4 files changed, 69 insertions, 74 deletions
diff --git a/Makefile b/Makefile
index d39b9fb2d..72af64f5c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,26 @@
TOOLCHAIN := $(DEVKITARM)
COMPARE ?= 0
-# check if dkP's base_tools makefile exists
-ifneq (,$(wildcard $(TOOLCHAIN)/base_tools))
- include $(TOOLCHAIN)/base_tools
-# otherwise, either use the bin files or the
-# arm-none-eabi binaries on the system
-else
- ifneq ($(TOOLCHAIN),)
- export PATH := $(TOOLCHAIN)/bin:$(PATH)
- endif
- PREFIX := arm-none-eabi-
- OBJCOPY := $(PREFIX)objcopy
- # note: the makefile must be set up so MODERNCC is never called
- # if MODERN=0
- export MODERNCC := $(PREFIX)gcc
- export AS := $(PREFIX)as
-endif
+# don't use dkP's base_tools anymore
+# because the redefinition of $(CC) conflicts
+# with when we want to use $(CC) to preprocess files
+# thus, manually create the variables for the bin
+# files, or use arm-none-eabi binaries on the system
+# if dkP is not installed on tihs system
ifneq ($(TOOLCHAIN),)
-export CPP := $(PREFIX)cpp
-else
-export CPP := $(CC) -E
+export PATH := $(TOOLCHAIN)/bin:$(PATH)
endif
-export LD := $(PREFIX)ld
+
+PREFIX := arm-none-eabi-
+OBJCOPY := $(PREFIX)objcopy
+AS := $(PREFIX)as
+CPP := $(CC) -E
+LD := $(PREFIX)ld
+
+# note: the makefile must be set up so MODERNCC is never called
+# if MODERN=0
+MODERNCC := $(PREFIX)gcc
ifeq ($(OS),Windows_NT)
EXE := .exe
diff --git a/berry_fix/Makefile b/berry_fix/Makefile
index dd52792ec..f7ce40504 100644
--- a/berry_fix/Makefile
+++ b/berry_fix/Makefile
@@ -1,27 +1,26 @@
TOOLCHAIN := $(DEVKITARM)
COMPARE ?= 0
-# check if dkP's base_tools makefile exists
-ifneq (,$(wildcard $(TOOLCHAIN)/base_tools))
- include $(TOOLCHAIN)/base_tools
-# otherwise, either use the bin files or the
-# arm-none-eabi binaries on the system
-else
- ifneq ($(TOOLCHAIN),)
- export PATH := $(TOOLCHAIN)/bin:$(PATH)
- endif
- PREFIX := arm-none-eabi-
- OBJCOPY := $(PREFIX)objcopy
- export MODERNCC := $(PREFIX)gcc
- export AS := $(PREFIX)as
-endif
+# don't use dkP's base_tools anymore
+# because the redefinition of $(CC) conflicts
+# with when we want to use $(CC) to preprocess files
+# thus, manually create the variables for the bin
+# files, or use arm-none-eabi binaries on the system
+# if dkP is not installed on tihs system
ifneq ($(TOOLCHAIN),)
-export CPP := $(PREFIX)cpp
-else
-export CPP := $(CC) -E
+export PATH := $(TOOLCHAIN)/bin:$(PATH)
endif
-export LD := $(PREFIX)ld
+
+PREFIX := arm-none-eabi-
+OBJCOPY := $(PREFIX)objcopy
+AS := $(PREFIX)as
+CPP := $(CC) -E
+LD := $(PREFIX)ld
+
+# note: the makefile must be set up so MODERNCC is never called
+# if MODERN=0
+MODERNCC := $(PREFIX)gcc
ifeq ($(OS),Windows_NT)
EXE := .exe
diff --git a/berry_fix/payload/Makefile b/berry_fix/payload/Makefile
index 20d3d60c8..7a6a92396 100644
--- a/berry_fix/payload/Makefile
+++ b/berry_fix/payload/Makefile
@@ -1,27 +1,26 @@
TOOLCHAIN := $(DEVKITARM)
COMPARE ?= 0
-# check if dkP's base_tools makefile exists
-ifneq (,$(wildcard $(TOOLCHAIN)/base_tools))
- include $(TOOLCHAIN)/base_tools
-# otherwise, either use the bin files or the
-# arm-none-eabi binaries on the system
-else
- ifneq ($(TOOLCHAIN),)
- export PATH := $(TOOLCHAIN)/bin:$(PATH)
- endif
- PREFIX := arm-none-eabi-
- OBJCOPY := $(PREFIX)objcopy
- export MODERNCC := $(PREFIX)gcc
- export AS := $(PREFIX)as
-endif
+# don't use dkP's base_tools anymore
+# because the redefinition of $(CC) conflicts
+# with when we want to use $(CC) to preprocess files
+# thus, manually create the variables for the bin
+# files, or use arm-none-eabi binaries on the system
+# if dkP is not installed on tihs system
ifneq ($(TOOLCHAIN),)
-export CPP := $(PREFIX)cpp
-else
-export CPP := $(CC) -E
+export PATH := $(TOOLCHAIN)/bin:$(PATH)
endif
-export LD := $(PREFIX)ld
+
+PREFIX := arm-none-eabi-
+OBJCOPY := $(PREFIX)objcopy
+AS := $(PREFIX)as
+CPP := $(CC) -E
+LD := $(PREFIX)ld
+
+# note: the makefile must be set up so MODERNCC is never called
+# if MODERN=0
+MODERNCC := $(PREFIX)gcc
ifeq ($(OS),Windows_NT)
EXE := .exe
diff --git a/libagbsyscall/Makefile b/libagbsyscall/Makefile
index 6c0ba681e..ba349e9eb 100644
--- a/libagbsyscall/Makefile
+++ b/libagbsyscall/Makefile
@@ -1,27 +1,27 @@
TOOLCHAIN := $(DEVKITARM)
COMPARE ?= 0
-# check if dkP's base_tools makefile exists
-ifneq (,$(wildcard $(TOOLCHAIN)/base_tools))
- include $(TOOLCHAIN)/base_tools
-# otherwise, either use the bin files or the
-# arm-none-eabi binaries on the system
-else
- ifneq ($(TOOLCHAIN),)
- export PATH := $(TOOLCHAIN)/bin:$(PATH)
- endif
- PREFIX := arm-none-eabi-
- OBJCOPY := $(PREFIX)objcopy
- export MODERNCC := $(PREFIX)gcc
- export AS := $(PREFIX)as
-endif
+# don't use dkP's base_tools anymore
+# because the redefinition of $(CC) conflicts
+# with when we want to use $(CC) to preprocess files
+# thus, manually create the variables for the bin
+# files, or use arm-none-eabi binaries on the system
+# if dkP is not installed on tihs system
ifneq ($(TOOLCHAIN),)
-export CPP := $(PREFIX)cpp
-else
-export CPP := $(CC) -E
+export PATH := $(TOOLCHAIN)/bin:$(PATH)
endif
-export LD := $(PREFIX)ld
+
+PREFIX := arm-none-eabi-
+OBJCOPY := $(PREFIX)objcopy
+AS := $(PREFIX)as
+CPP := $(CC) -E
+LD := $(PREFIX)ld
+
+# note: the makefile must be set up so MODERNCC is never called
+# if MODERN=0
+MODERNCC := $(PREFIX)gcc
+
ifeq ($(OS),Windows_NT)
EXE := .exe
else