#
# Generated By: dol2asm
#

M403_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_batta.plf
M403_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_batta.lcf
M403_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_batta.map

M403_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_batta/d_a_obj_batta.cpp \

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

M403_LIBS := \

M403_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M403_TARGET): $(M403_O_FILES) $(M403_LIBS)
	@echo [403] creating $(M403_TARGET)
	@echo $(M403_LIBS) $(M403_O_FILES) > build/M403_ofiles
	@python3 tools/lcf.py rel 403 --output $(M403_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M403_LDFLAGS) -o $(M403_TARGET) @build/M403_ofiles

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


