#
# Generated By: dol2asm
#

M136_TARGET := $(BUILD_DIR)/rel/d/a/d_a_L7low_dr.plf
M136_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_L7low_dr.lcf
M136_MAP := $(BUILD_DIR)/rel/d/a/d_a_L7low_dr.map

M136_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_L7low_dr/d_a_L7low_dr.cpp \

M136_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_L7low_dr/d_a_L7low_dr.o \

M136_LIBS := \

M136_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M136_TARGET): $(M136_O_FILES) $(M136_LIBS)
	@echo [136] creating $(M136_TARGET)
	@echo $(M136_LIBS) $(M136_O_FILES) > build/M136_ofiles
	@python3 tools/lcf.py rel 136 --output $(M136_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M136_LDFLAGS) -o $(M136_TARGET) @build/M136_ofiles

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


