#
# Generated By: dol2asm
#

M88_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj.plf
M88_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj.lcf
M88_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj.map

M88_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_tkj/d_a_npc_tkj.cpp \

M88_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj/d_a_npc_tkj.o \

M88_LIBS := \

M88_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M88_TARGET): $(M88_O_FILES) $(M88_LIBS)
	@echo [ 88] creating $(M88_TARGET)
	@echo $(M88_LIBS) $(M88_O_FILES) > build/M88_ofiles
	@python3 tools/lcf.py rel 88 --output $(M88_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M88_LDFLAGS) -o $(M88_TARGET) @build/M88_ofiles

$(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj/%.o: rel/d/a/npc/d_a_npc_tkj/%.cpp $(BUILD_DIR)/rel/d/a/npc/d_a_npc_tkj/%.d
	@echo [ 88] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M88_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
M88_D_FILES := $(M88_O_FILES:.o=.d)
$(M88_D_FILES):
include $(wildcard $(M88_D_FILES))
endif


