#
# Generated By: dol2asm
#

M598_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_prop.plf
M598_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_prop.lcf
M598_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_prop.map

M598_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_prop/d_a_obj_prop.cpp \

M598_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_prop/d_a_obj_prop.o \

M598_LIBS := \

M598_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M598_TARGET): $(M598_O_FILES) $(M598_LIBS)
	@echo [598] creating $(M598_TARGET)
	@echo $(M598_LIBS) $(M598_O_FILES) > build/M598_ofiles
	@python3 tools/lcf.py rel 598 --output $(M598_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M598_LDFLAGS) -o $(M598_TARGET) @build/M598_ofiles

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


