#
# Generated By: dol2asm
#

M430_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_up.plf
M430_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_up.lcf
M430_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_up.map

M430_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_crvlh_up/d_a_obj_crvlh_up.cpp \

M430_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_crvlh_up/d_a_obj_crvlh_up.o \

M430_LIBS := \

M430_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M430_TARGET): $(M430_O_FILES) $(M430_LIBS)
	@echo [430] creating $(M430_TARGET)
	@echo $(M430_LIBS) $(M430_O_FILES) > build/M430_ofiles
	@python3 tools/lcf.py rel 430 --output $(M430_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M430_LDFLAGS) -o $(M430_TARGET) @build/M430_ofiles

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


