#
# Generated By: dol2asm
#

M44_TARGET := $(BUILD_DIR)/rel/d/a/d_a_vrbox2.plf
M44_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_vrbox2.lcf
M44_MAP := $(BUILD_DIR)/rel/d/a/d_a_vrbox2.map

M44_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_vrbox2/d_a_vrbox2.cpp \

M44_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_vrbox2/d_a_vrbox2.o \

M44_LIBS := \

M44_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M44_TARGET): $(M44_O_FILES) $(M44_LIBS)
	@echo [ 44] creating $(M44_TARGET)
	@echo $(M44_LIBS) $(M44_O_FILES) > build/M44_ofiles
	@python3 tools/lcf.py rel 44 --output $(M44_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M44_LDFLAGS) -o $(M44_TARGET) @build/M44_ofiles

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


