#
# Generated By: dol2asm
#

M145_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_gnd.plf
M145_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_gnd.lcf
M145_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_gnd.map

M145_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_gnd/d_a_b_gnd.cpp \

M145_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/b/d_a_b_gnd/d_a_b_gnd.o \

M145_LIBS := \

M145_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M145_TARGET): $(M145_O_FILES) $(M145_LIBS)
	@echo [145] creating $(M145_TARGET)
	@echo $(M145_LIBS) $(M145_O_FILES) > build/M145_ofiles
	@python3 tools/lcf.py rel 145 --output $(M145_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M145_LDFLAGS) -o $(M145_TARGET) @build/M145_ofiles

$(BUILD_DIR)/rel/d/a/b/d_a_b_gnd/%.o: rel/d/a/b/d_a_b_gnd/%.cpp $(BUILD_DIR)/rel/d/a/b/d_a_b_gnd/%.d
	@echo [145] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M145_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
M145_D_FILES := $(M145_O_FILES:.o=.d)
$(M145_D_FILES):
include $(wildcard $(M145_D_FILES))
endif


