#
# Generated By: dol2asm
#

M142_TARGET := $(BUILD_DIR)/rel/d/a/b/d_a_b_ds.plf
M142_LDSCRIPT := $(BUILD_DIR)/rel/d/a/b/d_a_b_ds.lcf
M142_MAP := $(BUILD_DIR)/rel/d/a/b/d_a_b_ds.map

M142_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/b/d_a_b_ds/d_a_b_ds.cpp \

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

M142_LIBS := \

M142_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M142_TARGET): $(M142_O_FILES) $(M142_LIBS)
	@echo [142] creating $(M142_TARGET)
	@echo $(M142_LIBS) $(M142_O_FILES) > build/M142_ofiles
	@python3 tools/lcf.py rel 142 --output $(M142_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M142_LDFLAGS) -o $(M142_TARGET) @build/M142_ofiles

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


