#
# Generated By: dol2asm
#

M458_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_geyser.plf
M458_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_geyser.lcf
M458_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_geyser.map

M458_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_geyser/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_geyser/d_a_obj_geyser.cpp \

M458_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_geyser/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_geyser/d_a_obj_geyser.o \

M458_LIBS := \

M458_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M458_TARGET): $(M458_O_FILES) $(M458_LIBS)
	@echo [458] creating $(M458_TARGET)
	@echo $(M458_LIBS) $(M458_O_FILES) > build/M458_ofiles
	@python3 tools/lcf.py rel 458 --output $(M458_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M458_LDFLAGS) -o $(M458_TARGET) @build/M458_ofiles

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


