#
# Generated By: dol2asm
#

M468_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_grz_rock.plf
M468_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_grz_rock.lcf
M468_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_grz_rock.map

M468_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_grz_rock/d_a_obj_grz_rock.cpp \

M468_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_grz_rock/d_a_obj_grz_rock.o \

M468_LIBS := \

M468_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M468_TARGET): $(M468_O_FILES) $(M468_LIBS)
	@echo [468] creating $(M468_TARGET)
	@echo $(M468_LIBS) $(M468_O_FILES) > build/M468_ofiles
	@python3 tools/lcf.py rel 468 --output $(M468_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M468_LDFLAGS) -o $(M468_TARGET) @build/M468_ofiles

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


