#
# Generated By: dol2asm
#

M148_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_mgn.plf
M148_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_mgn.lcf
M148_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_mgn.map

M148_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_mgn/d_a_b_mgn.cpp \

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

M148_LIBS := \

M148_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M148_TARGET): $(M148_O_FILES) $(M148_LIBS)
	@echo [148] creating $(M148_TARGET)
	@echo $(M148_LIBS) $(M148_O_FILES) > build/M148_ofiles
	@python3 tools/lcf.py rel 148 --output $(M148_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M148_LDFLAGS) -o $(M148_TARGET) @build/M148_ofiles

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


