#
# Generated By: dol2asm
#

M192_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_gb.plf
M192_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_gb.lcf
M192_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_gb.map

M192_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_gb/d_a_e_gb.cpp \

M192_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_gb/d_a_e_gb.o \

M192_LIBS := \

M192_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M192_TARGET): $(M192_O_FILES) $(M192_LIBS)
	@echo [192] creating $(M192_TARGET)
	@echo $(M192_LIBS) $(M192_O_FILES) > build/M192_ofiles
	@python3 tools/lcf.py rel 192 --output $(M192_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M192_LDFLAGS) -o $(M192_TARGET) @build/M192_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_gb/%.o: rel/d/a/e/d_a_e_gb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_gb/%.d
	@echo [192] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M192_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
M192_D_FILES := $(M192_O_FILES:.o=.d)
$(M192_D_FILES):
include $(wildcard $(M192_D_FILES))
endif


