#
# Generated By: dol2asm
#

M135_TARGET := $(BUILD_DIR)/rel/d/a/d_a_L7demo_dr.plf
M135_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_L7demo_dr.lcf
M135_MAP := $(BUILD_DIR)/rel/d/a/d_a_L7demo_dr.map

M135_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_L7demo_dr/d_a_L7demo_dr.cpp \

M135_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_L7demo_dr/d_a_L7demo_dr.o \

M135_LIBS := \

M135_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M135_TARGET): $(M135_O_FILES) $(M135_LIBS)
	@echo [135] creating $(M135_TARGET)
	@echo $(M135_LIBS) $(M135_O_FILES) > build/M135_ofiles
	@python3 tools/lcf.py rel 135 --output $(M135_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M135_LDFLAGS) -o $(M135_TARGET) @build/M135_ofiles

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


