#
# Generated By: dol2asm
#

M161_TARGET := $(BUILD_DIR)/rel/d/a/d_a_coach_2D.plf
M161_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_coach_2D.lcf
M161_MAP := $(BUILD_DIR)/rel/d/a/d_a_coach_2D.map

M161_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_coach_2D/d_a_coach_2D.cpp \

M161_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_coach_2D/d_a_coach_2D.o \

M161_LIBS := \

M161_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M161_TARGET): $(M161_O_FILES) $(M161_LIBS)
	@echo [161] creating $(M161_TARGET)
	@echo $(M161_LIBS) $(M161_O_FILES) > build/M161_ofiles
	@python3 tools/lcf.py rel 161 --output $(M161_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M161_LDFLAGS) -o $(M161_TARGET) @build/M161_ofiles

$(BUILD_DIR)/rel/d/a/d_a_coach_2D/%.o: rel/d/a/d_a_coach_2D/%.cpp $(BUILD_DIR)/rel/d/a/d_a_coach_2D/%.d
	@echo [161] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M161_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
M161_D_FILES := $(M161_O_FILES:.o=.d)
$(M161_D_FILES):
include $(wildcard $(M161_D_FILES))
endif


