#
# Generated By: dol2asm
#

M162_TARGET := $(BUILD_DIR)/rel/d/a/d_a_coach_fire.plf
M162_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_coach_fire.lcf
M162_MAP := $(BUILD_DIR)/rel/d/a/d_a_coach_fire.map

M162_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_coach_fire/d_a_coach_fire.cpp \

M162_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_coach_fire/d_a_coach_fire.o \

M162_LIBS := \

M162_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M162_TARGET): $(M162_O_FILES) $(M162_LIBS)
	@echo [162] creating $(M162_TARGET)
	@echo $(M162_LIBS) $(M162_O_FILES) > build/M162_ofiles
	@python3 tools/lcf.py rel 162 --output $(M162_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M162_LDFLAGS) -o $(M162_TARGET) @build/M162_ofiles

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


