#
# Generated By: dol2asm
#

M46_TARGET := $(BUILD_DIR)/rel/d/a/d_a_boomerang.plf
M46_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_boomerang.lcf
M46_MAP := $(BUILD_DIR)/rel/d/a/d_a_boomerang.map

M46_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_boomerang/d_a_boomerang.cpp \

M46_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_boomerang/d_a_boomerang.o \

M46_LIBS := \

M46_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M46_TARGET): $(M46_O_FILES) $(M46_LIBS)
	@echo [ 46] creating $(M46_TARGET)
	@echo $(M46_LIBS) $(M46_O_FILES) > build/M46_ofiles
	@python3 tools/lcf.py rel 46 --output $(M46_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M46_LDFLAGS) -o $(M46_TARGET) @build/M46_ofiles

$(BUILD_DIR)/rel/d/a/d_a_boomerang/%.o: rel/d/a/d_a_boomerang/%.cpp $(BUILD_DIR)/rel/d/a/d_a_boomerang/%.d
	@echo [ 46] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M46_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
M46_D_FILES := $(M46_O_FILES:.o=.d)
$(M46_D_FILES):
include $(wildcard $(M46_D_FILES))
endif


