#
# Generated By: dol2asm
#

M461_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_goGate.plf
M461_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_goGate.lcf
M461_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_goGate.map

M461_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_goGate/d_a_obj_goGate.cpp \

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

M461_LIBS := \

M461_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M461_TARGET): $(M461_O_FILES) $(M461_LIBS)
	@echo [461] creating $(M461_TARGET)
	@echo $(M461_LIBS) $(M461_O_FILES) > build/M461_ofiles
	@python3 tools/lcf.py rel 461 --output $(M461_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M461_LDFLAGS) -o $(M461_TARGET) @build/M461_ofiles

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


