#
# Generated By: dol2asm
#

M643_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swhang.plf
M643_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swhang.lcf
M643_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_swhang.map

M643_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_swhang/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_swhang/d_a_obj_swhang.cpp \

M643_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swhang/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_swhang/d_a_obj_swhang.o \

M643_LIBS := \

M643_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M643_TARGET): $(M643_O_FILES) $(M643_LIBS)
	@echo [643] creating $(M643_TARGET)
	@echo $(M643_LIBS) $(M643_O_FILES) > build/M643_ofiles
	@python3 tools/lcf.py rel 643 --output $(M643_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M643_LDFLAGS) -o $(M643_TARGET) @build/M643_ofiles

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


