#
# Generated By: dol2asm
#

M412_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bombf.plf
M412_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bombf.lcf
M412_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_bombf.map

M412_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_bombf/d_a_obj_bombf.cpp \

M412_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_bombf/d_a_obj_bombf.o \

M412_LIBS := \

M412_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M412_TARGET): $(M412_O_FILES) $(M412_LIBS)
	@echo [412] creating $(M412_TARGET)
	@echo $(M412_LIBS) $(M412_O_FILES) > build/M412_ofiles
	@python3 tools/lcf.py rel 412 --output $(M412_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M412_LDFLAGS) -o $(M412_TARGET) @build/M412_ofiles

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


