#
# Generated By: dol2asm
#

M466_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_grave_stone.plf
M466_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_grave_stone.lcf
M466_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_grave_stone.map

M466_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_grave_stone/d_a_obj_grave_stone.cpp \

M466_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_grave_stone/d_a_obj_grave_stone.o \

M466_LIBS := \

M466_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M466_TARGET): $(M466_O_FILES) $(M466_LIBS)
	@echo [466] creating $(M466_TARGET)
	@echo $(M466_LIBS) $(M466_O_FILES) > build/M466_ofiles
	@python3 tools/lcf.py rel 466 --output $(M466_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M466_LDFLAGS) -o $(M466_TARGET) @build/M466_ofiles

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


