#
# Generated By: dol2asm
#

M107_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mgate.plf
M107_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mgate.lcf
M107_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mgate.map

M107_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_mgate/d_a_obj_mgate.cpp \

M107_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mgate/d_a_obj_mgate.o \

M107_LIBS := \

M107_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

M107_LDFLAGS := \
	-nodefaults \
	-fp hard \
	-proc gekko \
	-linkmode moreram \
	-sdata 0 \
	-sdata2 0 \
	-m _prolog \
	-lcf $(M107_LDSCRIPT) \
	-unused -map $(M107_MAP) \
	-w off \

$(M107_TARGET): $(M107_O_FILES) $(M107_LIBS)
	@echo [107] creating $(M107_TARGET)
	@echo $(M107_LIBS) $(M107_O_FILES) > build/M107_ofiles
	@python3 tools/lcf.py rel 107 --output $(M107_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M107_LDFLAGS) -o $(M107_TARGET) @build/M107_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_mgate/%.o: rel/d/a/obj/d_a_obj_mgate/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_mgate/%.d
	@echo [107] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M107_CFLAGS) $(DEPFLAGS) -c -o $(dir $@) $(basename $@).cpp
	@if [ -z '$(DISABLE_DEPS)' ]; then tools/transform-dep.py '$(basename $@).d' '$(basename $@).d'; touch -c $@; fi

ifndef DISABLE_DEPS
M107_D_FILES := $(M107_O_FILES:.o=.d)
$(M107_D_FILES):
include $(wildcard $(M107_D_FILES))
endif


