#
# Generated By: dol2asm
#

M242_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_vt.plf
M242_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_vt.lcf
M242_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_vt.map

M242_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_vt/d_a_e_vt.cpp \

M242_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_vt/d_a_e_vt.o \

M242_LIBS := \

M242_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M242_TARGET): $(M242_O_FILES) $(M242_LIBS)
	@echo [242] creating $(M242_TARGET)
	@echo $(M242_LIBS) $(M242_O_FILES) > build/M242_ofiles
	@python3 tools/lcf.py rel 242 --output $(M242_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M242_LDFLAGS) -o $(M242_TARGET) @build/M242_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_vt/%.o: rel/d/a/e/d_a_e_vt/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_vt/%.d
	@echo [242] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M242_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
M242_D_FILES := $(M242_O_FILES:.o=.d)
$(M242_D_FILES):
include $(wildcard $(M242_D_FILES))
endif


