#
# Generated By: dol2asm
#

M421_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chandelier.plf
M421_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chandelier.lcf
M421_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_chandelier.map

M421_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_chandelier/d_a_obj_chandelier.cpp \

M421_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_chandelier/d_a_obj_chandelier.o \

M421_LIBS := \

M421_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M421_TARGET): $(M421_O_FILES) $(M421_LIBS)
	@echo [421] creating $(M421_TARGET)
	@echo $(M421_LIBS) $(M421_O_FILES) > build/M421_ofiles
	@python3 tools/lcf.py rel 421 --output $(M421_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M421_LDFLAGS) -o $(M421_TARGET) @build/M421_ofiles

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


