Add support for dkp-less instructions.

Todo: actually test building with dkP.
This commit is contained in:
luckytyphlosion
2020-11-25 09:20:45 -05:00
parent 70b6e05a47
commit 1536295872
5 changed files with 99 additions and 91 deletions
+16 -18
View File
@@ -1,28 +1,26 @@
TOOLCHAIN := $(DEVKITARM)
COMPARE ?= 0
ifeq ($(CC),)
HOSTCC := gcc
else
HOSTCC := $(CC)
endif
ifeq ($(CXX),)
HOSTCXX := g++
else
HOSTCXX := $(CXX)
endif
# check if dkP's base_tools makefile exists
ifneq (,$(wildcard $(TOOLCHAIN)/base_tools))
include $(TOOLCHAIN)/base_tools
include $(TOOLCHAIN)/base_tools
# otherwise, either use the bin files or the
# arm-none-eabi binaries on the system
else
export PATH := $(TOOLCHAIN)/bin:$(PATH)
PREFIX := arm-none-eabi-
OBJCOPY := $(PREFIX)objcopy
export CC := $(PREFIX)gcc
export AS := $(PREFIX)as
ifneq ($(TOOLCHAIN),)
export PATH := $(TOOLCHAIN)/bin:$(PATH)
endif
PREFIX := arm-none-eabi-
OBJCOPY := $(PREFIX)objcopy
export MODERNCC := $(PREFIX)gcc
export AS := $(PREFIX)as
endif
ifneq ($(TOOLCHAIN),)
export CPP := $(PREFIX)cpp
else
export CPP := $(CC) -E
endif
export LD := $(PREFIX)ld
ifeq ($(OS),Windows_NT)
+16 -18
View File
@@ -1,28 +1,26 @@
TOOLCHAIN := $(DEVKITARM)
COMPARE ?= 0
ifeq ($(CC),)
HOSTCC := gcc
else
HOSTCC := $(CC)
endif
ifeq ($(CXX),)
HOSTCXX := g++
else
HOSTCXX := $(CXX)
endif
# check if dkP's base_tools makefile exists
ifneq (,$(wildcard $(TOOLCHAIN)/base_tools))
include $(TOOLCHAIN)/base_tools
include $(TOOLCHAIN)/base_tools
# otherwise, either use the bin files or the
# arm-none-eabi binaries on the system
else
export PATH := $(TOOLCHAIN)/bin:$(PATH)
PREFIX := arm-none-eabi-
OBJCOPY := $(PREFIX)objcopy
export CC := $(PREFIX)gcc
export AS := $(PREFIX)as
ifneq ($(TOOLCHAIN),)
export PATH := $(TOOLCHAIN)/bin:$(PATH)
endif
PREFIX := arm-none-eabi-
OBJCOPY := $(PREFIX)objcopy
export MODERNCC := $(PREFIX)gcc
export AS := $(PREFIX)as
endif
ifneq ($(TOOLCHAIN),)
export CPP := $(PREFIX)cpp
else
export CPP := $(CC) -E
endif
export LD := $(PREFIX)ld
ifeq ($(OS),Windows_NT)