#
# Generated By: dol2asm
#

M43_TARGET := $(BUILD_DIR)/rel/d/a/d_a_vrbox.plf
M43_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_vrbox.lcf
M43_MAP := $(BUILD_DIR)/rel/d/a/d_a_vrbox.map

M43_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_vrbox/d_a_vrbox.cpp \

M43_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_vrbox/d_a_vrbox.o \

M43_LIBS := \

M43_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M43_TARGET): $(M43_O_FILES) $(M43_LIBS)
	@echo [ 43] creating $(M43_TARGET)
	@echo $(M43_LIBS) $(M43_O_FILES) > build/M43_ofiles
	@python3 tools/lcf.py rel 43 --output $(M43_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M43_LDFLAGS) -o $(M43_TARGET) @build/M43_ofiles

$(BUILD_DIR)/rel/d/a/d_a_vrbox/%.o: rel/d/a/d_a_vrbox/%.cpp $(BUILD_DIR)/rel/d/a/d_a_vrbox/%.d
	@echo [ 43] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M43_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
M43_D_FILES := $(M43_O_FILES:.o=.d)
$(M43_D_FILES):
include $(wildcard $(M43_D_FILES))
endif


