#
# Generated By: dol2asm
#

M179_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_bug.plf
M179_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_bug.lcf
M179_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_bug.map

M179_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_bug/d_a_e_bug.cpp \

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

M179_LIBS := \

M179_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M179_TARGET): $(M179_O_FILES) $(M179_LIBS)
	@echo [179] creating $(M179_TARGET)
	@echo $(M179_LIBS) $(M179_O_FILES) > build/M179_ofiles
	@python3 tools/lcf.py rel 179 --output $(M179_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M179_LDFLAGS) -o $(M179_TARGET) @build/M179_ofiles

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


