#
# Generated By: dol2asm
#

M219_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_ph.plf
M219_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_ph.lcf
M219_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_ph.map

M219_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_ph/d_a_e_ph.cpp \

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

M219_LIBS := \

M219_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M219_TARGET): $(M219_O_FILES) $(M219_LIBS)
	@echo [219] creating $(M219_TARGET)
	@echo $(M219_LIBS) $(M219_O_FILES) > build/M219_ofiles
	@python3 tools/lcf.py rel 219 --output $(M219_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M219_LDFLAGS) -o $(M219_TARGET) @build/M219_ofiles

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


