#
# Generated By: dol2asm
#

M503_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kjgjs.plf
M503_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kjgjs.lcf
M503_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kjgjs.map

M503_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_kjgjs/d_a_obj_kjgjs.cpp \

M503_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kjgjs/d_a_obj_kjgjs.o \

M503_LIBS := \

M503_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M503_TARGET): $(M503_O_FILES) $(M503_LIBS)
	@echo [503] creating $(M503_TARGET)
	@echo $(M503_LIBS) $(M503_O_FILES) > build/M503_ofiles
	@python3 tools/lcf.py rel 503 --output $(M503_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M503_LDFLAGS) -o $(M503_TARGET) @build/M503_ofiles

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


