#
# Generated By: dol2asm
#

M68_TARGET := $(BUILD_DIR)/rel/d/a/e/d_a_e_hb.plf
M68_LDSCRIPT := $(BUILD_DIR)/rel/d/a/e/d_a_e_hb.lcf
M68_MAP := $(BUILD_DIR)/rel/d/a/e/d_a_e_hb.map

M68_CPP_FILES := \
	rel/executor.cpp \
	rel/global_destructor_chain.cpp \
	rel/d/a/e/d_a_e_hb/d_a_e_hb.cpp \

M68_O_FILES := \
	$(BUILD_DIR)/rel/executor.o \
	$(BUILD_DIR)/rel/global_destructor_chain.o \
	$(BUILD_DIR)/rel/d/a/e/d_a_e_hb/d_a_e_hb.o \

M68_LIBS := \

M68_CFLAGS := \
	-sdata 0 \
	-sdata2 0 \

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

$(M68_TARGET): $(M68_O_FILES) $(M68_LIBS)
	@echo [ 68] creating $(M68_TARGET)
	@echo $(M68_LIBS) $(M68_O_FILES) > build/M68_ofiles
	@python3 tools/lcf.py rel 68 --output $(M68_LDSCRIPT)
	@$(LD) -opt_partial -strip_partial $(M68_LDFLAGS) -o $(M68_TARGET) @build/M68_ofiles

$(BUILD_DIR)/rel/d/a/e/d_a_e_hb/%.o: rel/d/a/e/d_a_e_hb/%.cpp $(BUILD_DIR)/rel/d/a/e/d_a_e_hb/%.d
	@echo [ 68] building $@
	@mkdir -p $(@D)
	@$(ICONV) -f UTF-8 -t CP932 < $< > $(basename $@).cpp
	@$(CC) $(CFLAGS) $(M68_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
M68_D_FILES := $(M68_O_FILES:.o=.d)
$(M68_D_FILES):
include $(wildcard $(M68_D_FILES))
endif


