#
# Generated By: dol2asm
#

M144_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_gm.plf
M144_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_gm.lcf
M144_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_gm.map

M144_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_gm/d_a_b_gm.cpp \

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

M144_LIBS := \

M144_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M144_TARGET): $(M144_O_FILES) $(M144_LIBS)
	@echo [144] creating $(M144_TARGET)
	@echo $(M144_LIBS) $(M144_O_FILES) > build/M144_ofiles
	@python3 tools/lcf.py rel 144 --output $(M144_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M144_LDFLAGS) -o $(M144_TARGET) @build/M144_ofiles

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


