#
# Generated By: dol2asm
#

M523_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4CandleDemoTag.plf
M523_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4CandleDemoTag.lcf
M523_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4CandleDemoTag.map

M523_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_lv4CandleDemoTag/d_a_obj_lv4CandleDemoTag.cpp \

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

M523_LIBS := \

M523_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M523_TARGET): $(M523_O_FILES) $(M523_LIBS)
	@echo [523] creating $(M523_TARGET)
	@echo $(M523_LIBS) $(M523_O_FILES) > build/M523_ofiles
	@python3 tools/lcf.py rel 523 --output $(M523_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M523_LDFLAGS) -o $(M523_TARGET) @build/M523_ofiles

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


