summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMor <mordbz@gmail.com>2020-04-18 17:32:11 +0300
committerMor <mordbz@gmail.com>2020-04-18 17:32:11 +0300
commit239b0b1d4343f987936019c76abb2bc7ff815fee (patch)
tree1dec14de8aa18440e7ad3f5d48742078e067331e /Makefile
parentd458432e79744c8671b1e3ae31decad9366360cf (diff)
rudimentary matching decompilation of NitroMain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fac3e52f..cd4882a9 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,8 @@ OBJCOPY := $(CROSS)objcopy
# ./tools/mwccarm/2.0/base/mwasmarm.exe -proc arm5te asm/arm9_thumb.s -o arm9.o
ASFLAGS = -proc arm5te
-CFLAGS = -O4,p -proc v5te -thumb -fp soft -lang c -Cpp_exceptions off -interworking
+CFLAGS = -O4,p -proc v5te -thumb -fp soft -lang c -Cpp_exceptions off
+LDFLAGS = -nodead -w off -proc v5te -interworking
####################### Other Tools #########################
@@ -78,7 +79,7 @@ $(BUILD_DIR)/$(LD_SCRIPT): $(LD_SCRIPT)
$(CPP) $(VERSION_CFLAGS) -MMD -MP -MT $@ -MF $@.d -I include/ -I . -DBUILD_DIR=$(BUILD_DIR) -o $@ $<
$(ELF): $(O_FILES) $(BUILD_DIR)/$(LD_SCRIPT)
- $(LD) $(BUILD_DIR)/$(LD_SCRIPT) -o $(ELF) $(O_FILES) -nodead -w off
+ $(LD) $(BUILD_DIR)/$(LD_SCRIPT) -o $(ELF) $(O_FILES) $(LDFLAGS)
$(ROM): $(ELF)
$(OBJCOPY) -O binary $< $@