#
# Generated By: dol2asm
#

M545_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6FurikoTrap.plf
M545_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6FurikoTrap.lcf
M545_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6FurikoTrap.map

M545_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_lv6FurikoTrap/d_a_obj_lv6FurikoTrap.cpp \

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

M545_LIBS := \

M545_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M545_TARGET): $(M545_O_FILES) $(M545_LIBS)
	@echo [545] creating $(M545_TARGET)
	@echo $(M545_LIBS) $(M545_O_FILES) > build/M545_ofiles
	@python3 tools/lcf.py rel 545 --output $(M545_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M545_LDFLAGS) -o $(M545_TARGET) @build/M545_ofiles

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


