#
# Generated By: dol2asm
#

M280_TARGET := $(BUILD_DIR)/rel/d/a/d_a_movie_player.plf
M280_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_movie_player.lcf
M280_MAP := $(BUILD_DIR)/rel/d/a/d_a_movie_player.map

M280_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_movie_player/d_a_movie_player.cpp \

M280_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_movie_player/d_a_movie_player.o \

M280_LIBS := \

M280_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M280_TARGET): $(M280_O_FILES) $(M280_LIBS)
	@echo [280] creating $(M280_TARGET)
	@echo $(M280_LIBS) $(M280_O_FILES) > build/M280_ofiles
	@python3 tools/lcf.py rel 280 --output $(M280_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M280_LDFLAGS) -o $(M280_TARGET) @build/M280_ofiles

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


