#
# Generated By: dol2asm
#

M686_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_well_cover.plf
M686_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_well_cover.lcf
M686_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_well_cover.map

M686_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_well_cover/d_a_obj_well_cover.cpp \

M686_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_well_cover/d_a_obj_well_cover.o \

M686_LIBS := \

M686_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M686_TARGET): $(M686_O_FILES) $(M686_LIBS)
	@echo [686] creating $(M686_TARGET)
	@echo $(M686_LIBS) $(M686_O_FILES) > build/M686_ofiles
	@python3 tools/lcf.py rel 686 --output $(M686_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M686_LDFLAGS) -o $(M686_TARGET) @build/M686_ofiles

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


