#
# Generated By: dol2asm
#

M507_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kuwagata.plf
M507_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kuwagata.lcf
M507_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kuwagata.map

M507_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_kuwagata/d_a_obj_kuwagata.cpp \

M507_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kuwagata/d_a_obj_kuwagata.o \

M507_LIBS := \

M507_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M507_TARGET): $(M507_O_FILES) $(M507_LIBS)
	@echo [507] creating $(M507_TARGET)
	@echo $(M507_LIBS) $(M507_O_FILES) > build/M507_ofiles
	@python3 tools/lcf.py rel 507 --output $(M507_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M507_LDFLAGS) -o $(M507_TARGET) @build/M507_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kuwagata/%.o: rel/d/a/obj/d_a_obj_kuwagata/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kuwagata/%.d
	@echo [507] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M507_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
M507_D_FILES := $(M507_O_FILES:.o=.d)
$(M507_D_FILES):
include $(wildcard $(M507_D_FILES))
endif


