#
# Generated By: dol2asm
#

M73_TARGET := $(BUILD_DIR)/rel/d/a/d_a_grass.plf
M73_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_grass.lcf
M73_MAP := $(BUILD_DIR)/rel/d/a/d_a_grass.map

M73_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_grass/d_a_grass.cpp \

M73_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_grass/d_a_grass.o \

M73_LIBS := \

M73_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \
	-sym on \

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

$(M73_TARGET): $(M73_O_FILES) $(M73_LIBS)
	@echo [ 73] creating $(M73_TARGET)
	@echo $(M73_LIBS) $(M73_O_FILES) > build/M73_ofiles
	@python3 tools/lcf.py rel 73 --output $(M73_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M73_LDFLAGS) -o $(M73_TARGET) @build/M73_ofiles

$(BUILD_DIR)/rel/d/a/d_a_grass/%.o: rel/d/a/d_a_grass/%.cpp $(BUILD_DIR)/rel/d/a/d_a_grass/%.d
	@echo [ 73] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M73_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
M73_D_FILES := $(M73_O_FILES:.o=.d)
$(M73_D_FILES):
include $(wildcard $(M73_D_FILES))
endif


