#
# Generated By: dol2asm
#

M476_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_heavySw.plf
M476_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_heavySw.lcf
M476_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_heavySw.map

M476_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_heavySw/d_a_obj_heavySw.cpp \

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

M476_LIBS := \

M476_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M476_TARGET): $(M476_O_FILES) $(M476_LIBS)
	@echo [476] creating $(M476_TARGET)
	@echo $(M476_LIBS) $(M476_O_FILES) > build/M476_ofiles
	@python3 tools/lcf.py rel 476 --output $(M476_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M476_LDFLAGS) -o $(M476_TARGET) @build/M476_ofiles

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


