#
# Generated By: dol2asm
#

M394_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Turara.plf
M394_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Turara.lcf
M394_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Turara.map

M394_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_Turara/d_a_obj_Turara.cpp \

M394_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_Turara/d_a_obj_Turara.o \

M394_LIBS := \

M394_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M394_TARGET): $(M394_O_FILES) $(M394_LIBS)
	@echo [394] creating $(M394_TARGET)
	@echo $(M394_LIBS) $(M394_O_FILES) > build/M394_ofiles
	@python3 tools/lcf.py rel 394 --output $(M394_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M394_LDFLAGS) -o $(M394_TARGET) @build/M394_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_Turara/%.o: rel/d/a/obj/d_a_obj_Turara/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Turara/%.d
	@echo [394] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M394_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
M394_D_FILES := $(M394_O_FILES:.o=.d)
$(M394_D_FILES):
include $(wildcard $(M394_D_FILES))
endif


