#
# Generated By: dol2asm
#

M499_TARGET := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_keyhole.plf
M499_LDSCRIPT := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_keyhole.lcf
M499_MAP := $(BUILD_DIR)/rel/d/a/obj/d_a_obj_keyhole.map

M499_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/obj/d_a_obj_keyhole/d_a_obj_keyhole.cpp \

M499_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/obj/d_a_obj_keyhole/d_a_obj_keyhole.o \

M499_LIBS := \

M499_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M499_TARGET): $(M499_O_FILES) $(M499_LIBS)
	@echo [499] creating $(M499_TARGET)
	@echo $(M499_LIBS) $(M499_O_FILES) > build/M499_ofiles
	@python3 tools/lcf.py rel 499 --output $(M499_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M499_LDFLAGS) -o $(M499_TARGET) @build/M499_ofiles

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


