mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-29 03:34:07 +00:00
Change ?= to := for Makefile variables (#1599)
* Change ?= to := for most Makefile variables
* Remove empty ?= assignments
* Revert "Remove empty ?= assignments"
This reverts commit 3db472faea
.
This commit is contained in:
parent
21cb04db2c
commit
1f9c28f370
1 changed files with 8 additions and 8 deletions
16
Makefile
16
Makefile
|
@ -7,13 +7,13 @@ SHELL = /bin/bash
|
||||||
# Build options can either be changed by modifying the makefile, or by building with 'make SETTING=value'
|
# Build options can either be changed by modifying the makefile, or by building with 'make SETTING=value'
|
||||||
|
|
||||||
# If COMPARE is 1, check the output md5sum after building
|
# If COMPARE is 1, check the output md5sum after building
|
||||||
COMPARE ?= 1
|
COMPARE := 1
|
||||||
# If NON_MATCHING is 1, define the NON_MATCHING C flag when building
|
# If NON_MATCHING is 1, define the NON_MATCHING C flag when building
|
||||||
NON_MATCHING ?= 0
|
NON_MATCHING := 0
|
||||||
# If ORIG_COMPILER is 1, compile with QEMU_IRIX and the original compiler
|
# If ORIG_COMPILER is 1, compile with QEMU_IRIX and the original compiler
|
||||||
ORIG_COMPILER ?= 0
|
ORIG_COMPILER := 0
|
||||||
# If COMPILER is "gcc", compile with GCC instead of IDO.
|
# If COMPILER is "gcc", compile with GCC instead of IDO.
|
||||||
COMPILER ?= ido
|
COMPILER := ido
|
||||||
|
|
||||||
CFLAGS ?=
|
CFLAGS ?=
|
||||||
CPPFLAGS ?=
|
CPPFLAGS ?=
|
||||||
|
@ -33,7 +33,7 @@ endif
|
||||||
|
|
||||||
# Set prefix to mips binutils binaries (mips-linux-gnu-ld => 'mips-linux-gnu-') - Change at your own risk!
|
# Set prefix to mips binutils binaries (mips-linux-gnu-ld => 'mips-linux-gnu-') - Change at your own risk!
|
||||||
# In nearly all cases, not having 'mips-linux-gnu-*' binaries on the PATH is indicative of missing dependencies
|
# In nearly all cases, not having 'mips-linux-gnu-*' binaries on the PATH is indicative of missing dependencies
|
||||||
MIPS_BINUTILS_PREFIX ?= mips-linux-gnu-
|
MIPS_BINUTILS_PREFIX := mips-linux-gnu-
|
||||||
|
|
||||||
ifeq ($(NON_MATCHING),1)
|
ifeq ($(NON_MATCHING),1)
|
||||||
CFLAGS += -DNON_MATCHING -DAVOID_UB
|
CFLAGS += -DNON_MATCHING -DAVOID_UB
|
||||||
|
@ -60,7 +60,7 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
N_THREADS ?= $(shell nproc)
|
N_THREADS := $(shell nproc)
|
||||||
|
|
||||||
#### Tools ####
|
#### Tools ####
|
||||||
ifneq ($(shell type $(MIPS_BINUTILS_PREFIX)ld >/dev/null 2>/dev/null; echo $$?), 0)
|
ifneq ($(shell type $(MIPS_BINUTILS_PREFIX)ld >/dev/null 2>/dev/null; echo $$?), 0)
|
||||||
|
@ -95,8 +95,8 @@ AS := $(MIPS_BINUTILS_PREFIX)as
|
||||||
LD := $(MIPS_BINUTILS_PREFIX)ld
|
LD := $(MIPS_BINUTILS_PREFIX)ld
|
||||||
OBJCOPY := $(MIPS_BINUTILS_PREFIX)objcopy
|
OBJCOPY := $(MIPS_BINUTILS_PREFIX)objcopy
|
||||||
OBJDUMP := $(MIPS_BINUTILS_PREFIX)objdump
|
OBJDUMP := $(MIPS_BINUTILS_PREFIX)objdump
|
||||||
EMULATOR ?=
|
EMULATOR :=
|
||||||
EMU_FLAGS ?=
|
EMU_FLAGS :=
|
||||||
|
|
||||||
INC := -Iinclude -Iinclude/libc -Isrc -Ibuild -I.
|
INC := -Iinclude -Iinclude/libc -Isrc -Ibuild -I.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue