#
# Generated By: dol2asm
#

M396_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Y_taihou.plf
M396_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Y_taihou.lcf
M396_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_Y_taihou.map

M396_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_Y_taihou/d_a_obj_Y_taihou.cpp \

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

M396_LIBS := \

M396_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M396_TARGET): $(M396_O_FILES) $(M396_LIBS)
	@echo [396] creating $(M396_TARGET)
	@echo $(M396_LIBS) $(M396_O_FILES) > build/M396_ofiles
	@python3 tools/lcf.py rel 396 --output $(M396_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M396_LDFLAGS) -o $(M396_TARGET) @build/M396_ofiles

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


