#
# Generated By: dol2asm
#

M333_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_lf.plf
M333_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_lf.lcf
M333_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_lf.map

M333_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_lf/d_a_npc_lf.cpp \

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

M333_LIBS := \

M333_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M333_TARGET): $(M333_O_FILES) $(M333_LIBS)
	@echo [333] creating $(M333_TARGET)
	@echo $(M333_LIBS) $(M333_O_FILES) > build/M333_ofiles
	@python3 tools/lcf.py rel 333 --output $(M333_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M333_LDFLAGS) -o $(M333_TARGET) @build/M333_ofiles

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


