#
# Generated By: dol2asm
#

M590_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdtile.plf
M590_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdtile.lcf
M590_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdtile.map

M590_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_pdtile/d_a_obj_pdtile.cpp \

M590_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_pdtile/d_a_obj_pdtile.o \

M590_LIBS := \

M590_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M590_TARGET): $(M590_O_FILES) $(M590_LIBS)
	@echo [590] creating $(M590_TARGET)
	@echo $(M590_LIBS) $(M590_O_FILES) > build/M590_ofiles
	@python3 tools/lcf.py rel 590 --output $(M590_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M590_LDFLAGS) -o $(M590_TARGET) @build/M590_ofiles

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


