#
# Generated By: dol2asm
#

M158_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_sima.plf
M158_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_sima.lcf
M158_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_sima.map

M158_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/b/d_a_b_zant_sima/d_a_b_zant_sima.cpp \

M158_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/b/d_a_b_zant_sima/d_a_b_zant_sima.o \

M158_LIBS := \

M158_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M158_TARGET): $(M158_O_FILES) $(M158_LIBS)
	@echo [158] creating $(M158_TARGET)
	@echo $(M158_LIBS) $(M158_O_FILES) > build/M158_ofiles
	@python3 tools/lcf.py rel 158 --output $(M158_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M158_LDFLAGS) -o $(M158_TARGET) @build/M158_ofiles

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


