#
# Generated By: dol2asm
#

M150_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_oh.plf
M150_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_oh.lcf
M150_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_oh.map

M150_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_oh/d_a_b_oh.cpp \

M150_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/b/d_a_b_oh/d_a_b_oh.o \

M150_LIBS := \

M150_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M150_TARGET): $(M150_O_FILES) $(M150_LIBS)
	@echo [150] creating $(M150_TARGET)
	@echo $(M150_LIBS) $(M150_O_FILES) > build/M150_ofiles
	@python3 tools/lcf.py rel 150 --output $(M150_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M150_LDFLAGS) -o $(M150_TARGET) @build/M150_ofiles

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


