#
# Generated By: dol2asm
#

M90_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bkdoor.plf
M90_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bkdoor.lcf
M90_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bkdoor.map

M90_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_bkdoor/d_a_obj_bkdoor.cpp \

M90_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bkdoor/d_a_obj_bkdoor.o \

M90_LIBS := \

M90_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M90_TARGET): $(M90_O_FILES) $(M90_LIBS)
	@echo [ 90] creating $(M90_TARGET)
	@echo $(M90_LIBS) $(M90_O_FILES) > build/M90_ofiles
	@python3 tools/lcf.py rel 90 --output $(M90_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M90_LDFLAGS) -o $(M90_TARGET) @build/M90_ofiles

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


