From b4eb3edb5f60f89af533b3194e353bf72d543f97 Mon Sep 17 00:00:00 2001 From: tehzz Date: Thu, 29 Dec 2022 13:23:34 -0500 Subject: [PATCH] add asm processor for manual c files --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 8d59a79..bfe7539 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,8 @@ endif CC = tools/ido_recomp/$(HOST_OS)/7.1/cc CC_OLD = tools/ido_recomp/$(HOST_OS)/5.3/cc +ASMPROC = python3 tools/asmproc/build.py +ASMPROC_FLAGS := MIPS_VERSION := -mips2 @@ -214,6 +216,10 @@ CFLAGS = -G 0 -non_shared -Xfullwarn -Xcpluscomm -Iinclude -Iinclude/PR -Iinclu LDFLAGS = -T undefined_syms.txt -T undefined_syms_auto.txt -T undefined_funcs_auto.txt -T $(BUILD_DIR)/$(LD_SCRIPT) -Map $(BUILD_DIR)/$(TARGET).map --no-check-sections + +# run ASM-processor on non-libultra source files +build/src/%.c.o: CC := $(ASMPROC) $(ASMPROC_FLAGS) $(CC) -- $(AS) $(ASFLAGS) -- + ######################## Build ############################# default: all