#
# Generated By: dol2asm
#

M546_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Lblock.plf
M546_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Lblock.lcf
M546_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Lblock.map

M546_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_lv6Lblock/d_a_obj_lv6Lblock.cpp \

M546_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6Lblock/d_a_obj_lv6Lblock.o \

M546_LIBS := \

M546_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M546_TARGET): $(M546_O_FILES) $(M546_LIBS)
	@echo [546] creating $(M546_TARGET)
	@echo $(M546_LIBS) $(M546_O_FILES) > build/M546_ofiles
	@python3 tools/lcf.py rel 546 --output $(M546_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M546_LDFLAGS) -o $(M546_TARGET) @build/M546_ofiles

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


