#
# Generated By: dol2asm
#

M143_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_gg.plf
M143_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_gg.lcf
M143_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_gg.map

M143_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_gg/d_a_b_gg.cpp \

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

M143_LIBS := \

M143_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M143_TARGET): $(M143_O_FILES) $(M143_LIBS)
	@echo [143] creating $(M143_TARGET)
	@echo $(M143_LIBS) $(M143_O_FILES) > build/M143_ofiles
	@python3 tools/lcf.py rel 143 --output $(M143_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M143_LDFLAGS) -o $(M143_TARGET) @build/M143_ofiles

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


