#
# Generated By: dol2asm
#

M26_TARGET := $(BUILD_DIR)/rel/d/a/d_a_swhit0.plf
M26_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_swhit0.lcf
M26_MAP := $(BUILD_DIR)/rel/d/a/d_a_swhit0.map

M26_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_swhit0/d_a_swhit0.cpp \

M26_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_swhit0/d_a_swhit0.o \

M26_LIBS := \

M26_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M26_TARGET): $(M26_O_FILES) $(M26_LIBS)
	@echo [ 26] creating $(M26_TARGET)
	@echo $(M26_LIBS) $(M26_O_FILES) > build/M26_ofiles
	@python3 tools/lcf.py rel 26 --output $(M26_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M26_LDFLAGS) -o $(M26_TARGET) @build/M26_ofiles

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


