You've already forked ultrasm64-2
mirror of
https://github.com/HackerN64/ultrasm64-2.git
synced 2026-01-21 10:38:08 -08:00
Hackerchain requirement
This commit is contained in:
18
Makefile
18
Makefile
@@ -301,15 +301,11 @@ endif
|
||||
EGCS_PATH := $(TOOLS_DIR)/egcs
|
||||
LD_PATH := $(TOOLS_DIR)/ld
|
||||
|
||||
# detect prefix for MIPS toolchain
|
||||
ifneq ($(call find-command,mips-linux-gnu-ld),)
|
||||
CROSS := mips-linux-gnu-
|
||||
else ifneq ($(call find-command,mips64-linux-gnu-ld),)
|
||||
CROSS := mips64-linux-gnu-
|
||||
else ifneq ($(call find-command,mips64-elf-ld),)
|
||||
CROSS := mips64-elf-
|
||||
# detect hackerchain
|
||||
ifneq ($(call find-command, $(HACKERCHAIN)/mips64-elf-ld),)
|
||||
CROSS := $(HACKERCHAIN)/mips64-elf-
|
||||
else
|
||||
$(error Unable to detect a suitable MIPS toolchain installed)
|
||||
$(error Unable to detect a hackerchain toolchain installation.)
|
||||
endif
|
||||
|
||||
AS := $(CROSS)as
|
||||
@@ -328,11 +324,7 @@ else
|
||||
COPT := $(IDO_ROOT)/copt
|
||||
endif
|
||||
endif
|
||||
ifeq ($(COMPILER),gcc)
|
||||
LD := LD_LIBRARY_PATH=$(LD_PATH) $(LD_PATH)/mips64-elf-ld
|
||||
else
|
||||
LD := LD_LIBRARY_PATH=$(LD_PATH) $(LD_PATH)/mips64-elf-ld
|
||||
endif
|
||||
LD := $(CROSS)ld
|
||||
AR := $(CROSS)ar
|
||||
OBJDUMP := $(CROSS)objdump
|
||||
OBJCOPY := $(CROSS)objcopy
|
||||
|
||||
@@ -12,26 +12,11 @@ V=@
|
||||
else
|
||||
V=
|
||||
endif
|
||||
|
||||
# detect prefix for MIPS toolchain
|
||||
ifneq ($(call find-command,mips64-elf-ld),)
|
||||
CROSS := mips64-elf-
|
||||
else ifneq ($(call find-command,mips-n64-ld),)
|
||||
CROSS := mips-n64-
|
||||
else ifneq ($(call find-command,mips64-ld),)
|
||||
CROSS := mips64-
|
||||
else ifneq ($(call find-command,mips-linux-gnu-ld),)
|
||||
CROSS := mips-linux-gnu-
|
||||
else ifneq ($(call find-command,mips64-linux-gnu-ld),)
|
||||
CROSS := mips64-linux-gnu-
|
||||
else ifneq ($(call find-command,mips64-none-elf-ld),)
|
||||
CROSS := mips64-none-elf-
|
||||
else ifneq ($(call find-command,mips-ld),)
|
||||
CROSS := mips-
|
||||
else ifneq ($(call find-command,mips-suse-linux-ld ),)
|
||||
CROSS := mips-suse-linux-
|
||||
# detect hackerchain
|
||||
ifneq ($(call find-command, $(HACKERCHAIN)/mips64-elf-ld),)
|
||||
CROSS := $(HACKERCHAIN)/mips64-elf-
|
||||
else
|
||||
$(error Unable to detect a suitable MIPS toolchain installed)
|
||||
$(error Unable to detect a hackerchain toolchain installation.)
|
||||
endif
|
||||
|
||||
BUILD_ROOT := build
|
||||
|
||||
Reference in New Issue
Block a user