#
# Generated By: dol2asm
#

M303_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_fguard.plf
M303_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_fguard.lcf
M303_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_fguard.map

M303_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/npc/d_a_npc_fguard/d_a_npc_fguard.cpp \

M303_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/npc/d_a_npc_fguard/d_a_npc_fguard.o \

M303_LIBS := \

M303_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M303_TARGET): $(M303_O_FILES) $(M303_LIBS)
	@echo [303] creating $(M303_TARGET)
	@echo $(M303_LIBS) $(M303_O_FILES) > build/M303_ofiles
	@python3 tools/lcf.py rel 303 --output $(M303_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M303_LDFLAGS) -o $(M303_TARGET) @build/M303_ofiles

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


