#
# Generated By: dol2asm
#

M156_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_magic.plf
M156_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_magic.lcf
M156_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_zant_magic.map

M156_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/b/d_a_b_zant_magic/d_a_b_zant_magic.cpp \

M156_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/b/d_a_b_zant_magic/d_a_b_zant_magic.o \

M156_LIBS := \

M156_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M156_TARGET): $(M156_O_FILES) $(M156_LIBS)
	@echo [156] creating $(M156_TARGET)
	@echo $(M156_LIBS) $(M156_O_FILES) > build/M156_ofiles
	@python3 tools/lcf.py rel 156 --output $(M156_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M156_LDFLAGS) -o $(M156_TARGET) @build/M156_ofiles

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


