#
# Generated By: dol2asm
#

M517_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Candle.plf
M517_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Candle.lcf
M517_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv3Candle.map

M517_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_lv3Candle/d_a_obj_lv3Candle.cpp \

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

M517_LIBS := \

M517_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M517_TARGET): $(M517_O_FILES) $(M517_LIBS)
	@echo [517] creating $(M517_TARGET)
	@echo $(M517_LIBS) $(M517_O_FILES) > build/M517_ofiles
	@python3 tools/lcf.py rel 517 --output $(M517_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M517_LDFLAGS) -o $(M517_TARGET) @build/M517_ofiles

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


