#
# Generated By: dol2asm
#

M336_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_mk.plf
M336_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_mk.lcf
M336_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_mk.map

M336_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_mk/d_a_npc_mk.cpp \

M336_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_mk/d_a_npc_mk.o \

M336_LIBS := \

M336_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M336_TARGET): $(M336_O_FILES) $(M336_LIBS)
	@echo [336] creating $(M336_TARGET)
	@echo $(M336_LIBS) $(M336_O_FILES) > build/M336_ofiles
	@python3 tools/lcf.py rel 336 --output $(M336_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M336_LDFLAGS) -o $(M336_TARGET) @build/M336_ofiles

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


