#
# Generated By: dol2asm
#

M292_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_chin.plf
M292_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_chin.lcf
M292_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_chin.map

M292_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_chin/d_a_npc_chin.cpp \

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

M292_LIBS := \

M292_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M292_TARGET): $(M292_O_FILES) $(M292_LIBS)
	@echo [292] creating $(M292_TARGET)
	@echo $(M292_LIBS) $(M292_O_FILES) > build/M292_ofiles
	@python3 tools/lcf.py rel 292 --output $(M292_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M292_LDFLAGS) -o $(M292_TARGET) @build/M292_ofiles

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


