#
# Generated By: dol2asm
#

M238_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_tk.plf
M238_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_tk.lcf
M238_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_tk.map

M238_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_tk/d_a_e_tk.cpp \

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

M238_LIBS := \

M238_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M238_TARGET): $(M238_O_FILES) $(M238_LIBS)
	@echo [238] creating $(M238_TARGET)
	@echo $(M238_LIBS) $(M238_O_FILES) > build/M238_ofiles
	@python3 tools/lcf.py rel 238 --output $(M238_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M238_LDFLAGS) -o $(M238_TARGET) @build/M238_ofiles

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


