#
# Generated By: dol2asm
#

M595_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_poCandle.plf
M595_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_poCandle.lcf
M595_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_poCandle.map

M595_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_poCandle/d_a_obj_poCandle.cpp \

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

M595_LIBS := \

M595_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M595_TARGET): $(M595_O_FILES) $(M595_LIBS)
	@echo [595] creating $(M595_TARGET)
	@echo $(M595_LIBS) $(M595_O_FILES) > build/M595_ofiles
	@python3 tools/lcf.py rel 595 --output $(M595_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M595_LDFLAGS) -o $(M595_TARGET) @build/M595_ofiles

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


