#
# Generated By: dol2asm
#

M542_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5ychndlr.plf
M542_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5ychndlr.lcf
M542_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5ychndlr.map

M542_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_lv5ychndlr/d_a_obj_lv5ychndlr.cpp \

M542_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_lv5ychndlr/d_a_obj_lv5ychndlr.o \

M542_LIBS := \

M542_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M542_TARGET): $(M542_O_FILES) $(M542_LIBS)
	@echo [542] creating $(M542_TARGET)
	@echo $(M542_LIBS) $(M542_O_FILES) > build/M542_ofiles
	@python3 tools/lcf.py rel 542 --output $(M542_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M542_LDFLAGS) -o $(M542_TARGET) @build/M542_ofiles

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


