#
# Generated By: dol2asm
#

M22_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_timer.plf
M22_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_timer.lcf
M22_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_timer.map

M22_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_timer/unknown_translation_unit_bss.cpp \
	rel/d/a/obj/d_a_obj_timer/d_a_obj_timer.cpp \

M22_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_timer/unknown_translation_unit_bss.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_timer/d_a_obj_timer.o \

M22_LIBS := \

M22_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M22_TARGET): $(M22_O_FILES) $(M22_LIBS)
	@echo [ 22] creating $(M22_TARGET)
	@echo $(M22_LIBS) $(M22_O_FILES) > build/M22_ofiles
	@python3 tools/lcf.py rel 22 --output $(M22_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M22_LDFLAGS) -o $(M22_TARGET) @build/M22_ofiles

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


