#
# Generated By: dol2asm
#

M452_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_food.plf
M452_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_food.lcf
M452_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_food.map

M452_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_food/d_a_obj_food.cpp \

M452_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_food/d_a_obj_food.o \

M452_LIBS := \

M452_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M452_TARGET): $(M452_O_FILES) $(M452_LIBS)
	@echo [452] creating $(M452_TARGET)
	@echo $(M452_LIBS) $(M452_O_FILES) > build/M452_ofiles
	@python3 tools/lcf.py rel 452 --output $(M452_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M452_LDFLAGS) -o $(M452_TARGET) @build/M452_ofiles

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


