#
# Generated By: dol2asm
#

M96_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gpTaru.plf
M96_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gpTaru.lcf
M96_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_gpTaru.map

M96_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_gpTaru/d_a_obj_gpTaru.cpp \

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

M96_LIBS := \

M96_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M96_TARGET): $(M96_O_FILES) $(M96_LIBS)
	@echo [ 96] creating $(M96_TARGET)
	@echo $(M96_LIBS) $(M96_O_FILES) > build/M96_ofiles
	@python3 tools/lcf.py rel 96 --output $(M96_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M96_LDFLAGS) -o $(M96_TARGET) @build/M96_ofiles

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


