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