mirror of
https://github.com/pret/pokestadium.git
synced 2026-08-28 05:44:22 -05:00
30
Makefile
30
Makefile
@@ -7,6 +7,15 @@ ifeq ($(wildcard $(BASEROM)),)
|
||||
$(error Baserom `$(BASEROM)' not found.)
|
||||
endif
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
HOST_OS := linux
|
||||
else ifeq ($(UNAME_S),Darwin)
|
||||
HOST_OS := macos
|
||||
else
|
||||
$(error Unsupported buiding OS <$(UNAME_S)>)
|
||||
endif
|
||||
|
||||
BUILD_DIR := build
|
||||
ROM := $(TARGET).z64
|
||||
ELF := $(BUILD_DIR)/$(TARGET).elf
|
||||
@@ -29,18 +38,31 @@ SPLAT_YAML := splat.yaml
|
||||
SPLAT = $(PYTHON) tools/n64splat/split.py $(SPLAT_YAML)
|
||||
|
||||
##################### Compiler Options #######################
|
||||
CROSS = mips-linux-gnu-
|
||||
findcmd = $(shell type $(1) >/dev/null 2>/dev/null; echo $$?)
|
||||
|
||||
ifeq ($(call findcmd,mips-linux-gnu-ld),0)
|
||||
CROSS := mips-linux-gnu-
|
||||
else ifeq ($(call findcmd,mips64-elf-ld),0)
|
||||
CROSS := mips64-elf-
|
||||
else
|
||||
$(error Missing cross compilation toolchain)
|
||||
endif
|
||||
|
||||
AS = $(CROSS)as
|
||||
LD = $(CROSS)ld
|
||||
OBJDUMP = $(CROSS)objdump
|
||||
OBJCOPY = $(CROSS)objcopy
|
||||
CPP := cpp
|
||||
ifeq ($(HOST_OS),macos)
|
||||
CPP := clang -E -P -x c
|
||||
else
|
||||
CPP := cpp
|
||||
endif
|
||||
|
||||
#CC := $(QEMU_IRIX) -L tools/ido7.1_compiler tools/ido7.1_compiler/usr/bin/cc
|
||||
#CC_OLD := $(QEMU_IRIX) -L tools/ido5.3_compiler tools/ido5.3_compiler/usr/bin/cc
|
||||
|
||||
CC = tools/ido_recomp/linux/7.1/cc
|
||||
CC_OLD = tools/ido_recomp/linux/5.3/cc
|
||||
CC = tools/ido_recomp/$(HOST_OS)/7.1/cc
|
||||
CC_OLD = tools/ido_recomp/$(HOST_OS)/5.3/cc
|
||||
|
||||
MIPS_VERSION := -mips2
|
||||
|
||||
|
||||
BIN
tools/ido_recomp/macos/5.3/acpp
Executable file
BIN
tools/ido_recomp/macos/5.3/acpp
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/as0
Executable file
BIN
tools/ido_recomp/macos/5.3/as0
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/as1
Executable file
BIN
tools/ido_recomp/macos/5.3/as1
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/cc
Executable file
BIN
tools/ido_recomp/macos/5.3/cc
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/cfe
Executable file
BIN
tools/ido_recomp/macos/5.3/cfe
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/copt
Executable file
BIN
tools/ido_recomp/macos/5.3/copt
Executable file
Binary file not shown.
1260
tools/ido_recomp/macos/5.3/err.english.cc
Executable file
1260
tools/ido_recomp/macos/5.3/err.english.cc
Executable file
File diff suppressed because it is too large
Load Diff
BIN
tools/ido_recomp/macos/5.3/ld
Executable file
BIN
tools/ido_recomp/macos/5.3/ld
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/strip
Executable file
BIN
tools/ido_recomp/macos/5.3/strip
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/ugen
Executable file
BIN
tools/ido_recomp/macos/5.3/ugen
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/ujoin
Executable file
BIN
tools/ido_recomp/macos/5.3/ujoin
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/uld
Executable file
BIN
tools/ido_recomp/macos/5.3/uld
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/umerge
Executable file
BIN
tools/ido_recomp/macos/5.3/umerge
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/uopt
Executable file
BIN
tools/ido_recomp/macos/5.3/uopt
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/5.3/usplit
Executable file
BIN
tools/ido_recomp/macos/5.3/usplit
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/acpp
Executable file
BIN
tools/ido_recomp/macos/7.1/acpp
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/as0
Executable file
BIN
tools/ido_recomp/macos/7.1/as0
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/as1
Executable file
BIN
tools/ido_recomp/macos/7.1/as1
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/cc
Executable file
BIN
tools/ido_recomp/macos/7.1/cc
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/cfe
Executable file
BIN
tools/ido_recomp/macos/7.1/cfe
Executable file
Binary file not shown.
1260
tools/ido_recomp/macos/7.1/err.english.cc
Executable file
1260
tools/ido_recomp/macos/7.1/err.english.cc
Executable file
File diff suppressed because it is too large
Load Diff
BIN
tools/ido_recomp/macos/7.1/ugen
Executable file
BIN
tools/ido_recomp/macos/7.1/ugen
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/ujoin
Executable file
BIN
tools/ido_recomp/macos/7.1/ujoin
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/uld
Executable file
BIN
tools/ido_recomp/macos/7.1/uld
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/umerge
Executable file
BIN
tools/ido_recomp/macos/7.1/umerge
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/uopt
Executable file
BIN
tools/ido_recomp/macos/7.1/uopt
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/upas
Executable file
BIN
tools/ido_recomp/macos/7.1/upas
Executable file
Binary file not shown.
BIN
tools/ido_recomp/macos/7.1/usplit
Executable file
BIN
tools/ido_recomp/macos/7.1/usplit
Executable file
Binary file not shown.
Reference in New Issue
Block a user