#
# Generated By: dol2asm
#

M181_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_cr_egg.plf
M181_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_cr_egg.lcf
M181_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_cr_egg.map

M181_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/e/d_a_e_cr_egg/d_a_e_cr_egg.cpp \

M181_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_cr_egg/d_a_e_cr_egg.o \

M181_LIBS := \

M181_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M181_TARGET): $(M181_O_FILES) $(M181_LIBS)
	@echo [181] creating $(M181_TARGET)
	@echo $(M181_LIBS) $(M181_O_FILES) > build/M181_ofiles
	@python3 tools/lcf.py rel 181 --output $(M181_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M181_LDFLAGS) -o $(M181_TARGET) @build/M181_ofiles

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


