From 5c7f3b06b3c04b461c93f8bc03fd7981b041bbd6 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 30 Jan 2023 11:22:41 -0400 Subject: Makefile: Add `TEST_LD` env var for testing out linking --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3-13-gbd6f