#
# Generated By: dol2asm
#

M492_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kaisou.plf
M492_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kaisou.lcf
M492_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kaisou.map

M492_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_kaisou/d_a_obj_kaisou.cpp \

M492_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kaisou/d_a_obj_kaisou.o \

M492_LIBS := \

M492_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M492_TARGET): $(M492_O_FILES) $(M492_LIBS)
	@echo [492] creating $(M492_TARGET)
	@echo $(M492_LIBS) $(M492_O_FILES) > build/M492_ofiles
	@python3 tools/lcf.py rel 492 --output $(M492_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M492_LDFLAGS) -o $(M492_TARGET) @build/M492_ofiles

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


