#
# Generated By: dol2asm
#

M39_TARGET := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_push.plf
M39_LDSCRIPT := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_push.lcf
M39_MAP := $(BUILD_DIR)/rel/d/a/tag/d_a_tag_push.map

M39_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/tag/d_a_tag_push/d_a_tag_push.cpp \

M39_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/tag/d_a_tag_push/d_a_tag_push.o \

M39_LIBS := \

M39_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M39_TARGET): $(M39_O_FILES) $(M39_LIBS)
	@echo [ 39] creating $(M39_TARGET)
	@echo $(M39_LIBS) $(M39_O_FILES) > build/M39_ofiles
	@python3 tools/lcf.py rel 39 --output $(M39_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M39_LDFLAGS) -o $(M39_TARGET) @build/M39_ofiles

$(BUILD_DIR)/rel/d/a/tag/d_a_tag_push/%.o: rel/d/a/tag/d_a_tag_push/%.cpp $(BUILD_DIR)/rel/d/a/tag/d_a_tag_push/%.d
	@echo [ 39] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M39_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
M39_D_FILES := $(M39_O_FILES:.o=.d)
$(M39_D_FILES):
include $(wildcard $(M39_D_FILES))
endif


