#
# Generated By: dol2asm
#

M48_TARGET := $(BUILD_DIR)/rel/d/a/d_a_demo00.plf
M48_LDSCRIPT := $(BUILD_DIR)/rel/d/a/d_a_demo00.lcf
M48_MAP := $(BUILD_DIR)/rel/d/a/d_a_demo00.map

M48_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/d_a_demo00/d_a_demo00.cpp \

M48_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/d_a_demo00/d_a_demo00.o \

M48_LIBS := \

M48_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M48_TARGET): $(M48_O_FILES) $(M48_LIBS)
	@echo [ 48] creating $(M48_TARGET)
	@echo $(M48_LIBS) $(M48_O_FILES) > build/M48_ofiles
	@python3 tools/lcf.py rel 48 --output $(M48_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M48_LDFLAGS) -o $(M48_TARGET) @build/M48_ofiles

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


