#
# Generated By: dol2asm
#

M696_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zdoor.plf
M696_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zdoor.lcf
M696_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zdoor.map

M696_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_zdoor/d_a_obj_zdoor.cpp \

M696_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zdoor/d_a_obj_zdoor.o \

M696_LIBS := \

M696_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M696_TARGET): $(M696_O_FILES) $(M696_LIBS)
	@echo [696] creating $(M696_TARGET)
	@echo $(M696_LIBS) $(M696_O_FILES) > build/M696_ofiles
	@python3 tools/lcf.py rel 696 --output $(M696_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M696_LDFLAGS) -o $(M696_TARGET) @build/M696_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_zdoor/%.o: rel/d/a/obj/d_a_obj_zdoor/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_zdoor/%.d
	@echo [696] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M696_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
M696_D_FILES := $(M696_O_FILES:.o=.d)
$(M696_D_FILES):
include $(wildcard $(M696_D_FILES))
endif


