#
# Generated By: dol2asm
#

M16_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_brakeeff.plf
M16_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_brakeeff.lcf
M16_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_brakeeff.map

M16_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_brakeeff/d_a_obj_brakeeff.cpp \

M16_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_brakeeff/d_a_obj_brakeeff.o \

M16_LIBS := \

M16_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M16_TARGET): $(M16_O_FILES) $(M16_LIBS)
	@echo [ 16] creating $(M16_TARGET)
	@echo $(M16_LIBS) $(M16_O_FILES) > build/M16_ofiles
	@python3 tools/lcf.py rel 16 --output $(M16_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M16_LDFLAGS) -o $(M16_TARGET) @build/M16_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_brakeeff/%.o: rel/d/a/obj/d_a_obj_brakeeff/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_brakeeff/%.d
	@echo [ 16] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M16_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
M16_D_FILES := $(M16_O_FILES:.o=.d)
$(M16_D_FILES):
include $(wildcard $(M16_D_FILES))
endif


