#
# Generated By: dol2asm
#

M100_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate.plf
M100_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate.lcf
M100_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate.map

M100_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_kgate/d_a_obj_kgate.cpp \

M100_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_kgate/d_a_obj_kgate.o \

M100_LIBS := \

M100_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M100_TARGET): $(M100_O_FILES) $(M100_LIBS)
	@echo [100] creating $(M100_TARGET)
	@echo $(M100_LIBS) $(M100_O_FILES) > build/M100_ofiles
	@python3 tools/lcf.py rel 100 --output $(M100_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M100_LDFLAGS) -o $(M100_TARGET) @build/M100_ofiles

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


