#
# Generated By: dol2asm
#

M169_TARGET := $(BUILD_DIR)/rel/d/a/door/d_a_door_push.plf
M169_LDSCRIPT := $(BUILD_DIR)/rel/d/a/door/d_a_door_push.lcf
M169_MAP := $(BUILD_DIR)/rel/d/a/door/d_a_door_push.map

M169_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/door/d_a_door_push/d_a_door_push.cpp \

M169_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/door/d_a_door_push/d_a_door_push.o \

M169_LIBS := \

M169_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M169_TARGET): $(M169_O_FILES) $(M169_LIBS)
	@echo [169] creating $(M169_TARGET)
	@echo $(M169_LIBS) $(M169_O_FILES) > build/M169_ofiles
	@python3 tools/lcf.py rel 169 --output $(M169_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M169_LDFLAGS) -o $(M169_TARGET) @build/M169_ofiles

$(BUILD_DIR)/rel/d/a/door/d_a_door_push/%.o: rel/d/a/door/d_a_door_push/%.cpp $(BUILD_DIR)/rel/d/a/door/d_a_door_push/%.d
	@echo [169] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M169_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
M169_D_FILES := $(M169_O_FILES:.o=.d)
$(M169_D_FILES):
include $(wildcard $(M169_D_FILES))
endif


