#
# Generated By: dol2asm
#

M737_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_rmbit_sw.plf
M737_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_rmbit_sw.lcf
M737_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_rmbit_sw.map

M737_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_rmbit_sw/d_a_tag_rmbit_sw.cpp \

M737_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_rmbit_sw/d_a_tag_rmbit_sw.o \

M737_LIBS := \

M737_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M737_TARGET): $(M737_O_FILES) $(M737_LIBS)
	@echo [737] creating $(M737_TARGET)
	@echo $(M737_LIBS) $(M737_O_FILES) > build/M737_ofiles
	@python3 tools/lcf.py rel 737 --output $(M737_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M737_LDFLAGS) -o $(M737_TARGET) @build/M737_ofiles

$(BUILD_DIR)/rel/d/a/tag/d_a_tag_rmbit_sw/%.o: rel/d/a/tag/d_a_tag_rmbit_sw/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_rmbit_sw/%.d
	@echo [737] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M737_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
M737_D_FILES := $(M737_O_FILES:.o=.d)
$(M737_D_FILES):
include $(wildcard $(M737_D_FILES))
endif


