#
# Generated By: dol2asm
#

M204_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_kg.plf
M204_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_kg.lcf
M204_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_kg.map

M204_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_kg/d_a_e_kg.cpp \

M204_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_kg/d_a_e_kg.o \

M204_LIBS := \

M204_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M204_TARGET): $(M204_O_FILES) $(M204_LIBS)
	@echo [204] creating $(M204_TARGET)
	@echo $(M204_LIBS) $(M204_O_FILES) > build/M204_ofiles
	@python3 tools/lcf.py rel 204 --output $(M204_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M204_LDFLAGS) -o $(M204_TARGET) @build/M204_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_kg/%.o: rel/d/a/e/d_a_e_kg/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_kg/%.d
	@echo [204] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M204_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
M204_D_FILES := $(M204_O_FILES:.o=.d)
$(M204_D_FILES):
include $(wildcard $(M204_D_FILES))
endif


