#
# Generated By: dol2asm
#

M554_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6egate.plf
M554_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6egate.lcf
M554_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6egate.map

M554_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lv6egate/d_a_obj_lv6egate.cpp \

M554_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv6egate/d_a_obj_lv6egate.o \

M554_LIBS := \

M554_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M554_TARGET): $(M554_O_FILES) $(M554_LIBS)
	@echo [554] creating $(M554_TARGET)
	@echo $(M554_LIBS) $(M554_O_FILES) > build/M554_ofiles
	@python3 tools/lcf.py rel 554 --output $(M554_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M554_LDFLAGS) -o $(M554_TARGET) @build/M554_ofiles

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


