#
# Generated By: dol2asm
#

M241_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_tt.plf
M241_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_tt.lcf
M241_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_tt.map

M241_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_tt/d_a_e_tt.cpp \

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

M241_LIBS := \

M241_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M241_TARGET): $(M241_O_FILES) $(M241_LIBS)
	@echo [241] creating $(M241_TARGET)
	@echo $(M241_LIBS) $(M241_O_FILES) > build/M241_ofiles
	@python3 tools/lcf.py rel 241 --output $(M241_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M241_LDFLAGS) -o $(M241_TARGET) @build/M241_ofiles

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


