#
# Generated By: dol2asm
#

M599_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pumpkin.plf
M599_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pumpkin.lcf
M599_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_pumpkin.map

M599_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_pumpkin/d_a_obj_pumpkin.cpp \

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

M599_LIBS := \

M599_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M599_TARGET): $(M599_O_FILES) $(M599_LIBS)
	@echo [599] creating $(M599_TARGET)
	@echo $(M599_LIBS) $(M599_O_FILES) > build/M599_ofiles
	@python3 tools/lcf.py rel 599 --output $(M599_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M599_LDFLAGS) -o $(M599_TARGET) @build/M599_ofiles

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


