#
# Generated By: dol2asm
#

M505_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_knBullet.plf
M505_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_knBullet.lcf
M505_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_knBullet.map

M505_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/obj/d_a_obj_knBullet/d_a_obj_knBullet.cpp \

M505_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_knBullet/d_a_obj_knBullet.o \

M505_LIBS := \

M505_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M505_TARGET): $(M505_O_FILES) $(M505_LIBS)
	@echo [505] creating $(M505_TARGET)
	@echo $(M505_LIBS) $(M505_O_FILES) > build/M505_ofiles
	@python3 tools/lcf.py rel 505 --output $(M505_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M505_LDFLAGS) -o $(M505_TARGET) @build/M505_ofiles

$(BUILD_DIR)/rel/d/a/obj/d_a_obj_knBullet/%.o: rel/d/a/obj/d_a_obj_knBullet/%.cpp $(BUILD_DIR)/rel/d/a/obj/d_a_obj_knBullet/%.d
	@echo [505] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M505_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
M505_D_FILES := $(M505_O_FILES:.o=.d)
$(M505_D_FILES):
include $(wildcard $(M505_D_FILES))
endif


