#
# Generated By: dol2asm
#

M401_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_balloon.plf
M401_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_balloon.lcf
M401_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_balloon.map

M401_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_balloon/d_a_obj_balloon.cpp \

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

M401_LIBS := \

M401_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M401_TARGET): $(M401_O_FILES) $(M401_LIBS)
	@echo [401] creating $(M401_TARGET)
	@echo $(M401_LIBS) $(M401_O_FILES) > build/M401_ofiles
	@python3 tools/lcf.py rel 401 --output $(M401_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M401_LDFLAGS) -o $(M401_TARGET) @build/M401_ofiles

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


