#
# Generated By: dol2asm
#

M704_TARGET := $(BUILD_DIR)/rel/d/a/d_a_ppolamp.plf
M704_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_ppolamp.lcf
M704_MAP := $(BUILD_DIR)/rel/d/a/d_a_ppolamp.map

M704_CPP_FILES := \
	rel/executor.cpp \
	rel/d/a/d_a_ppolamp/d_a_ppolamp.cpp \

M704_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/d/a/d_a_ppolamp/d_a_ppolamp.o \

M704_LIBS := \

M704_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M704_TARGET): $(M704_O_FILES) $(M704_LIBS)
	@echo [704] creating $(M704_TARGET)
	@echo $(M704_LIBS) $(M704_O_FILES) > build/M704_ofiles
	@python3 tools/lcf.py rel 704 --output $(M704_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M704_LDFLAGS) -o $(M704_TARGET) @build/M704_ofiles

$(BUILD_DIR)/rel/d/a/d_a_ppolamp/%.o: rel/d/a/d_a_ppolamp/%.cpp $(BUILD_DIR)/rel/d/a/d_a_ppolamp/%.d
	@echo [704] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M704_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
M704_D_FILES := $(M704_O_FILES:.o=.d)
$(M704_D_FILES):
include $(wildcard $(M704_D_FILES))
endif


