#
# Generated By: dol2asm
#

M59_TARGET := $(BUILD_DIR)/rel/d/a/d_a_andsw2.plf
M59_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_andsw2.lcf
M59_MAP := $(BUILD_DIR)/rel/d/a/d_a_andsw2.map

M59_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_andsw2/d_a_andsw2.cpp \

M59_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_andsw2/d_a_andsw2.o \

M59_LIBS := \

M59_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M59_TARGET): $(M59_O_FILES) $(M59_LIBS)
	@echo [ 59] creating $(M59_TARGET)
	@echo $(M59_LIBS) $(M59_O_FILES) > build/M59_ofiles
	@python3 tools/lcf.py rel 59 --output $(M59_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M59_LDFLAGS) -o $(M59_TARGET) @build/M59_ofiles

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


