#
# Generated By: dol2asm
#

M199_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_hm.plf
M199_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_hm.lcf
M199_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_hm.map

M199_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_hm/d_a_e_hm.cpp \

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

M199_LIBS := \

M199_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M199_TARGET): $(M199_O_FILES) $(M199_LIBS)
	@echo [199] creating $(M199_TARGET)
	@echo $(M199_LIBS) $(M199_O_FILES) > build/M199_ofiles
	@python3 tools/lcf.py rel 199 --output $(M199_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M199_LDFLAGS) -o $(M199_TARGET) @build/M199_ofiles

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


