#
# Generated By: dol2asm
#

M304_TARGET := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gnd.plf
M304_LDSCRIPT := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gnd.lcf
M304_MAP := $(BUILD_DIR)/rel/d/a/npc/d_a_npc_gnd.map

M304_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/npc/d_a_npc_gnd/d_a_npc_gnd.cpp \

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

M304_LIBS := \

M304_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M304_TARGET): $(M304_O_FILES) $(M304_LIBS)
	@echo [304] creating $(M304_TARGET)
	@echo $(M304_LIBS) $(M304_O_FILES) > build/M304_ofiles
	@python3 tools/lcf.py rel 304 --output $(M304_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M304_LDFLAGS) -o $(M304_TARGET) @build/M304_ofiles

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


