#
# Generated By: dol2asm
#

M536_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prelvtr.plf
M536_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prelvtr.lcf
M536_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prelvtr.map

M536_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lv4prelvtr/d_a_obj_lv4prelvtr.cpp \

M536_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv4prelvtr/d_a_obj_lv4prelvtr.o \

M536_LIBS := \

M536_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M536_TARGET): $(M536_O_FILES) $(M536_LIBS)
	@echo [536] creating $(M536_TARGET)
	@echo $(M536_LIBS) $(M536_O_FILES) > build/M536_ofiles
	@python3 tools/lcf.py rel 536 --output $(M536_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M536_LDFLAGS) -o $(M536_TARGET) @build/M536_ofiles

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


