#
# Generated By: dol2asm
#

M200_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_hp.plf
M200_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_hp.lcf
M200_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_hp.map

M200_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_hp/d_a_e_hp.cpp \

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

M200_LIBS := \

M200_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M200_TARGET): $(M200_O_FILES) $(M200_LIBS)
	@echo [200] creating $(M200_TARGET)
	@echo $(M200_LIBS) $(M200_O_FILES) > build/M200_ofiles
	@python3 tools/lcf.py rel 200 --output $(M200_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M200_LDFLAGS) -o $(M200_TARGET) @build/M200_ofiles

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


