#
# Generated By: dol2asm
#

M606_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rotTrap.plf
M606_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rotTrap.lcf
M606_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_rotTrap.map

M606_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_rotTrap/d_a_obj_rotTrap.cpp \

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

M606_LIBS := \

M606_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M606_TARGET): $(M606_O_FILES) $(M606_LIBS)
	@echo [606] creating $(M606_TARGET)
	@echo $(M606_LIBS) $(M606_O_FILES) > build/M606_ofiles
	@python3 tools/lcf.py rel 606 --output $(M606_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M606_LDFLAGS) -o $(M606_TARGET) @build/M606_ofiles

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


