# BuildSystemHeader added automatically
# $Header: [Makefile,v 1.1 91/05/03 11:31:44 afuller Exp ]$
#
# Make a version of hotdog that dumps all packets in ascii.
# We make our version of hotdog by slipping our dispatcher into the
# N10 directory, remaking hotdog in N10 area and telling N10 makefile
# to create the new hotdog in this directory.  When we are done, we
# relink the original distpatcher from shadow.
#
# This only works if:
#
#	a) the dispatch interface does not change
#	b) the name of the dispatch file does not change
#	c) the directory where dispatcher lives does not change
#	d) the N10 makefile continues to use EFILE for hotdog name
#	e) the N10 protocol does not change
#
# The worst that happens is that the real dispatcher is blown away
# but it can be recovered by typing "relink" as a target.
#
# JDF 11/9/89
#

work =		/tmloc/work/extensions/server/pex/dd
shadow =	/tmloc/shadow/extensions/server/pex/dd

hotdog	: dispatch.c $(work)/n10/bin/mips/hotdog
	rm -f $(work)/n10/src/opcodes/dispatch.c
	rm -f $(work)/n10/src/opcodes/dispatch.mips
	ln -s $(work)/sim/dispatch.c $(work)/n10/src/opcodes
	cd $(work)/n10/src/opcodes; make SUFX=mips
	cd $(work)/n10/src; make SUFX=mips EFILE=$(work)/sim/hotdog hotdog
	@rm -f $(work)/n10/src/opcodes/dispatch.c
	@ln -s $(shadow)/n10/src/opcodes/dispatch.c $(work)/n10/src/opcodes

relink	:
	rm -f $(work)/n10/src/opcodes/dispatch.c
	ln -s $(shadow)/n10/src/opcodes/dispatch.c $(work)/n10/src/opcodes

Makefile	:

Makefiles	:

clean	:
	rm -f hotdog
