#
# Generated By: dol2asm
#

M544_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6ChangeGate.plf
M544_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6ChangeGate.lcf
M544_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6ChangeGate.map

M544_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_lv6ChangeGate/d_a_obj_lv6ChangeGate.cpp \

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

M544_LIBS := \

M544_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M544_TARGET): $(M544_O_FILES) $(M544_LIBS)
	@echo [544] creating $(M544_TARGET)
	@echo $(M544_LIBS) $(M544_O_FILES) > build/M544_ofiles
	@python3 tools/lcf.py rel 544 --output $(M544_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M544_LDFLAGS) -o $(M544_TARGET) @build/M544_ofiles

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


