#
# Generated By: dol2asm
#

M428_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvhahen.plf
M428_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvhahen.lcf
M428_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvhahen.map

M428_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_crvhahen/d_a_obj_crvhahen.cpp \

M428_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvhahen/d_a_obj_crvhahen.o \

M428_LIBS := \

M428_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M428_TARGET): $(M428_O_FILES) $(M428_LIBS)
	@echo [428] creating $(M428_TARGET)
	@echo $(M428_LIBS) $(M428_O_FILES) > build/M428_ofiles
	@python3 tools/lcf.py rel 428 --output $(M428_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M428_LDFLAGS) -o $(M428_TARGET) @build/M428_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvhahen/%.o: rel/d/a/obj/d_a_obj_crvhahen/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvhahen/%.d
	@echo [428] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M428_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
M428_D_FILES := $(M428_O_FILES:.o=.d)
$(M428_D_FILES):
include $(wildcard $(M428_D_FILES))
endif


