#
# Generated By: dol2asm
#

M409_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bky_rock.plf
M409_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bky_rock.lcf
M409_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bky_rock.map

M409_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_bky_rock/d_a_obj_bky_rock.cpp \

M409_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bky_rock/d_a_obj_bky_rock.o \

M409_LIBS := \

M409_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M409_TARGET): $(M409_O_FILES) $(M409_LIBS)
	@echo [409] creating $(M409_TARGET)
	@echo $(M409_LIBS) $(M409_O_FILES) > build/M409_ofiles
	@python3 tools/lcf.py rel 409 --output $(M409_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M409_LDFLAGS) -o $(M409_TARGET) @build/M409_ofiles

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


