#
# Generated By: dol2asm
#

M454_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gadget.plf
M454_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gadget.lcf
M454_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gadget.map

M454_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_gadget/d_a_obj_gadget.cpp \

M454_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_gadget/d_a_obj_gadget.o \

M454_LIBS := \

M454_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M454_TARGET): $(M454_O_FILES) $(M454_LIBS)
	@echo [454] creating $(M454_TARGET)
	@echo $(M454_LIBS) $(M454_O_FILES) > build/M454_ofiles
	@python3 tools/lcf.py rel 454 --output $(M454_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M454_LDFLAGS) -o $(M454_TARGET) @build/M454_ofiles

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


