#
# Generated By: dol2asm
#

M222_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_pz.plf
M222_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_pz.lcf
M222_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_pz.map

M222_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_pz/d_a_e_pz.cpp \

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

M222_LIBS := \

M222_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M222_TARGET): $(M222_O_FILES) $(M222_LIBS)
	@echo [222] creating $(M222_TARGET)
	@echo $(M222_LIBS) $(M222_O_FILES) > build/M222_ofiles
	@python3 tools/lcf.py rel 222 --output $(M222_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M222_LDFLAGS) -o $(M222_TARGET) @build/M222_ofiles

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


