#
# Generated By: dol2asm
#

M201_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_hz.plf
M201_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_hz.lcf
M201_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_hz.map

M201_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_hz/d_a_e_hz.cpp \

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

M201_LIBS := \

M201_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M201_TARGET): $(M201_O_FILES) $(M201_LIBS)
	@echo [201] creating $(M201_TARGET)
	@echo $(M201_LIBS) $(M201_O_FILES) > build/M201_ofiles
	@python3 tools/lcf.py rel 201 --output $(M201_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M201_LDFLAGS) -o $(M201_TARGET) @build/M201_ofiles

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


