#
# Generated By: dol2asm
#

M91_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bosswarp.plf
M91_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bosswarp.lcf
M91_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bosswarp.map

M91_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_bosswarp/d_a_obj_bosswarp.cpp \

M91_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bosswarp/d_a_obj_bosswarp.o \

M91_LIBS := \

M91_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M91_TARGET): $(M91_O_FILES) $(M91_LIBS)
	@echo [ 91] creating $(M91_TARGET)
	@echo $(M91_LIBS) $(M91_O_FILES) > build/M91_ofiles
	@python3 tools/lcf.py rel 91 --output $(M91_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M91_LDFLAGS) -o $(M91_TARGET) @build/M91_ofiles

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


