#
# Generated By: dol2asm
#

M642_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swchain.plf
M642_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swchain.lcf
M642_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swchain.map

M642_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_swchain/d_a_obj_swchain.cpp \

M642_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swchain/d_a_obj_swchain.o \

M642_LIBS := \

M642_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M642_TARGET): $(M642_O_FILES) $(M642_LIBS)
	@echo [642] creating $(M642_TARGET)
	@echo $(M642_LIBS) $(M642_O_FILES) > build/M642_ofiles
	@python3 tools/lcf.py rel 642 --output $(M642_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M642_LDFLAGS) -o $(M642_TARGET) @build/M642_ofiles

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


