summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-01-30 11:22:41 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-01-30 11:22:41 -0400
commit5c7f3b06b3c04b461c93f8bc03fd7981b041bbd6 (patch)
treebf6737c8067fa3805767ee66525d5714235ca9e6 /Makefile
parent9943fe31f61f4f632064cbc3c4fce9bd7bfe21ae (diff)
Makefile: Add `TEST_LD` env var for testing out linking
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9278985..c5019b6 100644
--- a/Makefile
+++ b/Makefile
@@ -25,12 +25,17 @@ LD := $(WINE) tools/mwcc_compiler/$(MWCC_VERSION)/mwldeppc.exe
INCLUDES := -i include/
ASM_INCLUDES := -I include/
+ifdef LD_TEST
+TEST_LD := -DLD_TEST
+else
+TEST_LD :=
+endif
LDFLAGS := -fp hard -nodefaults
ASFLAGS := -mgekko $(ASM_INCLUDES)
-CFLAGS := -nodefaults -proc gekko -fp hard -O4 -use_lmw_stmw on -str reuse -RTTI off -rostr -sdata2 4 $(INCLUDES)
+CFLAGS := -nodefaults -proc gekko -fp hard -O4 -use_lmw_stmw on -str reuse -RTTI off -rostr -sdata2 4 -g $(INCLUDES) $(TEST_LD)
include obj_files.mk