#
# Generated By: dol2asm
#

M504_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kkanban.plf
M504_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kkanban.lcf
M504_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kkanban.map

M504_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_kkanban/d_a_obj_kkanban.cpp \

M504_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kkanban/d_a_obj_kkanban.o \

M504_LIBS := \

M504_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M504_TARGET): $(M504_O_FILES) $(M504_LIBS)
	@echo [504] creating $(M504_TARGET)
	@echo $(M504_LIBS) $(M504_O_FILES) > build/M504_ofiles
	@python3 tools/lcf.py rel 504 --output $(M504_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M504_LDFLAGS) -o $(M504_TARGET) @build/M504_ofiles

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


