#
# Generated By: dol2asm
#

M157_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_mobile.plf
M157_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_mobile.lcf
M157_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_mobile.map

M157_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_zant_mobile/d_a_b_zant_mobile.cpp \

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

M157_LIBS := \

M157_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M157_TARGET): $(M157_O_FILES) $(M157_LIBS)
	@echo [157] creating $(M157_TARGET)
	@echo $(M157_LIBS) $(M157_O_FILES) > build/M157_ofiles
	@python3 tools/lcf.py rel 157 --output $(M157_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M157_LDFLAGS) -o $(M157_TARGET) @build/M157_ofiles

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


