#
# Generated By: dol2asm
#

M182_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_db.plf
M182_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_db.lcf
M182_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_db.map

M182_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_db/d_a_e_db.cpp \

M182_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_db/d_a_e_db.o \

M182_LIBS := \

M182_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M182_TARGET): $(M182_O_FILES) $(M182_LIBS)
	@echo [182] creating $(M182_TARGET)
	@echo $(M182_LIBS) $(M182_O_FILES) > build/M182_ofiles
	@python3 tools/lcf.py rel 182 --output $(M182_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M182_LDFLAGS) -o $(M182_TARGET) @build/M182_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_db/%.o: rel/d/a/e/d_a_e_db/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_db/%.d
	@echo [182] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M182_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
M182_D_FILES := $(M182_O_FILES:.o=.d)
$(M182_D_FILES):
include $(wildcard $(M182_D_FILES))
endif


