include ../../Config

LD=${__LD} ${__LD_FLAGS} -r
NASM=${__NASM} ${__NASM_FLAGS} ${__ROM_FLAGS} -i ../include/
BASH=${__BASH}
MAKEDEP=../../${__MAKEDEP}
RM=rm -f

OBJECTS=ec64rom.o
TARGET=ec64rom.O

.PHONY: all  echo  clean  Depclean

all: echo  ${TARGET}

echo:
	@echo
	@echo "  --------------------------"
	@echo "    creating ec64rom.O ..."
	@echo "  --------------------------"
	@echo

${TARGET}: ${OBJECTS}
	${LD} -o ${TARGET} ${OBJECTS}

include Dependencies

ec64rom.o: ec64rom.n
	${NASM} ec64rom.n

clean:
	${RM} *.bak *~ core
	${RM} ${TARGET} ${OBJECTS}

Dependencies:
	${BASH} ${MAKEDEP} > Dependencies

Depclean:
	${RM} Dependencies

