#
# Generated By: dol2asm
#

M137_TARGET := $(BUILD_DIR)/rel/d/a/d_a_L7op_demo_dr.plf
M137_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_L7op_demo_dr.lcf
M137_MAP := $(BUILD_DIR)/rel/d/a/d_a_L7op_demo_dr.map

M137_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_L7op_demo_dr/d_a_L7op_demo_dr.cpp \

M137_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_L7op_demo_dr/d_a_L7op_demo_dr.o \

M137_LIBS := \

M137_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M137_TARGET): $(M137_O_FILES) $(M137_LIBS)
	@echo [137] creating $(M137_TARGET)
	@echo $(M137_LIBS) $(M137_O_FILES) > build/M137_ofiles
	@python3 tools/lcf.py rel 137 --output $(M137_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M137_LDFLAGS) -o $(M137_TARGET) @build/M137_ofiles

$(BUILD_DIR)/rel/d/a/d_a_L7op_demo_dr/%.o: rel/d/a/d_a_L7op_demo_dr/%.cpp $(BUILD_DIR)/rel/d/a/d_a_L7op_demo_dr/%.d
	@echo [137] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M137_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
M137_D_FILES := $(M137_O_FILES:.o=.d)
$(M137_D_FILES):
include $(wildcard $(M137_D_FILES))
endif


