#
# Generated By: dol2asm
#

M95_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fmobj.plf
M95_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fmobj.lcf
M95_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_fmobj.map

M95_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_fmobj/d_a_obj_fmobj.cpp \

M95_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_fmobj/d_a_obj_fmobj.o \

M95_LIBS := \

M95_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M95_TARGET): $(M95_O_FILES) $(M95_LIBS)
	@echo [ 95] creating $(M95_TARGET)
	@echo $(M95_LIBS) $(M95_O_FILES) > build/M95_ofiles
	@python3 tools/lcf.py rel 95 --output $(M95_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M95_LDFLAGS) -o $(M95_TARGET) @build/M95_ofiles

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


